@openclaw/matrix 2026.11.6 → 2026.11.8

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 (168) hide show
  1. package/dist/.setup/{approval-handler.runtime-CshxBDs7.mjs → approval-handler.runtime-CKiMSdnX.mjs} +3 -3
  2. package/dist/.setup/{channel-OLndtGNE.mjs → channel-CZJeLUuu.mjs} +8 -8
  3. package/dist/.setup/{channel.runtime-CFSou_MS.mjs → channel.runtime-hpiGNile.mjs} +5 -5
  4. package/dist/.setup/{channel.setup-CqcEb6JR.mjs → channel.setup-Dc4G7kdF.mjs} +6 -2
  5. package/dist/.setup/{cli-CkMedN4Y.mjs → cli-DnLr6VVE.mjs} +8 -8
  6. package/dist/.setup/{cli-doctor-BVstkgJE.mjs → cli-doctor-DRM-8rZg.mjs} +1 -1
  7. package/dist/.setup/{cli-metadata-DN1E7yCf.mjs → cli-metadata-C9wZ_TOY.mjs} +1 -1
  8. package/dist/.setup/{client-Bk_tBqNp.mjs → client-CnPiPhTg.mjs} +4 -4
  9. package/dist/.setup/{client-Rlwtz1hG.mjs → client-CsgjDjyA.mjs} +2 -2
  10. package/dist/.setup/{client-bootstrap-Bhhri97J.mjs → client-bootstrap-CRN75TtW.mjs} +1 -1
  11. package/dist/.setup/{create-client-CzUtZgYF.mjs → create-client-C5bd0RUQ.mjs} +4 -4
  12. package/dist/.setup/{credentials-kT20jk_u.mjs → credentials-Byq2Kcqg.mjs} +1 -1
  13. package/dist/.setup/{crypto-runtime-BI9Pc344.mjs → crypto-runtime-EdW32JgS.mjs} +2 -2
  14. package/dist/.setup/{crypto-state-store-BZLlwkv_.mjs → crypto-state-store-m13QToc7.mjs} +2 -1
  15. package/dist/.setup/{crypto-store-ownership-CiQ1l_O7.mjs → crypto-store-ownership-CVeppnSH.mjs} +1 -1
  16. package/dist/.setup/{crypto-unsafe-state-doctor-CmF1X1dZ.mjs → crypto-unsafe-state-doctor-C_vhqxOm.mjs} +3 -3
  17. package/dist/.setup/{directory-live-DmkH9hcp.mjs → directory-live-Brv_PC6z.mjs} +1 -1
  18. package/dist/.setup/{draft-stream-DbTsJkoL.mjs → draft-stream-BAf9CYmE.mjs} +1 -1
  19. package/dist/.setup/{exec-approvals-CiGrN-cV.mjs → exec-approvals-ClD4sAHY.mjs} +2 -2
  20. package/dist/.setup/{file-sync-store-BpS12yaK.mjs → file-sync-store-Dilb8bVT.mjs} +2 -2
  21. package/dist/.setup/{idb-persistence-BTOsltD9.mjs → idb-persistence-COLTtrm_.mjs} +2 -2
  22. package/dist/.setup/{messages-DJDczJnC.mjs → messages-zsGFORuZ.mjs} +2 -2
  23. package/dist/.setup/{monitor-ZDbuZRVB.mjs → monitor-CdT6CsWk.mjs} +32 -18
  24. package/dist/.setup/{onboarding-DwhMV1fp.mjs → onboarding-FJiJ-X6s.mjs} +3 -3
  25. package/dist/.setup/{outbound-7iSmOloX.mjs → outbound-yjH1XHCr.mjs} +2 -2
  26. package/dist/.setup/{profile-update-Fu4u-aSC.mjs → profile-update-uRiRQTtX.mjs} +9 -4
  27. package/dist/.setup/{reaction-events-CBltCP52.mjs → reaction-events-DYJrx8eq.mjs} +3 -3
  28. package/dist/.setup/{resolve-targets-CWW9zTYp.mjs → resolve-targets-DwRQnBpN.mjs} +1 -1
  29. package/dist/.setup/{retired-state-JGUEBE72.mjs → retired-state-DohpBmxW.mjs} +1 -37
  30. package/dist/.setup/{room-info-DFDDmkBC.mjs → room-info-B6-Yo6I5.mjs} +3 -3
  31. package/dist/.setup/{sdk-ByFgA6Il.mjs → sdk-CPgBCtd2.mjs} +5 -5
  32. package/dist/.setup/{send-DiS4anyi.mjs → send-CCT72yQb.mjs} +7 -7
  33. package/dist/.setup/{setup-bootstrap-OfuocnF0.mjs → setup-bootstrap-CB0idLzk.mjs} +2 -2
  34. package/dist/.setup/{setup-core-CEQJRnym.mjs → setup-core-5sswwYZt.mjs} +1 -1
  35. package/dist/.setup/setup-plugin-api-BU7RNSl9.mjs +2 -0
  36. package/dist/.setup/sqlite-state-7WEloajv.mjs +37 -0
  37. package/dist/.setup/{startup-verification-UkaoSldm.mjs → startup-verification-zrBugJBv.mjs} +3 -2
  38. package/dist/.setup/{storage-C3N6YZIn.mjs → storage-BjNHtYwT.mjs} +4 -3
  39. package/dist/.setup/{sync-cache-state-BKVaKRzQ.mjs → sync-cache-state-CovS1oSw.mjs} +2 -1
  40. package/dist/.setup/{thread-bindings-BvoisBZE.mjs → thread-bindings-DZvpe83d.mjs} +4 -3
  41. package/dist/.setup/{tool-actions-TYBYDIkj.mjs → tool-actions-Dd8WTKXA.mjs} +10 -10
  42. package/dist/.setup/{verification-BhFA9xF6.mjs → verification-BKVxSiIq.mjs} +1 -1
  43. package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +1 -1
  44. package/dist/api.js +4 -4
  45. package/dist/channel-plugin-api.js +1 -1
  46. package/dist/cli-metadata.js +1 -1
  47. package/dist/contract-api.js +2 -2
  48. package/dist/doctor-contract-api.js +6 -5
  49. package/dist/index.js +1 -1
  50. package/dist/plugin-entry.handlers.runtime.js +2 -2
  51. package/dist/session-binding-contract-api.js +1 -1
  52. package/dist/setup-entry.js +1 -1
  53. package/dist/setup-plugin-api.js +1 -1
  54. package/node_modules/@openclaw/fs-safe/CHANGELOG.md +45 -1
  55. package/node_modules/@openclaw/fs-safe/README.md +4 -0
  56. package/node_modules/@openclaw/fs-safe/dist/absolute-path.js +2 -2
  57. package/node_modules/@openclaw/fs-safe/dist/advanced.d.ts +2 -2
  58. package/node_modules/@openclaw/fs-safe/dist/advanced.js +2 -2
  59. package/node_modules/@openclaw/fs-safe/dist/archive-parser.wasm +0 -0
  60. package/node_modules/@openclaw/fs-safe/dist/atomic-io.d.ts +1 -0
  61. package/node_modules/@openclaw/fs-safe/dist/atomic-io.js +6 -0
  62. package/node_modules/@openclaw/fs-safe/dist/atomic.d.ts +1 -0
  63. package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.d.ts +5 -0
  64. package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.js +13 -0
  65. package/node_modules/@openclaw/fs-safe/dist/directory-mode-options.d.ts +3 -0
  66. package/node_modules/@openclaw/fs-safe/dist/directory-mode-options.js +6 -0
  67. package/node_modules/@openclaw/fs-safe/dist/errors.d.ts +1 -1
  68. package/node_modules/@openclaw/fs-safe/dist/errors.js +1 -0
  69. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.d.ts +0 -1
  70. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.js +1 -11
  71. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.js +3 -3
  72. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.js +2 -3
  73. package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.d.ts +3 -3
  74. package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.js +30 -4
  75. package/node_modules/@openclaw/fs-safe/dist/file-store-prune.d.ts +1 -1
  76. package/node_modules/@openclaw/fs-safe/dist/file-store-prune.js +7 -1
  77. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.d.ts +1 -1
  78. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.js +30 -4
  79. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.d.ts +1 -1
  80. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.js +2 -0
  81. package/node_modules/@openclaw/fs-safe/dist/file-store.d.ts +2 -1
  82. package/node_modules/@openclaw/fs-safe/dist/file-store.js +5 -0
  83. package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.d.ts +2 -0
  84. package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.js +9 -0
  85. package/node_modules/@openclaw/fs-safe/dist/json-store.d.ts +2 -1
  86. package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +4 -1
  87. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.js +1 -1
  88. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.d.ts +1 -1
  89. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +19 -13
  90. package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.d.ts +2 -0
  91. package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.js +27 -5
  92. package/node_modules/@openclaw/fs-safe/dist/path-prefix.d.ts +1 -0
  93. package/node_modules/@openclaw/fs-safe/dist/path-prefix.js +84 -7
  94. package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.js +0 -11
  95. package/node_modules/@openclaw/fs-safe/dist/prepare-directory-mode.d.ts +9 -0
  96. package/node_modules/@openclaw/fs-safe/dist/prepare-directory-mode.js +61 -0
  97. package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.js +2 -1
  98. package/node_modules/@openclaw/fs-safe/dist/realpath.d.ts +2 -0
  99. package/node_modules/@openclaw/fs-safe/dist/realpath.js +16 -0
  100. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.d.ts +2 -1
  101. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.js +8 -6
  102. package/node_modules/@openclaw/fs-safe/dist/replace-file-types.d.ts +2 -1
  103. package/node_modules/@openclaw/fs-safe/dist/replace-file.js +20 -13
  104. package/node_modules/@openclaw/fs-safe/dist/root-context.js +4 -1
  105. package/node_modules/@openclaw/fs-safe/dist/root-create-native.d.ts +1 -1
  106. package/node_modules/@openclaw/fs-safe/dist/root-create-native.js +18 -9
  107. package/node_modules/@openclaw/fs-safe/dist/root-errors.d.ts +2 -0
  108. package/node_modules/@openclaw/fs-safe/dist/root-errors.js +9 -0
  109. package/node_modules/@openclaw/fs-safe/dist/root-impl.js +4 -1
  110. package/node_modules/@openclaw/fs-safe/dist/root-mkdir-native.d.ts +1 -1
  111. package/node_modules/@openclaw/fs-safe/dist/root-mkdir-native.js +35 -16
  112. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.d.ts +6 -2
  113. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.js +32 -20
  114. package/node_modules/@openclaw/fs-safe/dist/root-path.js +32 -26
  115. package/node_modules/@openclaw/fs-safe/dist/root-write-admission.js +4 -1
  116. package/node_modules/@openclaw/fs-safe/dist/secret-file.d.ts +2 -1
  117. package/node_modules/@openclaw/fs-safe/dist/secret-file.js +2 -0
  118. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.d.ts +2 -1
  119. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.js +5 -4
  120. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.d.ts +3 -2
  121. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.js +8 -9
  122. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-stale-admission.js +3 -1
  123. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-types.d.ts +2 -1
  124. package/node_modules/@openclaw/fs-safe/dist/text-atomic.d.ts +2 -1
  125. package/node_modules/@openclaw/fs-safe/dist/types.d.ts +1 -0
  126. package/node_modules/@openclaw/fs-safe/dist/watch-hints.js +12 -3
  127. package/node_modules/@openclaw/fs-safe/dist/windows-security-helper.exe +0 -0
  128. package/node_modules/@openclaw/fs-safe/dist/write-file-handle.d.ts +0 -1
  129. package/node_modules/@openclaw/fs-safe/dist/write-file-handle.js +10 -12
  130. package/node_modules/@openclaw/fs-safe/docs/advanced.md +3 -3
  131. package/node_modules/@openclaw/fs-safe/docs/atomic.md +16 -3
  132. package/node_modules/@openclaw/fs-safe/docs/compiler-qualification.md +1 -1
  133. package/node_modules/@openclaw/fs-safe/docs/contributing.md +27 -18
  134. package/node_modules/@openclaw/fs-safe/docs/errors.md +3 -1
  135. package/node_modules/@openclaw/fs-safe/docs/file-store.md +14 -2
  136. package/node_modules/@openclaw/fs-safe/docs/in-place-write.md +31 -0
  137. package/node_modules/@openclaw/fs-safe/docs/install.md +1 -1
  138. package/node_modules/@openclaw/fs-safe/docs/json-store.md +6 -1
  139. package/node_modules/@openclaw/fs-safe/docs/json.md +5 -1
  140. package/node_modules/@openclaw/fs-safe/docs/path-prefix.md +14 -4
  141. package/node_modules/@openclaw/fs-safe/docs/public-api.md +4 -2
  142. package/node_modules/@openclaw/fs-safe/docs/secret-file.md +5 -1
  143. package/node_modules/@openclaw/fs-safe/docs/sidecar-lock.md +4 -0
  144. package/node_modules/@openclaw/fs-safe/docs/temp.md +9 -1
  145. package/node_modules/@openclaw/fs-safe/docs/types.md +5 -1
  146. package/node_modules/@openclaw/fs-safe/package.json +12 -12
  147. package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
  148. package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
  149. package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
  150. package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
  151. package/node_modules/@openclaw/fs-safe-freebsd-arm64/fs-safe-native.node +0 -0
  152. package/node_modules/@openclaw/fs-safe-freebsd-arm64/package.json +1 -1
  153. package/node_modules/@openclaw/fs-safe-freebsd-x64/fs-safe-native.node +0 -0
  154. package/node_modules/@openclaw/fs-safe-freebsd-x64/package.json +1 -1
  155. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
  156. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
  157. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
  158. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
  159. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
  160. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
  161. package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
  162. package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
  163. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/fs-safe-native.node +0 -0
  164. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/package.json +1 -1
  165. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
  166. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
  167. package/package.json +5 -5
  168. package/dist/.setup/setup-plugin-api-4hHy1k4x.mjs +0 -2
