@openclaw/matrix 2026.11.6 → 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 (148) hide show
  1. package/dist/.setup/{approval-handler.runtime-CshxBDs7.mjs → approval-handler.runtime-LBvkygUK.mjs} +3 -3
  2. package/dist/.setup/{channel-OLndtGNE.mjs → channel-CHryi9FS.mjs} +7 -7
  3. package/dist/.setup/{channel.runtime-CFSou_MS.mjs → channel.runtime-DluXWaGb.mjs} +2 -2
  4. package/dist/.setup/{channel.setup-CqcEb6JR.mjs → channel.setup-BDbs0FLq.mjs} +2 -2
  5. package/dist/.setup/{cli-CkMedN4Y.mjs → cli-C7Jmy2x4.mjs} +6 -6
  6. package/dist/.setup/{cli-metadata-DN1E7yCf.mjs → cli-metadata-B0GHIn05.mjs} +1 -1
  7. package/dist/.setup/{client-Rlwtz1hG.mjs → client-mFRVrUt3.mjs} +1 -1
  8. package/dist/.setup/{draft-stream-DbTsJkoL.mjs → draft-stream-bVedfEB3.mjs} +1 -1
  9. package/dist/.setup/{exec-approvals-CiGrN-cV.mjs → exec-approvals-BeYF9-3o.mjs} +2 -2
  10. package/dist/.setup/{messages-DJDczJnC.mjs → messages-BqVczVlt.mjs} +2 -2
  11. package/dist/.setup/{monitor-ZDbuZRVB.mjs → monitor-BsSo3tCv.mjs} +29 -15
  12. package/dist/.setup/{onboarding-DwhMV1fp.mjs → onboarding-CoMpgTiK.mjs} +1 -1
  13. package/dist/.setup/{outbound-7iSmOloX.mjs → outbound-ntm0KOfK.mjs} +2 -2
  14. package/dist/.setup/{profile-update-Fu4u-aSC.mjs → profile-update-gC436enW.mjs} +8 -3
  15. package/dist/.setup/{reaction-events-CBltCP52.mjs → reaction-events-DTThoaJQ.mjs} +3 -3
  16. package/dist/.setup/{room-info-DFDDmkBC.mjs → room-info-CM3MKoh4.mjs} +3 -3
  17. package/dist/.setup/{send-DiS4anyi.mjs → send-DFB7JGg2.mjs} +6 -6
  18. package/dist/.setup/{setup-bootstrap-OfuocnF0.mjs → setup-bootstrap-razh2kSp.mjs} +2 -2
  19. package/dist/.setup/{setup-core-CEQJRnym.mjs → setup-core-BVbxltMM.mjs} +1 -1
  20. package/dist/.setup/setup-plugin-api-CQKySg7F.mjs +2 -0
  21. package/dist/.setup/{thread-bindings-BvoisBZE.mjs → thread-bindings-D5VJEDZV.mjs} +1 -1
  22. package/dist/.setup/{tool-actions-TYBYDIkj.mjs → tool-actions-DexlmVDf.mjs} +9 -9
  23. package/dist/.setup/{verification-BhFA9xF6.mjs → verification-B122bsH2.mjs} +1 -1
  24. package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +1 -1
  25. package/dist/api.js +4 -4
  26. package/dist/channel-plugin-api.js +1 -1
  27. package/dist/cli-metadata.js +1 -1
  28. package/dist/contract-api.js +2 -2
  29. package/dist/index.js +1 -1
  30. package/dist/plugin-entry.handlers.runtime.js +1 -1
  31. package/dist/session-binding-contract-api.js +1 -1
  32. package/dist/setup-entry.js +1 -1
  33. package/dist/setup-plugin-api.js +1 -1
  34. package/node_modules/@openclaw/fs-safe/CHANGELOG.md +45 -1
  35. package/node_modules/@openclaw/fs-safe/README.md +4 -0
  36. package/node_modules/@openclaw/fs-safe/dist/absolute-path.js +2 -2
  37. package/node_modules/@openclaw/fs-safe/dist/advanced.d.ts +2 -2
  38. package/node_modules/@openclaw/fs-safe/dist/advanced.js +2 -2
  39. package/node_modules/@openclaw/fs-safe/dist/archive-parser.wasm +0 -0
  40. package/node_modules/@openclaw/fs-safe/dist/atomic-io.d.ts +1 -0
  41. package/node_modules/@openclaw/fs-safe/dist/atomic-io.js +6 -0
  42. package/node_modules/@openclaw/fs-safe/dist/atomic.d.ts +1 -0
  43. package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.d.ts +5 -0
  44. package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.js +13 -0
  45. package/node_modules/@openclaw/fs-safe/dist/directory-mode-options.d.ts +3 -0
  46. package/node_modules/@openclaw/fs-safe/dist/directory-mode-options.js +6 -0
  47. package/node_modules/@openclaw/fs-safe/dist/errors.d.ts +1 -1
  48. package/node_modules/@openclaw/fs-safe/dist/errors.js +1 -0
  49. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.d.ts +0 -1
  50. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.js +1 -11
  51. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.js +3 -3
  52. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.js +2 -3
  53. package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.d.ts +3 -3
  54. package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.js +30 -4
  55. package/node_modules/@openclaw/fs-safe/dist/file-store-prune.d.ts +1 -1
  56. package/node_modules/@openclaw/fs-safe/dist/file-store-prune.js +7 -1
  57. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.d.ts +1 -1
  58. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.js +30 -4
  59. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.d.ts +1 -1
  60. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.js +2 -0
  61. package/node_modules/@openclaw/fs-safe/dist/file-store.d.ts +2 -1
  62. package/node_modules/@openclaw/fs-safe/dist/file-store.js +5 -0
  63. package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.d.ts +2 -0
  64. package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.js +9 -0
  65. package/node_modules/@openclaw/fs-safe/dist/json-store.d.ts +2 -1
  66. package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +4 -1
  67. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.js +1 -1
  68. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.d.ts +1 -1
  69. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +19 -13
  70. package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.d.ts +2 -0
  71. package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.js +27 -5
  72. package/node_modules/@openclaw/fs-safe/dist/path-prefix.d.ts +1 -0
  73. package/node_modules/@openclaw/fs-safe/dist/path-prefix.js +84 -7
  74. package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.js +0 -11
  75. package/node_modules/@openclaw/fs-safe/dist/prepare-directory-mode.d.ts +9 -0
  76. package/node_modules/@openclaw/fs-safe/dist/prepare-directory-mode.js +61 -0
  77. package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.js +2 -1
  78. package/node_modules/@openclaw/fs-safe/dist/realpath.d.ts +2 -0
  79. package/node_modules/@openclaw/fs-safe/dist/realpath.js +16 -0
  80. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.d.ts +2 -1
  81. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.js +8 -6
  82. package/node_modules/@openclaw/fs-safe/dist/replace-file-types.d.ts +2 -1
  83. package/node_modules/@openclaw/fs-safe/dist/replace-file.js +20 -13
  84. package/node_modules/@openclaw/fs-safe/dist/root-context.js +4 -1
  85. package/node_modules/@openclaw/fs-safe/dist/root-create-native.d.ts +1 -1
  86. package/node_modules/@openclaw/fs-safe/dist/root-create-native.js +18 -9
  87. package/node_modules/@openclaw/fs-safe/dist/root-errors.d.ts +2 -0
  88. package/node_modules/@openclaw/fs-safe/dist/root-errors.js +9 -0
  89. package/node_modules/@openclaw/fs-safe/dist/root-impl.js +4 -1
  90. package/node_modules/@openclaw/fs-safe/dist/root-mkdir-native.d.ts +1 -1
  91. package/node_modules/@openclaw/fs-safe/dist/root-mkdir-native.js +35 -16
  92. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.d.ts +6 -2
  93. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.js +32 -20
  94. package/node_modules/@openclaw/fs-safe/dist/root-path.js +32 -26
  95. package/node_modules/@openclaw/fs-safe/dist/root-write-admission.js +4 -1
  96. package/node_modules/@openclaw/fs-safe/dist/secret-file.d.ts +2 -1
  97. package/node_modules/@openclaw/fs-safe/dist/secret-file.js +2 -0
  98. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.d.ts +2 -1
  99. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.js +5 -4
  100. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.d.ts +3 -2
  101. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.js +8 -9
  102. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-stale-admission.js +3 -1
  103. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-types.d.ts +2 -1
  104. package/node_modules/@openclaw/fs-safe/dist/text-atomic.d.ts +2 -1
  105. package/node_modules/@openclaw/fs-safe/dist/types.d.ts +1 -0
  106. package/node_modules/@openclaw/fs-safe/dist/watch-hints.js +12 -3
  107. package/node_modules/@openclaw/fs-safe/dist/windows-security-helper.exe +0 -0
  108. package/node_modules/@openclaw/fs-safe/dist/write-file-handle.d.ts +0 -1
  109. package/node_modules/@openclaw/fs-safe/dist/write-file-handle.js +10 -12
  110. package/node_modules/@openclaw/fs-safe/docs/advanced.md +3 -3
  111. package/node_modules/@openclaw/fs-safe/docs/atomic.md +16 -3
  112. package/node_modules/@openclaw/fs-safe/docs/compiler-qualification.md +1 -1
  113. package/node_modules/@openclaw/fs-safe/docs/contributing.md +27 -18
  114. package/node_modules/@openclaw/fs-safe/docs/errors.md +3 -1
  115. package/node_modules/@openclaw/fs-safe/docs/file-store.md +14 -2
  116. package/node_modules/@openclaw/fs-safe/docs/in-place-write.md +31 -0
  117. package/node_modules/@openclaw/fs-safe/docs/install.md +1 -1
  118. package/node_modules/@openclaw/fs-safe/docs/json-store.md +6 -1
  119. package/node_modules/@openclaw/fs-safe/docs/json.md +5 -1
  120. package/node_modules/@openclaw/fs-safe/docs/path-prefix.md +14 -4
  121. package/node_modules/@openclaw/fs-safe/docs/public-api.md +4 -2
  122. package/node_modules/@openclaw/fs-safe/docs/secret-file.md +5 -1
  123. package/node_modules/@openclaw/fs-safe/docs/sidecar-lock.md +4 -0
  124. package/node_modules/@openclaw/fs-safe/docs/temp.md +9 -1
  125. package/node_modules/@openclaw/fs-safe/docs/types.md +5 -1
  126. package/node_modules/@openclaw/fs-safe/package.json +12 -12
  127. package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
  128. package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
  129. package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
  130. package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
  131. package/node_modules/@openclaw/fs-safe-freebsd-arm64/fs-safe-native.node +0 -0
  132. package/node_modules/@openclaw/fs-safe-freebsd-arm64/package.json +1 -1
  133. package/node_modules/@openclaw/fs-safe-freebsd-x64/fs-safe-native.node +0 -0
  134. package/node_modules/@openclaw/fs-safe-freebsd-x64/package.json +1 -1
  135. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
  136. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
  137. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
  138. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
  139. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
  140. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
  141. package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
  142. package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
  143. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/fs-safe-native.node +0 -0
  144. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/package.json +1 -1
  145. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
  146. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
  147. package/package.json +5 -5
  148. 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-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-DiS4anyi.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-DJDczJnC.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-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-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-TYBYDIkj.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-CshxBDs7.mjs")).matrixApprovalNativeRuntime
