@openclaw/matrix 2026.11.11 → 2026.12.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 (192) hide show
  1. package/dist/.setup/{approval-handler.runtime-CCGCnRgz.mjs → approval-handler.runtime-BfY586xJ.mjs} +4 -4
  2. package/dist/.setup/{channel-BEgolhUJ.mjs → channel-Cc7auxIF.mjs} +8 -8
  3. package/dist/.setup/{channel.runtime-_NMfiRJl.mjs → channel.runtime-B6ZmWLDZ.mjs} +5 -5
  4. package/dist/.setup/{channel.setup-B7r4NCcE.mjs → channel.setup-D9-chyNP.mjs} +2 -2
  5. package/dist/.setup/{cli-CyjnAIzU.mjs → cli-BrTpL9JI.mjs} +7 -7
  6. package/dist/.setup/{cli-metadata-DNeLBXHC.mjs → cli-metadata-R7WyIFzA.mjs} +1 -1
  7. package/dist/.setup/{client-BVgnwwz0.mjs → client-BmxOI9-U.mjs} +2 -2
  8. package/dist/.setup/{client-gch0wggI.mjs → client-DOb_5cJm.mjs} +2 -2
  9. package/dist/.setup/{client-bootstrap-CHs5OQ1Z.mjs → client-bootstrap-BwDbzw5i.mjs} +1 -1
  10. package/dist/.setup/{create-client-mnjEWdZV.mjs → create-client-BQpMgtl2.mjs} +2 -2
  11. package/dist/.setup/{crypto-runtime-tZ95jwNO.mjs → crypto-runtime-CStae6zK.mjs} +1 -1
  12. package/dist/.setup/{direct-management-D59C1WO-.mjs → direct-management-Bm4vd-k1.mjs} +1 -1
  13. package/dist/.setup/{directory-live-CQNKUJJx.mjs → directory-live-DRGF3zFp.mjs} +1 -1
  14. package/dist/.setup/{draft-stream-DI_6HWy4.mjs → draft-stream-DpSefQTK.mjs} +2 -2
  15. package/dist/.setup/{exec-approvals-B23spbVI.mjs → exec-approvals-CTkGLt3Z.mjs} +2 -2
  16. package/dist/.setup/{messages-VnZ4u4iq.mjs → messages-DjmI7l5t.mjs} +3 -3
  17. package/dist/.setup/{monitor-wbUkxHXK.mjs → monitor-HjyjGlys.mjs} +18 -18
  18. package/dist/.setup/{onboarding-B51d5a6R.mjs → onboarding-BPkKv4dw.mjs} +3 -3
  19. package/dist/.setup/{outbound-D8rgFTRa.mjs → outbound-CthMgcxZ.mjs} +2 -2
  20. package/dist/.setup/{profile-update-DAQFPf4L.mjs → profile-update-myTQ_w_e.mjs} +3 -3
  21. package/dist/.setup/{reaction-events-CZlbNkx_.mjs → reaction-events-C22fpTeK.mjs} +5 -5
  22. package/dist/.setup/{resolve-targets-B3NLls5a.mjs → resolve-targets-3B6QJQUf.mjs} +1 -1
  23. package/dist/.setup/{room-info-Cw-BH1CA.mjs → room-info-7ER9IkzT.mjs} +3 -3
  24. package/dist/.setup/{sdk-Bzp2OIxv.mjs → sdk-DphkoEH1.mjs} +32 -33
  25. package/dist/.setup/{send-CK8h-x83.mjs → send-CAfHI3Oi.mjs} +18 -13
  26. package/dist/.setup/{send-currentness-D1x6YP9O.mjs → send-currentness-Zv5Z-1_t.mjs} +9 -5
  27. package/dist/.setup/{setup-bootstrap-DsHa4swp.mjs → setup-bootstrap-COKlzUTV.mjs} +2 -2
  28. package/dist/.setup/{setup-core-B3MI_zz4.mjs → setup-core-B1dRvn1h.mjs} +1 -1
  29. package/dist/.setup/setup-plugin-api-BGpOj2cE.mjs +2 -0
  30. package/dist/.setup/{thread-bindings-C_SHelhg.mjs → thread-bindings-DFF_4WP3.mjs} +1 -1
  31. package/dist/.setup/{tool-actions-nhsof0wb.mjs → tool-actions-Cal-116X.mjs} +11 -11
  32. package/dist/.setup/{verification-BZqaSKCW.mjs → verification-2flsiwT7.mjs} +1 -1
  33. package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +1 -1
  34. package/dist/api.js +4 -4
  35. package/dist/channel-plugin-api.js +1 -1
  36. package/dist/cli-metadata.js +1 -1
  37. package/dist/contract-api.js +2 -2
  38. package/dist/index.js +1 -1
  39. package/dist/plugin-entry.handlers.runtime.js +2 -2
  40. package/dist/session-binding-contract-api.js +1 -1
  41. package/dist/setup-entry.js +1 -1
  42. package/dist/setup-plugin-api.js +1 -1
  43. package/node_modules/@openclaw/fs-safe/CHANGELOG.md +57 -0
  44. package/node_modules/@openclaw/fs-safe/README.md +6 -0
  45. package/node_modules/@openclaw/fs-safe/dist/archive-parser.wasm +0 -0
  46. package/node_modules/@openclaw/fs-safe/dist/atomic-io.d.ts +1 -0
  47. package/node_modules/@openclaw/fs-safe/dist/atomic-io.js +10 -0
  48. package/node_modules/@openclaw/fs-safe/dist/bounded-read.d.ts +1 -1
  49. package/node_modules/@openclaw/fs-safe/dist/bounded-read.js +15 -4
  50. package/node_modules/@openclaw/fs-safe/dist/directory-guard.js +11 -2
  51. package/node_modules/@openclaw/fs-safe/dist/drvfs-parent.d.ts +6 -0
  52. package/node_modules/@openclaw/fs-safe/dist/drvfs-parent.js +38 -0
  53. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-acquisition.d.ts +1 -1
  54. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-acquisition.js +2 -2
  55. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.js +13 -8
  56. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-io.js +13 -0
  57. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-mutation.d.ts +2 -2
  58. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-mutation.js +34 -24
  59. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.js +7 -2
  60. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync.js +20 -20
  61. package/node_modules/@openclaw/fs-safe/dist/file-observation.d.ts +13 -2
  62. package/node_modules/@openclaw/fs-safe/dist/file-observation.js +8 -4
  63. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.d.ts +1 -0
  64. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.js +11 -1
  65. package/node_modules/@openclaw/fs-safe/dist/file-store-write-options.d.ts +2 -0
  66. package/node_modules/@openclaw/fs-safe/dist/file-store-write-options.js +17 -0
  67. package/node_modules/@openclaw/fs-safe/dist/file-store.d.ts +2 -1
  68. package/node_modules/@openclaw/fs-safe/dist/file-store.js +12 -16
  69. package/node_modules/@openclaw/fs-safe/dist/guest-native-python.js +1 -1
  70. package/node_modules/@openclaw/fs-safe/dist/guest.js +3 -4
  71. package/node_modules/@openclaw/fs-safe/dist/json-document-store.d.ts +2 -0
  72. package/node_modules/@openclaw/fs-safe/dist/json-document-store.js +1 -0
  73. package/node_modules/@openclaw/fs-safe/dist/json-store.js +1 -0
  74. package/node_modules/@openclaw/fs-safe/dist/json.d.ts +5 -2
  75. package/node_modules/@openclaw/fs-safe/dist/json.js +6 -2
  76. package/node_modules/@openclaw/fs-safe/dist/local-file-descriptor.js +16 -10
  77. package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +6 -0
  78. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.js +4 -0
  79. package/node_modules/@openclaw/fs-safe/dist/native-staged-file-metadata.d.ts +20 -0
  80. package/node_modules/@openclaw/fs-safe/dist/native-staged-file-metadata.js +18 -0
  81. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.d.ts +3 -18
  82. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +48 -24
  83. package/node_modules/@openclaw/fs-safe/dist/opened-file-failure.js +19 -7
  84. package/node_modules/@openclaw/fs-safe/dist/output.d.ts +1 -0
  85. package/node_modules/@openclaw/fs-safe/dist/output.js +3 -0
  86. package/node_modules/@openclaw/fs-safe/dist/path-policy.js +4 -1
  87. package/node_modules/@openclaw/fs-safe/dist/permissions-windows.js +35 -10
  88. package/node_modules/@openclaw/fs-safe/dist/pinned-open.d.ts +9 -2
  89. package/node_modules/@openclaw/fs-safe/dist/pinned-open.js +42 -23
  90. package/node_modules/@openclaw/fs-safe/dist/pinned-write-staged.js +85 -34
  91. package/node_modules/@openclaw/fs-safe/dist/pinned-write-types.d.ts +3 -0
  92. package/node_modules/@openclaw/fs-safe/dist/pinned-write.js +4 -0
  93. package/node_modules/@openclaw/fs-safe/dist/prepare-directory-mode.d.ts +1 -0
  94. package/node_modules/@openclaw/fs-safe/dist/prepare-directory-mode.js +1 -1
  95. package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.js +2 -2
  96. package/node_modules/@openclaw/fs-safe/dist/publication-recovery.d.ts +24 -0
  97. package/node_modules/@openclaw/fs-safe/dist/publication-recovery.js +151 -0
  98. package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.d.ts +1 -0
  99. package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.js +2 -1
  100. package/node_modules/@openclaw/fs-safe/dist/realpath.d.ts +1 -1
  101. package/node_modules/@openclaw/fs-safe/dist/realpath.js +22 -11
  102. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.d.ts +1 -0
  103. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.js +5 -0
  104. package/node_modules/@openclaw/fs-safe/dist/replace-file-temp-owner.d.ts +7 -0
  105. package/node_modules/@openclaw/fs-safe/dist/replace-file-temp-owner.js +75 -2
  106. package/node_modules/@openclaw/fs-safe/dist/replace-file-types.d.ts +2 -0
  107. package/node_modules/@openclaw/fs-safe/dist/replace-file.js +14 -10
  108. package/node_modules/@openclaw/fs-safe/dist/root-context.js +28 -12
  109. package/node_modules/@openclaw/fs-safe/dist/root-copy.js +1 -0
  110. package/node_modules/@openclaw/fs-safe/dist/root-create-input.js +2 -2
  111. package/node_modules/@openclaw/fs-safe/dist/root-file-final-admission.d.ts +4 -0
  112. package/node_modules/@openclaw/fs-safe/dist/root-file-final-admission.js +53 -36
  113. package/node_modules/@openclaw/fs-safe/dist/root-file-open-batch-sync.js +3 -1
  114. package/node_modules/@openclaw/fs-safe/dist/root-file.d.ts +2 -1
  115. package/node_modules/@openclaw/fs-safe/dist/root-file.js +24 -13
  116. package/node_modules/@openclaw/fs-safe/dist/root-impl.js +17 -1
  117. package/node_modules/@openclaw/fs-safe/dist/root-options.d.ts +4 -2
  118. package/node_modules/@openclaw/fs-safe/dist/root-path.d.ts +1 -1
  119. package/node_modules/@openclaw/fs-safe/dist/root-path.js +2 -1
  120. package/node_modules/@openclaw/fs-safe/dist/root-read-admission.js +31 -9
  121. package/node_modules/@openclaw/fs-safe/dist/root-write-admission.js +6 -2
  122. package/node_modules/@openclaw/fs-safe/dist/secret-file.d.ts +1 -0
  123. package/node_modules/@openclaw/fs-safe/dist/secret-file.js +2 -0
  124. package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.d.ts +1 -0
  125. package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.js +84 -4
  126. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.d.ts +1 -0
  127. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.js +2 -0
  128. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-acquire.js +22 -15
  129. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-publication.d.ts +22 -0
  130. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-publication.js +303 -0
  131. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-reclaim.d.ts +2 -0
  132. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-reclaim.js +9 -1
  133. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-root.d.ts +8 -0
  134. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-root.js +37 -3
  135. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-staging.d.ts +14 -0
  136. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-staging.js +155 -0
  137. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-stale-admission.js +7 -2
  138. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-write.d.ts +10 -0
  139. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-write.js +143 -0
  140. package/node_modules/@openclaw/fs-safe/dist/temp-target.js +28 -7
  141. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-admission.d.ts +2 -2
  142. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-admission.js +34 -18
  143. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.d.ts +1 -1
  144. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.js +13 -3
  145. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-ownership.js +1 -1
  146. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-types.d.ts +9 -0
  147. package/node_modules/@openclaw/fs-safe/dist/test-hooks.d.ts +6 -0
  148. package/node_modules/@openclaw/fs-safe/dist/text-atomic.d.ts +1 -1
  149. package/node_modules/@openclaw/fs-safe/dist/text-atomic.js +1 -0
  150. package/node_modules/@openclaw/fs-safe/dist/windows-owner.d.ts +1 -0
  151. package/node_modules/@openclaw/fs-safe/dist/windows-owner.js +2 -1
  152. package/node_modules/@openclaw/fs-safe/dist/windows-security-helper.exe +0 -0
  153. package/node_modules/@openclaw/fs-safe/docs/advanced.md +6 -1
  154. package/node_modules/@openclaw/fs-safe/docs/atomic.md +64 -0
  155. package/node_modules/@openclaw/fs-safe/docs/contributing.md +69 -0
  156. package/node_modules/@openclaw/fs-safe/docs/file-store.md +2 -0
  157. package/node_modules/@openclaw/fs-safe/docs/json-store.md +2 -0
  158. package/node_modules/@openclaw/fs-safe/docs/json.md +2 -0
  159. package/node_modules/@openclaw/fs-safe/docs/output.md +2 -0
  160. package/node_modules/@openclaw/fs-safe/docs/permissions.md +20 -7
  161. package/node_modules/@openclaw/fs-safe/docs/reading.md +24 -9
  162. package/node_modules/@openclaw/fs-safe/docs/root.md +2 -0
  163. package/node_modules/@openclaw/fs-safe/docs/security-model.md +2 -0
  164. package/node_modules/@openclaw/fs-safe/docs/sidecar-lock.md +12 -7
  165. package/node_modules/@openclaw/fs-safe/docs/staged-file.md +2 -0
  166. package/node_modules/@openclaw/fs-safe/docs/temp-isolation-reference.md +73 -0
  167. package/node_modules/@openclaw/fs-safe/docs/temp.md +65 -0
  168. package/node_modules/@openclaw/fs-safe/docs/testing.md +1 -0
  169. package/node_modules/@openclaw/fs-safe/docs/writing.md +2 -0
  170. package/node_modules/@openclaw/fs-safe/package.json +25 -20
  171. package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
  172. package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
  173. package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
  174. package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
  175. package/node_modules/@openclaw/fs-safe-freebsd-arm64/fs-safe-native.node +0 -0
  176. package/node_modules/@openclaw/fs-safe-freebsd-arm64/package.json +1 -1
  177. package/node_modules/@openclaw/fs-safe-freebsd-x64/fs-safe-native.node +0 -0
  178. package/node_modules/@openclaw/fs-safe-freebsd-x64/package.json +1 -1
  179. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
  180. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
  181. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
  182. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
  183. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
  184. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
  185. package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
  186. package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
  187. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/fs-safe-native.node +0 -0
  188. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/package.json +1 -1
  189. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
  190. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
  191. package/package.json +5 -5
  192. package/dist/.setup/setup-plugin-api-D6-D6LLj.mjs +0 -2