@@ -1,10 +1,10 @@
1
1
  import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
2
- import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-CiGrN-cV.mjs";
2
+ import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-ClD4sAHY.mjs";
3
3
  import { s as resolveMatrixTargetIdentity } from "./target-ids-HhcaKX1n.mjs";
4
4
  import { a as repairMatrixDirectRooms } from "./direct-management-Dp1giZ34.mjs";
5
- import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-DiS4anyi.mjs";
5
+ import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-CCT72yQb.mjs";
6
6
  import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-BazmsDbe.mjs";
7
- import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-DJDczJnC.mjs";
7
+ import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-zsGFORuZ.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-hxP-CXX7.mjs";
2
2
  import { i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, r as hasImplicitMatrixAccountConfig } from "./account-selection-UUPhMBmu.mjs";
3
3
  import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
4
- import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, v as resolveMatrixAccountAsync } from "./setup-core-CEQJRnym.mjs";
5
- import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-CqcEb6JR.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-CiGrN-cV.mjs";
4
+ import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, v as resolveMatrixAccountAsync } from "./setup-core-5sswwYZt.mjs";
5
+ import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-Dc4G7kdF.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-ClD4sAHY.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-HhcaKX1n.mjs";
8
8
  import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BANpMUbP.mjs";
9
9
  import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./thread-bindings-shared-QmZOfX9Q.mjs";
