@openclaw/matrix 2026.10.10-beta.5 → 2026.10.33

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 (120) hide show
  1. package/dist/.setup/{account-selection-Bs_jCAaG.mjs → account-selection-CWsL5zIU.mjs} +1 -1
  2. package/dist/.setup/{approval-handler.runtime-6u08WKWh.mjs → approval-handler.runtime-Co2elSYS.mjs} +4 -4
  3. package/dist/.setup/{channel-CqkLHNdp.mjs → channel-BBvOdxTc.mjs} +11 -10
  4. package/dist/.setup/{channel.runtime-BfZdvlho.mjs → channel.runtime-DyX4mM8d.mjs} +6 -6
  5. package/dist/.setup/{channel.setup-ClA7V_Ba.mjs → channel.setup-p6oll48W.mjs} +6 -2
  6. package/dist/.setup/{cli-BLgMlO3I.mjs → cli-C2XKMk1U.mjs} +12 -12
  7. package/dist/.setup/{cli-metadata-COWLWR3E.mjs → cli-metadata-C60BW1oa.mjs} +1 -1
  8. package/dist/.setup/{client-C4Gibhzl.mjs → client-BEl7PU1_.mjs} +8 -8
  9. package/dist/.setup/{client-C7pZ6gAl.mjs → client-Cxv-iMwp.mjs} +3 -3
  10. package/dist/.setup/{client-bootstrap-kOIDV4z_.mjs → client-bootstrap-D1vLveT2.mjs} +1 -1
  11. package/dist/.setup/{create-client-BS8UYx6N.mjs → create-client-CrY1E3hg.mjs} +5 -5
  12. package/dist/.setup/{credentials-read-D2ULV55A.mjs → credentials-read-Dj7Hj87M.mjs} +1 -1
  13. package/dist/.setup/{credentials-CPnJZaZB.mjs → credentials-udso1z0C.mjs} +2 -2
  14. package/dist/.setup/{crypto-runtime-D8yY7kjD.mjs → crypto-runtime-DqX7VD1W.mjs} +3 -3
  15. package/dist/.setup/{crypto-state-store-D4wrCvFs.mjs → crypto-state-store-DclM-fO5.mjs} +2 -1
  16. package/dist/.setup/{crypto-store-ownership-Z_Y5WRKr.mjs → crypto-store-ownership-Dr-T40Rp.mjs} +1 -1
  17. package/dist/.setup/{crypto-unsafe-state-doctor-C8szCYmf.mjs → crypto-unsafe-state-doctor-BG9qMu0B.mjs} +4 -4
  18. package/dist/.setup/{device-health-Be60VF1w.mjs → device-health-D6_ECUVe.mjs} +1 -1
  19. package/dist/.setup/{direct-management-B3wYhx_M.mjs → direct-management-ZcjZgYEl.mjs} +1 -1
  20. package/dist/.setup/{directory-live-BpSz-FQB.mjs → directory-live-_yaRaktv.mjs} +2 -2
  21. package/dist/.setup/doctor-contract-BANpMUbP.mjs +38 -0
  22. package/dist/.setup/{draft-stream-K6Lu-JEI.mjs → draft-stream-vO_qjwJb.mjs} +2 -2
  23. package/dist/.setup/{encryption-guidance-D5_IsDIy.mjs → encryption-guidance-BLUoN4aV.mjs} +1 -1
  24. package/dist/.setup/{exec-approvals-DtNw0e04.mjs → exec-approvals-BFT-ee9F.mjs} +2 -2
  25. package/dist/.setup/{file-sync-store-CUH8EAJq.mjs → file-sync-store-BxUPmUoJ.mjs} +3 -3
  26. package/dist/.setup/{idb-persistence-BHTYPRe_.mjs → idb-persistence-C2TsCHY2.mjs} +3 -3
  27. package/dist/.setup/{inbound-dedupe-C-EBGY0B.mjs → inbound-dedupe-sW_gaR44.mjs} +1 -1
  28. package/dist/.setup/{joined-room-encryption-BAD70N5n.mjs → joined-room-encryption-DBbLkdvv.mjs} +1 -1
  29. package/dist/.setup/{logger-CXQnpXCt.mjs → logger-CuAzdD8Q.mjs} +2 -2
  30. package/dist/.setup/{logging-BKV8TYQq.mjs → logging-CoaEyRtA.mjs} +20 -14
  31. package/dist/.setup/{messages-O6G0-_xr.mjs → messages-TuEa_BPZ.mjs} +2 -2
  32. package/dist/.setup/{monitor-BSEZMFyq.mjs → monitor-B86Ll4B8.mjs} +119 -39
  33. package/dist/.setup/{onboarding-DQLF7huY.mjs → onboarding-DOLEjkg2.mjs} +5 -5
  34. package/dist/.setup/{outbound-C0bqZr89.mjs → outbound-BWsyqwt1.mjs} +2 -2
  35. package/dist/.setup/{profile-update-BbfEg9Fx.mjs → profile-update-DiXSVBki.mjs} +2 -2
  36. package/dist/.setup/{reaction-events-51DOeO0I.mjs → reaction-events-CuUeYcBC.mjs} +4 -4
  37. package/dist/.setup/{resolve-targets-BJ5sIKeM.mjs → resolve-targets-Dd70hGcM.mjs} +2 -2
  38. package/dist/.setup/{retired-state-DOCruzWd.mjs → retired-state-C4UnLIg4.mjs} +1 -37
  39. package/dist/.setup/{room-info-DAJKw-I8.mjs → room-info-C13IUffQ.mjs} +3 -3
  40. package/dist/.setup/{doctor-contract-CsTNmbMa.mjs → runtime-doctor-migrations-hxP-CXX7.mjs} +12 -48
  41. package/dist/.setup/runtime-setter-api-DtxDAM-x.mjs +3 -0
  42. package/dist/.setup/{sdk-ByU8So5S.mjs → sdk-DNW03GqJ.mjs} +9 -9
  43. package/dist/.setup/secret-contract-api-CiuSYjUy.mjs +3 -0
  44. package/dist/.setup/{send-CFx1h7xE.mjs → send-BGgwE5pV.mjs} +3 -3
  45. package/dist/.setup/{setup-bootstrap-DANlsW-o.mjs → setup-bootstrap-BCbltIf_.mjs} +2 -2
  46. package/dist/.setup/{setup-core-EQceJMZZ.mjs → setup-core-Di6NtQ_J.mjs} +4 -4
  47. package/dist/.setup/setup-plugin-api-ORC_4yEA.mjs +3 -0
  48. package/dist/.setup/sqlite-state-LByPx4Yp.mjs +37 -0
  49. package/dist/.setup/{startup-verification-UU8DUvi4.mjs → startup-verification-8xvGpdtK.mjs} +3 -2
  50. package/dist/.setup/{storage-l8V0XsGM.mjs → storage-CN4dxdtV.mjs} +14 -6
  51. package/dist/.setup/{sync-cache-state-Cnm4TCEI.mjs → sync-cache-state-L1kwjhjj.mjs} +7 -4
  52. package/dist/.setup/{thread-bindings-C0gv7BEN.mjs → thread-bindings-pNgPVdof.mjs} +4 -3
  53. package/dist/.setup/{tool-actions-DGYRJDEV.mjs → tool-actions-CFC7ZpIt.mjs} +9 -9
  54. package/dist/.setup/{verification-DUxuApWC.mjs → verification-CuT5ZBDO.mjs} +3 -3
  55. package/dist/api.js +5 -5
  56. package/dist/channel-plugin-api.js +2 -1
  57. package/dist/cli-metadata.js +2 -1
  58. package/dist/contract-api.js +2 -2
  59. package/dist/doctor-contract-api.js +46 -14
  60. package/dist/helper-api.js +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/plugin-entry.handlers.runtime.js +2 -2
  63. package/dist/runtime-api.js +1 -1
  64. package/dist/runtime-setter-api.js +2 -1
  65. package/dist/secret-contract-api.js +2 -1
  66. package/dist/session-binding-contract-api.js +1 -1
  67. package/dist/setup-entry.js +3 -3
  68. package/dist/setup-plugin-api.js +2 -1
  69. package/dist/thread-binding-api.js +2 -1
  70. package/dist/thread-bindings-runtime.js +2 -1
  71. package/node_modules/@openclaw/fs-safe/CHANGELOG.md +26 -0
  72. package/node_modules/@openclaw/fs-safe/dist/copy-path-admission.js +2 -2
  73. package/node_modules/@openclaw/fs-safe/dist/native-config.js +14 -3
  74. package/node_modules/@openclaw/fs-safe/dist/output.js +6 -0
  75. package/node_modules/@openclaw/fs-safe/dist/root-directory-list.d.ts +2 -1
  76. package/node_modules/@openclaw/fs-safe/dist/root-directory-list.js +12 -5
  77. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.d.ts +2 -2
  78. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.js +27 -13
  79. package/node_modules/@openclaw/fs-safe/dist/root-path.js +2 -2
  80. package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.d.ts +3 -0
  81. package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.js +18 -3
  82. package/node_modules/@openclaw/fs-safe/dist/watch-hints.js +8 -3
  83. package/node_modules/@openclaw/fs-safe/dist/windows-security-helper.exe +0 -0
  84. package/node_modules/@openclaw/fs-safe/docs/config.md +7 -1
  85. package/node_modules/@openclaw/fs-safe/docs/copy.md +10 -0
  86. package/node_modules/@openclaw/fs-safe/docs/migrating-to-0.5.md +6 -4
  87. package/node_modules/@openclaw/fs-safe/docs/native-helper.md +6 -4
  88. package/node_modules/@openclaw/fs-safe/docs/output.md +4 -2
  89. package/node_modules/@openclaw/fs-safe/docs/security-model.md +9 -0
  90. package/node_modules/@openclaw/fs-safe/docs/watch.md +7 -1
  91. package/node_modules/@openclaw/fs-safe/package.json +15 -14
  92. package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
  93. package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
  94. package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
  95. package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
  96. package/node_modules/@openclaw/fs-safe-freebsd-arm64/fs-safe-native.node +0 -0
  97. package/node_modules/@openclaw/fs-safe-freebsd-arm64/package.json +1 -1
  98. package/node_modules/@openclaw/fs-safe-freebsd-x64/fs-safe-native.node +0 -0
  99. package/node_modules/@openclaw/fs-safe-freebsd-x64/package.json +1 -1
  100. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
  101. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
  102. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
  103. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
  104. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
  105. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
  106. package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
  107. package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
  108. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/fs-safe-native.node +0 -0
  109. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/package.json +1 -1
  110. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
  111. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
  112. package/node_modules/matrix-js-sdk/lib/http-api/utils.js +3 -1
  113. package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js +7 -1
  114. package/node_modules/matrix-js-sdk/src/http-api/utils.ts +5 -1
  115. package/node_modules/matrix-js-sdk/src/rust-crypto/rust-crypto.ts +7 -1
  116. package/package.json +5 -5
  117. package/dist/.setup/runtime-setter-api-i2MOXoT3.mjs +0 -2
  118. package/dist/.setup/secret-contract-api-Dukgvike.mjs +0 -2
  119. package/dist/.setup/setup-plugin-api-f8mWghxf.mjs +0 -2
  120. package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +0 -1