275
+ load: async () => (await import("./approval-handler.runtime-LBvkygUK.mjs")).matrixApprovalNativeRuntime
276
276
  })
277
277
  });
278
278
  const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
@@ -629,8 +629,8 @@ 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-DluXWaGb.mjs"), "matrixChannelRuntime");
633
+ const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-BsSo3tCv.mjs").catch((error) => {
634
634
  loadMatrixMonitorModule.clear();
635
635
  throw error;
636
636
  }));
@@ -1,9 +1,9 @@
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-DFB7JGg2.mjs";
3
3
  import { c as resolveMatrixLocalTimeoutMs } from "./client-support-B_Mp4Qk9.mjs";
4
4
  import { c as resolveMatrixAuth } from "./client-Bk_tBqNp.mjs";
5
5
  import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-DmkH9hcp.mjs";
6
- import { t as matrixOutbound } from "./outbound-7iSmOloX.mjs";
6
+ import { t as matrixOutbound } from "./outbound-ntm0KOfK.mjs";
7
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";
@@ -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-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-DwhMV1fp.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,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-BVbxltMM.mjs";
4
4
  import { n as resolveMatrixConfigPath } from "./config-paths-CnREYb1Y.mjs";
5
5
  import { l as resolveMatrixAuthContext } from "./client-Bk_tBqNp.mjs";