@@ -156,7 +156,7 @@ const matrixMessageActions = {
156
156
  return account.enabled && account.configured && createActionGate(account.config.actions)("messages") ? payload : null;
157
157
  },
158
158
  handleAction: async (ctx) => {
159
- const { handleMatrixAction } = await import("./tool-actions-TYBYDIkj.mjs");
159
+ const { handleMatrixAction } = await import("./tool-actions-Dd8WTKXA.mjs");
160
160
  return await handleMatrixAction(ctx);
161
161
  }
162
162
  };
@@ -272,7 +272,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
272
272
  ],
273
273
  isConfigured: isMatrixAnyApprovalClientEnabled,
274
274
  shouldHandle: shouldHandleMatrixApprovalRequest,
275
- load: async () => (await import("./approval-handler.runtime-CshxBDs7.mjs")).matrixApprovalNativeRuntime
275
+ load: async () => (await import("./approval-handler.runtime-CKiMSdnX.mjs")).matrixApprovalNativeRuntime
276
276
  })
277
277
  });
278
278
  const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
@@ -629,12 +629,12 @@ async function resolveMatrixOutboundSessionRoute(params) {
629
629
  }
630
630
  //#endregion
631
631
  //#region extensions/matrix/src/channel.ts
632
- const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-CFSou_MS.mjs"), "matrixChannelRuntime");
633
- const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-ZDbuZRVB.mjs").catch((error) => {
632
+ const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-hpiGNile.mjs"), "matrixChannelRuntime");
633
+ const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-CdT6CsWk.mjs").catch((error) => {
634
634
  loadMatrixMonitorModule.clear();
635
635
  throw error;
636
636
  }));
637
- const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-CWW9zTYp.mjs").then((n) => n.n), "resolveMatrixTargets");
637
+ const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-DwRQnBpN.mjs").then((n) => n.n), "resolveMatrixTargets");
638
638
  const matrixDoctor = {
639
639
  dmAllowFromMode: "nestedOnly",
640
640
  groupModel: "sender",
@@ -1,10 +1,10 @@
1
1
  import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-By_2hsXr.mjs";
2
- import { S as reconcileMatrixUnknownSend, o as sendTypingMatrix, r as sendMessageMatrix, x as cleanupMatrixDeliveryPlans } from "./send-DiS4anyi.mjs";
2
+ import { C as reconcileMatrixUnknownSend, S as cleanupMatrixDeliveryPlans, o as sendTypingMatrix, r as sendMessageMatrix } from "./send-CCT72yQb.mjs";
3
3
  import { c as resolveMatrixLocalTimeoutMs } from "./client-support-B_Mp4Qk9.mjs";
4
- import { c as resolveMatrixAuth } from "./client-Bk_tBqNp.mjs";
5
- import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-DmkH9hcp.mjs";
6
- import { t as matrixOutbound } from "./outbound-7iSmOloX.mjs";
7
- import { t as resolveMatrixTargets } from "./resolve-targets-CWW9zTYp.mjs";
4
+ import { c as resolveMatrixAuth } from "./client-CnPiPhTg.mjs";
5
+ import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-Brv_PC6z.mjs";
6
+ import { t as matrixOutbound } from "./outbound-yjH1XHCr.mjs";
7
+ import { t as resolveMatrixTargets } from "./resolve-targets-DwRQnBpN.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-CRsKoMqJ.mjs";
2
- import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, i as matrixSetupContract, m as listMatrixAccountIds, t as createMatrixSetupWizardProxy, v as resolveMatrixAccountAsync } from "./setup-core-CEQJRnym.mjs";
2
+ import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, i as matrixSetupContract, m as listMatrixAccountIds, t as createMatrixSetupWizardProxy, v as resolveMatrixAccountAsync } from "./setup-core-5sswwYZt.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";
@@ -279,7 +279,7 @@ const matrixPluginBase = {
279
279
  order: 70,
280
280
  quickstartAllowFrom: true
281
281
  },
282
- setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-DwhMV1fp.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
282
+ setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-FJiJ-X6s.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
283
283
  setupContract: matrixSetupContract,