@@ -1,4 +1,4 @@
1
- import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
2
  import { n as listMatrixEnvAccountIds, t as getMatrixScopedEnvVarNames } from "./env-vars-aEBngJPa.mjs";
3
3
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
4
4
  import { isRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -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-DtNw0e04.mjs";
2
+ import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-BFT-ee9F.mjs";
3
3
  import { s as resolveMatrixTargetIdentity } from "./target-ids-HhcaKX1n.mjs";
4
- import { a as repairMatrixDirectRooms } from "./direct-management-B3wYhx_M.mjs";
5
- import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-CFx1h7xE.mjs";
4
+ import { a as repairMatrixDirectRooms } from "./direct-management-ZcjZgYEl.mjs";
5
+ import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-BGgwE5pV.mjs";
6
6
  import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-D2pEUrFS.mjs";
7
- import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-O6G0-_xr.mjs";
7
+ import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-TuEa_BPZ.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,10 +1,11 @@
1
- import { i as __exportAll, n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-CsTNmbMa.mjs";
2
- import { i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, r as hasImplicitMatrixAccountConfig } from "./account-selection-Bs_jCAaG.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
+ import { i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, r as hasImplicitMatrixAccountConfig } from "./account-selection-CWsL5zIU.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-EQceJMZZ.mjs";
5
- import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-ClA7V_Ba.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-DtNw0e04.mjs";
4
+ import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, v as resolveMatrixAccountAsync } from "./setup-core-Di6NtQ_J.mjs";
5
+ import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-p6oll48W.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-BFT-ee9F.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
+ import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BANpMUbP.mjs";
8
9
  import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./thread-bindings-shared-CPjUA0Ib.mjs";
9
10
  import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DxyzKSzf.mjs";
10
11
  import { n as resolveMatrixInboundConversation, t as defaultTopLevelPlacement } from "./thread-binding-api-BvuaKpd0.mjs";
@@ -154,7 +155,7 @@ const matrixMessageActions = {
154
155
  return account.enabled && account.configured && createActionGate(account.config.actions)("messages") ? payload : null;
155
156
  },
156
157
  handleAction: async (ctx) => {
157
- const { handleMatrixAction } = await import("./tool-actions-DGYRJDEV.mjs");
158
+ const { handleMatrixAction } = await import("./tool-actions-CFC7ZpIt.mjs");
158
159
  return await handleMatrixAction(ctx);
159
160
  }
160
161
  };
