@openclaw/matrix 2026.11.5 → 2026.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/dist/.setup/{approval-handler.runtime-Ca12_7Qa.mjs → approval-handler.runtime-LBvkygUK.mjs} +3 -3
  2. package/dist/.setup/{channel-FfaEmyIU.mjs → channel-CHryi9FS.mjs} +8 -8
  3. package/dist/.setup/{channel.runtime-CkkHG8zy.mjs → channel.runtime-DluXWaGb.mjs} +5 -5
  4. package/dist/.setup/{channel.setup-B00zzOOL.mjs → channel.setup-BDbs0FLq.mjs} +2 -2
  5. package/dist/.setup/{cli-dz9hd2dR.mjs → cli-C7Jmy2x4.mjs} +15 -40
  6. package/dist/.setup/cli-doctor-BVstkgJE.mjs +36 -0
  7. package/dist/.setup/{cli-metadata-CwUhA9CY.mjs → cli-metadata-B0GHIn05.mjs} +1 -1
  8. package/dist/.setup/{client-D1bsidwU.mjs → client-Bk_tBqNp.mjs} +2 -2
  9. package/dist/.setup/{client-bootstrap-CTT0VF6v.mjs → client-bootstrap-Bhhri97J.mjs} +1 -1
  10. package/dist/.setup/{client-CFPYqaYK.mjs → client-mFRVrUt3.mjs} +2 -2
  11. package/dist/.setup/{create-client-Ccf5wyS3.mjs → create-client-CzUtZgYF.mjs} +2 -2
  12. package/dist/.setup/{crypto-runtime-DZNytKX5.mjs → crypto-runtime-BI9Pc344.mjs} +1 -1
  13. package/dist/.setup/{crypto-unsafe-state-doctor-Dh1dtuSz.mjs → crypto-unsafe-state-doctor-CmF1X1dZ.mjs} +3 -4
  14. package/dist/.setup/{directory-live-ufzRheWx.mjs → directory-live-DmkH9hcp.mjs} +1 -1
  15. package/dist/.setup/{draft-stream-BPjjKSoI.mjs → draft-stream-bVedfEB3.mjs} +1 -1
  16. package/dist/.setup/{exec-approvals-BwEOyI1-.mjs → exec-approvals-BeYF9-3o.mjs} +2 -2
  17. package/dist/.setup/{messages-DpJ9naJa.mjs → messages-BqVczVlt.mjs} +2 -2
  18. package/dist/.setup/{monitor-vpzawYrB.mjs → monitor-BsSo3tCv.mjs} +31 -17
  19. package/dist/.setup/{onboarding-BK-V2ZLT.mjs → onboarding-CoMpgTiK.mjs} +3 -3
  20. package/dist/.setup/{outbound-DydCDuvM.mjs → outbound-ntm0KOfK.mjs} +2 -2
  21. package/dist/.setup/{profile-update-RLsY-gu6.mjs → profile-update-gC436enW.mjs} +9 -4
  22. package/dist/.setup/{reaction-events-lcgVF3M5.mjs → reaction-events-DTThoaJQ.mjs} +3 -3
  23. package/dist/.setup/{resolve-targets-DYW8ULZS.mjs → resolve-targets-CWW9zTYp.mjs} +1 -1
  24. package/dist/.setup/{room-info-Dhc4efkA.mjs → room-info-CM3MKoh4.mjs} +3 -3
  25. package/dist/.setup/{sdk-DPXiQ3jr.mjs → sdk-ByFgA6Il.mjs} +4 -3
  26. package/dist/.setup/{send-HHAbKARg.mjs → send-DFB7JGg2.mjs} +7 -7
  27. package/dist/.setup/{setup-bootstrap-DaT2j28V.mjs → setup-bootstrap-razh2kSp.mjs} +2 -2
  28. package/dist/.setup/{setup-core-DcqQbLZv.mjs → setup-core-BVbxltMM.mjs} +1 -1
  29. package/dist/.setup/setup-plugin-api-CQKySg7F.mjs +2 -0
  30. package/dist/.setup/{thread-bindings-891JsKXF.mjs → thread-bindings-D5VJEDZV.mjs} +1 -1
  31. package/dist/.setup/{tool-actions-8mXdq9OV.mjs → tool-actions-DexlmVDf.mjs} +10 -10
  32. package/dist/.setup/{verification-CcZIVL8P.mjs → verification-B122bsH2.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/doctor-contract-api.js +7 -3
  39. package/dist/index.js +1 -1
  40. package/dist/plugin-entry.handlers.runtime.js +2 -2
  41. package/dist/session-binding-contract-api.js +1 -1
  42. package/dist/setup-entry.js +1 -1
  43. package/dist/setup-plugin-api.js +1 -1
  44. package/node_modules/@openclaw/fs-safe/CHANGELOG.md +45 -1
  45. package/node_modules/@openclaw/fs-safe/README.md +4 -0
  46. package/node_modules/@openclaw/fs-safe/dist/absolute-path.js +2 -2
  47. package/node_modules/@openclaw/fs-safe/dist/advanced.d.ts +2 -2
  48. package/node_modules/@openclaw/fs-safe/dist/advanced.js +2 -2
  49. package/node_modules/@openclaw/fs-safe/dist/archive-parser.wasm +0 -0
  50. package/node_modules/@openclaw/fs-safe/dist/atomic-io.d.ts +1 -0
  51. package/node_modules/@openclaw/fs-safe/dist/atomic-io.js +6 -0
  52. package/node_modules/@openclaw/fs-safe/dist/atomic.d.ts +1 -0
  53. package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.d.ts +5 -0
  54. package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.js +13 -0
  55. package/node_modules/@openclaw/fs-safe/dist/directory-mode-options.d.ts +3 -0
  56. package/node_modules/@openclaw/fs-safe/dist/directory-mode-options.js +6 -0
  57. package/node_modules/@openclaw/fs-safe/dist/errors.d.ts +1 -1
  58. package/node_modules/@openclaw/fs-safe/dist/errors.js +1 -0
  59. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.d.ts +0 -1
  60. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.js +1 -11
  61. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.js +3 -3
  62. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.js +2 -3
  63. package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.d.ts +3 -3
  64. package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.js +30 -4
  65. package/node_modules/@openclaw/fs-safe/dist/file-store-prune.d.ts +1 -1
  66. package/node_modules/@openclaw/fs-safe/dist/file-store-prune.js +7 -1
  67. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.d.ts +1 -1
  68. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.js +30 -4
  69. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.d.ts +1 -1
  70. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.js +2 -0
  71. package/node_modules/@openclaw/fs-safe/dist/file-store.d.ts +2 -1
  72. package/node_modules/@openclaw/fs-safe/dist/file-store.js +5 -0
  73. package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.d.ts +2 -0
  74. package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.js +9 -0
  75. package/node_modules/@openclaw/fs-safe/dist/json-store.d.ts +2 -1
  76. package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +4 -1
  77. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.js +1 -1
  78. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.d.ts +1 -1
  79. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +19 -13
  80. package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.d.ts +2 -0
  81. package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.js +27 -5
  82. package/node_modules/@openclaw/fs-safe/dist/path-prefix.d.ts +1 -0
  83. package/node_modules/@openclaw/fs-safe/dist/path-prefix.js +84 -7
  84. package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.js +0 -11
  85. package/node_modules/@openclaw/fs-safe/dist/prepare-directory-mode.d.ts +9 -0
  86. package/node_modules/@openclaw/fs-safe/dist/prepare-directory-mode.js +61 -0
  87. package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.js +2 -1
  88. package/node_modules/@openclaw/fs-safe/dist/realpath.d.ts +2 -0
  89. package/node_modules/@openclaw/fs-safe/dist/realpath.js +16 -0
  90. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.d.ts +2 -1
  91. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.js +8 -6
  92. package/node_modules/@openclaw/fs-safe/dist/replace-file-types.d.ts +2 -1
  93. package/node_modules/@openclaw/fs-safe/dist/replace-file.js +20 -13
  94. package/node_modules/@openclaw/fs-safe/dist/root-context.js +4 -1
  95. package/node_modules/@openclaw/fs-safe/dist/root-create-native.d.ts +1 -1
  96. package/node_modules/@openclaw/fs-safe/dist/root-create-native.js +18 -9
  97. package/node_modules/@openclaw/fs-safe/dist/root-errors.d.ts +2 -0
  98. package/node_modules/@openclaw/fs-safe/dist/root-errors.js +9 -0
  99. package/node_modules/@openclaw/fs-safe/dist/root-impl.js +4 -1
  100. package/node_modules/@openclaw/fs-safe/dist/root-mkdir-native.d.ts +1 -1
  101. package/node_modules/@openclaw/fs-safe/dist/root-mkdir-native.js +35 -16
  102. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.d.ts +6 -2
  103. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.js +32 -20
  104. package/node_modules/@openclaw/fs-safe/dist/root-path.js +32 -26
  105. package/node_modules/@openclaw/fs-safe/dist/root-write-admission.js +4 -1
  106. package/node_modules/@openclaw/fs-safe/dist/secret-file.d.ts +2 -1
  107. package/node_modules/@openclaw/fs-safe/dist/secret-file.js +2 -0
  108. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.d.ts +2 -1
  109. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.js +5 -4
  110. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.d.ts +3 -2
  111. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.js +8 -9
  112. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-stale-admission.js +3 -1
  113. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-types.d.ts +2 -1
  114. package/node_modules/@openclaw/fs-safe/dist/text-atomic.d.ts +2 -1
  115. package/node_modules/@openclaw/fs-safe/dist/types.d.ts +1 -0
  116. package/node_modules/@openclaw/fs-safe/dist/watch-hints.js +12 -3
  117. package/node_modules/@openclaw/fs-safe/dist/windows-security-helper.exe +0 -0
  118. package/node_modules/@openclaw/fs-safe/dist/write-file-handle.d.ts +0 -1
  119. package/node_modules/@openclaw/fs-safe/dist/write-file-handle.js +10 -12
  120. package/node_modules/@openclaw/fs-safe/docs/advanced.md +3 -3
  121. package/node_modules/@openclaw/fs-safe/docs/atomic.md +16 -3
  122. package/node_modules/@openclaw/fs-safe/docs/compiler-qualification.md +1 -1
  123. package/node_modules/@openclaw/fs-safe/docs/contributing.md +27 -18
  124. package/node_modules/@openclaw/fs-safe/docs/errors.md +3 -1
  125. package/node_modules/@openclaw/fs-safe/docs/file-store.md +14 -2
  126. package/node_modules/@openclaw/fs-safe/docs/in-place-write.md +31 -0
  127. package/node_modules/@openclaw/fs-safe/docs/install.md +1 -1
  128. package/node_modules/@openclaw/fs-safe/docs/json-store.md +6 -1
  129. package/node_modules/@openclaw/fs-safe/docs/json.md +5 -1
  130. package/node_modules/@openclaw/fs-safe/docs/path-prefix.md +14 -4
  131. package/node_modules/@openclaw/fs-safe/docs/public-api.md +4 -2
  132. package/node_modules/@openclaw/fs-safe/docs/secret-file.md +5 -1
  133. package/node_modules/@openclaw/fs-safe/docs/sidecar-lock.md +4 -0
  134. package/node_modules/@openclaw/fs-safe/docs/temp.md +9 -1
  135. package/node_modules/@openclaw/fs-safe/docs/types.md +5 -1
  136. package/node_modules/@openclaw/fs-safe/package.json +12 -12
  137. package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
  138. package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
  139. package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
  140. package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
  141. package/node_modules/@openclaw/fs-safe-freebsd-arm64/fs-safe-native.node +0 -0
  142. package/node_modules/@openclaw/fs-safe-freebsd-arm64/package.json +1 -1
  143. package/node_modules/@openclaw/fs-safe-freebsd-x64/fs-safe-native.node +0 -0
  144. package/node_modules/@openclaw/fs-safe-freebsd-x64/package.json +1 -1
  145. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
  146. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
  147. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
  148. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
  149. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
  150. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
  151. package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
  152. package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
  153. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/fs-safe-native.node +0 -0
  154. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/package.json +1 -1
  155. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
  156. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
  157. package/openclaw.plugin.json +6 -0
  158. package/package.json +5 -5
  159. package/dist/.setup/setup-plugin-api-Cg4TelGZ.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-BwEOyI1-.mjs";
2
+ import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-BeYF9-3o.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-HHAbKARg.mjs";
5
+ import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-DFB7JGg2.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-DpJ9naJa.mjs";
7
+ import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-BqVczVlt.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-DcqQbLZv.mjs";
5
- import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-B00zzOOL.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-BwEOyI1-.mjs";
4
+ import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, v as resolveMatrixAccountAsync } from "./setup-core-BVbxltMM.mjs";
5
+ import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-BDbs0FLq.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-BeYF9-3o.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-8mXdq9OV.mjs");
159
+ const { handleMatrixAction } = await import("./tool-actions-DexlmVDf.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-Ca12_7Qa.mjs")).matrixApprovalNativeRuntime
275
+ load: async () => (await import("./approval-handler.runtime-LBvkygUK.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-CkkHG8zy.mjs"), "matrixChannelRuntime");
633
- const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-vpzawYrB.mjs").catch((error) => {
632
+ const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DluXWaGb.mjs"), "matrixChannelRuntime");
633
+ const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-BsSo3tCv.mjs").catch((error) => {
634
634
  loadMatrixMonitorModule.clear();