6
- import { n as withResolvedActionClient } from "./client-Rlwtz1hG.mjs";
6
+ import { n as withResolvedActionClient } from "./client-mFRVrUt3.mjs";
7
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-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-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";
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-razh2kSp.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-mFRVrUt3.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
@@ -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-C7Jmy2x4.mjs");
6
6
  registerMatrixCli({ program });
7
7
  }, { descriptors: [{
8
8
  name: "matrix",
@@ -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-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({
@@ -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-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-CEQJRnym.mjs";
3
- import { i as normalizeMatrixUserId } from "./channel.setup-CqcEb6JR.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-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-DFB7JGg2.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-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-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-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-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-DFB7JGg2.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-D5VJEDZV.mjs";
13
13
  import { a as isMatrixAccessTokenInvalidatedError } from "./client-support-B_Mp4Qk9.mjs";
14
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";
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-7iSmOloX.mjs";
17
+ import { n as prepareMatrixReplyPayload, r as resolveMatrixExtraContent } from "./outbound-ntm0KOfK.mjs";
18
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-DFDDmkBC.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-DiS4anyi.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-CBltCP52.mjs"));
1484
- const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream-DbTsJkoL.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-CEQJRnym.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-CEQJRnym.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-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-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";
@@ -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-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-CEQJRnym.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
4
  import { l as resolveMatrixAuthContext } from "./client-Bk_tBqNp.mjs";
5
- import { n as withResolvedActionClient } from "./client-Rlwtz1hG.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-OLndtGNE.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-OLndtGNE.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-DiS4anyi.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";
@@ -1,7 +1,7 @@
1
- import { w as setBoundedMap } from "./send-DiS4anyi.mjs";
1
+ import { T as setBoundedMap } from "./send-DFB7JGg2.mjs";
2
2
  import { n as isMatrixNotFoundError } from "./errors-Bw4EHwKX.mjs";
3
- import { s as EventType } from "./messages-DJDczJnC.mjs";
4
- import { r as withResolvedRoomAction } from "./client-Rlwtz1hG.mjs";
3
+ import { s as EventType } from "./messages-BqVczVlt.mjs";
4
+ import { r as withResolvedRoomAction } from "./client-mFRVrUt3.mjs";
5
5
  import { filterStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  //#region extensions/matrix/src/matrix/actions/room.ts
7
7
  async function getMatrixMemberInfo(userId, opts) {
@@ -416,7 +416,7 @@ function getTextContent(text) {
416
416
  return normalizeOptionalString(value) ?? "";
417
417
  }
418
418
  function parsePollStart(content) {
419
- const poll = content["m.poll.start"] ?? content[ORG_POLL_START] ?? content["m.poll"];
419
+ const poll = content[M_POLL_START] ?? content["org.matrix.msc3381.poll.start"] ?? content["m.poll"];
420
420
  if (!poll) return null;
421
421
  const question = getTextContent(poll.question);
422
422
  if (!question) return null;
@@ -452,7 +452,7 @@ function resolvePollReferenceEventId(content) {
452
452
  }
453
453
  function parsePollResponseAnswerIds(content) {
454
454
  if (!content || typeof content !== "object") return null;
455
- const response = content[M_POLL_RESPONSE] ?? content[ORG_POLL_RESPONSE];
455
+ const response = content[M_POLL_RESPONSE] ?? content["org.matrix.msc3381.poll.response"];
456
456
  if (!response || !Array.isArray(response.answers)) return null;
457
457
  return response.answers.filter((answer) => typeof answer === "string");
458
458
  }
@@ -537,9 +537,9 @@ function buildPollStartContent(poll) {
537
537
  const isMultiple = normalized.maxSelections > 1;
538
538
  const fallbackText = `${normalized.question}\n${normalized.options.map((option, idx) => `${idx + 1}. ${option}`).join("\n")}`;
539
539
  return {
540
- [M_POLL_START]: {
540
+ [ORG_POLL_START]: {
541
541
  question: buildTextContent$1(normalized.question),
542
- kind: isMultiple ? "m.poll.undisclosed" : "m.poll.disclosed",
542
+ kind: isMultiple ? "org.matrix.msc3381.poll.undisclosed" : "org.matrix.msc3381.poll.disclosed",
543
543
  max_selections: normalized.maxSelections,
544
544
  answers
545
545
  },
@@ -1812,7 +1812,7 @@ async function sendPollMatrix(to, poll, opts) {
1812
1812
  } : { ...pollContent };
1813
1813
  pollPayload["m.mentions"] = mentions;
1814
1814
  return {
1815
- eventId: await client.sendEvent(roomId, "m.poll.start", pollPayload) ?? "unknown",
1815
+ eventId: await client.sendEvent(roomId, "org.matrix.msc3381.poll.start", pollPayload) ?? "unknown",
1816
1816
  roomId
1817
1817
  };
1818
1818
  });
@@ -1939,4 +1939,4 @@ async function reactMatrixMessage(roomId, messageId, emoji, opts = {}) {
1939
1939
  });
1940
1940
  }
1941
1941
  //#endregion
1942
- export { resolveMatrixRoomId as C, reconcileMatrixUnknownSend as S, isPollEventType as _, sendSingleTextMessageMatrix as a, resolvePollReferenceEventId as b, formatMatrixMessageText as c, resolveMatrixReplacementContent as d, prepareMatrixSingleText as f, formatPollResultsAsText as g, formatPollAsText as h, sendPollMatrix as i, isLikelyBareFilename as l, buildPollResultsSummary as m, reactMatrixMessage as n, sendTypingMatrix as o, buildPollResponseContent as p, sendMessageMatrix as r, send_exports as s, editMessageMatrix as t, resolveMatrixMessageAttachment as u, isPollStartType as v, setBoundedMap as w, cleanupMatrixDeliveryPlans as x, parsePollStart as y };
1942
+ export { reconcileMatrixUnknownSend as C, cleanupMatrixDeliveryPlans as S, setBoundedMap as T, formatPollResultsAsText as _, sendSingleTextMessageMatrix as a, parsePollStart as b, formatMatrixMessageText as c, resolveMatrixReplacementContent as d, prepareMatrixSingleText as f, formatPollAsText as g, buildPollResultsSummary as h, sendPollMatrix as i, isLikelyBareFilename as l, buildPollResponseContent as m, reactMatrixMessage as n, sendTypingMatrix as o, ORG_POLL_RESPONSE as p, sendMessageMatrix as r, send_exports as s, editMessageMatrix as t, resolveMatrixMessageAttachment as u, isPollEventType as v, resolveMatrixRoomId as w, resolvePollReferenceEventId as x, isPollStartType as y };
@@ -1,6 +1,6 @@
1
1
  import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
2
- import "./setup-core-CEQJRnym.mjs";
3
- import { n as bootstrapMatrixVerification } from "./verification-BhFA9xF6.mjs";
2
+ import "./setup-core-BVbxltMM.mjs";
3
+ import { n as bootstrapMatrixVerification } from "./verification-B122bsH2.mjs";
4
4
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
5
5
  //#region extensions/matrix/src/setup-bootstrap.ts
6
6
  async function maybeBootstrapNewEncryptedMatrixAccount(params) {
@@ -529,7 +529,7 @@ function createMatrixSetupWizardProxy(loadWizardModule) {
529
529
  };
530
530
  }
531
531
  const finishMatrixSetupAfterConfigWrite = async ({ previousCfg, cfg, accountId, runtime }) => {
532
- const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-OfuocnF0.mjs");
532
+ const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-razh2kSp.mjs");
533
533
  await runMatrixSetupBootstrapAfterConfigWrite({
534
534
  previousCfg,
535
535
  cfg,
@@ -0,0 +1,2 @@
1
+ export { n as matrixSetupPlugin } from "./channel.setup-BDbs0FLq.mjs";
2
+ import "../setup-plugin-api.js";
@@ -2,7 +2,7 @@ import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
2
  import { a as listBindingsForAccount, c as setBindingRecord, d as setMatrixThreadBindingManagerEntry, m as toSessionBindingRecord, o as removeBindingRecord, r as getMatrixThreadBindingManagerEntry, s as resolveBindingKey, t as deleteMatrixThreadBindingManagerEntry } from "./thread-bindings-shared-QmZOfX9Q.mjs";
3
3
  import { o as resolveMatrixSqliteStateEnv, r as assertMatrixSupportedStateFile, s as resolveMatrixSqliteStateKey } from "./retired-state-JGUEBE72.mjs";
4
4
  import { a as resolveMatrixStateFilePath, t as claimCurrentTokenStorageState } from "./storage-C3N6YZIn.mjs";
5
- import { r as sendMessageMatrix } from "./send-DiS4anyi.mjs";
5
+ import { r as sendMessageMatrix } from "./send-DFB7JGg2.mjs";
6
6
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
7
7
  import path from "node:path";
8
8
  import { resolveOptionalIntegerOption } from "openclaw/plugin-sdk/number-runtime";
@@ -1,17 +1,17 @@
1
1
  import { a as resolveMatrixAccountConfig, o as resolveMatrixBaseConfig } from "./account-config-CRsKoMqJ.mjs";
2
- import { g as resolveDefaultMatrixAccountId } from "./setup-core-CEQJRnym.mjs";
3
- import { i as resolveMatrixRoomConfig } from "./channel-OLndtGNE.mjs";
2
+ import { g as resolveDefaultMatrixAccountId } from "./setup-core-BVbxltMM.mjs";
3
+ import { i as resolveMatrixRoomConfig } from "./channel-CHryi9FS.mjs";
4
4
  import { a as normalizeMatrixResolvableTarget } from "./target-ids-HhcaKX1n.mjs";
5
5
  import { l as selectOwnMatrixReactionEventIds, s as buildMatrixReactionRelationsPath, u as summarizeMatrixReactionEvents } from "./send-currentness-DGxiiBn9.mjs";
6
6
  import { c as isStrictDirectMembership, s as hasDirectMatrixMemberFlag, u as readJoinedMatrixMembers } from "./direct-management-Dp1giZ34.mjs";
7
- import { C as resolveMatrixRoomId, n as reactMatrixMessage, p as buildPollResponseContent, r as sendMessageMatrix, v as isPollStartType, y as parsePollStart } from "./send-DiS4anyi.mjs";
7
+ import { b as parsePollStart, m as buildPollResponseContent, n as reactMatrixMessage, r as sendMessageMatrix, w as resolveMatrixRoomId, y as isPollStartType } from "./send-DFB7JGg2.mjs";
8
8
  import { i as parseMxc } from "./event-helpers-CxNgMQqH.mjs";
9
9
  import { l as resolveMatrixAuthContext } from "./client-Bk_tBqNp.mjs";
10
- import { a as fetchEventSummary, c as resolveMatrixActionLimit, i as readMatrixMessages, n as editMatrixMessage, o as readPinnedEvents, r as readMatrixMessage, s as EventType, t as deleteMatrixMessage } from "./messages-DJDczJnC.mjs";
11
- import { n as withResolvedActionClient, r as withResolvedRoomAction } from "./client-Rlwtz1hG.mjs";
12
- import { t as applyMatrixProfileUpdate } from "./profile-update-Fu4u-aSC.mjs";
13
- import { _ as scanMatrixVerificationQr, a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, h as restoreMatrixRoomKeyBackup, i as confirmMatrixVerificationReciprocateQr, l as getMatrixVerificationSas, n as bootstrapMatrixVerification, o as generateMatrixVerificationQr, p as requestMatrixVerification, r as cancelMatrixVerification, s as getMatrixEncryptionStatus, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-BhFA9xF6.mjs";
14
- import { n as getMatrixMemberInfo, r as getMatrixRoomInfo, t as createMatrixRoomInfoResolver } from "./room-info-DFDDmkBC.mjs";
10
+ import { a as fetchEventSummary, c as resolveMatrixActionLimit, i as readMatrixMessages, n as editMatrixMessage, o as readPinnedEvents, r as readMatrixMessage, s as EventType, t as deleteMatrixMessage } from "./messages-BqVczVlt.mjs";
11
+ import { n as withResolvedActionClient, r as withResolvedRoomAction } from "./client-mFRVrUt3.mjs";
12
+ import { t as applyMatrixProfileUpdate } from "./profile-update-gC436enW.mjs";
13
+ import { _ as scanMatrixVerificationQr, a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, h as restoreMatrixRoomKeyBackup, i as confirmMatrixVerificationReciprocateQr, l as getMatrixVerificationSas, n as bootstrapMatrixVerification, o as generateMatrixVerificationQr, p as requestMatrixVerification, r as cancelMatrixVerification, s as getMatrixEncryptionStatus, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-B122bsH2.mjs";
14
+ import { n as getMatrixMemberInfo, r as getMatrixRoomInfo, t as createMatrixRoomInfoResolver } from "./room-info-CM3MKoh4.mjs";
15
15
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
16
16
  import { isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeUniqueTrimmedStringList, uniqueValues } from "openclaw/plugin-sdk/string-coerce-runtime";
17
17
  import { ToolAuthorizationError, createActionGate, jsonResult, readPositiveIntegerParam, readReactionParams, readStringArrayParam, readStringParam } from "openclaw/plugin-sdk/channel-actions";
@@ -76,7 +76,7 @@ async function voteMatrixPoll(roomId, pollId, opts = {}) {
76
76
  const maxSelections = parsed.maxSelections;
77
77
  const content = buildPollResponseContent(pollId, answerIds);
78
78
  return {
79
- eventId: await client.sendEvent(resolvedRoom, "m.poll.response", content) ?? null,
79
+ eventId: await client.sendEvent(resolvedRoom, "org.matrix.msc3381.poll.response", content) ?? null,
80
80
  roomId: resolvedRoom,
81
81
  pollId,
82
82
  answerIds,
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
- import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-Rlwtz1hG.mjs";
2
+ import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-mFRVrUt3.mjs";
3
3
  import { n as formatMatrixEncryptionUnavailableError } from "./encryption-guidance-Br3Lv9Hm.mjs";
4
4
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  import { setTimeout } from "node:timers/promises";