@@ -287,7 +288,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
287
288
  ],
288
289
  isConfigured: isMatrixAnyApprovalClientEnabled,
289
290
  shouldHandle: shouldHandleMatrixApprovalRequest,
290
- load: async () => (await import("./approval-handler.runtime-6u08WKWh.mjs")).matrixApprovalNativeRuntime
291
+ load: async () => (await import("./approval-handler.runtime-Co2elSYS.mjs")).matrixApprovalNativeRuntime
291
292
  })
292
293
  });
293
294
  const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
@@ -634,7 +635,7 @@ const matrixPresentationCapabilities = {
634
635
  };
635
636
  //#endregion
636
637
  //#region extensions/matrix/src/resolver.ts
637
- const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-BJ5sIKeM.mjs").then((n) => n.n), "resolveMatrixTargets");
638
+ const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-Dd70hGcM.mjs").then((n) => n.n), "resolveMatrixTargets");
638
639
  const matrixResolverAdapter = { resolveTargets: async (params) => (await loadMatrixResolver())(params) };
639
640
  //#endregion
640
641
  //#region extensions/matrix/src/matrix/session-store-metadata.ts
@@ -746,8 +747,8 @@ async function resolveMatrixOutboundSessionRoute(params) {
746
747
  }
747
748
  //#endregion
748
749
  //#region extensions/matrix/src/channel.ts
749
- const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-BfZdvlho.mjs"), "matrixChannelRuntime");
750
- const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-BSEZMFyq.mjs").catch((error) => {
750
+ const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DyX4mM8d.mjs"), "matrixChannelRuntime");
751
+ const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-B86Ll4B8.mjs").catch((error) => {
751
752
  loadMatrixMonitorModule.clear();
752
753
  throw error;
753
754
  }));
@@ -1,14 +1,14 @@
1
- import { S as reconcileMatrixUnknownSend, o as sendTypingMatrix, r as sendMessageMatrix, x as cleanupMatrixDeliveryPlans } from "./send-CFx1h7xE.mjs";
2
- import { u as resolveMatrixAuth } from "./client-C4Gibhzl.mjs";
3
- import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-BpSz-FQB.mjs";
4
- import { t as matrixOutbound } from "./outbound-C0bqZr89.mjs";
5
- import { t as resolveMatrixTargets } from "./resolve-targets-BJ5sIKeM.mjs";
1
+ import { S as reconcileMatrixUnknownSend, o as sendTypingMatrix, r as sendMessageMatrix, x as cleanupMatrixDeliveryPlans } from "./send-BGgwE5pV.mjs";
2
+ import { u as resolveMatrixAuth } from "./client-BEl7PU1_.mjs";
3
+ import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-_yaRaktv.mjs";
4
+ import { t as matrixOutbound } from "./outbound-BWsyqwt1.mjs";
5
+ import { t as resolveMatrixTargets } from "./resolve-targets-Dd70hGcM.mjs";
6
6
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
7
7
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
8
8
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
9
9
  import { runChannelProbe } from "openclaw/plugin-sdk/text-utility-runtime";
10
10
  //#region extensions/matrix/src/matrix/probe.ts