@@ -1,10 +1,10 @@
1
1
  import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
2
- import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-B23spbVI.mjs";
2
+ import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-CTkGLt3Z.mjs";
3
3
  import { s as resolveMatrixTargetIdentity } from "./target-ids-DltG_ZHJ.mjs";
4
- import { a as repairMatrixDirectRooms } from "./direct-management-D59C1WO-.mjs";
5
- import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-CK8h-x83.mjs";
4
+ import { a as repairMatrixDirectRooms } from "./direct-management-Bm4vd-k1.mjs";
5
+ import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-CAfHI3Oi.mjs";
6
6
  import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-Bz_8XB01.mjs";
7
- import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-VnZ4u4iq.mjs";
7
+ import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-DjmI7l5t.mjs";
8
8
  import { listMessageReceiptPlatformIds, resolveMessageReceiptPrimaryId } from "openclaw/plugin-sdk/channel-outbound";
9
9
  import { normalizeStringifiedOptionalString, normalizeUniqueStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
10
10
  import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
@@ -1,9 +1,9 @@
1
1
  import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
2
  import { i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, r as hasImplicitMatrixAccountConfig } from "./account-selection-Cow3TMFO.mjs";
3
3
  import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
4
- import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, v as resolveMatrixAccountAsync } from "./setup-core-B3MI_zz4.mjs";
5
- import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-B7r4NCcE.mjs";
6
- import { a as isMatrixExecApprovalAuthorizedSender, c as shouldSuppressLocalMatrixExecApprovalPrompt, d as normalizeMatrixApproverId, i as isMatrixApprovalClientEnabled, l as getMatrixApprovalAuthApprovers, n as getMatrixExecApprovalApprovers, o as resolveMatrixExecApprovalTarget, r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest, t as getMatrixApprovalApprovers, u as matrixApprovalAuth } from "./exec-approvals-B23spbVI.mjs";
4
+ import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, v as resolveMatrixAccountAsync } from "./setup-core-B1dRvn1h.mjs";
5
+ import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-D9-chyNP.mjs";
6
+ import { a as isMatrixExecApprovalAuthorizedSender, c as shouldSuppressLocalMatrixExecApprovalPrompt, d as normalizeMatrixApproverId, i as isMatrixApprovalClientEnabled, l as getMatrixApprovalAuthApprovers, n as getMatrixExecApprovalApprovers, o as resolveMatrixExecApprovalTarget, r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest, t as getMatrixApprovalApprovers, u as matrixApprovalAuth } from "./exec-approvals-CTkGLt3Z.mjs";
7
7
  import { a as normalizeMatrixResolvableTarget, i as normalizeMatrixMessagingTarget, n as isMatrixQualifiedUserId, o as resolveMatrixDirectUserId, r as isMatrixRoomId, s as resolveMatrixTargetIdentity } from "./target-ids-DltG_ZHJ.mjs";