284
284
  capabilities: {
285
285
  chatTypes: [
@@ -296,6 +296,10 @@ const matrixPluginBase = {
296
296
  configPrefixes: ["channels.matrix"],
297
297
  noopPrefixes: ["messages.ackReactionScope"]
298
298
  },
299
+ lifecycle: { onAccountRemoved: async ({ accountId }) => {
300
+ const { clearMatrixCredentials } = await import("./credentials-Byq2Kcqg.mjs");
301
+ await clearMatrixCredentials(process.env, accountId);
302
+ } },
299
303
  configSchema: MatrixChannelConfigSchema,
300
304
  config: {
301
305
  ...createScopedChannelConfigAdapter({
@@ -1,16 +1,16 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
2
  import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
3
- import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-CEQJRnym.mjs";
3
+ import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-5sswwYZt.mjs";
4
4
  import { n as resolveMatrixConfigPath } from "./config-paths-CnREYb1Y.mjs";
5
- import { l as resolveMatrixAuthContext } from "./client-Bk_tBqNp.mjs";
6
- import { n as withResolvedActionClient } from "./client-Rlwtz1hG.mjs";
7
- import { registerMatrixDoctorCommands } from "./cli-doctor-BVstkgJE.mjs";
5
+ import { l as resolveMatrixAuthContext } from "./client-CnPiPhTg.mjs";
6
+ import { n as withResolvedActionClient } from "./client-CsgjDjyA.mjs";
7
+ import { registerMatrixDoctorCommands } from "./cli-doctor-DRM-8rZg.mjs";
8
8
  import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-Dm_YMVFT.mjs";
9
9
  import { i as setMatrixConsoleLogging } from "./logger-CuAzdD8Q.mjs";
10
10
  import { r as setMatrixSdkLogMode } from "./logging-CoaEyRtA.mjs";
11
11
  import { n as listStaleOpenClawMatrixDevices } from "./device-health-Ck2YpEVN.mjs";
12
- import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-Fu4u-aSC.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-BhFA9xF6.mjs";
12
+ import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-uRiRQTtX.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-BKVxSiIq.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";
@@ -407,7 +407,7 @@ function registerMatrixAccountCommands(root) {
407
407
  backupVersion: null
408
408
  };
409
409
  if (accountConfig.encryption === true) {
410
- const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-OfuocnF0.mjs");
410
+ const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-CB0idLzk.mjs");
411
411
  verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
412
412
  previousCfg: cfg,
413
413
  cfg: updated,
@@ -535,7 +535,7 @@ async function runMatrixDirectRoomCommand(params) {
535
535
  cfg,
536
536
  accountId: params.accountId
537
537
  }) : void 0;
538
- const [{ withResolvedActionClient, withStartedActionClient }, direct] = await Promise.all([import("./client-Rlwtz1hG.mjs").then((n) => n.t), import("./direct-management-Dp1giZ34.mjs").then((n) => n.t)]);
538
+ const [{ withResolvedActionClient, withStartedActionClient }, direct] = await Promise.all([import("./client-CsgjDjyA.mjs").then((n) => n.t), import("./direct-management-Dp1giZ34.mjs").then((n) => n.t)]);
539
539
  return await (params.repair ? withStartedActionClient : withResolvedActionClient)({
540
540
  accountId: params.accountId,
541
541
  cfg
@@ -1,5 +1,5 @@
1
1
  import { l as sanitizeMatrixPathSegment } from "./storage-paths-B51JM-pC.mjs";
2
- import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-CmF1X1dZ.mjs";
2
+ import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-C_vhqxOm.mjs";
3
3
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
4
4
  import path from "node:path";
5
5
  //#region extensions/matrix/src/cli-doctor.ts
@@ -2,7 +2,7 @@ import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
2
2
  //#region extensions/matrix/src/cli-metadata.ts
3
3
  function registerMatrixCliMetadata(api) {
4
4
  api.registerCli(async ({ program }) => {
5
- const { registerMatrixCli } = await import("./cli-CkMedN4Y.mjs");
5
+ const { registerMatrixCli } = await import("./cli-DnLr6VVE.mjs");
6
6
  registerMatrixCli({ program });
7
7
  }, { descriptors: [{
8
8
  name: "matrix",
@@ -5,7 +5,7 @@ import { t as getMatrixScopedEnvVarNames } from "./env-vars-aEBngJPa.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-By_2hsXr.mjs";
8
- import { i as repairCurrentTokenStorageMetaDeviceId } from "./storage-C3N6YZIn.mjs";
8
+ import { i as repairCurrentTokenStorageMetaDeviceId } from "./storage-BjNHtYwT.mjs";
9
9
  import { n as getMatrixMonitorTaskSignal } from "./task-runner-DY3aKiQa.mjs";
10
10
  import { c as resolveMatrixLocalTimeoutMs } from "./client-support-B_Mp4Qk9.mjs";
11
11
  import { createLazyRuntimeMethod, createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
@@ -63,7 +63,7 @@ async function fetchMatrixWhoamiIdentity(params) {
63
63
  //#endregion
64
64
  //#region extensions/matrix/src/matrix/client/config.ts
65
65
  const loadMatrixCredentialsReadDeps = createLazyRuntimeModule(() => import("./credentials-read-CM6wXUjL.mjs").then((n) => n.i));
66
- const loadMatrixCredentialsWriteRuntime = createLazyRuntimeModule(() => import("./credentials-kT20jk_u.mjs"));
66
+ const loadMatrixCredentialsWriteRuntime = createLazyRuntimeModule(() => import("./credentials-Byq2Kcqg.mjs"));
67
67
  const loadMatrixSecretInputDeps = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/secret-input-runtime"));
68
68
  function credentialsMatchBackfillAuthLineage(params) {
69
69
  if (!params.stored) return true;
@@ -433,7 +433,7 @@ async function awaitMatrixStartupWithAbort(promise, abortSignal) {
433
433
  }
434
434
  //#endregion
435
435
  //#region extensions/matrix/src/matrix/client/shared.ts
436
- const loadMatrixCreateClientDeps = createLazyRuntimeModule(() => import("./create-client-CzUtZgYF.mjs"));
436
+ const loadMatrixCreateClientDeps = createLazyRuntimeModule(() => import("./create-client-C5bd0RUQ.mjs"));
437
437
  const MATRIX_RETIREMENT_DRAIN_TIMEOUT_MS = 5e3;
438
438
  const sharedClientRegistry = resolveGlobalSingleton(Symbol.for("openclaw.matrix.shared-client-registry"), () => ({
439
439
  states: /* @__PURE__ */ new Map(),
@@ -768,7 +768,7 @@ var client_exports = /* @__PURE__ */ __exportAll({
768
768
  stopSharedClientForAccount: () => stopSharedClientForAccount,
769
769
  validateMatrixHomeserverUrl: () => validateMatrixHomeserverUrl
770
770
  });
771
- const loadMatrixClientRuntime = createLazyRuntimeModule(() => import("./create-client-CzUtZgYF.mjs"));
771
+ const loadMatrixClientRuntime = createLazyRuntimeModule(() => import("./create-client-C5bd0RUQ.mjs"));
772
772
  const createMatrixClient = createLazyRuntimeMethod(loadMatrixClientRuntime, (runtime) => runtime.createMatrixClient);
773
773
  //#endregion
774
774
  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-hxP-CXX7.mjs";
2
- import { C as resolveMatrixRoomId } from "./send-DiS4anyi.mjs";
2
+ import { w as resolveMatrixRoomId } from "./send-CCT72yQb.mjs";
3
3
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
4
4
  //#region 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-Bhhri97J.mjs"));
10
+ const loadMatrixActionClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-CRN75TtW.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
  //#region extensions/matrix/src/matrix/client-bootstrap.ts
4
- const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => import("./client-Bk_tBqNp.mjs").then((n) => n.t));
4
+ const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => import("./client-CnPiPhTg.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,16 +1,16 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
2
  import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-By_2hsXr.mjs";
3
- import { n as maybeMigrateLegacyStorage, o as resolveMatrixStoragePaths, s as writeStorageMeta } from "./storage-C3N6YZIn.mjs";
4
- import "./client-Bk_tBqNp.mjs";
3
+ import { n as maybeMigrateLegacyStorage, o as resolveMatrixStoragePaths, s as writeStorageMeta } from "./storage-BjNHtYwT.mjs";
4
+ import "./client-CnPiPhTg.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-ByFgA6Il.mjs").then((n) => n.t),
11
+ import("./sdk-CPgBCtd2.mjs").then((n) => n.t),
12
12
  import("./logging-CoaEyRtA.mjs").then((n) => n.n),
13
- import("./file-sync-store-BpS12yaK.mjs")
13
+ import("./file-sync-store-Dilb8bVT.mjs")
14
14
  ]).then(([sdkModule, loggingModule, syncStoreModule]) => ({
15
15
  MatrixClient: sdkModule.MatrixClient,
16
16
  SqliteBackedMatrixSyncStore: syncStoreModule.SqliteBackedMatrixSyncStore,
@@ -1,7 +1,7 @@
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
3
  import { a as loadMatrixCredentials, n as clearMatrixCredentials, r as credentialsMatchConfig, s as openMatrixCredentialsAsyncStore } from "./credentials-read-CM6wXUjL.mjs";
4
- import { c as updateMatrixKeyedState } from "./retired-state-JGUEBE72.mjs";
4
+ import { r as updateMatrixKeyedState } from "./sqlite-state-7WEloajv.mjs";
5
5
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
6
6
  //#region extensions/matrix/src/matrix/credentials.ts
7
7
  async function saveMatrixCredentials(credentials, env = process.env, accountId) {
@@ -1,7 +1,7 @@
1
1
  import { t as ensureMatrixCryptoRuntime } from "./deps-D-W_QQjz.mjs";
2
2
  import { r as noop, t as LogService } from "./logger-CuAzdD8Q.mjs";
3
- import { a as isRepairableSecretStorageAccessError, i as trustMatrixOwnIdentity, n as isMatrixDeviceOwnerVerified, r as isMatrixDeviceVerifiedInCurrentClient } from "./sdk-ByFgA6Il.mjs";
4
- import { persistIdbToDisk, resolveDefaultIdbSnapshotPath, restoreIdbFromDisk } from "./idb-persistence-BTOsltD9.mjs";
3
+ import { a as isRepairableSecretStorageAccessError, i as trustMatrixOwnIdentity, n as isMatrixDeviceOwnerVerified, r as isMatrixDeviceVerifiedInCurrentClient } from "./sdk-CPgBCtd2.mjs";
4
+ import { persistIdbToDisk, resolveDefaultIdbSnapshotPath, restoreIdbFromDisk } from "./idb-persistence-COLTtrm_.mjs";
5
5
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
6
6
  import { formatErrorMessage, materializeErrorStack, toStringifiedError } from "openclaw/plugin-sdk/error-runtime";
7
7
  import { raceWithTimeout } from "openclaw/plugin-sdk/time-runtime";
@@ -1,5 +1,6 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
- import { c as updateMatrixKeyedState, d as readMatrixStateChunks, f as writeMatrixStateChunks, l as chunkMatrixStateJson, o as resolveMatrixSqliteStateEnv, u as pruneMatrixStateChunks } from "./retired-state-JGUEBE72.mjs";
2
+ import { c as readMatrixStateChunks, l as writeMatrixStateChunks, o as chunkMatrixStateJson, s as pruneMatrixStateChunks } from "./retired-state-DohpBmxW.mjs";
3
+ import { r as updateMatrixKeyedState, t as resolveMatrixSqliteStateEnv } from "./sqlite-state-7WEloajv.mjs";
3
4
  import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
4
5
  import { randomUUID } from "node:crypto";
5
6
  import path from "node:path";
@@ -1,5 +1,5 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
- import { a as readMatrixIdbSnapshotOwnerGeneration, c as sealMatrixIdbSnapshotOwnerGeneration } from "./crypto-state-store-BZLlwkv_.mjs";
2
+ import { a as readMatrixIdbSnapshotOwnerGeneration, c as sealMatrixIdbSnapshotOwnerGeneration } from "./crypto-state-store-m13QToc7.mjs";
3
3
  import { randomUUID } from "node:crypto";
4
4
  import path from "node:path";
5
5
  import { constants } from "node:fs";
@@ -1,7 +1,7 @@
1
1
  import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
- import { i as readMatrixIdbSnapshotJson, t as MATRIX_IDB_SNAPSHOT_FILENAME } from "./crypto-state-store-BZLlwkv_.mjs";
2
+ import { i as readMatrixIdbSnapshotJson, t as MATRIX_IDB_SNAPSHOT_FILENAME } from "./crypto-state-store-m13QToc7.mjs";
3
3
  import { t as walkMatrixStateFiles } from "./state-layout-walk-BQMgMykU.mjs";
4
- import { i as withMatrixCryptoStoreRecoveryLock, n as isMatrixCryptoStoreUnsafe, r as sealMatrixCryptoStoreRecovery } from "./crypto-store-ownership-CiQ1l_O7.mjs";
4
+ import { i as withMatrixCryptoStoreRecoveryLock, n as isMatrixCryptoStoreUnsafe, r as sealMatrixCryptoStoreRecovery } from "./crypto-store-ownership-CVeppnSH.mjs";
5
5
  import { extractErrorCode } from "openclaw/plugin-sdk/error-runtime";
6
6
  import path from "node:path";
7
7
  import fs from "node:fs/promises";
@@ -41,7 +41,7 @@ async function recoverMatrixCryptoUnsafeState(params) {
41
41
  }
42
42
  const snapshot = await readMatrixIdbSnapshotJson(params.storageRootDir, params.stateRuntime);
43
43
  if (!snapshot) throw new Error("Matrix crypto SQLite snapshot is absent or invalid; refusal remains in place.");
44
- const { validateMatrixIdbSnapshotJson } = await import("./idb-persistence-BTOsltD9.mjs");
44
+ const { validateMatrixIdbSnapshotJson } = await import("./idb-persistence-COLTtrm_.mjs");
45
45
  try {
46
46
  await validateMatrixIdbSnapshotJson(snapshot);
47
47
  } catch (error) {
@@ -1,6 +1,6 @@
1
1
  import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
2
  import { i as normalizeMatrixMessagingTarget, n as isMatrixQualifiedUserId } from "./target-ids-HhcaKX1n.mjs";
3
- import { c as resolveMatrixAuth } from "./client-Bk_tBqNp.mjs";
3
+ import { c as resolveMatrixAuth } from "./client-CnPiPhTg.mjs";
4
4
  import { t as MatrixAuthedHttpClient } from "./http-client-B_ohXrBm.mjs";
5
5
  import { isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  //#region extensions/matrix/src/directory-live.ts
@@ -1,5 +1,5 @@
1
1
  import { _ as MsgType } from "./direct-management-Dp1giZ34.mjs";
2
- import { a as sendSingleTextMessageMatrix, f as prepareMatrixSingleText, t as editMessageMatrix } from "./send-DiS4anyi.mjs";
2
+ import { a as sendSingleTextMessageMatrix, f as prepareMatrixSingleText, t as editMessageMatrix } from "./send-CCT72yQb.mjs";
3
3
  import { createFinalizableDraftLifecycle } from "openclaw/plugin-sdk/channel-outbound";
4
4
  //#region 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-CRsKoMqJ.mjs";
2
- import { g as resolveDefaultMatrixAccountId, v as resolveMatrixAccountAsync } from "./setup-core-CEQJRnym.mjs";
3
- import { i as normalizeMatrixUserId } from "./channel.setup-CqcEb6JR.mjs";
2
+ import { g as resolveDefaultMatrixAccountId, v as resolveMatrixAccountAsync } from "./setup-core-5sswwYZt.mjs";
3
+ import { i as normalizeMatrixUserId } from "./channel.setup-Dc4G7kdF.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,6 +1,6 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
- import { t as claimCurrentTokenStorageState } from "./storage-C3N6YZIn.mjs";
3
- import { a as readPersistedStoreFromStore, r as openMatrixSyncCacheStoreOptions, s as writeMatrixSyncCacheStateToStore, t as deleteMatrixSyncCacheStateFromStore } from "./sync-cache-state-BKVaKRzQ.mjs";
2
+ import { t as claimCurrentTokenStorageState } from "./storage-BjNHtYwT.mjs";
3
+ import { a as readPersistedStoreFromStore, r as openMatrixSyncCacheStoreOptions, s as writeMatrixSyncCacheStateToStore, t as deleteMatrixSyncCacheStateFromStore } from "./sync-cache-state-CovS1oSw.mjs";
4
4
  import { n as emitMatrixLog, t as LogService } from "./logger-CuAzdD8Q.mjs";
5
5
  import { materializeErrorStack } from "openclaw/plugin-sdk/error-runtime";
6
6
  import { randomUUID } from "node:crypto";
@@ -1,6 +1,6 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
- import { n as RETIRED_MATRIX_STATE_REMEDIATION } from "./retired-state-JGUEBE72.mjs";
3
- import { i as readMatrixIdbSnapshotJson, l as writeMatrixIdbSnapshotJson, r as pruneMatrixIdbSnapshotChunks } from "./crypto-state-store-BZLlwkv_.mjs";
2
+ import { n as RETIRED_MATRIX_STATE_REMEDIATION } from "./retired-state-DohpBmxW.mjs";
3
+ import { i as readMatrixIdbSnapshotJson, l as writeMatrixIdbSnapshotJson, r as pruneMatrixIdbSnapshotChunks } from "./crypto-state-store-m13QToc7.mjs";
4
4
  import { t as LogService } from "./logger-CuAzdD8Q.mjs";
5
5
  import { n as MATRIX_IDB_SNAPSHOT_LOCK_OPTIONS } from "./idb-persistence-lock-Bh3ZLIsE.mjs";
6
6
  import { toErrorObject } from "openclaw/plugin-sdk/error-runtime";
@@ -1,7 +1,7 @@
1
1
  import { a as MATRIX_REACTION_EVENT_TYPE } from "./send-currentness-DGxiiBn9.mjs";
2
- import { _ as isPollEventType, b as resolvePollReferenceEventId, d as resolveMatrixReplacementContent, g as formatPollResultsAsText, m as buildPollResultsSummary, t as editMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollStartType, y as parsePollStart } from "./send-DiS4anyi.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-CCT72yQb.mjs";
3
3
  import { n as isMatrixNotFoundError } from "./errors-Bw4EHwKX.mjs";
4
- import { r as withResolvedRoomAction } from "./client-Rlwtz1hG.mjs";
4
+ import { r as withResolvedRoomAction } from "./client-CsgjDjyA.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,25 +1,25 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
2
  import { a as resolveMatrixAccountConfig, i as resolveMatrixAccountAllowlistConfig } from "./account-config-CRsKoMqJ.mjs";
3
- import { h as resolveConfiguredMatrixBotUserIds } from "./setup-core-CEQJRnym.mjs";
4
- import { a as resolveMatrixInboundRouteAsync, i as resolveMatrixRoomConfig, n as resolveMatrixStoredSessionMeta, o as resolveMatrixThreadRouting } from "./channel-OLndtGNE.mjs";
5
- import { a as resolveMatrixAllowListMatch, i as normalizeMatrixUserId, r as normalizeMatrixAllowList } from "./channel.setup-CqcEb6JR.mjs";
3
+ import { h as resolveConfiguredMatrixBotUserIds } from "./setup-core-5sswwYZt.mjs";
4
+ import { a as resolveMatrixInboundRouteAsync, i as resolveMatrixRoomConfig, n as resolveMatrixStoredSessionMeta, o as resolveMatrixThreadRouting } from "./channel-CZJeLUuu.mjs";
5
+ import { a as resolveMatrixAllowListMatch, i as normalizeMatrixUserId, r as normalizeMatrixAllowList } from "./channel.setup-Dc4G7kdF.mjs";
6
6
  import { n as isMatrixQualifiedUserId, r as isMatrixRoomId, t as isMatrixInviteAutoJoinTarget } from "./target-ids-HhcaKX1n.mjs";
7
7
  import { a as MATRIX_REACTION_EVENT_TYPE, n as withMatrixSendCurrentness } from "./send-currentness-DGxiiBn9.mjs";
8
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-Dp1giZ34.mjs";
9
9
  import { n as getMatrixMonitorTaskSignal, t as createMatrixMonitorTaskRunner } from "./task-runner-DY3aKiQa.mjs";
10
- import { _ as isPollEventType, c as formatMatrixMessageText, d as resolveMatrixReplacementContent, h as formatPollAsText, l as isLikelyBareFilename, r as sendMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollStartType, w as setBoundedMap, y as parsePollStart } from "./send-DiS4anyi.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-CCT72yQb.mjs";
11
11
  import { n as getMatrixEventProjection } from "./event-helpers-CxNgMQqH.mjs";
12
- import { t as createMatrixThreadBindingManager } from "./thread-bindings-BvoisBZE.mjs";
12
+ import { t as createMatrixThreadBindingManager } from "./thread-bindings-DZvpe83d.mjs";
13
13
  import { a as isMatrixAccessTokenInvalidatedError } from "./client-support-B_Mp4Qk9.mjs";
14
- import { a as isMatrixStartupAbortError, c as resolveMatrixAuth, l as resolveMatrixAuthContext, n as acquireSharedMatrixClient, o as throwIfMatrixStartupAborted, s as backfillMatrixAuthDeviceIdAfterStartup } from "./client-Bk_tBqNp.mjs";
15
- import { i as readMatrixMessages, l as fetchMatrixPollSnapshot } from "./messages-DJDczJnC.mjs";
14
+ import { a as isMatrixStartupAbortError, c as resolveMatrixAuth, l as resolveMatrixAuthContext, n as acquireSharedMatrixClient, o as throwIfMatrixStartupAborted, s as backfillMatrixAuthDeviceIdAfterStartup } from "./client-CnPiPhTg.mjs";
15
+ import { i as readMatrixMessages, l as fetchMatrixPollSnapshot } from "./messages-zsGFORuZ.mjs";
16
16
  import { a as isMatrixMediaSizeLimitError, i as MatrixMediaSizeLimitError } from "./http-client-B_ohXrBm.mjs";
17
- import { n as prepareMatrixReplyPayload, r as resolveMatrixExtraContent } from "./outbound-7iSmOloX.mjs";
18
- import { t as resolveMatrixTargets } from "./resolve-targets-CWW9zTYp.mjs";
17
+ import { n as prepareMatrixReplyPayload, r as resolveMatrixExtraContent } from "./outbound-yjH1XHCr.mjs";
18
+ import { t as resolveMatrixTargets } from "./resolve-targets-DwRQnBpN.mjs";
19
19
  import { n as emitMatrixLog } from "./logger-CuAzdD8Q.mjs";
20
20
  import { t as formatMatrixEncryptedEventDisabledWarning } from "./encryption-guidance-Br3Lv9Hm.mjs";
21
21
  import { n as isMatrixReadySyncState, r as isMatrixTerminalSyncState, t as isMatrixDisconnectedSyncState } from "./sync-state-CWbp0QSY.mjs";
22
- import { r as getMatrixRoomInfo, t as createMatrixRoomInfoResolver } from "./room-info-DFDDmkBC.mjs";
22
+ import { r as getMatrixRoomInfo, t as createMatrixRoomInfoResolver } from "./room-info-B6-Yo6I5.mjs";
23
23
  import { channelBlockedPatch, channelReadyPatch, channelStoppedPatch, createTransportActivityStatusPatch } from "openclaw/plugin-sdk/gateway-runtime";
24
24
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
25
25
  import { createChannelDeliveryAccumulator, createChannelIngressError, createChannelIngressMonitor, createChannelProgressDraftCompositor, createLivePreviewLifecycle, createPreviewMessageReceipt, createReplyPrefixOptions, createTypingCallbacks, logTypingFailure, resolveChannelStreamingBlockEnabled, waitUntilAbort } from "openclaw/plugin-sdk/channel-outbound";
@@ -33,6 +33,7 @@ import { normalizeStringEntries as normalizeStringEntries$1, truncateWithMarker
33
33
  import { parseStrictFiniteNumber, resolveOptionalIntegerOption, resolvePromptHistoryLimit } from "openclaw/plugin-sdk/number-runtime";
34
34
  import { resolveAgentRoute, resolveInboundLastRouteSessionKey } from "openclaw/plugin-sdk/routing";
35
35
  import { getSessionEntryAsync, resolveStorePath } from "openclaw/plugin-sdk/session-store-runtime";
36
+ import { resolveOutboundMediaAccessForConfig } from "openclaw/plugin-sdk/outbound-media";
36
37
  import { KeyedAsyncQueue } from "openclaw/plugin-sdk/keyed-async-queue";
37
38
  import { escapeRegExp, truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
38
39
  import { buildTtsSupplementMediaPayload, getReplyPayloadTtsSupplement, resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
@@ -1390,6 +1391,17 @@ const matrixPreflightAudio = createChannelPreflightAudio({
1390
1391
  //#region extensions/matrix/src/matrix/monitor/handler-helpers.ts
1391
1392
  const MATRIX_TOOL_PROGRESS_MAX_CHARS = 300;
1392
1393
  const MAX_TRACKED_SHARED_DM_CONTEXT_NOTICES = 512;
1394
+ function resolveMatrixCurrentContent(content) {
1395
+ if (!content["m.relates_to"]?.["m.in_reply_to"]?.event_id) return content;
1396
+ const { body, formatted_body: html } = content;
1397
+ const plain = typeof body === "string" && /^> (?:\* )?<@[^>\n]+>/.test(body) ? body.replace(/^(?:> .*(?:\n|$))+\n?/, "") : body;
1398
+ const formatted = content.format === "org.matrix.custom.html" ? html?.replace(/^<mx-reply>[\s\S]*?<\/mx-reply>/i, "") : html;
1399
+ return plain === body && formatted === html ? content : {
1400
+ ...content,
1401
+ body: plain,
1402
+ formatted_body: formatted
1403
+ };
1404
+ }
1393
1405
  function resolveMatrixMentionPrecheckText(params) {
1394
1406
  if (params.locationText?.trim()) return params.locationText.trim();
1395
1407
  if (typeof params.content.body === "string" && params.content.body.trim()) return params.content.body.trim();
@@ -1477,11 +1489,11 @@ function formatMatrixToolProgressMarkdownCode(text) {
1477
1489
  }
1478
1490
  //#endregion
1479
1491
  //#region extensions/matrix/src/matrix/monitor/handler-runtime.ts
1480
- const loadMatrixSendModule = createLazyRuntimeModule(() => import("./send-DiS4anyi.mjs").then((n) => n.s));
1492
+ const loadMatrixSendModule = createLazyRuntimeModule(() => import("./send-CCT72yQb.mjs").then((n) => n.s));
1481
1493
  const loadAcpBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/acp-binding-runtime"));
1482
1494
  const loadSessionBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/session-binding-runtime"));
1483
- const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-CBltCP52.mjs"));
1484
- const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream-DbTsJkoL.mjs"));
1495
+ const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-DYJrx8eq.mjs"));
1496
+ const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream-BAf9CYmE.mjs"));
1485
1497
  async function matrixTextWouldActivateMentions(client, text) {
1486
1498
  const { resolveMatrixMentionsForBody } = await loadMatrixSendModule();
1487
1499
  const mentions = await resolveMatrixMentionsForBody({
@@ -2774,6 +2786,7 @@ function resolveVisibleMatrixReplyText(text) {
2774
2786
  function createMatrixReplyDispatcher(config) {
2775
2787
  const { cfg, prefixOptions, humanDelay, typingCallbacks, streaming, draftStream, draftController, client, roomId, runtime, replyToMode, threadTarget, replyToEventId, accountId, mediaLocalRoots, logVerboseMessage } = config;
2776
2788
  const quietDraftStreaming = streaming === "quiet" || streaming === "progress";
2789
+ const progressDraftStreaming = streaming === "progress";
2777
2790
  let hasReplied = false;
2778
2791
  const deliverPayload = async (reply) => {
2779
2792
  const core = getMatrixRuntime();
@@ -2809,6 +2822,7 @@ function createMatrixReplyDispatcher(config) {
2809
2822
  ...mediaUrl !== void 0 ? {
2810
2823
  mediaUrl,
2811
2824
  mediaLocalRoots,
2825
+ mediaAccess: resolveOutboundMediaAccessForConfig(cfg),
2812
2826
  audioAsVoice: reply.audioAsVoice
2813
2827
  } : {},
2814
2828
  replyToId: replyToIdForReply,
@@ -2872,7 +2886,7 @@ function createMatrixReplyDispatcher(config) {
2872
2886
  payload,
2873
2887
  isError: payload.isError,
2874
2888
  adapter: draftStream ? {
2875
- buildFinalEdit: () => payloadText?.trim() && !payload.isError && !payloadReplyMismatch && !draftStream.mustDeliverFinalNormally() ? { text: payloadText } : void 0,
2889
+ buildFinalEdit: () => payloadText?.trim() && !payload.isError && !payloadReplyMismatch && !draftStream.mustDeliverFinalNormally() && !(hasMedia && !ttsSupplement && progressDraftStreaming) ? { text: payloadText } : void 0,
2876
2890
  editFinal: async (draftEventId, edit) => {
2877
2891
  if (draftStream.mustDeliverFinalNormally() || await matrixTextWouldActivateMentions(client, edit.text)) return { visibleReplySent: false };
2878
2892
  const { editMessageMatrix, prepareMatrixSingleText } = await loadMatrixSendModule();
@@ -3127,7 +3141,7 @@ function createMatrixRoomMessageHandler(params) {
3127
3141
  const readIngressPrefix = async () => {
3128
3142
  const selfUserId = await client.getUserId();
3129
3143
  if (senderId === selfUserId) return;
3130
- const content = locationContent;
3144
+ const content = resolveMatrixCurrentContent(locationContent);
3131
3145
  if (eventType === EventType.RoomMessage && isMatrixVerificationRoomMessage({
3132
3146
  msgtype: content.msgtype,
3133
3147
  body: content.body
@@ -3562,10 +3576,10 @@ function shouldPromoteRecentInviteRoom(params) {
3562
3576
  //#endregion
3563
3577
  //#region extensions/matrix/src/matrix/monitor/startup.ts
3564
3578
  const loadMatrixStartupMaintenanceDeps = createLazyRuntimeModule(() => Promise.all([
3565
- import("./setup-core-CEQJRnym.mjs").then((n) => n.f),
3579
+ import("./setup-core-5sswwYZt.mjs").then((n) => n.f),
3566
3580
  import("./device-health-Ck2YpEVN.mjs").then((n) => n.t),
3567
- import("./setup-core-CEQJRnym.mjs").then((n) => n.u),
3568
- import("./startup-verification-UkaoSldm.mjs")
3581
+ import("./setup-core-5sswwYZt.mjs").then((n) => n.u),
3582
+ import("./startup-verification-zrBugJBv.mjs")
3569
3583
  ]).then(([configUpdateModule, deviceHealthModule, profileModule, startupVerificationModule]) => ({
3570
3584
  updateMatrixAccountConfig: configUpdateModule.updateMatrixAccountConfig,
3571
3585
  listStaleOpenClawMatrixDevices: deviceHealthModule.listStaleOpenClawMatrixDevices,
@@ -1,7 +1,7 @@
1
1
  import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
2
  import { i as requiresExplicitMatrixDefaultAccount, u as resolveMatrixEnvAuthReadiness } from "./account-selection-UUPhMBmu.mjs";
3
3
  import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.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-CEQJRnym.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-5sswwYZt.mjs";
5
5
  import { r as isMatrixRoomId, t as isMatrixInviteAutoJoinTarget } from "./target-ids-HhcaKX1n.mjs";
6
6
  import { n as validateMatrixHomeserverUrl, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-By_2hsXr.mjs";
7
7
  import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-D-W_QQjz.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-CWW9zTYp.mjs").then((n) => n.n);
90
+ const { resolveMatrixTargets } = await import("./resolve-targets-DwRQnBpN.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-DmkH9hcp.mjs").then((n) => n.t);
195
+ const { listMatrixDirectoryGroupsLive } = await import("./directory-live-Brv_PC6z.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-OLndtGNE.mjs";
2
- import { i as sendPollMatrix, r as sendMessageMatrix } from "./send-DiS4anyi.mjs";
1
+ import { r as matrixPresentationCapabilities } from "./channel-CZJeLUuu.mjs";
2
+ import { i as sendPollMatrix, r as sendMessageMatrix } from "./send-CCT72yQb.mjs";
3
3
  import { createMessageReceiptFromOutboundResults, createReplyToFanout, resolveOutboundSendDep } from "openclaw/plugin-sdk/channel-outbound";
4
4
  import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  import { chunkTextForOutbound } from "openclaw/plugin-sdk/text-chunking";
@@ -1,8 +1,10 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
- import { d as syncMatrixOwnProfile, p as updateMatrixAccountConfig } from "./setup-core-CEQJRnym.mjs";
2
+ import { d as syncMatrixOwnProfile, p as updateMatrixAccountConfig } from "./setup-core-5sswwYZt.mjs";
3
3
  import { n as resolveMatrixConfigPath } from "./config-paths-CnREYb1Y.mjs";
4
- import { l as resolveMatrixAuthContext } from "./client-Bk_tBqNp.mjs";
5
- import { n as withResolvedActionClient } from "./client-Rlwtz1hG.mjs";
4
+ import { l as resolveMatrixAuthContext } from "./client-CnPiPhTg.mjs";
5
+ import { n as withResolvedActionClient } from "./client-CsgjDjyA.mjs";
6
+ import { buildOutboundMediaLoadOptions } from "openclaw/plugin-sdk/media-runtime";
7
+ import { resolveOutboundMediaAccessForConfig } from "openclaw/plugin-sdk/outbound-media";
6
8
  //#region extensions/matrix/src/matrix/actions/profile.ts
7
9
  async function updateMatrixOwnProfile(opts = {}) {
8
10
  const runtime = getMatrixRuntime();
@@ -14,7 +16,10 @@ async function updateMatrixOwnProfile(opts = {}) {
14
16
  displayName: opts.displayName,
15
17
  avatarUrl: opts.avatarUrl,
16
18
  avatarPath: opts.avatarPath,
17
- loadAvatarFromUrl: async (url, maxBytes) => await runtime.media.loadWebMedia(url, maxBytes),
19
+ loadAvatarFromUrl: async (url, maxBytes) => await runtime.media.loadWebMedia(url, buildOutboundMediaLoadOptions({
20
+ maxBytes,
21
+ mediaAccess: resolveOutboundMediaAccessForConfig(opts.cfg)
22
+ })),
18
23
  loadAvatarFromPath: async (path, maxBytes) => await runtime.media.loadWebMedia(path, {
19
24
  maxBytes,
20
25
  localRoots: opts.mediaLocalRoots
@@ -1,5 +1,5 @@
1
1
  import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
2
- import { a as resolveMatrixInboundRouteAsync, o as resolveMatrixThreadRouting } from "./channel-OLndtGNE.mjs";
2
+ import { a as resolveMatrixInboundRouteAsync, o as resolveMatrixThreadRouting } from "./channel-CZJeLUuu.mjs";
3
3
  import { c as extractMatrixReactionAnnotation } from "./send-currentness-DGxiiBn9.mjs";
4
4
  import { p as resolveMatrixThreadRootId } from "./direct-management-Dp1giZ34.mjs";
5
5
  import { i as resolveMatrixApprovalReactionTargetWithPersistence, o as unregisterMatrixApprovalReactionTargetsForApproval } from "./approval-reactions-BazmsDbe.mjs";
@@ -8,9 +8,9 @@ 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
  //#region extensions/matrix/src/matrix/monitor/reaction-events.ts
11
- const loadApprovalReactionAuth = createLazyRuntimeModule(() => import("./channel-OLndtGNE.mjs").then((n) => n.s));
11
+ const loadApprovalReactionAuth = createLazyRuntimeModule(() => import("./channel-CZJeLUuu.mjs").then((n) => n.s));
12
12
  const loadExecApprovalResolver = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/approval-gateway-runtime"));
13
- const loadMatrixSend = createLazyRuntimeModule(() => import("./send-DiS4anyi.mjs").then((n) => n.s));
13
+ const loadMatrixSend = createLazyRuntimeModule(() => import("./send-CCT72yQb.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";