11
- const loadMatrixProbeRuntimeDeps = createLazyRuntimeModule(() => import("./client-C4Gibhzl.mjs").then((n) => n.t));
11
+ const loadMatrixProbeRuntimeDeps = createLazyRuntimeModule(() => import("./client-BEl7PU1_.mjs").then((n) => n.t));
12
12
  async function probeMatrix(params) {
13
13
  return await runChannelProbe(void 0, async () => {
14
14
  const result = {
@@ -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-EQceJMZZ.mjs";
2
+ import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, i as matrixSetupContract, m as listMatrixAccountIds, t as createMatrixSetupWizardProxy, v as resolveMatrixAccountAsync } from "./setup-core-Di6NtQ_J.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";
@@ -315,7 +315,7 @@ const matrixPluginBase = {
315
315
  order: 70,
316
316
  quickstartAllowFrom: true
317
317
  },
318
- setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-DQLF7huY.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
318
+ setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-DOLEjkg2.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
319
319
  setupContract: matrixSetupContract,
320
320
  capabilities: {
321
321
  chatTypes: [
@@ -332,6 +332,10 @@ const matrixPluginBase = {
332
332
  configPrefixes: ["channels.matrix"],
333
333
  noopPrefixes: ["messages.ackReactionScope"]
334
334
  },
335
+ lifecycle: { onAccountRemoved: async ({ accountId }) => {
336
+ const { clearMatrixCredentials } = await import("./credentials-udso1z0C.mjs");
337
+ await clearMatrixCredentials(process.env, accountId);
338
+ } },
335
339
  configSchema: MatrixChannelConfigSchema,
336
340
  config: {
337
341
  ...matrixConfigAdapter,
@@ -1,17 +1,17 @@
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
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-EQceJMZZ.mjs";
4
+ import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-Di6NtQ_J.mjs";
5
5
  import { n as resolveMatrixConfigPath } from "./config-paths-CnREYb1Y.mjs";
6
- import { d as resolveMatrixAuthContext } from "./client-C4Gibhzl.mjs";
7
- import { n as withResolvedActionClient } from "./client-C7pZ6gAl.mjs";
6
+ import { d as resolveMatrixAuthContext } from "./client-BEl7PU1_.mjs";
7
+ import { n as withResolvedActionClient } from "./client-Cxv-iMwp.mjs";
8
8
  import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-Dm_YMVFT.mjs";
9
- import { i as setMatrixConsoleLogging } from "./logger-CXQnpXCt.mjs";
10
- import { r as setMatrixSdkLogMode } from "./logging-BKV8TYQq.mjs";
11
- import { n as isOpenClawManagedMatrixDevice, r as summarizeMatrixDeviceHealth } from "./device-health-Be60VF1w.mjs";
12
- import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-BbfEg9Fx.mjs";
13
- import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-C8szCYmf.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-DUxuApWC.mjs";
9
+ import { i as setMatrixConsoleLogging } from "./logger-CuAzdD8Q.mjs";
10
+ import { r as setMatrixSdkLogMode } from "./logging-CoaEyRtA.mjs";
11
+ import { n as isOpenClawManagedMatrixDevice, r as summarizeMatrixDeviceHealth } from "./device-health-D6_ECUVe.mjs";
12
+ import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-DiXSVBki.mjs";
13
+ import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-BG9qMu0B.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-CuT5ZBDO.mjs";
15
15
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
16
16
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
17
17
  import path from "node:path";
@@ -405,7 +405,7 @@ async function addMatrixAccount(params) {
405
405
  backupVersion: null
406
406
  };
407
407
  if (accountConfig.encryption === true) {
408
- const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-DANlsW-o.mjs");
408
+ const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-BCbltIf_.mjs");
409
409
  verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
410
410
  previousCfg: cfg,
411
411
  cfg: updated,
@@ -595,7 +595,7 @@ function printDirectRoomInspection(result) {
595
595
  }
596
596
  async function inspectMatrixDirectRoom(params) {
597
597
  const cfg = getMatrixRuntime().config.current();
598
- const [{ withResolvedActionClient }, { inspectMatrixDirectRooms }] = await Promise.all([import("./client-C7pZ6gAl.mjs").then((n) => n.t), import("./direct-management-B3wYhx_M.mjs").then((n) => n.t)]);
598
+ const [{ withResolvedActionClient }, { inspectMatrixDirectRooms }] = await Promise.all([import("./client-Cxv-iMwp.mjs").then((n) => n.t), import("./direct-management-ZcjZgYEl.mjs").then((n) => n.t)]);
599
599
  return await withResolvedActionClient({
600
600
  accountId: params.accountId,
601
601
  cfg
@@ -613,7 +613,7 @@ async function repairMatrixDirectRoom(params) {
613
613
  cfg,
614
614
  accountId: params.accountId
615
615
  });
616
- const [{ withStartedActionClient }, { repairMatrixDirectRooms }] = await Promise.all([import("./client-C7pZ6gAl.mjs").then((n) => n.t), import("./direct-management-B3wYhx_M.mjs").then((n) => n.t)]);
616
+ const [{ withStartedActionClient }, { repairMatrixDirectRooms }] = await Promise.all([import("./client-Cxv-iMwp.mjs").then((n) => n.t), import("./direct-management-ZcjZgYEl.mjs").then((n) => n.t)]);
617
617
  return await withStartedActionClient({
618
618
  accountId: params.accountId,
619
619
  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-BLgMlO3I.mjs");
5
+ const { registerMatrixCli } = await import("./cli-C2XKMk1U.mjs");
6
6
  registerMatrixCli({ program });
7
7
  }, { descriptors: [{
8
8
  name: "matrix",
@@ -1,11 +1,11 @@
1
- import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
2
  import { n as getMatrixRuntimeLifecycle } from "./runtime-1kn1P6io.mjs";
3
- import { c as hasReadyMatrixEnvAuth, d as resolveScopedMatrixEnvConfig, f as resolveMatrixAccountStringValues, i as requiresExplicitMatrixDefaultAccount, l as resolveGlobalMatrixEnvConfig, s as resolveMatrixDefaultOrOnlyAccountId, u as resolveMatrixEnvAuthReadiness } from "./account-selection-Bs_jCAaG.mjs";
3
+ import { c as hasReadyMatrixEnvAuth, d as resolveScopedMatrixEnvConfig, f as resolveMatrixAccountStringValues, i as requiresExplicitMatrixDefaultAccount, l as resolveGlobalMatrixEnvConfig, s as resolveMatrixDefaultOrOnlyAccountId, u as resolveMatrixEnvAuthReadiness } from "./account-selection-CWsL5zIU.mjs";
4
4
  import { t as getMatrixScopedEnvVarNames } from "./env-vars-aEBngJPa.mjs";
5
5
  import { o as resolveMatrixBaseConfig, r as listNormalizedMatrixAccountIds, t as findMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
6
6
  import { t as resolveMatrixConfigFieldPath } from "./config-paths-CnREYb1Y.mjs";
7
7
  import { n as validateMatrixHomeserverUrl, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-CF6pG6eE.mjs";
8
- import { i as repairCurrentTokenStorageMetaDeviceId } from "./storage-l8V0XsGM.mjs";
8
+ import { i as repairCurrentTokenStorageMetaDeviceId } from "./storage-CN4dxdtV.mjs";
9
9
  import { createLazyRuntimeMethod, createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
10
10
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
11
11
  import { formatErrorMessage, toErrorObject, toStringifiedError } from "openclaw/plugin-sdk/error-runtime";
@@ -21,7 +21,7 @@ import { createDeferred } from "openclaw/plugin-sdk/extension-shared";
21
21
  import { resolveGlobalSingleton } from "openclaw/plugin-sdk/global-singleton";
22
22
  import { racePromiseWithAbortSignal, raceWithTimeout } from "openclaw/plugin-sdk/time-runtime";
23
23
  //#region extensions/matrix/src/matrix/client/auth-request.ts
24
- const loadMatrixAuthClientDeps = createLazyRuntimeModule(() => Promise.all([import("./sdk-ByU8So5S.mjs").then((n) => n.t), import("./logging-BKV8TYQq.mjs").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
24
+ const loadMatrixAuthClientDeps = createLazyRuntimeModule(() => Promise.all([import("./sdk-DNW03GqJ.mjs").then((n) => n.t), import("./logging-CoaEyRtA.mjs").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
25
25
  MatrixClient: sdkModule.MatrixClient,
26
26
  ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
27
27
  })));
@@ -90,8 +90,8 @@ async function fetchMatrixWhoamiIdentity(params) {
90
90
  }
91
91
  //#endregion
92
92
  //#region extensions/matrix/src/matrix/client/config.ts
93
- const loadMatrixCredentialsReadDeps = createLazyRuntimeModule(() => import("./credentials-read-D2ULV55A.mjs").then((n) => n.i));
94
- const loadMatrixCredentialsWriteRuntime = createLazyRuntimeModule(() => import("./credentials-CPnJZaZB.mjs"));
93
+ const loadMatrixCredentialsReadDeps = createLazyRuntimeModule(() => import("./credentials-read-Dj7Hj87M.mjs").then((n) => n.i));
94
+ const loadMatrixCredentialsWriteRuntime = createLazyRuntimeModule(() => import("./credentials-udso1z0C.mjs"));
95
95
  const loadMatrixSecretInputDeps = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/secret-input-runtime"));
96
96
  function credentialsMatchBackfillAuthLineage(params) {
97
97
  if (!params.stored) return true;
@@ -523,7 +523,7 @@ async function awaitMatrixStartupWithAbort(promise, abortSignal) {
523
523
  }
524
524
  //#endregion
525
525
  //#region extensions/matrix/src/matrix/client/shared.ts
526
- const loadMatrixCreateClientDeps = createLazyRuntimeModule(() => import("./create-client-BS8UYx6N.mjs"));
526
+ const loadMatrixCreateClientDeps = createLazyRuntimeModule(() => import("./create-client-CrY1E3hg.mjs"));
527
527
  const MATRIX_RETIREMENT_DRAIN_TIMEOUT_MS = 5e3;
528
528
  const sharedClientRegistry = resolveGlobalSingleton(Symbol.for("openclaw.matrix.shared-client-registry"), () => ({
529
529
  states: /* @__PURE__ */ new Map(),
@@ -855,7 +855,7 @@ var client_exports = /* @__PURE__ */ __exportAll({
855
855
  stopSharedClientForAccount: () => stopSharedClientForAccount,
856
856
  validateMatrixHomeserverUrl: () => validateMatrixHomeserverUrl
857
857
  });
858
- const loadMatrixClientRuntime = createLazyRuntimeModule(() => import("./create-client-BS8UYx6N.mjs"));
858
+ const loadMatrixClientRuntime = createLazyRuntimeModule(() => import("./create-client-CrY1E3hg.mjs"));
859
859
  const createMatrixClient = createLazyRuntimeMethod(loadMatrixClientRuntime, (runtime) => runtime.createMatrixClient);
860
860
  //#endregion
861
861
  export { isMatrixStartupAbortError as a, getMatrixMonitorTaskSignal as c, resolveMatrixAuthContext as d, createMatrixStartupAbortError as i, backfillMatrixAuthDeviceIdAfterStartup as l, acquireSharedMatrixClient as n, throwIfMatrixStartupAborted as o, awaitMatrixStartupWithAbort as r, createMatrixMonitorTaskRunner as s, client_exports as t, resolveMatrixAuth as u };
@@ -1,5 +1,5 @@
1
- import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
2
- import { C as resolveMatrixRoomId } from "./send-CFx1h7xE.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
+ import { C as resolveMatrixRoomId } from "./send-BGgwE5pV.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-kOIDV4z_.mjs"));
10
+ const loadMatrixActionClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-D1vLveT2.mjs"));
11
11
  async function withResolvedActionClient(opts, run, mode = "persist") {
12
12
  const { withResolvedRuntimeMatrixClient } = await loadMatrixActionClientRuntime();
13
13
  return await withResolvedRuntimeMatrixClient(opts, run, mode);
@@ -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-C4Gibhzl.mjs").then((n) => n.t));
4
+ const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => import("./client-BEl7PU1_.mjs").then((n) => n.t));
5
5
  async function ensureResolvedClientReadiness(params) {
6
6
  if (params.readiness === "started") {
7
7
  if (params.lease) await params.lease.start();
@@ -1,16 +1,16 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
2
  import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-CF6pG6eE.mjs";
3
- import { n as maybeMigrateLegacyStorage, o as resolveMatrixStoragePaths, s as writeStorageMeta } from "./storage-l8V0XsGM.mjs";
4
- import "./client-C4Gibhzl.mjs";
3
+ import { n as maybeMigrateLegacyStorage, o as resolveMatrixStoragePaths, s as writeStorageMeta } from "./storage-CN4dxdtV.mjs";
4
+ import "./client-BEl7PU1_.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-ByU8So5S.mjs").then((n) => n.t),
12
- import("./logging-BKV8TYQq.mjs").then((n) => n.n),
13
- import("./file-sync-store-CUH8EAJq.mjs")
11
+ import("./sdk-DNW03GqJ.mjs").then((n) => n.t),
12
+ import("./logging-CoaEyRtA.mjs").then((n) => n.n),
13
+ import("./file-sync-store-BxUPmUoJ.mjs")
14
14
  ]).then(([sdkModule, loggingModule, syncStoreModule]) => ({
15
15
  MatrixClient: sdkModule.MatrixClient,
16
16
  SqliteBackedMatrixSyncStore: syncStoreModule.SqliteBackedMatrixSyncStore,
@@ -1,4 +1,4 @@
1
- import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
2
  import { r as getOptionalMatrixRuntime } from "./runtime-1kn1P6io.mjs";
3
3
  import { i as normalizeMatrixStoredCredentials, r as matrixCredentialsStoreKey, t as MATRIX_CREDENTIALS_NAMESPACE } from "./credentials-state-B3cuUFwZ.mjs";
4
4
  import { i as resolveMatrixCredentialsDir, o as resolveMatrixCredentialsPath } from "./storage-paths-B51JM-pC.mjs";
@@ -1,7 +1,7 @@
1
1
  import { i as normalizeMatrixStoredCredentials, n as isMatrixCredentialRevocation, r as matrixCredentialsStoreKey } from "./credentials-state-B3cuUFwZ.mjs";
2
2
  import { i as resolveMatrixCredentialsDir, o as resolveMatrixCredentialsPath } from "./storage-paths-B51JM-pC.mjs";
3
- import { a as loadMatrixCredentials, n as clearMatrixCredentials, r as credentialsMatchConfig, s as openMatrixCredentialsAsyncStore } from "./credentials-read-D2ULV55A.mjs";
4
- import { c as updateMatrixKeyedState } from "./retired-state-DOCruzWd.mjs";
3
+ import { a as loadMatrixCredentials, n as clearMatrixCredentials, r as credentialsMatchConfig, s as openMatrixCredentialsAsyncStore } from "./credentials-read-Dj7Hj87M.mjs";
4
+ import { r as updateMatrixKeyedState } from "./sqlite-state-LByPx4Yp.mjs";
5
5
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
6
6
  //#region extensions/matrix/src/matrix/credentials.ts
7
7
  async function saveMatrixCredentials(credentials, env = process.env, accountId) {
@@ -1,7 +1,7 @@
1
1
  import { t as ensureMatrixCryptoRuntime } from "./deps-L_1bUAGL.mjs";
2
- import { r as noop, t as LogService } from "./logger-CXQnpXCt.mjs";
3
- import { a as isRepairableSecretStorageAccessError, i as trustMatrixOwnIdentity, n as isMatrixDeviceOwnerVerified, r as isMatrixDeviceVerifiedInCurrentClient } from "./sdk-ByU8So5S.mjs";
4
- import { persistIdbToDisk, resolveDefaultIdbSnapshotPath, restoreIdbFromDisk } from "./idb-persistence-BHTYPRe_.mjs";
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-DNW03GqJ.mjs";
4
+ import { persistIdbToDisk, resolveDefaultIdbSnapshotPath, restoreIdbFromDisk } from "./idb-persistence-C2TsCHY2.mjs";
5
5
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
6
6
  import { formatErrorMessage, toStringifiedError } from "openclaw/plugin-sdk/error-runtime";
7
7
  import { resolveGlobalSingleton } from "openclaw/plugin-sdk/global-singleton";
@@ -1,5 +1,6 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
- import { c as updateMatrixKeyedState, d as writeMatrixStateChunks, l as chunkMatrixStateJson, o as resolveMatrixSqliteStateEnv, u as readMatrixStateChunks } from "./retired-state-DOCruzWd.mjs";
2
+ import { c as writeMatrixStateChunks, o as chunkMatrixStateJson, s as readMatrixStateChunks } from "./retired-state-C4UnLIg4.mjs";
3
+ import { r as updateMatrixKeyedState, t as resolveMatrixSqliteStateEnv } from "./sqlite-state-LByPx4Yp.mjs";
3
4
  import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
4
5
  import { createHash, randomUUID } from "node:crypto";
5
6
  import path from "node:path";
@@ -1,5 +1,5 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
- import { i as readMatrixIdbSnapshotOwnerGeneration, s as sealMatrixIdbSnapshotOwnerGeneration } from "./crypto-state-store-D4wrCvFs.mjs";
2
+ import { i as readMatrixIdbSnapshotOwnerGeneration, s as sealMatrixIdbSnapshotOwnerGeneration } from "./crypto-state-store-DclM-fO5.mjs";
3
3
  import { randomUUID } from "node:crypto";
4
4
  import path from "node:path";
5
5
  import { constants } from "node:fs";
@@ -1,8 +1,8 @@
1
- import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
2
  import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
3
- import { r as readMatrixIdbSnapshotJson, t as MATRIX_IDB_SNAPSHOT_FILENAME } from "./crypto-state-store-D4wrCvFs.mjs";
3
+ import { r as readMatrixIdbSnapshotJson, t as MATRIX_IDB_SNAPSHOT_FILENAME } from "./crypto-state-store-DclM-fO5.mjs";
4
4
  import { t as walkMatrixStateFiles } from "./state-layout-walk-BQMgMykU.mjs";
5
- import { i as withMatrixCryptoStoreRecoveryLock, n as isMatrixCryptoStoreUnsafe, r as sealMatrixCryptoStoreRecovery } from "./crypto-store-ownership-Z_Y5WRKr.mjs";
5
+ import { i as withMatrixCryptoStoreRecoveryLock, n as isMatrixCryptoStoreUnsafe, r as sealMatrixCryptoStoreRecovery } from "./crypto-store-ownership-Dr-T40Rp.mjs";
6
6
  import path from "node:path";
7
7
  import fs from "node:fs/promises";
8
8
  import { FILE_LOCK_TIMEOUT_ERROR_CODE } from "openclaw/plugin-sdk/file-lock";
@@ -41,7 +41,7 @@ async function recoverMatrixCryptoUnsafeState(params) {
41
41
  }
42
42
  const snapshot = await readMatrixIdbSnapshotJson(params.storageRootDir, getMatrixRuntime().state);
43
43
  if (!snapshot) throw new Error("Matrix crypto SQLite snapshot is absent or invalid; refusal remains in place.");
44
- const { validateMatrixIdbSnapshotJson } = await import("./idb-persistence-BHTYPRe_.mjs");
44
+ const { validateMatrixIdbSnapshotJson } = await import("./idb-persistence-C2TsCHY2.mjs");
45
45
  try {
46
46
  await validateMatrixIdbSnapshotJson(snapshot);
47
47
  } catch (error) {
@@ -1,4 +1,4 @@
1
- import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
2
  //#region extensions/matrix/src/matrix/device-health.ts
3
3
  var device_health_exports = /* @__PURE__ */ __exportAll({
4
4
  isOpenClawManagedMatrixDevice: () => isOpenClawManagedMatrixDevice,
@@ -1,4 +1,4 @@
1
- import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
2
  import { n as isMatrixQualifiedUserId } from "./target-ids-HhcaKX1n.mjs";
3
3
  import { a as MATRIX_REACTION_EVENT_TYPE, i as MATRIX_ANNOTATION_RELATION_TYPE } from "./send-currentness-C2rMVVIQ.mjs";
4
4
  import { asOptionalRecord, normalizeNullableString, normalizeOptionalString, normalizeTrimmedStringList, normalizeUniqueTrimmedStringList } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -1,6 +1,6 @@
1
- import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
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 { u as resolveMatrixAuth } from "./client-C4Gibhzl.mjs";
3
+ import { u as resolveMatrixAuth } from "./client-BEl7PU1_.mjs";
4
4
  import { t as MatrixAuthedHttpClient } from "./http-client-ByR4STVQ.mjs";
5
5
  import { isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  //#region extensions/matrix/src/directory-live.ts
@@ -0,0 +1,38 @@
1
+ import { t as runtime_doctor_migrations_exports } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
+ import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
3
+ //#region extensions/matrix/src/doctor-contract.ts
4
+ function parseMatrixStreamingMode(value) {
5
+ if (typeof value !== "string") return null;
6
+ const normalized = value.trim().toLowerCase();
7
+ return normalized === "partial" || normalized === "quiet" || normalized === "progress" || normalized === "off" ? normalized : null;
8
+ }
9
+ const streamingAliasMigration = (0, runtime_doctor_migrations_exports.defineChannelAliasMigration)({
10
+ channelId: "matrix",
11
+ streaming: {
12
+ defaultMode: "off",
13
+ resolveMode: (entry) => {
14
+ const streaming = isRecord(entry.streaming) ? entry.streaming : null;
15
+ const parsed = parseMatrixStreamingMode(streaming ? streaming.mode : entry.streaming);
16
+ if (parsed) return parsed;
17
+ return entry.streaming === true ? "partial" : "off";
18
+ }
19
+ },
20
+ accountStreamingReplacesRoot: true
21
+ });
22
+ const legacyConfigRules = streamingAliasMigration.legacyConfigRules;
23
+ function normalizeCompatibilityConfig({ cfg }) {
24
+ const changes = [];
25
+ const withoutJunkStreamMode = (0, runtime_doctor_migrations_exports.stripRetiredChannelKeys)({
26
+ cfg,
27
+ channelId: "matrix",
28
+ keys: /* @__PURE__ */ new Set(["streamMode"]),
29
+ scope: "root-and-accounts",
30
+ onRemove: ({ key, pathPrefix }) => changes.push(`Removed ${pathPrefix}.${key} (never read by the Matrix runtime).`)
31
+ }).config;
32
+ return streamingAliasMigration.normalizeChannelConfig({
33
+ cfg: withoutJunkStreamMode,
34
+ changes
35
+ });
36
+ }
37
+ //#endregion
38
+ export { normalizeCompatibilityConfig as n, legacyConfigRules as t };
@@ -1,5 +1,5 @@
1
- import { _ as MsgType } from "./direct-management-B3wYhx_M.mjs";
2
- import { a as sendSingleTextMessageMatrix, f as prepareMatrixSingleText, t as editMessageMatrix } from "./send-CFx1h7xE.mjs";
1
+ import { _ as MsgType } from "./direct-management-ZcjZgYEl.mjs";
2
+ import { a as sendSingleTextMessageMatrix, f as prepareMatrixSingleText, t as editMessageMatrix } from "./send-BGgwE5pV.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,4 +1,4 @@
1
- import { s as resolveMatrixDefaultOrOnlyAccountId } from "./account-selection-Bs_jCAaG.mjs";
1
+ import { s as resolveMatrixDefaultOrOnlyAccountId } from "./account-selection-CWsL5zIU.mjs";
2
2
  import { t as resolveMatrixConfigFieldPath } from "./config-paths-CnREYb1Y.mjs";
3
3
  import { normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
4
4
  //#region extensions/matrix/src/matrix/encryption-guidance.ts
@@ -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-EQceJMZZ.mjs";
3
- import { i as normalizeMatrixUserId } from "./channel.setup-ClA7V_Ba.mjs";
2
+ import { g as resolveDefaultMatrixAccountId, v as resolveMatrixAccountAsync } from "./setup-core-Di6NtQ_J.mjs";
3
+ import { i as normalizeMatrixUserId } from "./channel.setup-p6oll48W.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 { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
- import { t as claimCurrentTokenStorageState } from "./storage-l8V0XsGM.mjs";
3
- import { a as readPersistedStoreFromStore, r as openMatrixSyncCacheStoreOptions, s as writeMatrixSyncCacheStateToStore, t as deleteMatrixSyncCacheStateFromStore } from "./sync-cache-state-Cnm4TCEI.mjs";
4
- import { t as LogService } from "./logger-CXQnpXCt.mjs";
2
+ import { t as claimCurrentTokenStorageState } from "./storage-CN4dxdtV.mjs";
3
+ import { a as readPersistedStoreFromStore, r as openMatrixSyncCacheStoreOptions, s as writeMatrixSyncCacheStateToStore, t as deleteMatrixSyncCacheStateFromStore } from "./sync-cache-state-L1kwjhjj.mjs";
4
+ import { t as LogService } from "./logger-CuAzdD8Q.mjs";
5
5
  import { MemoryStore, SyncAccumulator } from "matrix-js-sdk/lib/matrix.js";
6
6
  import { createAsyncLock } from "openclaw/plugin-sdk/async-lock-runtime";
7
7
  //#region extensions/matrix/src/matrix/client/file-sync-store.ts
@@ -1,7 +1,7 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
- import { n as RETIRED_MATRIX_STATE_REMEDIATION } from "./retired-state-DOCruzWd.mjs";
3
- import { c as writeMatrixIdbSnapshotJson, r as readMatrixIdbSnapshotJson } from "./crypto-state-store-D4wrCvFs.mjs";
4
- import { t as LogService } from "./logger-CXQnpXCt.mjs";
2
+ import { n as RETIRED_MATRIX_STATE_REMEDIATION } from "./retired-state-C4UnLIg4.mjs";
3
+ import { c as writeMatrixIdbSnapshotJson, r as readMatrixIdbSnapshotJson } from "./crypto-state-store-DclM-fO5.mjs";
4
+ import { t as LogService } from "./logger-CuAzdD8Q.mjs";
5
5
  import { n as MATRIX_IDB_SNAPSHOT_LOCK_OPTIONS } from "./idb-persistence-lock-Bh3ZLIsE.mjs";
6
6
  import { toErrorObject } from "openclaw/plugin-sdk/error-runtime";
7
7
  import { asOptionalObjectRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -1,4 +1,4 @@
1
- import { t as LogService } from "./logger-CXQnpXCt.mjs";
1
+ import { t as LogService } from "./logger-CuAzdD8Q.mjs";
2
2
  import { createChannelReplayGuard, resolvePersistentDedupePluginStateNamespace } from "openclaw/plugin-sdk/persistent-dedupe";
3
3
  //#region extensions/matrix/src/matrix/monitor/inbound-dedupe.ts
4
4
  const MATRIX_INBOUND_DEDUPE_PLUGIN_ID = "matrix";
@@ -1,4 +1,4 @@
1
- import { t as LogService } from "./logger-CXQnpXCt.mjs";
1
+ import { t as LogService } from "./logger-CuAzdD8Q.mjs";
2
2
  import { EventType, MatrixError, MatrixEvent } from "matrix-js-sdk/lib/matrix.js";
3
3
  import { ConnectionError, HTTPError, Method } from "matrix-js-sdk/lib/http-api/index.js";
4
4
  import { RustCrypto } from "matrix-js-sdk/lib/rust-crypto/rust-crypto.js";
@@ -21,7 +21,7 @@ function resolveRuntimeLogger(module) {
21
21
  }
22
22
  function formatMessage(module, messageOrObject) {
23
23
  if (messageOrObject.length === 0) return `[${module}]`;
24
- return redactSensitiveText(`[${module}] ${format(...messageOrObject)}`);
24
+ return `[${module}] ${format(...messageOrObject)}`;
25
25
  }
26
26
  function emitMatrixLog(level, module, messageOrObject) {
27
27
  const runtimeLogger = resolveRuntimeLogger(module);
@@ -29,7 +29,7 @@ function emitMatrixLog(level, module, messageOrObject) {
29
29
  if (runtimeLogger) {
30
30
  if (level === "debug") runtimeLogger.debug?.(message);
31
31
  else runtimeLogger[level](message);
32
- } else console[level](message);
32
+ } else console[level](redactSensitiveText(message));
33
33
  }
34
34
  function emitServiceLog(level, module, ...messageOrObject) {
35
35
  if (serviceQuiet) return;
@@ -1,5 +1,5 @@
1
- import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
2
- import { a as setMatrixLogServiceQuiet, n as emitMatrixLog } from "./logger-CXQnpXCt.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
+ import { a as setMatrixLogServiceQuiet, n as emitMatrixLog } from "./logger-CuAzdD8Q.mjs";
3
3
  import { logger } from "matrix-js-sdk/lib/logger.js";
4
4
  //#region extensions/matrix/src/matrix/client/logging.ts
5
5
  var logging_exports = /* @__PURE__ */ __exportAll({
@@ -27,20 +27,26 @@ function setMatrixSdkLogMode(mode) {
27
27
  applyMatrixSdkLogger();
28
28
  }
29
29
  function applyMatrixSdkLogger() {
30
- setMatrixJsSdkRootLoggerLevel(matrixSdkLogMode === "quiet" ? "silent" : "debug");
30
+ configureMatrixJsSdkRootLogger();
31
31
  setMatrixLogServiceQuiet(matrixSdkLogMode === "quiet");
32
32
  }
33
- function setMatrixJsSdkRootLoggerLevel(level) {
33
+ function configureMatrixJsSdkRootLogger() {
34
34
  const logger$1 = logger;
35
- matrixJsSdkRootLoggerSnapshot ??= {
36
- level: logger$1.getLevel?.(),
37
- methodFactory: logger$1.methodFactory
38
- };
39
- if (level === "silent") {
40
- logger$1.methodFactory = () => () => void 0;
41
- logger$1.setLevel?.("silent", false);
42
- logger$1.rebuild?.();
43
- return;
35
+ if (!matrixJsSdkRootLoggerSnapshot) {
36
+ const methodFactory = logger$1.methodFactory;
37
+ matrixJsSdkRootLoggerSnapshot = {
38
+ level: logger$1.getLevel?.(),
39
+ methodFactory(methodName, logLevel, loggerName) {
40
+ const log = methodFactory.call(this, methodName, logLevel, loggerName);
41
+ return function(...args) {
42
+ if (matrixSdkLogMode === "quiet") return;
43
+ const label = args[0];
44
+ if (methodName === "info" && typeof label === "string" && label.startsWith("Storing user profile ")) return;
45
+ if (methodName === "trace" && (label === "membership event with membership undefined (forwardLooking: true)!" || label === "membership event with membership undefined (forwardLooking: false)!")) log.call(this, "membership event with membership undefined");
46
+ else log.apply(this, args);
47
+ };
48
+ }
49
+ };
44
50
  }
45
51
  logger$1.methodFactory = matrixJsSdkRootLoggerSnapshot.methodFactory;
46
52
  const previousLevel = matrixJsSdkRootLoggerSnapshot.level;
@@ -50,7 +56,7 @@ function setMatrixJsSdkRootLoggerLevel(level) {
50
56
  function createMatrixJsSdkClientLogger(prefix = "matrix") {
51
57
  const log = (method, ...messageOrObject) => {
52
58
  if (matrixSdkLogMode === "quiet") return;
53
- emitMatrixLog(method, prefix, messageOrObject);
59
+ emitMatrixLog(method, prefix, messageOrObject[0] === "Cancelling verification request with params:" ? ["Cancelling verification request"] : messageOrObject);
54
60
  };
55
61
  return {
56
62
  trace: (...messageOrObject) => log("debug", ...messageOrObject),
@@ -1,6 +1,6 @@
1
1
  import { a as MATRIX_REACTION_EVENT_TYPE } from "./send-currentness-C2rMVVIQ.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-CFx1h7xE.mjs";
3
- import { r as withResolvedRoomAction } from "./client-C7pZ6gAl.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-BGgwE5pV.mjs";
3
+ import { r as withResolvedRoomAction } from "./client-Cxv-iMwp.mjs";
4
4
  import { n as isMatrixNotFoundError } from "./errors-Bw4EHwKX.mjs";
5
5
  import { asNullableObjectRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  //#region extensions/matrix/src/matrix/poll-summary.ts