8
8
  import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-GiXgCj7k.mjs";
9
9
  import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./thread-bindings-shared-DEAGGuDA.mjs";
@@ -157,7 +157,7 @@ const matrixMessageActions = {
157
157
  return account.enabled && account.configured && createActionGate(account.config.actions)("messages") ? payload : null;
158
158
  },
159
159
  handleAction: async (ctx) => {
160
- const { handleMatrixAction } = await import("./tool-actions-nhsof0wb.mjs");
160
+ const { handleMatrixAction } = await import("./tool-actions-Cal-116X.mjs");
161
161
  return await handleMatrixAction(ctx);
162
162
  }
163
163
  };
@@ -271,7 +271,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
271
271
  ],
272
272
  isConfigured: isMatrixAnyApprovalClientEnabled,
273
273
  shouldHandle: shouldHandleMatrixApprovalRequest,
274
- load: async () => (await import("./approval-handler.runtime-CCGCnRgz.mjs")).matrixApprovalNativeRuntime
274
+ load: async () => (await import("./approval-handler.runtime-BfY586xJ.mjs")).matrixApprovalNativeRuntime
275
275
  })
276
276
  });
277
277
  const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
@@ -620,12 +620,12 @@ async function resolveMatrixOutboundSessionRoute(params) {
620
620
  });
621
621
  }
622
622
  // extensions/matrix/src/channel.ts
623
- const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-_NMfiRJl.mjs"), "matrixChannelRuntime");
624
- const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-wbUkxHXK.mjs").catch((error) => {
623
+ const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-B6ZmWLDZ.mjs"), "matrixChannelRuntime");
624
+ const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-HjyjGlys.mjs").catch((error) => {
625
625
  loadMatrixMonitorModule.clear();
626
626
  throw error;
627
627
  }));