635
635
  throw error;
636
636
  }));
637
- const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-DYW8ULZS.mjs").then((n) => n.n), "resolveMatrixTargets");
637
+ const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-CWW9zTYp.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-HHAbKARg.mjs";
2
+ import { C as reconcileMatrixUnknownSend, S as cleanupMatrixDeliveryPlans, o as sendTypingMatrix, r as sendMessageMatrix } from "./send-DFB7JGg2.mjs";
3
3
  import { c as resolveMatrixLocalTimeoutMs } from "./client-support-B_Mp4Qk9.mjs";
4
- import { c as resolveMatrixAuth } from "./client-D1bsidwU.mjs";
5
- import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-ufzRheWx.mjs";
6
- import { t as matrixOutbound } from "./outbound-DydCDuvM.mjs";
7
- import { t as resolveMatrixTargets } from "./resolve-targets-DYW8ULZS.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-ntm0KOfK.mjs";
7
+ import { t as resolveMatrixTargets } from "./resolve-targets-CWW9zTYp.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-DcqQbLZv.mjs";
2
+ import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, i as matrixSetupContract, m as listMatrixAccountIds, t as createMatrixSetupWizardProxy, v as resolveMatrixAccountAsync } from "./setup-core-BVbxltMM.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-BK-V2ZLT.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
282
+ setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-CoMpgTiK.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
283
283
  setupContract: matrixSetupContract,