628
- const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-B3NLls5a.mjs").then((n) => n.n), "resolveMatrixTargets");
628
+ const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-3B6QJQUf.mjs").then((n) => n.n), "resolveMatrixTargets");
629
629
  const matrixDoctor = {
630
630
  dmAllowFromMode: "nestedOnly",
631
631
  groupModel: "sender",
@@ -1,10 +1,10 @@
1
1
  import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-DesoKUns.mjs";
2
- import { C as reconcileMatrixUnknownSend, S as cleanupMatrixDeliveryPlans, o as sendTypingMatrix, r as sendMessageMatrix } from "./send-CK8h-x83.mjs";
2
+ import { C as reconcileMatrixUnknownSend, S as cleanupMatrixDeliveryPlans, o as sendTypingMatrix, r as sendMessageMatrix } from "./send-CAfHI3Oi.mjs";
3
3
  import { c as resolveMatrixLocalTimeoutMs } from "./client-support-CqXAOZp3.mjs";
4
- import { c as resolveMatrixAuth } from "./client-BVgnwwz0.mjs";
5
- import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-CQNKUJJx.mjs";
6
- import { t as matrixOutbound } from "./outbound-D8rgFTRa.mjs";
7
- import { t as resolveMatrixTargets } from "./resolve-targets-B3NLls5a.mjs";
4
+ import { c as resolveMatrixAuth } from "./client-BmxOI9-U.mjs";
5
+ import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-DRGF3zFp.mjs";
6
+ import { t as matrixOutbound } from "./outbound-CthMgcxZ.mjs";
7
+ import { t as resolveMatrixTargets } from "./resolve-targets-3B6QJQUf.mjs";
8
8
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
9
9
  import { isRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
10
10
  import { ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
@@ -1,5 +1,5 @@
1
1
  import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
2
- import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, i as matrixSetupContract, m as listMatrixAccountIds, t as createMatrixSetupWizardProxy, v as resolveMatrixAccountAsync } from "./setup-core-B3MI_zz4.mjs";
2
+ import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, i as matrixSetupContract, m as listMatrixAccountIds, t as createMatrixSetupWizardProxy, v as resolveMatrixAccountAsync } from "./setup-core-B1dRvn1h.mjs";
3
3
  import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
4
4
  import { createChannelConfigUiHints } from "openclaw/plugin-sdk/channel-core";
5
5
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -278,7 +278,7 @@ const matrixPluginBase = {
278
278
  order: 70,
279
279
  quickstartAllowFrom: true
280
280
  },
281
- setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-B51d5a6R.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
281
+ setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-BPkKv4dw.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
282
282
  setupContract: matrixSetupContract,
283
283
  capabilities: {
284
284
  chatTypes: [
@@ -1,16 +1,16 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
2
2
  import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
3
- import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-B3MI_zz4.mjs";
3
+ import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-B1dRvn1h.mjs";
4
4
  import { n as resolveMatrixConfigPath } from "./config-paths-DBpHxDyc.mjs";
5
- import { l as resolveMatrixAuthContext } from "./client-BVgnwwz0.mjs";
6
- import { n as withResolvedActionClient } from "./client-gch0wggI.mjs";
5
+ import { l as resolveMatrixAuthContext } from "./client-BmxOI9-U.mjs";
6
+ import { n as withResolvedActionClient } from "./client-DOb_5cJm.mjs";
7
7
  import { registerMatrixDoctorCommands } from "./cli-doctor-CoRX0erj.mjs";
8
8
  import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-BxH69np2.mjs";
9
9
  import { i as setMatrixConsoleLogging } from "./logger-B9TwnY6C.mjs";
10
10
  import { r as setMatrixSdkLogMode } from "./logging-Bnsn7s4r.mjs";
11
11
  import { n as listStaleOpenClawMatrixDevices } from "./device-health-D7n-lPeb.mjs";
12
- import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-DAQFPf4L.mjs";
13
- import { a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, g as runMatrixSelfVerification, h as restoreMatrixRoomKeyBackup, l as getMatrixVerificationSas, m as resetMatrixRoomKeyBackup, n as bootstrapMatrixVerification, p as requestMatrixVerification, r as cancelMatrixVerification, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-BZqaSKCW.mjs";
12
+ import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-myTQ_w_e.mjs";
13
+ import { a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, g as runMatrixSelfVerification, h as restoreMatrixRoomKeyBackup, l as getMatrixVerificationSas, m as resetMatrixRoomKeyBackup, n as bootstrapMatrixVerification, p as requestMatrixVerification, r as cancelMatrixVerification, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-2flsiwT7.mjs";
14
14
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
15
15
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
16
16
  import { parseStrictInteger, timestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
@@ -405,7 +405,7 @@ function registerMatrixAccountCommands(root) {
405
405
  backupVersion: null
406
406
  };
407
407
  if (accountConfig.encryption === true) {
408
- const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-DsHa4swp.mjs");
408
+ const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-COKlzUTV.mjs");
409
409
  verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
410
410
  previousCfg: cfg,
411
411
  cfg: updated,
@@ -532,7 +532,7 @@ async function runMatrixDirectRoomCommand(params) {
532
532
  cfg,
533
533
  accountId: params.accountId
534
534
  }) : void 0;
535
- const [{ withResolvedActionClient, withStartedActionClient }, direct] = await Promise.all([import("./client-gch0wggI.mjs").then((n) => n.t), import("./direct-management-D59C1WO-.mjs").then((n) => n.t)]);
535
+ const [{ withResolvedActionClient, withStartedActionClient }, direct] = await Promise.all([import("./client-DOb_5cJm.mjs").then((n) => n.t), import("./direct-management-Bm4vd-k1.mjs").then((n) => n.t)]);
536
536
  return await (params.repair ? withStartedActionClient : withResolvedActionClient)({
537
537
  accountId: params.accountId,
538
538
  cfg
@@ -2,7 +2,7 @@ import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
2
2
  // extensions/matrix/src/cli-metadata.ts
3
3
  function registerMatrixCliMetadata(api) {
4
4
  api.registerCli(async ({ program }) => {
5
- const { registerMatrixCli } = await import("./cli-CyjnAIzU.mjs");
5
+ const { registerMatrixCli } = await import("./cli-BrTpL9JI.mjs");
6
6
  registerMatrixCli({ program });
7
7
  }, { descriptors: [{
8
8
  name: "matrix",
@@ -430,7 +430,7 @@ async function awaitMatrixStartupWithAbort(promise, abortSignal) {
430
430
  }
431
431
  }
432
432
  // extensions/matrix/src/matrix/client/shared.ts
433
- const loadMatrixCreateClientDeps = createLazyRuntimeModule(() => import("./create-client-mnjEWdZV.mjs"));
433
+ const loadMatrixCreateClientDeps = createLazyRuntimeModule(() => import("./create-client-BQpMgtl2.mjs"));
434
434
  const MATRIX_RETIREMENT_DRAIN_TIMEOUT_MS = 5e3;
435
435
  const sharedClientRegistry = resolveGlobalSingleton(Symbol.for("openclaw.matrix.shared-client-registry"), () => ({
436
436
  states: /* @__PURE__ */ new Map(),
@@ -764,6 +764,6 @@ var client_exports = /* @__PURE__ */ __exportAll({
764
764
  stopSharedClientForAccount: () => stopSharedClientForAccount,
765
765
  validateMatrixHomeserverUrl: () => validateMatrixHomeserverUrl
766
766
  });
767
- const loadMatrixClientRuntime = createLazyRuntimeModule(() => import("./create-client-mnjEWdZV.mjs"));
767
+ const loadMatrixClientRuntime = createLazyRuntimeModule(() => import("./create-client-BQpMgtl2.mjs"));
768
768
  const createMatrixClient = createLazyRuntimeMethod(loadMatrixClientRuntime, (runtime) => runtime.createMatrixClient);
769
769
  export { isMatrixStartupAbortError as a, resolveMatrixAuth as c, createMatrixStartupAbortError as i, resolveMatrixAuthContext as l, acquireSharedMatrixClient as n, throwIfMatrixStartupAborted as o, awaitMatrixStartupWithAbort as r, backfillMatrixAuthDeviceIdAfterStartup as s, client_exports as t };
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
- import { w as resolveMatrixRoomId } from "./send-CK8h-x83.mjs";
2
+ import { w as resolveMatrixRoomId } from "./send-CAfHI3Oi.mjs";
3
3
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
4
4
  // extensions/matrix/src/matrix/actions/client.ts
5
5
  var client_exports = /* @__PURE__ */ __exportAll({
@@ -7,7 +7,7 @@ var client_exports = /* @__PURE__ */ __exportAll({
7
7
  withResolvedRoomAction: () => withResolvedRoomAction,
8
8
  withStartedActionClient: () => withStartedActionClient
9
9
  });
10
- const loadMatrixActionClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-CHs5OQ1Z.mjs"));
10
+ const loadMatrixActionClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-BwDbzw5i.mjs"));
11
11
  async function withResolvedActionClient(opts, run) {
12
12
  const { withResolvedRuntimeMatrixClient } = await loadMatrixActionClientRuntime();
13
13
  return await withResolvedRuntimeMatrixClient(opts, run);
@@ -1,7 +1,7 @@
1
1
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
2
2
  import { captureChannelReadAuthority } from "openclaw/plugin-sdk/fetch-runtime";
3
3
  // extensions/matrix/src/matrix/client-bootstrap.ts
4
- const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => import("./client-BVgnwwz0.mjs").then((n) => n.t));
4
+ const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => import("./client-BmxOI9-U.mjs").then((n) => n.t));
5
5
  async function ensureResolvedClientReadiness(params) {
6
6
  if (params.readiness === "started") {
7
7
  if (params.lease) await params.lease.start();
@@ -1,14 +1,14 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
2
2
  import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-DesoKUns.mjs";
3
3
  import { n as maybeMigrateLegacyStorage, o as resolveMatrixStoragePaths, s as writeStorageMeta } from "./storage-CCarF_gm.mjs";
4
- import "./client-BVgnwwz0.mjs";
4
+ import "./client-BmxOI9-U.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
  // extensions/matrix/src/matrix/client/create-client.ts
10
10
  const loadMatrixCreateClientRuntimeDeps = createLazyRuntimeModule(() => Promise.all([
11
- import("./sdk-Bzp2OIxv.mjs").then((n) => n.t),
11
+ import("./sdk-DphkoEH1.mjs").then((n) => n.t),
12
12
  import("./logging-Bnsn7s4r.mjs").then((n) => n.n),
13
13
  import("./file-sync-store-CAhnwOPA.mjs")
14
14
  ]).then(([sdkModule, loggingModule, syncStoreModule]) => ({
@@ -1,6 +1,6 @@
1
1
  import { t as ensureMatrixCryptoRuntime } from "./deps-CVPT2Ros.mjs";
2
2
  import { r as noop, t as LogService } from "./logger-B9TwnY6C.mjs";
3
- import { a as isRepairableSecretStorageAccessError, i as trustMatrixOwnIdentity, n as isMatrixDeviceOwnerVerified, r as isMatrixDeviceVerifiedInCurrentClient } from "./sdk-Bzp2OIxv.mjs";
3
+ import { a as isRepairableSecretStorageAccessError, i as trustMatrixOwnIdentity, n as isMatrixDeviceOwnerVerified, r as isMatrixDeviceVerifiedInCurrentClient } from "./sdk-DphkoEH1.mjs";
4
4
  import { persistIdbToDisk, resolveDefaultIdbSnapshotPath, restoreIdbFromDisk } from "./idb-persistence-DeGUs--C.mjs";
5
5
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
6
6
  import { formatErrorMessage, materializeErrorStack, toStringifiedError } from "openclaw/plugin-sdk/error-runtime";
@@ -1,6 +1,6 @@
1
1
  import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
2
  import { n as isMatrixQualifiedUserId } from "./target-ids-DltG_ZHJ.mjs";
3
- import { a as MATRIX_REACTION_EVENT_TYPE, i as MATRIX_ANNOTATION_RELATION_TYPE } from "./send-currentness-D1x6YP9O.mjs";
3
+ import { a as MATRIX_ANNOTATION_RELATION_TYPE, o as MATRIX_REACTION_EVENT_TYPE } from "./send-currentness-Zv5Z-1_t.mjs";
4
4
  import { asOptionalRecord, normalizeNullableString, normalizeOptionalString, normalizeTrimmedStringList, normalizeUniqueTrimmedStringList } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  import { enqueueKeyedTask } from "openclaw/plugin-sdk/keyed-async-queue";
6
6
  // extensions/matrix/src/matrix/send/types.ts
@@ -1,6 +1,6 @@
1
1
  import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
2
  import { i as normalizeMatrixMessagingTarget, n as isMatrixQualifiedUserId } from "./target-ids-DltG_ZHJ.mjs";
3
- import { c as resolveMatrixAuth } from "./client-BVgnwwz0.mjs";
3
+ import { c as resolveMatrixAuth } from "./client-BmxOI9-U.mjs";
4
4
  import { t as MatrixAuthedHttpClient } from "./http-client-CqnKFKUH.mjs";
5
5
  import { isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  // extensions/matrix/src/directory-live.ts
@@ -1,5 +1,5 @@
1
- import { _ as MsgType } from "./direct-management-D59C1WO-.mjs";
2
- import { a as sendSingleTextMessageMatrix, f as prepareMatrixSingleText, t as editMessageMatrix } from "./send-CK8h-x83.mjs";
1
+ import { _ as MsgType } from "./direct-management-Bm4vd-k1.mjs";
2
+ import { a as sendSingleTextMessageMatrix, f as prepareMatrixSingleText, t as editMessageMatrix } from "./send-CAfHI3Oi.mjs";
3
3
  import { createFinalizableDraftLifecycle } from "openclaw/plugin-sdk/channel-outbound";
4
4
  // extensions/matrix/src/matrix/draft-stream.ts
5
5
  const DEFAULT_THROTTLE_MS = 1e3;
@@ -1,6 +1,6 @@
1
1
  import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
2
- import { g as resolveDefaultMatrixAccountId, v as resolveMatrixAccountAsync } from "./setup-core-B3MI_zz4.mjs";
3
- import { i as normalizeMatrixUserId } from "./channel.setup-B7r4NCcE.mjs";
2
+ import { g as resolveDefaultMatrixAccountId, v as resolveMatrixAccountAsync } from "./setup-core-B1dRvn1h.mjs";
3
+ import { i as normalizeMatrixUserId } from "./channel.setup-D9-chyNP.mjs";
4
4
  import { doesApprovalRequestSelectChannelAccountAsync } from "openclaw/plugin-sdk/approval-native-runtime";
5
5
  import { createChannelApprovalAuth, resolveApprovalApprovers } from "openclaw/plugin-sdk/approval-auth-runtime";
6
6
  import { createChannelExecApprovalProfileAsync, getExecApprovalReplyMetadata, isChannelExecApprovalClientEnabledFromConfig, isChannelExecApprovalTargetRecipient, matchesApprovalRequestFilters } from "openclaw/plugin-sdk/approval-client-runtime";
@@ -1,7 +1,7 @@
1
- import { a as MATRIX_REACTION_EVENT_TYPE } from "./send-currentness-D1x6YP9O.mjs";
2
- import { _ as formatPollResultsAsText, b as parsePollStart, d as resolveMatrixReplacementContent, h as buildPollResultsSummary, t as editMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollEventType, x as resolvePollReferenceEventId, y as isPollStartType } from "./send-CK8h-x83.mjs";
1
+ import { o as MATRIX_REACTION_EVENT_TYPE } from "./send-currentness-Zv5Z-1_t.mjs";
2
+ import { _ as formatPollResultsAsText, b as parsePollStart, d as resolveMatrixReplacementContent, h as buildPollResultsSummary, t as editMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollEventType, x as resolvePollReferenceEventId, y as isPollStartType } from "./send-CAfHI3Oi.mjs";
3
3
  import { n as isMatrixNotFoundError } from "./errors-CL3YJV8U.mjs";
4
- import { r as withResolvedRoomAction } from "./client-gch0wggI.mjs";
4
+ import { r as withResolvedRoomAction } from "./client-DOb_5cJm.mjs";
5
5
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
6
6
  import { asNullableObjectRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
7
7
  import { HTTPError } from "matrix-js-sdk/lib/http-api/index.js";
@@ -1,24 +1,24 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
2
2
  import { a as resolveMatrixAccountConfig, i as resolveMatrixAccountAllowlistConfig } from "./account-config-CVM2a28p.mjs";
3
- import { h as resolveConfiguredMatrixBotUserIds } from "./setup-core-B3MI_zz4.mjs";
4
- import { a as resolveMatrixInboundRouteAsync, i as resolveMatrixRoomConfig, n as resolveMatrixStoredSessionMeta, o as resolveMatrixThreadRouting } from "./channel-BEgolhUJ.mjs";
5
- import { a as resolveMatrixAllowListMatch, i as normalizeMatrixUserId, r as normalizeMatrixAllowList } from "./channel.setup-B7r4NCcE.mjs";
3
+ import { h as resolveConfiguredMatrixBotUserIds } from "./setup-core-B1dRvn1h.mjs";
4
+ import { a as resolveMatrixInboundRouteAsync, i as resolveMatrixRoomConfig, n as resolveMatrixStoredSessionMeta, o as resolveMatrixThreadRouting } from "./channel-Cc7auxIF.mjs";
5
+ import { a as resolveMatrixAllowListMatch, i as normalizeMatrixUserId, r as normalizeMatrixAllowList } from "./channel.setup-D9-chyNP.mjs";
6
6
  import { n as isMatrixQualifiedUserId, r as isMatrixRoomId, t as isMatrixInviteAutoJoinTarget } from "./target-ids-DltG_ZHJ.mjs";
7
- import { a as MATRIX_REACTION_EVENT_TYPE, n as withMatrixSendCurrentness } from "./send-currentness-D1x6YP9O.mjs";
8
- import { c as isStrictDirectMembership, f as resolveMatrixReplyToEventId, h as MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY, i as promoteMatrixDirectRoomCandidate, p as resolveMatrixThreadRootId, s as hasDirectMatrixMemberFlag, u as readJoinedMatrixMembers, v as RelationType } from "./direct-management-D59C1WO-.mjs";
7
+ import { o as MATRIX_REACTION_EVENT_TYPE, r as withMatrixSendCurrentness } from "./send-currentness-Zv5Z-1_t.mjs";
8
+ import { c as isStrictDirectMembership, f as resolveMatrixReplyToEventId, h as MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY, i as promoteMatrixDirectRoomCandidate, p as resolveMatrixThreadRootId, s as hasDirectMatrixMemberFlag, u as readJoinedMatrixMembers, v as RelationType } from "./direct-management-Bm4vd-k1.mjs";
9
9
  import { n as getMatrixMonitorTaskSignal, t as createMatrixMonitorTaskRunner } from "./task-runner-CYyGHdNW.mjs";
10
- import { T as setBoundedMap, b as parsePollStart, c as formatMatrixMessageText, d as resolveMatrixReplacementContent, g as formatPollAsText, l as isLikelyBareFilename, r as sendMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollEventType, y as isPollStartType } from "./send-CK8h-x83.mjs";
10
+ import { T as setBoundedMap, b as parsePollStart, c as formatMatrixMessageText, d as resolveMatrixReplacementContent, g as formatPollAsText, l as isLikelyBareFilename, r as sendMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollEventType, y as isPollStartType } from "./send-CAfHI3Oi.mjs";
11
11
  import { n as getMatrixEventProjection } from "./event-helpers-DDUjVVf7.mjs";
12
- import { t as createMatrixThreadBindingManager } from "./thread-bindings-C_SHelhg.mjs";
12
+ import { t as createMatrixThreadBindingManager } from "./thread-bindings-DFF_4WP3.mjs";
13
13
  import { a as isMatrixAccessTokenInvalidatedError } from "./client-support-CqXAOZp3.mjs";
14
- import { a as isMatrixStartupAbortError, c as resolveMatrixAuth, l as resolveMatrixAuthContext, n as acquireSharedMatrixClient, o as throwIfMatrixStartupAborted, s as backfillMatrixAuthDeviceIdAfterStartup } from "./client-BVgnwwz0.mjs";
15
- import { i as readMatrixMessages, l as fetchMatrixPollSnapshot } from "./messages-VnZ4u4iq.mjs";
14
+ import { a as isMatrixStartupAbortError, c as resolveMatrixAuth, l as resolveMatrixAuthContext, n as acquireSharedMatrixClient, o as throwIfMatrixStartupAborted, s as backfillMatrixAuthDeviceIdAfterStartup } from "./client-BmxOI9-U.mjs";
15
+ import { i as readMatrixMessages, l as fetchMatrixPollSnapshot } from "./messages-DjmI7l5t.mjs";
16
16
  import { a as isMatrixMediaSizeLimitError, i as MatrixMediaSizeLimitError } from "./http-client-CqnKFKUH.mjs";
17
- import { n as prepareMatrixReplyPayload, r as resolveMatrixExtraContent } from "./outbound-D8rgFTRa.mjs";
18
- import { t as resolveMatrixTargets } from "./resolve-targets-B3NLls5a.mjs";
17
+ import { n as prepareMatrixReplyPayload, r as resolveMatrixExtraContent } from "./outbound-CthMgcxZ.mjs";
18
+ import { t as resolveMatrixTargets } from "./resolve-targets-3B6QJQUf.mjs";
19
19
  import { t as formatMatrixEncryptedEventDisabledWarning } from "./encryption-guidance-DfbEaKct.mjs";
20
20
  import { n as isMatrixReadySyncState, r as isMatrixTerminalSyncState, t as isMatrixDisconnectedSyncState } from "./sync-state-Cu1nagBV.mjs";
21
- import { r as getMatrixRoomInfo, t as createMatrixRoomInfoResolver } from "./room-info-Cw-BH1CA.mjs";
21
+ import { r as getMatrixRoomInfo, t as createMatrixRoomInfoResolver } from "./room-info-7ER9IkzT.mjs";
22
22
  import { channelBlockedPatch, channelReadyPatch, channelStoppedPatch, createTransportActivityStatusPatch } from "openclaw/plugin-sdk/gateway-runtime";
23
23
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
24
24
  import { createChannelDeliveryAccumulator, createChannelIngressError, createChannelIngressMonitor, createChannelProgressDraftCompositor, createLivePreviewLifecycle, createPreviewMessageReceipt, createReplyPrefixOptions, createTypingCallbacks, logTypingFailure, resolveChannelStreamingBlockEnabled, waitUntilAbort } from "openclaw/plugin-sdk/channel-outbound";
@@ -727,7 +727,7 @@ const matrixVerificationConstants = {
727
727
  const MAX_TRACKED_VERIFICATION_EVENTS = 1024;
728
728
  const SAS_NOTICE_RETRY_DELAY_MS = 750;
729
729
  const VERIFICATION_EVENT_STARTUP_GRACE_MS = 3e4;
730
- const loadMatrixDirectRoomDeps = createLazyRuntimeModule(() => Promise.all([import("./direct-management-D59C1WO-.mjs").then((n) => n.t), import("./direct-management-D59C1WO-.mjs").then((n) => n.o)]).then(([directManagementModule, directRoomModule]) => ({
730
+ const loadMatrixDirectRoomDeps = createLazyRuntimeModule(() => Promise.all([import("./direct-management-Bm4vd-k1.mjs").then((n) => n.t), import("./direct-management-Bm4vd-k1.mjs").then((n) => n.o)]).then(([directManagementModule, directRoomModule]) => ({
731
731
  inspectMatrixDirectRooms: directManagementModule.inspectMatrixDirectRooms,
732
732
  isStrictDirectRoom: directRoomModule.isStrictDirectRoom
733
733
  })));
@@ -1475,11 +1475,11 @@ function formatMatrixToolProgressMarkdownCode(text) {
1475
1475
  return `\`${(text.length <= MATRIX_TOOL_PROGRESS_MAX_CHARS ? text : `${truncateUtf16Safe(text, 299).trimEnd()}...`).replaceAll("`", "'")}\``;
1476
1476
  }
1477
1477
  // extensions/matrix/src/matrix/monitor/handler-runtime.ts
1478
- const loadMatrixSendModule = createLazyRuntimeModule(() => import("./send-CK8h-x83.mjs").then((n) => n.s));
1478
+ const loadMatrixSendModule = createLazyRuntimeModule(() => import("./send-CAfHI3Oi.mjs").then((n) => n.s));
1479
1479
  const loadAcpBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/acp-binding-runtime"));
1480
1480
  const loadSessionBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/session-binding-runtime"));
1481
- const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-CZlbNkx_.mjs"));
1482
- const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream-DI_6HWy4.mjs"));
1481
+ const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-C22fpTeK.mjs"));
1482
+ const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream-DpSefQTK.mjs"));
1483
1483
  async function matrixTextWouldActivateMentions(client, text) {
1484
1484
  const { resolveMatrixMentionsForBody } = await loadMatrixSendModule();
1485
1485
  const mentions = await resolveMatrixMentionsForBody({
@@ -3537,9 +3537,9 @@ function shouldPromoteRecentInviteRoom(params) {
3537
3537
  }
3538
3538
  // extensions/matrix/src/matrix/monitor/startup.ts
3539
3539
  const loadMatrixStartupMaintenanceDeps = createLazyRuntimeModule(() => Promise.all([
3540
- import("./setup-core-B3MI_zz4.mjs").then((n) => n.f),
3540
+ import("./setup-core-B1dRvn1h.mjs").then((n) => n.f),
3541
3541
  import("./device-health-D7n-lPeb.mjs").then((n) => n.t),
3542
- import("./setup-core-B3MI_zz4.mjs").then((n) => n.u),
3542
+ import("./setup-core-B1dRvn1h.mjs").then((n) => n.u),
3543
3543
  import("./startup-verification-DfOuAruK.mjs")
3544
3544
  ]).then(([configUpdateModule, deviceHealthModule, profileModule, startupVerificationModule]) => ({
3545
3545
  updateMatrixAccountConfig: configUpdateModule.updateMatrixAccountConfig,
@@ -1,7 +1,7 @@
1
1
  import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
2
  import { i as requiresExplicitMatrixDefaultAccount, u as resolveMatrixEnvAuthReadiness } from "./account-selection-Cow3TMFO.mjs";
3
3
  import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
4
- import { a as createMatrixSetupDmPolicy, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, n as finishMatrixSetupAfterConfigWrite, o as moveSingleMatrixAccountConfigToNamedAccount, p as updateMatrixAccountConfig, v as resolveMatrixAccountAsync } from "./setup-core-B3MI_zz4.mjs";
4
+ import { a as createMatrixSetupDmPolicy, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, n as finishMatrixSetupAfterConfigWrite, o as moveSingleMatrixAccountConfigToNamedAccount, p as updateMatrixAccountConfig, v as resolveMatrixAccountAsync } from "./setup-core-B1dRvn1h.mjs";
5
5
  import { r as isMatrixRoomId, t as isMatrixInviteAutoJoinTarget } from "./target-ids-DltG_ZHJ.mjs";
6
6
  import { n as validateMatrixHomeserverUrl, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-DesoKUns.mjs";
7
7
  import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-CVPT2Ros.mjs";
@@ -87,7 +87,7 @@ async function promptMatrixAllowFrom(params) {
87
87
  pending.push(part);
88
88
  }
89
89
  if (pending.length > 0) {
90
- const { resolveMatrixTargets } = await import("./resolve-targets-B3NLls5a.mjs").then((n) => n.n);
90
+ const { resolveMatrixTargets } = await import("./resolve-targets-3B6QJQUf.mjs").then((n) => n.n);
91
91
  const results = await resolveMatrixTargets({
92
92
  cfg,
93
93
  accountId,
@@ -192,7 +192,7 @@ async function runMatrixConfigure(params) {
192
192
  resolvedIds.push(cleaned);
193
193
  continue;
194
194
  }
195
- const { listMatrixDirectoryGroupsLive } = await import("./directory-live-CQNKUJJx.mjs").then((n) => n.t);
195
+ const { listMatrixDirectoryGroupsLive } = await import("./directory-live-DRGF3zFp.mjs").then((n) => n.t);
196
196
  const matches = await listMatrixDirectoryGroupsLive({
197
197
  cfg: accessCfg,
198
198
  accountId: selectedAccountId,
@@ -1,5 +1,5 @@
1
- import { r as matrixPresentationCapabilities } from "./channel-BEgolhUJ.mjs";
2
- import { i as sendPollMatrix, r as sendMessageMatrix } from "./send-CK8h-x83.mjs";
1
+ import { r as matrixPresentationCapabilities } from "./channel-Cc7auxIF.mjs";
2
+ import { i as sendPollMatrix, r as sendMessageMatrix } from "./send-CAfHI3Oi.mjs";
3
3
  import { createMessageReceiptFromOutboundResults, createReplyToFanout, resolveOutboundSendDep } from "openclaw/plugin-sdk/channel-outbound";
4
4
  import { chunkMarkdownTextWithMode } from "openclaw/plugin-sdk/reply-chunking";
5
5
  import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -1,8 +1,8 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
2
- import { d as syncMatrixOwnProfile, p as updateMatrixAccountConfig } from "./setup-core-B3MI_zz4.mjs";
2
+ import { d as syncMatrixOwnProfile, p as updateMatrixAccountConfig } from "./setup-core-B1dRvn1h.mjs";
3
3
  import { n as resolveMatrixConfigPath } from "./config-paths-DBpHxDyc.mjs";
4
- import { l as resolveMatrixAuthContext } from "./client-BVgnwwz0.mjs";
5
- import { n as withResolvedActionClient } from "./client-gch0wggI.mjs";
4
+ import { l as resolveMatrixAuthContext } from "./client-BmxOI9-U.mjs";
5
+ import { n as withResolvedActionClient } from "./client-DOb_5cJm.mjs";
6
6
  import { buildOutboundMediaLoadOptions } from "openclaw/plugin-sdk/media-runtime";
7
7
  import { resolveOutboundMediaAccessForConfig } from "openclaw/plugin-sdk/outbound-media";
8
8
  // extensions/matrix/src/matrix/actions/profile.ts
@@ -1,16 +1,16 @@
1
1
  import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
2
- import { a as resolveMatrixInboundRouteAsync, o as resolveMatrixThreadRouting } from "./channel-BEgolhUJ.mjs";
3
- import { c as extractMatrixReactionAnnotation } from "./send-currentness-D1x6YP9O.mjs";
4
- import { p as resolveMatrixThreadRootId } from "./direct-management-D59C1WO-.mjs";
2
+ import { a as resolveMatrixInboundRouteAsync, o as resolveMatrixThreadRouting } from "./channel-Cc7auxIF.mjs";
3
+ import { l as extractMatrixReactionAnnotation } from "./send-currentness-Zv5Z-1_t.mjs";
4
+ import { p as resolveMatrixThreadRootId } from "./direct-management-Bm4vd-k1.mjs";
5
5
  import { i as resolveMatrixApprovalReactionTargetWithPersistence, o as unregisterMatrixApprovalReactionTargetsForApproval } from "./approval-reactions-Bz_8XB01.mjs";
6
6
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
7
7
  import { isApprovalNotFoundError } from "openclaw/plugin-sdk/error-runtime";
8
8
  import { normalizeAccountId } from "openclaw/plugin-sdk/routing";
9
9
  import { getSessionBindingService } from "openclaw/plugin-sdk/session-binding-runtime";
10
10
  // extensions/matrix/src/matrix/monitor/reaction-events.ts
11
- const loadApprovalReactionAuth = createLazyRuntimeModule(() => import("./channel-BEgolhUJ.mjs").then((n) => n.s));
11
+ const loadApprovalReactionAuth = createLazyRuntimeModule(() => import("./channel-Cc7auxIF.mjs").then((n) => n.s));
12
12
  const loadExecApprovalResolver = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/approval-gateway-runtime"));
13
- const loadMatrixSend = createLazyRuntimeModule(() => import("./send-CK8h-x83.mjs").then((n) => n.s));
13
+ const loadMatrixSend = createLazyRuntimeModule(() => import("./send-CAfHI3Oi.mjs").then((n) => n.s));
14
14
  function buildMatrixApprovalTerminalText(result) {
15
15
  const approval = result.approval;
16
16
  const terminalLabel = approval.status === "allowed" ? approval.decision === "allow-always" ? "Allowed always" : "Allowed once" : approval.status === "denied" ? "Denied" : approval.status === "expired" ? "Expired" : "Cancelled";
@@ -1,6 +1,6 @@
1
1
  import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
2
  import { i as normalizeMatrixMessagingTarget, n as isMatrixQualifiedUserId } from "./target-ids-DltG_ZHJ.mjs";
3
- import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-CQNKUJJx.mjs";
3
+ import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-DRGF3zFp.mjs";
4
4
  import { normalizeOptionalLowercaseString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  // extensions/matrix/src/resolve-targets.ts
6
6
  var resolve_targets_exports = /* @__PURE__ */ __exportAll({ resolveMatrixTargets: () => resolveMatrixTargets });
@@ -1,7 +1,7 @@
1
- import { T as setBoundedMap } from "./send-CK8h-x83.mjs";
1
+ import { T as setBoundedMap } from "./send-CAfHI3Oi.mjs";
2
2
  import { n as isMatrixNotFoundError } from "./errors-CL3YJV8U.mjs";
3
- import { s as EventType } from "./messages-VnZ4u4iq.mjs";
4
- import { r as withResolvedRoomAction } from "./client-gch0wggI.mjs";
3
+ import { s as EventType } from "./messages-DjmI7l5t.mjs";
4
+ import { r as withResolvedRoomAction } from "./client-DOb_5cJm.mjs";
5
5
  import { filterStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  // extensions/matrix/src/matrix/actions/room.ts
7
7
  async function getMatrixMemberInfo(userId, opts) {
@@ -2,11 +2,11 @@ import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
2
  import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
3
3
  import { r as assertMatrixSupportedStateFile } from "./retired-state-BsxdpJNk.mjs";
4
4
  import { o as readMatrixRecoveryKeyStateForPathAsync, u as writeMatrixRecoveryKeyStateForPathAsync } from "./crypto-state-store-CzAmeC_Z.mjs";
5
- import { n as withMatrixSendCurrentness, r as withoutMatrixSendCurrentness, t as captureMatrixSendCurrentness } from "./send-currentness-D1x6YP9O.mjs";
5
+ import { i as withoutMatrixSendCurrentness, n as captureMatrixSendCurrentness, r as withMatrixSendCurrentness, t as captureMatrixSendContext } from "./send-currentness-Zv5Z-1_t.mjs";
6
6
  import { i as parseMxc, r as matrixEventToRaw } from "./event-helpers-DDUjVVf7.mjs";
7
7
  import { n as isMatrixNotFoundError, t as formatMatrixErrorReason } from "./errors-CL3YJV8U.mjs";
8
8
  import { a as isMatrixAccessTokenInvalidatedError, c as resolveMatrixLocalTimeoutMs, i as createMatrixExplicitBootstrapOptions, l as unresolvedMatrixDeviceVerificationStatus, n as MATRIX_INITIAL_CRYPTO_BOOTSTRAP_OPTIONS, o as resolveMatrixDiagnostic, r as MATRIX_STATUS_DIAGNOSTIC_TIMEOUT_MS, s as resolveMatrixDiagnosticResult, t as MATRIX_AUTOMATIC_REPAIR_BOOTSTRAP_OPTIONS, u as unresolvedMatrixRoomKeyBackupStatus } from "./client-support-CqXAOZp3.mjs";
9
- import { i as createMatrixStartupAbortError, o as throwIfMatrixStartupAborted, r as awaitMatrixStartupWithAbort } from "./client-BVgnwwz0.mjs";
9
+ import { i as createMatrixStartupAbortError, o as throwIfMatrixStartupAborted, r as awaitMatrixStartupWithAbort } from "./client-BmxOI9-U.mjs";
10
10
  import { r as createMatrixGuardedFetch, t as MatrixAuthedHttpClient } from "./http-client-CqnKFKUH.mjs";
11
11
  import { t as acquireMatrixCryptoStoreOwnership } from "./crypto-store-ownership-DPO9WcVz.mjs";
12
12
  import { n as resolveMatrixRoomKeyBackupReadinessError } from "./backup-health-BxH69np2.mjs";
@@ -358,7 +358,7 @@ async function withMatrixLiveEncryptedRoom(owner, run, params) {
358
358
  params.emitter.off("sync.state", onSyncState);
359
359
  }
360
360
  assertCurrent();
361
- return await withMatrixSendCurrentness(owner, assertCurrent, () => run(assertCurrent));
361
+ return await withMatrixSendCurrentness(owner, assertCurrent, () => run(assertCurrent), signal);
362
362
  }
363
363
  async function probeMatrixLiveEncryptedRoom(params) {
364
364
  let changed;
@@ -387,15 +387,16 @@ async function probeMatrixLiveEncryptedRoom(params) {
387
387
  const crypto = params.client.getCrypto();
388
388
  const isCurrent = () => {
389
389
  const current = params.getSync();
390
- return !current.fromCache && (current.state === "PREPARED" || current.state === "SYNCING") && room != null && params.client.getRoom(params.roomId) === room && room.getMyMembership() === "join" && room.hasEncryptionStateEvent() && crypto != null && params.client.getCrypto() === crypto;
390
+ return !current.fromCache && (current.state === "PREPARED" || current.state === "SYNCING") && room != null && params.client.getRoom(params.roomId) === room && room.getMyMembership() === "join" && crypto != null && params.client.getCrypto() === crypto;
391
391
  };
392
392
  if (isCurrent() && crypto) {
393
393
  const encrypted = await crypto.isEncryptionEnabledInRoom(params.roomId);
394
394
  assertActive();
395
395
  if (!isCurrent()) continue;
396
- if (encrypted) return () => {
396
+ const isEncrypted = () => encrypted || room?.hasEncryptionStateEvent() === true;
397
+ if (isEncrypted()) return () => {
397
398
  assertActive();
398
- if (!isCurrent()) throw new Error("Matrix live encrypted room changed before dispatch; retry the send");
399
+ if (!isCurrent() || !isEncrypted()) throw new Error("Matrix live encrypted room changed before dispatch; retry the send");
399
400
  };
400
401
  }
401
402
  if (!changed) {
@@ -773,7 +774,7 @@ var MatrixSendScheduler = class extends MatrixScheduler {
773
774
  // extensions/matrix/src/matrix/sdk/client-base.ts
774
775
  const MATRIX_ENCRYPTED_STARTUP_TIMEOUT_MS = 6e4;
775
776
  let loadedMatrixCryptoRuntime = null;
776
- const loadMatrixCryptoRuntime = createLazyRuntimeModule(() => import("./crypto-runtime-tZ95jwNO.mjs").then((runtime) => {
777
+ const loadMatrixCryptoRuntime = createLazyRuntimeModule(() => import("./crypto-runtime-CStae6zK.mjs").then((runtime) => {
777
778
  loadedMatrixCryptoRuntime = runtime;
778
779
  return runtime;
779
780
  }));
@@ -1233,7 +1234,7 @@ var MatrixClientCore = class extends MatrixClientBase {
1233
1234
  return Array.isArray(joined.joined_rooms) ? joined.joined_rooms : [];
1234
1235
  }
1235
1236
  async getTransactionScopeId() {
1236
- captureMatrixSendCurrentness(this)?.();
1237
+ captureMatrixSendContext(this)?.assertCurrent();
1237
1238
  if (this.transactionScopeId) return this.transactionScopeId;
1238
1239
  const active = this.transactionScopePromise ?? withoutMatrixSendCurrentness(async () => {
1239
1240
  const configuredUserId = this.client.getUserId()?.trim() || this.selfUserId;
@@ -1297,32 +1298,30 @@ var MatrixClientCore = class extends MatrixClientBase {
1297
1298
  })).room_id;
1298
1299
  }
1299
1300
  async sendMessage(roomId, content, transactionId, beforeWireDispatch) {
1300
- const assertCurrent = captureMatrixSendCurrentness(this);
1301
+ const assertCurrent = captureMatrixSendContext(this)?.assertCurrent;
1301
1302
  const wireTransactionId = transactionId ?? (beforeWireDispatch || assertCurrent ? this.client.makeTxnId() : void 0);
1302
- return await this.sendQueue.enqueue(roomId, async () => {
1303
- return await this.messageWireDispatchGuards.run({
1304
- transactionId: wireTransactionId,
1305
- guard: beforeWireDispatch,
1306
- assertCurrent,
1307
- run: async () => {
1308
- if (wireTransactionId) {
1309
- const room = this.client.getRoom(roomId);
1310
- const existing = room?.getEventForTxnId?.(wireTransactionId);
1311
- if (existing) {
1312
- const existingId = existing.getId();
1313
- if (existing.status === EventStatus.SENT && existingId && !existingId.startsWith("~")) return existingId;
1314
- if (existing.status === EventStatus.NOT_SENT && room) {
1315
- await this.prepareRoomForMessageSend(roomId, existing.getContent());
1316
- return (await this.client.resendEvent(existing, room)).event_id;
1317
- }
1318
- throw new Error(`Matrix transaction ${wireTransactionId} is already active with status ${existing.status ?? "unknown"}`);
1319
- }
1303
+ return await this.sendQueue.enqueue(roomId, () => this.messageWireDispatchGuards.run({
1304
+ transactionId: wireTransactionId,
1305
+ guard: beforeWireDispatch,
1306
+ assertCurrent,
1307
+ run: async () => {
1308
+ if (wireTransactionId) {
1309
+ const room = this.client.getRoom(roomId);
1310
+ const existing = room?.getEventForTxnId?.(wireTransactionId);
1311
+ if (existing) {
1312
+ const existingId = existing.getId();
1313
+ if (existing.status === EventStatus.SENT && existingId && !existingId.startsWith("~")) return existingId;
1314
+ if (existing.status === EventStatus.NOT_SENT && room) return (await this.withPreparedRoom(roomId, existing.getContent(), () => this.client.resendEvent(existing, room))).event_id;
1315
+ throw new Error(`Matrix transaction ${wireTransactionId} is already active with status ${existing.status ?? "unknown"}`);
1320
1316
  }
1321
- await this.prepareRoomForMessageSend(roomId, content);
1322
- return (await this.client.sendMessage(roomId, content, wireTransactionId)).event_id;
1323
1317
  }
1324
- });
1325
- });
1318
+ return (await this.withPreparedRoom(roomId, content, () => this.client.sendMessage(roomId, content, wireTransactionId))).event_id;
1319
+ }
1320
+ }));
1321
+ }
1322
+ async withPreparedRoom(roomId, content, send) {
1323
+ const context = captureMatrixSendContext(this);
1324
+ return await this.prepareRoomForMessageSend(roomId, content) === "m.room.encrypted" ? await this.withLiveEncryptedRoom(roomId, send, context) : await send();
1326
1325
  }
1327
1326
  async getMessageWireEventType(roomId) {
1328
1327
  if (this.client.getRoom(roomId)?.hasEncryptionStateEvent() === true) return "m.room.encrypted";
@@ -1348,8 +1347,8 @@ var MatrixClientCore = class extends MatrixClientBase {
1348
1347
  async sendEvent(roomId, eventType, content) {
1349
1348
  return await this.sendQueue.enqueue(roomId, async () => {
1350
1349
  if (eventType === EventType.RoomMessageEncrypted.toString() || eventType === EventType.RoomRedaction.toString()) throw new Error(eventType === EventType.RoomRedaction.toString() ? "Matrix redaction wire events must use redactEvent" : "Matrix encrypted wire events must be generated by the SDK");
1351
- if (eventType !== "m.reaction") await this.prepareRoomForMessageSend(roomId, content);
1352
- return (await this.client.sendEvent(roomId, eventType, content)).event_id;
1350
+ const send = () => this.client.sendEvent(roomId, eventType, content);
1351
+ return (eventType === "m.reaction" ? await send() : await this.withPreparedRoom(roomId, content, send)).event_id;
1353
1352
  });
1354
1353
  }
1355
1354
  async sendStateEvent(roomId, eventType, stateKey, content) {