284
284
  capabilities: {
285
285
  chatTypes: [
@@ -1,20 +1,18 @@
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 { l as sanitizeMatrixPathSegment } from "./storage-paths-B51JM-pC.mjs";
4
- import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-DcqQbLZv.mjs";
3
+ import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-BVbxltMM.mjs";
5
4
  import { n as resolveMatrixConfigPath } from "./config-paths-CnREYb1Y.mjs";
6
- import { l as resolveMatrixAuthContext } from "./client-D1bsidwU.mjs";
7
- import { n as withResolvedActionClient } from "./client-CFPYqaYK.mjs";
5
+ import { l as resolveMatrixAuthContext } from "./client-Bk_tBqNp.mjs";
6
+ import { n as withResolvedActionClient } from "./client-mFRVrUt3.mjs";
7
+ import { registerMatrixDoctorCommands } from "./cli-doctor-BVstkgJE.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-RLsY-gu6.mjs";
13
- import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-Dh1dtuSz.mjs";
14
- 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-CcZIVL8P.mjs";
12
+ import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-gC436enW.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-B122bsH2.mjs";
15
14
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
16
15
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
17
- import path from "node:path";
18
16
  import { parseStrictInteger, timestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
19
17
  import os from "node:os";
20
18
  import { formatZonedTimestamp } from "openclaw/plugin-sdk/time-runtime";
@@ -409,7 +407,7 @@ function registerMatrixAccountCommands(root) {
409
407
  backupVersion: null
410
408
  };
411
409
  if (accountConfig.encryption === true) {
412
- const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-DaT2j28V.mjs");
410
+ const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-razh2kSp.mjs");
413
411
  verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
414
412
  previousCfg: cfg,
415
413
  cfg: updated,
@@ -537,7 +535,7 @@ async function runMatrixDirectRoomCommand(params) {
537
535
  cfg,
538
536
  accountId: params.accountId
539
537
  }) : void 0;
540
- const [{ withResolvedActionClient, withStartedActionClient }, direct] = await Promise.all([import("./client-CFPYqaYK.mjs").then((n) => n.t), import("./direct-management-Dp1giZ34.mjs").then((n) => n.t)]);
538
+ const [{ withResolvedActionClient, withStartedActionClient }, direct] = await Promise.all([import("./client-mFRVrUt3.mjs").then((n) => n.t), import("./direct-management-Dp1giZ34.mjs").then((n) => n.t)]);
541
539
  return await (params.repair ? withStartedActionClient : withResolvedActionClient)({
542
540
  accountId: params.accountId,
543
541
  cfg
@@ -607,35 +605,6 @@ function registerMatrixDirectCommands(root) {
607
605
  }
608
606
  }
609
607
  //#endregion
610
- //#region extensions/matrix/src/cli-doctor.ts
611
- function registerMatrixDoctorCommands(root) {
612
- const accountForRoot = (rootDir, stateDir) => rootDir === path.resolve(stateDir, "matrix") ? "default" : path.basename(path.dirname(path.dirname(rootDir)));
613
- const doctor = root.command("doctor").description("Inspect and recover Matrix crypto storage refusal");
614
- doctor.command("inspect").description("List accounts blocked by an unsafe crypto final save (read-only)").option("--json", "Output JSON").action(async (options) => {
615
- const stateDir = getMatrixRuntime().state.resolveStateDir(process.env, os.homedir);
616
- const accounts = (await listMatrixCryptoUnsafeState(stateDir)).map((rootDir) => ({
617
- account: accountForRoot(rootDir, stateDir),
618
- rootDir
619
- }));
620
- if (options.json) console.log(JSON.stringify({ blocked: accounts }, null, 2));
621
- else {
622
- console.log(accounts.length ? `Matrix crypto refusal: ${accounts.length} account store(s) blocked` : "No blocked Matrix crypto stores found.");
623
- for (const account of accounts) console.log(`- ${account.account}: ${account.rootDir}`);
624
- }
625
- });
626
- doctor.command("recover").description("Accept rollback to a validated SQLite snapshot and clear one account's refusal").requiredOption("--account <id>", "Blocked account ID").requiredOption("--accept-snapshot-rollback", "Acknowledge that keys from the failed owner may be lost").action(async (options) => {
627
- const stateDir = getMatrixRuntime().state.resolveStateDir(process.env, os.homedir);
628
- const account = sanitizeMatrixPathSegment(normalizeAccountId(options.account));
629
- const roots = (await listMatrixCryptoUnsafeState(stateDir)).filter((rootDir) => accountForRoot(rootDir, stateDir) === account);
630
- if (roots.length !== 1) throw new Error(`Expected exactly one blocked Matrix crypto store for account ${account}; found ${roots.length}. Refusing ambiguous recovery.`);
631
- await recoverMatrixCryptoUnsafeState({
632
- storageRootDir: roots[0],
633
- acceptSnapshotRollback: options.acceptSnapshotRollback === true
634
- });
635
- console.log(`Matrix crypto refusal cleared for account ${account}; restart the Gateway.`);
636
- });
637
- }
638
- //#endregion
639
608
  //#region extensions/matrix/src/cli-encryption.ts
640
609
  function isMatrixVerificationSetupComplete(status) {
641
610
  return status.encryptionEnabled && status.verified && status.crossSigningVerified && status.signedByOwner && status.serverDeviceKnown === true && resolveMatrixRoomKeyBackupIssue(status.backup).code === "ok";
@@ -1235,7 +1204,13 @@ function registerMatrixCli(params) {
1235
1204
  errorPrefix: "Device cleanup failed"
1236
1205
  });
1237
1206
  });
1238
- registerMatrixDoctorCommands(root);
1207
+ registerMatrixDoctorCommands({
1208
+ program: root.command("doctor"),
1209
+ get stateDir() {
1210
+ return getMatrixRuntime().state.resolveStateDir(process.env, os.homedir);
1211
+ },
1212
+ context: { openPluginStateKeyedStore: (options) => getMatrixRuntime().state.openKeyedStoreV2(options) }
1213
+ });
1239
1214
  }
1240
1215
  //#endregion
1241
1216
  export { registerMatrixCli };
@@ -0,0 +1,36 @@
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";
3
+ import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
4
+ import path from "node:path";
5
+ //#region extensions/matrix/src/cli-doctor.ts
6
+ function registerMatrixDoctorCommands(params) {
7
+ const accountForRoot = (rootDir, stateDir) => rootDir === path.resolve(stateDir, "matrix") ? "default" : path.basename(path.dirname(path.dirname(rootDir)));
8
+ const doctor = params.program.description("Inspect and recover Matrix crypto storage refusal");
9
+ doctor.command("inspect").description("List accounts blocked by an unsafe crypto final save (read-only)").option("--json", "Output JSON").action(async (options) => {
10
+ const stateDir = params.stateDir;
11
+ const accounts = (await listMatrixCryptoUnsafeState(stateDir, { openKeyedStoreV2: params.context.openPluginStateKeyedStore })).map((rootDir) => ({
12
+ account: accountForRoot(rootDir, stateDir),
13
+ rootDir
14
+ }));
15
+ if (options.json) console.log(JSON.stringify({ blocked: accounts }, null, 2));
16
+ else {
17
+ console.log(accounts.length ? `Matrix crypto refusal: ${accounts.length} account store(s) blocked` : "No blocked Matrix crypto stores found.");
18
+ for (const account of accounts) console.log(`- ${account.account}: ${account.rootDir}`);
19
+ }
20
+ });
21
+ doctor.command("recover").description("Accept rollback to a validated SQLite snapshot and clear one account's refusal").requiredOption("--account <id>", "Blocked account ID").requiredOption("--accept-snapshot-rollback", "Acknowledge that keys from the failed owner may be lost").action(async (options) => {
22
+ const stateDir = params.stateDir;
23
+ const account = sanitizeMatrixPathSegment(normalizeAccountId(options.account));
24
+ const stateRuntime = { openKeyedStoreV2: params.context.openPluginStateKeyedStore };
25
+ const roots = (await listMatrixCryptoUnsafeState(stateDir, stateRuntime)).filter((rootDir) => accountForRoot(rootDir, stateDir) === account);
26
+ if (roots.length !== 1) throw new Error(`Expected exactly one blocked Matrix crypto store for account ${account}; found ${roots.length}. Refusing ambiguous recovery.`);
27
+ await recoverMatrixCryptoUnsafeState({
28
+ storageRootDir: roots[0],
29
+ acceptSnapshotRollback: options.acceptSnapshotRollback === true,
30
+ stateRuntime
31
+ });
32
+ console.log(`Matrix crypto refusal cleared for account ${account}. Run openclaw update repair (or openclaw doctor --fix) to finish pending migrations, then restart the Gateway.`);
33
+ });
34
+ }
35
+ //#endregion
36
+ export { registerMatrixDoctorCommands };
@@ -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-dz9hd2dR.mjs");
5
+ const { registerMatrixCli } = await import("./cli-C7Jmy2x4.mjs");
6
6
  registerMatrixCli({ program });
7
7
  }, { descriptors: [{
8
8
  name: "matrix",
@@ -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-Ccf5wyS3.mjs"));
436
+ const loadMatrixCreateClientDeps = createLazyRuntimeModule(() => import("./create-client-CzUtZgYF.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-Ccf5wyS3.mjs"));
771
+ const loadMatrixClientRuntime = createLazyRuntimeModule(() => import("./create-client-CzUtZgYF.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,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-D1bsidwU.mjs").then((n) => n.t));
4
+ const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => import("./client-Bk_tBqNp.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,5 +1,5 @@
1
1
  import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
- import { C as resolveMatrixRoomId } from "./send-HHAbKARg.mjs";
2
+ import { w as resolveMatrixRoomId } from "./send-DFB7JGg2.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-CTT0VF6v.mjs"));
10
+ const loadMatrixActionClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-Bhhri97J.mjs"));
11
11
  async function withResolvedActionClient(opts, run) {
12
12
  const { withResolvedRuntimeMatrixClient } = await loadMatrixActionClientRuntime();
13
13
  return await withResolvedRuntimeMatrixClient(opts, run);
@@ -1,14 +1,14 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
2
  import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-By_2hsXr.mjs";
3
3
  import { n as maybeMigrateLegacyStorage, o as resolveMatrixStoragePaths, s as writeStorageMeta } from "./storage-C3N6YZIn.mjs";
4
- import "./client-D1bsidwU.mjs";
4
+ import "./client-Bk_tBqNp.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-DPXiQ3jr.mjs").then((n) => n.t),
11
+ import("./sdk-ByFgA6Il.mjs").then((n) => n.t),
12
12
  import("./logging-CoaEyRtA.mjs").then((n) => n.n),
13
13
  import("./file-sync-store-BpS12yaK.mjs")
14
14
  ]).then(([sdkModule, loggingModule, syncStoreModule]) => ({
@@ -1,6 +1,6 @@
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-DPXiQ3jr.mjs";
3
+ import { a as isRepairableSecretStorageAccessError, i as trustMatrixOwnIdentity, n as isMatrixDeviceOwnerVerified, r as isMatrixDeviceVerifiedInCurrentClient } from "./sdk-ByFgA6Il.mjs";
4
4
  import { persistIdbToDisk, resolveDefaultIdbSnapshotPath, restoreIdbFromDisk } from "./idb-persistence-BTOsltD9.mjs";
5
5
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
6
6
  import { formatErrorMessage, materializeErrorStack, toStringifiedError } from "openclaw/plugin-sdk/error-runtime";
@@ -1,5 +1,4 @@
1
1
  import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
- import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
3
2
  import { i as readMatrixIdbSnapshotJson, t as MATRIX_IDB_SNAPSHOT_FILENAME } from "./crypto-state-store-BZLlwkv_.mjs";
4
3
  import { t as walkMatrixStateFiles } from "./state-layout-walk-BQMgMykU.mjs";
5
4
  import { i as withMatrixCryptoStoreRecoveryLock, n as isMatrixCryptoStoreUnsafe, r as sealMatrixCryptoStoreRecovery } from "./crypto-store-ownership-CiQ1l_O7.mjs";
@@ -21,7 +20,7 @@ async function listMatrixCryptoUnsafeState(stateDir, stateRuntime) {
21
20
  for (const root of roots) {
22
21
  const snapshotPath = path.join(root, MATRIX_IDB_SNAPSHOT_FILENAME);
23
22
  try {
24
- if (await withMatrixCryptoStoreRecoveryLock(snapshotPath, () => isMatrixCryptoStoreUnsafe(snapshotPath, stateRuntime ?? getMatrixRuntime().state))) abandoned.push(root);
23
+ if (await withMatrixCryptoStoreRecoveryLock(snapshotPath, () => isMatrixCryptoStoreUnsafe(snapshotPath, stateRuntime))) abandoned.push(root);
25
24
  } catch (error) {
26
25
  if (extractErrorCode(error) === FILE_LOCK_TIMEOUT_ERROR_CODE) continue;
27
26
  throw error;
@@ -40,7 +39,7 @@ async function recoverMatrixCryptoUnsafeState(params) {
40
39
  if (extractErrorCode(error) === "ENOENT") throw new Error("Matrix crypto SQLite snapshot is absent; refusal remains in place.", { cause: error });
41
40
  throw error;
42
41
  }
43
- const snapshot = await readMatrixIdbSnapshotJson(params.storageRootDir, getMatrixRuntime().state);
42
+ const snapshot = await readMatrixIdbSnapshotJson(params.storageRootDir, params.stateRuntime);
44
43
  if (!snapshot) throw new Error("Matrix crypto SQLite snapshot is absent or invalid; refusal remains in place.");
45
44
  const { validateMatrixIdbSnapshotJson } = await import("./idb-persistence-BTOsltD9.mjs");
46
45
  try {
@@ -48,7 +47,7 @@ async function recoverMatrixCryptoUnsafeState(params) {
48
47
  } catch (error) {
49
48
  throw new Error("Matrix crypto SQLite snapshot cannot be replayed; refusal remains in place.", { cause: error });
50
49
  }
51
- await sealMatrixCryptoStoreRecovery(snapshotPath, getMatrixRuntime().state);
50
+ await sealMatrixCryptoStoreRecovery(snapshotPath, params.stateRuntime);
52
51
  });
53
52
  }
54
53
  //#endregion
@@ -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-D1bsidwU.mjs";
3
+ import { c as resolveMatrixAuth } from "./client-Bk_tBqNp.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-HHAbKARg.mjs";
2
+ import { a as sendSingleTextMessageMatrix, f as prepareMatrixSingleText, t as editMessageMatrix } from "./send-DFB7JGg2.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-DcqQbLZv.mjs";
3
- import { i as normalizeMatrixUserId } from "./channel.setup-B00zzOOL.mjs";
2
+ import { g as resolveDefaultMatrixAccountId, v as resolveMatrixAccountAsync } from "./setup-core-BVbxltMM.mjs";
3
+ import { i as normalizeMatrixUserId } from "./channel.setup-BDbs0FLq.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
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-HHAbKARg.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-DFB7JGg2.mjs";
3
3
  import { n as isMatrixNotFoundError } from "./errors-Bw4EHwKX.mjs";
4
- import { r as withResolvedRoomAction } from "./client-CFPYqaYK.mjs";
4
+ import { r as withResolvedRoomAction } from "./client-mFRVrUt3.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-DcqQbLZv.mjs";
4
- import { a as resolveMatrixInboundRouteAsync, i as resolveMatrixRoomConfig, n as resolveMatrixStoredSessionMeta, o as resolveMatrixThreadRouting } from "./channel-FfaEmyIU.mjs";
5
- import { a as resolveMatrixAllowListMatch, i as normalizeMatrixUserId, r as normalizeMatrixAllowList } from "./channel.setup-B00zzOOL.mjs";
3
+ import { h as resolveConfiguredMatrixBotUserIds } from "./setup-core-BVbxltMM.mjs";
4
+ import { a as resolveMatrixInboundRouteAsync, i as resolveMatrixRoomConfig, n as resolveMatrixStoredSessionMeta, o as resolveMatrixThreadRouting } from "./channel-CHryi9FS.mjs";
5
+ import { a as resolveMatrixAllowListMatch, i as normalizeMatrixUserId, r as normalizeMatrixAllowList } from "./channel.setup-BDbs0FLq.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-HHAbKARg.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-DFB7JGg2.mjs";
11
11
  import { n as getMatrixEventProjection } from "./event-helpers-CxNgMQqH.mjs";
12
- import { t as createMatrixThreadBindingManager } from "./thread-bindings-891JsKXF.mjs";
12
+ import { t as createMatrixThreadBindingManager } from "./thread-bindings-D5VJEDZV.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-D1bsidwU.mjs";
15
- import { i as readMatrixMessages, l as fetchMatrixPollSnapshot } from "./messages-DpJ9naJa.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-BqVczVlt.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-DydCDuvM.mjs";
18
- import { t as resolveMatrixTargets } from "./resolve-targets-DYW8ULZS.mjs";
17
+ import { n as prepareMatrixReplyPayload, r as resolveMatrixExtraContent } from "./outbound-ntm0KOfK.mjs";
18
+ import { t as resolveMatrixTargets } from "./resolve-targets-CWW9zTYp.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-Dhc4efkA.mjs";
22
+ import { r as getMatrixRoomInfo, t as createMatrixRoomInfoResolver } from "./room-info-CM3MKoh4.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-HHAbKARg.mjs").then((n) => n.s));
1492
+ const loadMatrixSendModule = createLazyRuntimeModule(() => import("./send-DFB7JGg2.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-lcgVF3M5.mjs"));
1484
- const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream-BPjjKSoI.mjs"));
1495
+ const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-DTThoaJQ.mjs"));
1496
+ const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream-bVedfEB3.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,9 +3576,9 @@ 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-DcqQbLZv.mjs").then((n) => n.f),
3579
+ import("./setup-core-BVbxltMM.mjs").then((n) => n.f),
3566
3580
  import("./device-health-Ck2YpEVN.mjs").then((n) => n.t),
3567
- import("./setup-core-DcqQbLZv.mjs").then((n) => n.u),
3581
+ import("./setup-core-BVbxltMM.mjs").then((n) => n.u),
3568
3582
  import("./startup-verification-UkaoSldm.mjs")
3569
3583
  ]).then(([configUpdateModule, deviceHealthModule, profileModule, startupVerificationModule]) => ({
3570
3584
  updateMatrixAccountConfig: configUpdateModule.updateMatrixAccountConfig,
@@ -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-DcqQbLZv.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-BVbxltMM.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-DYW8ULZS.mjs").then((n) => n.n);
90
+ const { resolveMatrixTargets } = await import("./resolve-targets-CWW9zTYp.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-ufzRheWx.mjs").then((n) => n.t);
195
+ const { listMatrixDirectoryGroupsLive } = await import("./directory-live-DmkH9hcp.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-FfaEmyIU.mjs";
2
- import { i as sendPollMatrix, r as sendMessageMatrix } from "./send-HHAbKARg.mjs";
1
+ import { r as matrixPresentationCapabilities } from "./channel-CHryi9FS.mjs";
2
+ import { i as sendPollMatrix, r as sendMessageMatrix } from "./send-DFB7JGg2.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-DcqQbLZv.mjs";
2
+ import { d as syncMatrixOwnProfile, p as updateMatrixAccountConfig } from "./setup-core-BVbxltMM.mjs";
3
3
  import { n as resolveMatrixConfigPath } from "./config-paths-CnREYb1Y.mjs";
4
- import { l as resolveMatrixAuthContext } from "./client-D1bsidwU.mjs";
5
- import { n as withResolvedActionClient } from "./client-CFPYqaYK.mjs";
4
+ import { l as resolveMatrixAuthContext } from "./client-Bk_tBqNp.mjs";
5
+ import { n as withResolvedActionClient } from "./client-mFRVrUt3.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-FfaEmyIU.mjs";
2
+ import { a as resolveMatrixInboundRouteAsync, o as resolveMatrixThreadRouting } from "./channel-CHryi9FS.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-FfaEmyIU.mjs").then((n) => n.s));
11
+ const loadApprovalReactionAuth = createLazyRuntimeModule(() => import("./channel-CHryi9FS.mjs").then((n) => n.s));
12
12
  const loadExecApprovalResolver = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/approval-gateway-runtime"));
13
- const loadMatrixSend = createLazyRuntimeModule(() => import("./send-HHAbKARg.mjs").then((n) => n.s));
13
+ const loadMatrixSend = createLazyRuntimeModule(() => import("./send-DFB7JGg2.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";