@openclaw/matrix 2026.10.10-beta.4 → 2026.10.10

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 (100) hide show
  1. package/dist/.setup/{account-config-CRsKoMqJ.mjs → account-config-CVM2a28p.mjs} +1 -2
  2. package/dist/.setup/{account-selection-Bs_jCAaG.mjs → account-selection-Co94mKNj.mjs} +5 -8
  3. package/dist/.setup/{approval-handler.runtime-CsqMdj7h.mjs → approval-handler.runtime-DtNvJpfB.mjs} +8 -9
  4. package/dist/.setup/{approval-reactions-D2pEUrFS.mjs → approval-reactions-DMDBJos0.mjs} +2 -3
  5. package/dist/.setup/{backup-health-Dm_YMVFT.mjs → backup-health-BxH69np2.mjs} +1 -2
  6. package/dist/.setup/{channel-Dw4_imdd.mjs → channel-CNjJyBS_.mjs} +29 -43
  7. package/dist/.setup/{channel.runtime-2EEtIlyu.mjs → channel.runtime-DaGbm27q.mjs} +8 -10
  8. package/dist/.setup/{channel.setup-Be8TYKMA.mjs → channel.setup-IjRB0ymg.mjs} +7 -11
  9. package/dist/.setup/{cli-CEmWh7wh.mjs → cli-CuEJNM3c.mjs} +28 -39
  10. package/dist/.setup/{cli-metadata-CBLGwJT6.mjs → cli-metadata-rWmD_rzx.mjs} +3 -5
  11. package/dist/.setup/{client-C4Gibhzl.mjs → client-7eyTX0cu.mjs} +19 -25
  12. package/dist/.setup/{client-BKiiI29H.mjs → client-CV0MkCZG.mjs} +4 -5
  13. package/dist/.setup/{client-bootstrap-kOIDV4z_.mjs → client-bootstrap-BjcmTmyR.mjs} +2 -3
  14. package/dist/.setup/{client-support-D-xHScuo.mjs → client-support-CFofPPPm.mjs} +3 -5
  15. package/dist/.setup/{config-paths-CnREYb1Y.mjs → config-paths-DBpHxDyc.mjs} +1 -2
  16. package/dist/.setup/{create-client-BS8UYx6N.mjs → create-client-C4Lnqs2C.mjs} +8 -9
  17. package/dist/.setup/{credentials-CPnJZaZB.mjs → credentials-B0vpXvcB.mjs} +5 -6
  18. package/dist/.setup/{credentials-read-D2ULV55A.mjs → credentials-read-WCQSEvI8.mjs} +5 -6
  19. package/dist/.setup/{credentials-state-B3cuUFwZ.mjs → credentials-state-jxq29yQw.mjs} +1 -2
  20. package/dist/.setup/{crypto-node.runtime-6Aj_ltHQ.mjs → crypto-node.runtime-E_hqXGxm.mjs} +1 -2
  21. package/dist/.setup/{crypto-runtime-D8yY7kjD.mjs → crypto-runtime-Crp1is7m.mjs} +12 -19
  22. package/dist/.setup/{crypto-state-store-D4wrCvFs.mjs → crypto-state-store-CM57gchf.mjs} +3 -4
  23. package/dist/.setup/{crypto-store-ownership-Z_Y5WRKr.mjs → crypto-store-ownership-Bratn-Np.mjs} +3 -4
  24. package/dist/.setup/{crypto-unsafe-state-doctor-C8szCYmf.mjs → crypto-unsafe-state-doctor-Brv4bIyx.mjs} +7 -8
  25. package/dist/.setup/{deps-L_1bUAGL.mjs → deps-O7rEnklr.mjs} +1 -2
  26. package/dist/.setup/{device-health-Be60VF1w.mjs → device-health-DnKAXW1v.mjs} +2 -3
  27. package/dist/.setup/{direct-management-B3wYhx_M.mjs → direct-management-DDaWVbQI.mjs} +7 -11
  28. package/dist/.setup/{directory-live-BpSz-FQB.mjs → directory-live-B-csizuK.mjs} +5 -6
  29. package/dist/.setup/{doctor-contract-CsTNmbMa.mjs → doctor-contract-DybEjJcd.mjs} +6 -12
  30. package/dist/.setup/{draft-stream-DYf0th1n.mjs → draft-stream-dmhBHufd.mjs} +4 -4
  31. package/dist/.setup/{encryption-guidance-D5_IsDIy.mjs → encryption-guidance-Cn6-Tlx0.mjs} +3 -4
  32. package/dist/.setup/{env-vars-aEBngJPa.mjs → env-vars-Bh1iOXJ1.mjs} +1 -2
  33. package/dist/.setup/{errors-Bw4EHwKX.mjs → errors-CL3YJV8U.mjs} +1 -2
  34. package/dist/.setup/{event-helpers-CxNgMQqH.mjs → event-helpers-DDUjVVf7.mjs} +1 -2
  35. package/dist/.setup/{exec-approvals-DaM-5OA5.mjs → exec-approvals-D7vv3AZS.mjs} +6 -9
  36. package/dist/.setup/{file-sync-store-CUH8EAJq.mjs → file-sync-store-q5KCV2Lp.mjs} +5 -6
  37. package/dist/.setup/{http-client-ByR4STVQ.mjs → http-client-CxTmU1kT.mjs} +4 -7
  38. package/dist/.setup/{idb-persistence-BHTYPRe_.mjs → idb-persistence-BF0MZglD.mjs} +6 -7
  39. package/dist/.setup/{idb-persistence-lock-Bh3ZLIsE.mjs → idb-persistence-lock-CH2K6d_3.mjs} +1 -2
  40. package/dist/.setup/{inbound-dedupe-C-EBGY0B.mjs → inbound-dedupe-CZnOq0ja.mjs} +2 -3
  41. package/dist/.setup/{joined-room-encryption-BAD70N5n.mjs → joined-room-encryption-Dl7Sb9FF.mjs} +2 -3
  42. package/dist/.setup/{logger-CXQnpXCt.mjs → logger-BX5kXvh1.mjs} +2 -3
  43. package/dist/.setup/{logging-BKV8TYQq.mjs → logging-BLcaOSRD.mjs} +3 -4
  44. package/dist/.setup/{messages-_XHVg3do.mjs → messages-BiHM0DM3.mjs} +9 -14
  45. package/dist/.setup/{monitor-DRUSJ_Ev.mjs → monitor-CPwDgRFY.mjs} +88 -96
  46. package/dist/.setup/{onboarding-CK9Ksgio.mjs → onboarding-DiVtpjNu.mjs} +10 -11
  47. package/dist/.setup/{outbound-D5Z_4FBg.mjs → outbound-DwP97VpQ.mjs} +3 -4
  48. package/dist/.setup/{profile-update--Pf3jCXD.mjs → profile-update-DnNA9mEa.mjs} +6 -8
  49. package/dist/.setup/{reaction-events-BG9spedG.mjs → reaction-events-ClY9h_FC.mjs} +8 -9
  50. package/dist/.setup/{resolve-targets-BJ5sIKeM.mjs → resolve-targets-B8PAwHVS.mjs} +4 -5
  51. package/dist/.setup/{retired-state-DOCruzWd.mjs → retired-state-vIr2IB90.mjs} +4 -7
  52. package/dist/.setup/{room-info-BE7bbX_c.mjs → room-info-T_PR_liR.mjs} +6 -8
  53. package/dist/.setup/{runtime-1kn1P6io.mjs → runtime-Ck8TjD7L.mjs} +1 -2
  54. package/dist/.setup/{runtime-setter-api-i2MOXoT3.mjs → runtime-setter-api-CpwhcBQK.mjs} +1 -1
  55. package/dist/.setup/{sdk-ByU8So5S.mjs → sdk-Cj3ggJHG.mjs} +32 -47
  56. package/dist/.setup/{secret-contract-DxyzKSzf.mjs → secret-contract-AKnr45nw.mjs} +2 -3
  57. package/dist/.setup/{secret-contract-api-Dukgvike.mjs → secret-contract-api-DMSwMIxd.mjs} +1 -1
  58. package/dist/.setup/{send-BprM-Wmx.mjs → send-C1qeMQAy.mjs} +25 -42
  59. package/dist/.setup/{send-currentness-C2rMVVIQ.mjs → send-currentness-CAUVR-f3.mjs} +2 -4
  60. package/dist/.setup/{setup-bootstrap-DmznRqYe.mjs → setup-bootstrap-DDhwWvDs.mjs} +4 -5
  61. package/dist/.setup/{setup-core-DcCk1_Tv.mjs → setup-core-D2r4BivQ.mjs} +13 -20
  62. package/dist/.setup/setup-plugin-api-SO1hdrsT.mjs +2 -0
  63. package/dist/.setup/{startup-verification-UU8DUvi4.mjs → startup-verification-B3LEbW33.mjs} +4 -5
  64. package/dist/.setup/{state-layout-walk-BQMgMykU.mjs → state-layout-walk-BqCZTHpp.mjs} +2 -3
  65. package/dist/.setup/{storage-l8V0XsGM.mjs → storage-CxN4jqKI.mjs} +7 -9
  66. package/dist/.setup/{storage-paths-B51JM-pC.mjs → storage-paths-e_Vq6cvw.mjs} +1 -2
  67. package/dist/.setup/{subagent-hooks-CSY4iwa_.mjs → subagent-hooks-CT-rdJmh.mjs} +2 -3
  68. package/dist/.setup/{sync-cache-state-Cnm4TCEI.mjs → sync-cache-state-qYrd2EEh.mjs} +3 -4
  69. package/dist/.setup/{target-ids-HhcaKX1n.mjs → target-ids-DltG_ZHJ.mjs} +1 -2
  70. package/dist/.setup/{thread-binding-api-BvuaKpd0.mjs → thread-binding-api-OtSciHmZ.mjs} +2 -3
  71. package/dist/.setup/{thread-bindings-rrwQAS6R.mjs → thread-bindings-D2ZR6mEZ.mjs} +7 -9
  72. package/dist/.setup/{thread-bindings-shared-CPjUA0Ib.mjs → thread-bindings-shared-FMu_szTm.mjs} +1 -2
  73. package/dist/.setup/{tool-actions-DBrk6Yei.mjs → tool-actions-CdKa0DC4.mjs} +18 -23
  74. package/dist/.setup/{url-validation-CF6pG6eE.mjs → url-validation-C77p4qT9.mjs} +1 -2
  75. package/dist/.setup/{verification--qUbmRd-.mjs → verification-jP3tm-xD.mjs} +4 -5
  76. package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +1 -1
  77. package/dist/api.js +8 -8
  78. package/dist/auth-presence.js +2 -3
  79. package/dist/channel-plugin-api.js +1 -1
  80. package/dist/cli-metadata.js +1 -1
  81. package/dist/contract-api.js +2 -2
  82. package/dist/doctor-contract-api.js +13 -16
  83. package/dist/helper-api.js +3 -3
  84. package/dist/index.js +3 -4
  85. package/dist/plugin-entry.handlers.runtime.js +3 -4
  86. package/dist/runtime-api.js +7 -8
  87. package/dist/runtime-setter-api.js +1 -1
  88. package/dist/secret-contract-api.js +1 -1
  89. package/dist/session-binding-contract-api.js +2 -2
  90. package/dist/setup-entry.js +4 -5
  91. package/dist/setup-plugin-api.js +1 -1
  92. package/dist/subagent-hooks-api.js +2 -3
  93. package/dist/thread-binding-api.js +1 -1
  94. package/dist/thread-bindings-runtime.js +1 -1
  95. package/node_modules/matrix-js-sdk/lib/http-api/utils.js +3 -1
  96. package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js +7 -1
  97. package/node_modules/matrix-js-sdk/src/http-api/utils.ts +5 -1
  98. package/node_modules/matrix-js-sdk/src/rust-crypto/rust-crypto.ts +7 -1
  99. package/package.json +4 -4
  100. package/dist/.setup/setup-plugin-api-BU6UGksW.mjs +0 -2
@@ -1,7 +1,7 @@
1
1
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
2
2
  import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/secret-input";
3
3
  import { listConfiguredAccountIds, resolveMergedAccountConfig, resolveNormalizedAccountEntry } from "openclaw/plugin-sdk/account-resolution-runtime";
4
- //#region extensions/matrix/src/matrix/account-config.ts
4
+ // extensions/matrix/src/matrix/account-config.ts
5
5
  function resolveMatrixBaseConfig(cfg) {
6
6
  return cfg.channels?.matrix ?? {};
7
7
  }
@@ -93,5 +93,4 @@ function resolveMatrixAccountAllowlistConfig(params) {
93
93
  groupAllowFrom
94
94
  };
95
95
  }
96
- //#endregion
97
96
  export { resolveMatrixAccountConfig as a, resolveMatrixAccountAllowlistConfig as i, hasExplicitMatrixAccountConfig as n, resolveMatrixBaseConfig as o, listNormalizedMatrixAccountIds as r, findMatrixAccountConfig as t };
@@ -1,10 +1,10 @@
1
- import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
2
- import { n as listMatrixEnvAccountIds, t as getMatrixScopedEnvVarNames } from "./env-vars-aEBngJPa.mjs";
1
+ import { i as __exportAll } from "./doctor-contract-DybEjJcd.mjs";
2
+ import { n as listMatrixEnvAccountIds, t as getMatrixScopedEnvVarNames } from "./env-vars-Bh1iOXJ1.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";
5
5
  import { listCombinedAccountIds, listConfiguredAccountIds, resolveListedDefaultAccountId, resolveNormalizedAccountEntry } from "openclaw/plugin-sdk/account-core";
6
6
  import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/secret-input";
7
- //#region extensions/matrix/src/auth-precedence.ts
7
+ // extensions/matrix/src/auth-precedence.ts
8
8
  const MATRIX_DEFAULT_ACCOUNT_AUTH_ONLY_FIELDS = /* @__PURE__ */ new Set([
9
9
  "userId",
10
10
  "accessToken",
@@ -28,8 +28,7 @@ function resolveMatrixAccountStringValues(params) {
28
28
  for (const field of fields) resolved[field] = resolveMatrixStringSourceValue(params.account?.[field]) || resolveMatrixStringSourceValue(params.scopedEnv?.[field]) || (isDefaultAccount || !MATRIX_DEFAULT_ACCOUNT_AUTH_ONLY_FIELDS.has(field) ? resolveMatrixStringSourceValue(params.channel?.[field]) || resolveMatrixStringSourceValue(params.globalEnv?.[field]) : "");
29
29
  return resolved;
30
30
  }
31
- //#endregion
32
- //#region extensions/matrix/src/matrix/client/env-auth.ts
31
+ // extensions/matrix/src/matrix/client/env-auth.ts
33
32
  function cleanEnv(value) {
34
33
  return normalizeOptionalString(value) ?? "";
35
34
  }
@@ -86,8 +85,7 @@ function resolveMatrixEnvAuthReadiness(accountId, env = process.env) {
86
85
  missingMessage: `Set Matrix env vars for the default account (for example MATRIX_HOMESERVER + MATRIX_ACCESS_TOKEN, MATRIX_USER_ID + MATRIX_PASSWORD, or ${defaultKeys.homeserver} + ${defaultKeys.accessToken}).`
87
86
  };
88
87
  }
89
- //#endregion
90
- //#region extensions/matrix/src/account-selection.ts
88
+ // extensions/matrix/src/account-selection.ts
91
89
  var account_selection_exports = /* @__PURE__ */ __exportAll({
92
90
  findMatrixAccountEntry: () => findMatrixAccountEntry,
93
91
  hasImplicitMatrixAccountConfig: () => hasImplicitMatrixAccountConfig,
@@ -190,5 +188,4 @@ function requiresExplicitMatrixDefaultAccount(cfg, env = process.env) {
190
188
  const configuredDefault = normalizeOptionalAccountId(typeof channel.defaultAccount === "string" ? channel.defaultAccount : void 0);
191
189
  return !(configuredDefault && configuredAccountIds.includes(configuredDefault));
192
190
  }
193
- //#endregion
194
191
  export { resolveConfiguredMatrixAccountIds as a, hasReadyMatrixEnvAuth as c, resolveScopedMatrixEnvConfig as d, resolveMatrixAccountStringValues as f, requiresExplicitMatrixDefaultAccount as i, resolveGlobalMatrixEnvConfig as l, findMatrixAccountEntry as n, resolveMatrixChannelConfig as o, hasImplicitMatrixAccountConfig as r, resolveMatrixDefaultOrOnlyAccountId as s, account_selection_exports as t, resolveMatrixEnvAuthReadiness as u };
@@ -1,10 +1,10 @@
1
- import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
2
- import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-DaM-5OA5.mjs";
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-BprM-Wmx.mjs";
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-_XHVg3do.mjs";
1
+ import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
2
+ import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-D7vv3AZS.mjs";
3
+ import { s as resolveMatrixTargetIdentity } from "./target-ids-DltG_ZHJ.mjs";
4
+ import { a as repairMatrixDirectRooms } from "./direct-management-DDaWVbQI.mjs";
5
+ import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-C1qeMQAy.mjs";
6
+ import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-DMDBJos0.mjs";
7
+ import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-BiHM0DM3.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";
@@ -13,7 +13,7 @@ import { retryAsync } from "openclaw/plugin-sdk/retry-runtime";
13
13
  import { createChannelApprovalNativeRuntimeAdapterAsync } from "openclaw/plugin-sdk/approval-handler-runtime";
14
14
  import { buildExecApprovalPendingReplyPayload, buildPluginApprovalPendingReplyPayload } from "openclaw/plugin-sdk/approval-reply-runtime";
15
15
  import { buildApprovalPendingReplyPayload, buildPluginApprovalResolvedReplyPayload, formatChannelApprovalResolvedLabel } from "openclaw/plugin-sdk/approval-runtime";
16
- //#region extensions/matrix/src/approval-handler.runtime.ts
16
+ // extensions/matrix/src/approval-handler.runtime.ts
17
17
  const MATRIX_APPROVAL_METADATA_KEY = "com.openclaw.approval";
18
18
  const MATRIX_APPROVAL_DELIVERY_ATTEMPTS = 3;
19
19
  const MATRIX_APPROVAL_DELIVERY_RETRY_DELAY_MS = 250;
@@ -376,5 +376,4 @@ const matrixApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapterAsy
376
376
  }
377
377
  }
378
378
  });
379
- //#endregion
380
379
  export { matrixApprovalNativeRuntime };
@@ -1,9 +1,9 @@
1
- import { r as getOptionalMatrixRuntime } from "./runtime-1kn1P6io.mjs";
1
+ import { r as getOptionalMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
2
2
  import { normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/routing";
3
3
  import { createApprovalReactionTargetStore } from "openclaw/plugin-sdk/approval-reaction-runtime";
4
4
  import { pruneMapToMaxSize } from "openclaw/plugin-sdk/collection-runtime";
5
5
  import { createPluginStateErrorReporter } from "openclaw/plugin-sdk/plugin-state-runtime";
6
- //#region extensions/matrix/src/approval-reactions.ts
6
+ // extensions/matrix/src/approval-reactions.ts
7
7
  const MATRIX_APPROVAL_REACTION_BINDINGS = [
8
8
  {
9
9
  decision: "allow-once",
@@ -178,5 +178,4 @@ async function resolveMatrixApprovalReactionTargetWithPersistence(params) {
178
178
  reactionKey: params.reactionKey
179
179
  });
180
180
  }
181
- //#endregion
182
181
  export { unregisterMatrixApprovalReactionTarget as a, resolveMatrixApprovalReactionTargetWithPersistence as i, listMatrixApprovalReactionBindings as n, unregisterMatrixApprovalReactionTargetsForApproval as o, registerMatrixApprovalReactionTarget as r, buildMatrixApprovalReactionHint as t };
@@ -1,4 +1,4 @@
1
- //#region extensions/matrix/src/matrix/backup-health.ts
1
+ // extensions/matrix/src/matrix/backup-health.ts
2
2
  function resolveMatrixRoomKeyBackupIssue(backup) {
3
3
  if (!backup.serverVersion) return {
4
4
  code: "missing-server-backup",
@@ -56,5 +56,4 @@ function resolveMatrixRoomKeyBackupReadinessError(backup, opts) {
56
56
  if (issue.message) return `Matrix room key backup is not usable: ${issue.message}.`;
57
57
  return "Matrix room key backup is not usable on this device.";
58
58
  }
59
- //#endregion
60
59
  export { resolveMatrixRoomKeyBackupReadinessError as n, resolveMatrixRoomKeyBackupIssue as t };
@@ -1,13 +1,13 @@
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";
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-DcCk1_Tv.mjs";
5
- import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-Be8TYKMA.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-DaM-5OA5.mjs";
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 { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./thread-bindings-shared-CPjUA0Ib.mjs";
9
- import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DxyzKSzf.mjs";
10
- import { n as resolveMatrixInboundConversation, t as defaultTopLevelPlacement } from "./thread-binding-api-BvuaKpd0.mjs";
1
+ import { i as __exportAll, n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-DybEjJcd.mjs";
2
+ import { i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, r as hasImplicitMatrixAccountConfig } from "./account-selection-Co94mKNj.mjs";
3
+ import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
4
+ import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, m as listMatrixAccountIds, v as resolveMatrixAccountAsync } from "./setup-core-D2r4BivQ.mjs";
5
+ import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-IjRB0ymg.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-D7vv3AZS.mjs";
7
+ import { a as normalizeMatrixResolvableTarget, i as normalizeMatrixMessagingTarget, n as isMatrixQualifiedUserId, o as resolveMatrixDirectUserId, r as isMatrixRoomId, s as resolveMatrixTargetIdentity } from "./target-ids-DltG_ZHJ.mjs";
8
+ import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./thread-bindings-shared-FMu_szTm.mjs";
9
+ import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-AKnr45nw.mjs";
10
+ import { n as resolveMatrixInboundConversation, t as defaultTopLevelPlacement } from "./thread-binding-api-OtSciHmZ.mjs";
11
11
  import { createLazyRuntimeModule, createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
12
12
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
13
13
  import { adaptScopedAccountAccessor, createScopedDmSecurityResolver } from "openclaw/plugin-sdk/channel-config-helpers";
@@ -34,7 +34,7 @@ import { resolveConfiguredAcpBindingRecord } from "openclaw/plugin-sdk/acp-bindi
34
34
  import { inspectConversationBindingAsync } from "openclaw/plugin-sdk/conversation-binding-inspection-runtime";
35
35
  import { inspectRuntimeConversationBindingRoute } from "openclaw/plugin-sdk/conversation-binding-runtime";
36
36
  import { deliveryContextFromSession, getSessionEntryAsync, resolveStorePath, sessionDeliveryOrigin } from "openclaw/plugin-sdk/session-store-runtime";
37
- //#region extensions/matrix/src/actions.ts
37
+ // extensions/matrix/src/actions.ts
38
38
  const MATRIX_PLUGIN_HANDLED_ACTIONS = /* @__PURE__ */ new Set([
39
39
  "send",
40
40
  "poll-vote",
@@ -154,20 +154,18 @@ const matrixMessageActions = {
154
154
  return account.enabled && account.configured && createActionGate(account.config.actions)("messages") ? payload : null;
155
155
  },
156
156
  handleAction: async (ctx) => {
157
- const { handleMatrixAction } = await import("./tool-actions-DBrk6Yei.mjs");
157
+ const { handleMatrixAction } = await import("./tool-actions-CdKa0DC4.mjs");
158
158
  return await handleMatrixAction(ctx);
159
159
  }
160
160
  };
161
- //#endregion
162
- //#region extensions/matrix/src/approval-reaction-auth.ts
161
+ // extensions/matrix/src/approval-reaction-auth.ts
163
162
  var approval_reaction_auth_exports = /* @__PURE__ */ __exportAll({ isMatrixApprovalReactionAuthorizedSender: () => isMatrixApprovalReactionAuthorizedSender });
164
163
  function isMatrixApprovalReactionAuthorizedSender(params) {
165
164
  const normalizedSenderId = params.senderId ? normalizeMatrixApproverId(params.senderId) : void 0;
166
165
  if (!normalizedSenderId) return false;
167
166
  return getMatrixApprovalApprovers(params).includes(normalizedSenderId);
168
167
  }
169
- //#endregion
170
- //#region extensions/matrix/src/approval-native.ts
168
+ // extensions/matrix/src/approval-native.ts
171
169
  function normalizeComparableTarget(value) {
172
170
  const target = resolveMatrixTargetIdentity(value);
173
171
  if (!target) return normalizeLowercaseStringOrEmpty(value);
@@ -287,7 +285,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
287
285
  ],
288
286
  isConfigured: isMatrixAnyApprovalClientEnabled,
289
287
  shouldHandle: shouldHandleMatrixApprovalRequest,
290
- load: async () => (await import("./approval-handler.runtime-CsqMdj7h.mjs")).matrixApprovalNativeRuntime
288
+ load: async () => (await import("./approval-handler.runtime-DtNvJpfB.mjs")).matrixApprovalNativeRuntime
291
289
  })
292
290
  });
293
291
  const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
@@ -341,8 +339,7 @@ const matrixApprovalCapability = createChannelApprovalCapability({
341
339
  nativeAsync: matrixBaseNativeApprovalAdapter,
342
340
  render: matrixNativeApprovalCapability.render
343
341
  });
344
- //#endregion
345
- //#region extensions/matrix/src/channel-message-adapter.ts
342
+ // extensions/matrix/src/channel-message-adapter.ts
346
343
  function createMatrixMessageAdapter(params) {
347
344
  const base = createChannelMessageAdapterFromOutbound({
348
345
  id: "matrix",
@@ -388,8 +385,7 @@ function createMatrixMessageAdapter(params) {
388
385
  }
389
386
  };
390
387
  }
391
- //#endregion
392
- //#region extensions/matrix/src/matrix/monitor/rooms.ts
388
+ // extensions/matrix/src/matrix/monitor/rooms.ts
393
389
  function readLegacyRoomAllowAlias(room) {
394
390
  const rawRoom = room;
395
391
  return typeof rawRoom?.allow === "boolean" ? rawRoom.allow : void 0;
@@ -423,8 +419,7 @@ function resolveMatrixRoomConfig(params) {
423
419
  matchSource: resolved ? matchKey === "*" ? "wildcard" : "direct" : void 0
424
420
  };
425
421
  }
426
- //#endregion
427
- //#region extensions/matrix/src/group-mentions.ts
422
+ // extensions/matrix/src/group-mentions.ts
428
423
  function resolveMatrixGroupScope(params) {
429
424
  const matrixConfig = resolveMatrixAccountConfig({
430
425
  cfg: params.cfg,
@@ -448,8 +443,7 @@ function resolveMatrixGroupRequireMention(params) {
448
443
  function resolveMatrixGroupToolPolicy(params) {
449
444
  return resolveScopeToolsPolicy(resolveMatrixGroupScope(params));
450
445
  }
451
- //#endregion
452
- //#region extensions/matrix/src/matrix/monitor/threads.ts
446
+ // extensions/matrix/src/matrix/monitor/threads.ts
453
447
  function resolveMatrixThreadSessionKeys(params) {
454
448
  return resolveThreadSessionKeys({
455
449
  ...params,
@@ -463,8 +457,7 @@ function resolveMatrixThreadRouting(params) {
463
457
  const inboundThreadId = threadRootId && threadRootId !== messageId ? threadRootId : void 0;
464
458
  return { threadId: effectiveThreadReplies === "off" ? void 0 : effectiveThreadReplies === "inbound" ? inboundThreadId : inboundThreadId ?? (messageId || void 0) };
465
459
  }
466
- //#endregion
467
- //#region extensions/matrix/src/matrix/monitor/route.ts
460
+ // extensions/matrix/src/matrix/monitor/route.ts
468
461
  function resolveMatrixDmSessionKey(params) {
469
462
  if (params.dmSessionScope !== "per-room") return params.fallbackSessionKey;
470
463
  return buildAgentSessionKey({
@@ -573,8 +566,7 @@ function projectMatrixInboundRoute(params, inspection) {
573
566
  pluginId: runtimeRoute.pluginId
574
567
  };
575
568
  }
576
- //#endregion
577
- //#region extensions/matrix/src/matrix/conversation-route-owner.ts
569
+ // extensions/matrix/src/matrix/conversation-route-owner.ts
578
570
  function prepareMatrixConversationRouteOwner(params) {
579
571
  const { cfg, conversation } = params;
580
572
  const accountId = normalizeAccountId(params.accountId);
@@ -619,8 +611,7 @@ async function prepareMatrixConversationRouteOwnersAsync(inputs, inspectBindings
619
611
  return () => item.resolve(inspect()[position]);
620
612
  });
621
613
  }
622
- //#endregion
623
- //#region extensions/matrix/src/presentation-capabilities.ts
614
+ // extensions/matrix/src/presentation-capabilities.ts
624
615
  const matrixPresentationCapabilities = {
625
616
  supported: true,
626
617
  buttons: true,
@@ -632,12 +623,10 @@ const matrixPresentationCapabilities = {
632
623
  supportsEdit: true
633
624
  } }
634
625
  };
635
- //#endregion
636
- //#region extensions/matrix/src/resolver.ts
637
- const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-BJ5sIKeM.mjs").then((n) => n.n), "resolveMatrixTargets");
626
+ // extensions/matrix/src/resolver.ts
627
+ const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-B8PAwHVS.mjs").then((n) => n.n), "resolveMatrixTargets");
638
628
  const matrixResolverAdapter = { resolveTargets: async (params) => (await loadMatrixResolver())(params) };
639
- //#endregion
640
- //#region extensions/matrix/src/matrix/session-store-metadata.ts
629
+ // extensions/matrix/src/matrix/session-store-metadata.ts
641
630
  function resolveMatrixRoomTargetId(value) {
642
631
  const trimmed = normalizeOptionalString(value);
643
632
  if (!trimmed) return;
@@ -666,8 +655,7 @@ function resolveMatrixStoredSessionMeta(entry) {
666
655
  ...directUserId ? { directUserId } : {}
667
656
  };
668
657
  }
669
- //#endregion
670
- //#region extensions/matrix/src/session-route.ts
658
+ // extensions/matrix/src/session-route.ts
671
659
  function resolveEffectiveMatrixAccountId(params) {
672
660
  return normalizeAccountId(params.accountId ?? resolveDefaultMatrixAccountId(params.cfg));
673
661
  }
@@ -744,10 +732,9 @@ async function resolveMatrixOutboundSessionRoute(params) {
744
732
  canRecoverCurrentThread: ({ route }) => route.peer.kind !== "direct" || (params.cfg.session?.dmScope ?? "main") !== "main"
745
733
  });
746
734
  }
747
- //#endregion
748
- //#region extensions/matrix/src/channel.ts
749
- const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-2EEtIlyu.mjs"), "matrixChannelRuntime");
750
- const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-DRUSJ_Ev.mjs").catch((error) => {
735
+ // extensions/matrix/src/channel.ts
736
+ const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DaGbm27q.mjs"), "matrixChannelRuntime");
737
+ const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-CPwDgRFY.mjs").catch((error) => {
751
738
  loadMatrixMonitorModule.clear();
752
739
  throw error;
753
740
  }));
@@ -1158,5 +1145,4 @@ const matrixPlugin = createChatChannelPlugin({
1158
1145
  },
1159
1146
  outbound: matrixChannelOutbound
1160
1147
  });
1161
- //#endregion
1162
1148
  export { resolveMatrixThreadRouting as a, resolveMatrixInboundRouteAsync as i, resolveMatrixStoredSessionMeta as n, resolveMatrixRoomConfig as o, matrixPresentationCapabilities as r, approval_reaction_auth_exports as s, matrixPlugin as t };
@@ -1,14 +1,14 @@
1
- import { S as reconcileMatrixUnknownSend, o as sendTypingMatrix, r as sendMessageMatrix, x as cleanupMatrixDeliveryPlans } from "./send-BprM-Wmx.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-D5Z_4FBg.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-C1qeMQAy.mjs";
2
+ import { u as resolveMatrixAuth } from "./client-7eyTX0cu.mjs";
3
+ import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-B-csizuK.mjs";
4
+ import { t as matrixOutbound } from "./outbound-DwP97VpQ.mjs";
5
+ import { t as resolveMatrixTargets } from "./resolve-targets-B8PAwHVS.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
- //#region extensions/matrix/src/matrix/probe.ts
11
- const loadMatrixProbeRuntimeDeps = createLazyRuntimeModule(() => import("./client-C4Gibhzl.mjs").then((n) => n.t));
10
+ // extensions/matrix/src/matrix/probe.ts
11
+ const loadMatrixProbeRuntimeDeps = createLazyRuntimeModule(() => import("./client-7eyTX0cu.mjs").then((n) => n.t));
12
12
  async function probeMatrix(params) {
13
13
  return await runChannelProbe(void 0, async () => {
14
14
  const result = {
@@ -58,8 +58,7 @@ async function probeMatrix(params) {
58
58
  error: formatErrorMessage(error)
59
59
  }));
60
60
  }
61
- //#endregion
62
- //#region extensions/matrix/src/channel.runtime.ts
61
+ // extensions/matrix/src/channel.runtime.ts
63
62
  const matrixChannelRuntime = {
64
63
  cleanupMatrixDeliveryPlans,
65
64
  listMatrixDirectoryGroupsLive,
@@ -72,5 +71,4 @@ const matrixChannelRuntime = {
72
71
  sendMessageMatrix,
73
72
  sendTypingMatrix
74
73
  };
75
- //#endregion
76
74
  export { matrixChannelRuntime };
@@ -1,5 +1,5 @@
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-DcCk1_Tv.mjs";
1
+ import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
2
+ import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, i as matrixSetupContract, m as listMatrixAccountIds, t as createMatrixSetupWizardProxy, v as resolveMatrixAccountAsync } from "./setup-core-D2r4BivQ.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";
@@ -9,7 +9,7 @@ import { normalizeStringEntries as normalizeStringEntries$1 } from "openclaw/plu
9
9
  import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
10
10
  import { AllowFromListSchema, ChannelBotLoopProtectionSchema, ChannelDeliveryStreamingConfigSchema, ChannelStreamingPreviewSchema, ChannelStreamingProgressSchema, ContextVisibilityModeSchema, GroupPolicySchema, MarkdownConfigSchema, MentionPatternsPolicySchema, buildChannelConfigSchema, buildGroupEntrySchema, buildNestedDmConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
11
11
  import { z } from "zod";
12
- //#region extensions/matrix/src/matrix/monitor/allowlist.ts
12
+ // extensions/matrix/src/matrix/monitor/allowlist.ts
13
13
  function normalizeMatrixUser(raw) {
14
14
  const value = (raw ?? "").trim();
15
15
  if (!value) return "";
@@ -64,8 +64,7 @@ function resolveMatrixAllowListMatch(params) {
64
64
  candidates
65
65
  });
66
66
  }
67
- //#endregion
68
- //#region extensions/matrix/src/config-adapter.ts
67
+ // extensions/matrix/src/config-adapter.ts
69
68
  const matrixConfigAdapter = {
70
69
  ...createScopedChannelConfigAdapter({
71
70
  sectionKey: "matrix",
@@ -92,8 +91,7 @@ const matrixConfigAdapter = {
92
91
  }),
93
92
  resolveAccountAsync: adaptScopedAccountAccessor(resolveMatrixAccountAsync)
94
93
  };
95
- //#endregion
96
- //#region extensions/matrix/src/config-ui-hints.ts
94
+ // extensions/matrix/src/config-ui-hints.ts
97
95
  const matrixChannelConfigUiHints = {
98
96
  requireMentionInBotThreads: {
99
97
  label: "Mention in Bot Threads",
@@ -152,8 +150,7 @@ const matrixChannelConfigUiHints = {
152
150
  progress: {}
153
151
  })
154
152
  };
155
- //#endregion
156
- //#region extensions/matrix/src/config-schema.ts
153
+ // extensions/matrix/src/config-schema.ts
157
154
  const matrixActionSchema = z.object({
158
155
  reactions: z.boolean().optional(),
159
156
  messages: z.boolean().optional(),
@@ -315,7 +312,7 @@ const matrixPluginBase = {
315
312
  order: 70,
316
313
  quickstartAllowFrom: true
317
314
  },
318
- setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-CK9Ksgio.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
315
+ setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-DiVtpjNu.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
319
316
  setupContract: matrixSetupContract,
320
317
  capabilities: {
321
318
  chatTypes: [
@@ -358,5 +355,4 @@ const matrixSetupPlugin = {
358
355
  })).configured
359
356
  }
360
357
  };
361
- //#endregion
362
358
  export { resolveMatrixAllowListMatch as a, normalizeMatrixUserId as i, matrixSetupPlugin as n, normalizeMatrixAllowList as r, matrixPluginBase as t };
@@ -1,17 +1,17 @@
1
- import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
- import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
3
- import { l as sanitizeMatrixPathSegment } from "./storage-paths-B51JM-pC.mjs";
4
- import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-DcCk1_Tv.mjs";
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-BKiiI29H.mjs";
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--Pf3jCXD.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--qUbmRd-.mjs";
1
+ import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
2
+ import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
3
+ import { l as sanitizeMatrixPathSegment } from "./storage-paths-e_Vq6cvw.mjs";
4
+ import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-D2r4BivQ.mjs";
5
+ import { n as resolveMatrixConfigPath } from "./config-paths-DBpHxDyc.mjs";
6
+ import { d as resolveMatrixAuthContext } from "./client-7eyTX0cu.mjs";
7
+ import { n as withResolvedActionClient } from "./client-CV0MkCZG.mjs";
8
+ import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-BxH69np2.mjs";
9
+ import { i as setMatrixConsoleLogging } from "./logger-BX5kXvh1.mjs";
10
+ import { r as setMatrixSdkLogMode } from "./logging-BLcaOSRD.mjs";
11
+ import { n as isOpenClawManagedMatrixDevice, r as summarizeMatrixDeviceHealth } from "./device-health-DnKAXW1v.mjs";
12
+ import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-DnNA9mEa.mjs";
13
+ import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-Brv4bIyx.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-jP3tm-xD.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";
@@ -22,7 +22,7 @@ import { readByteStreamWithLimit } from "openclaw/plugin-sdk/response-limit-runt
22
22
  import { isDeepStrictEqual } from "node:util";
23
23
  import { runWithLocalStateOwner } from "openclaw/plugin-sdk/cli-state-owner";
24
24
  import { getRuntimeConfigSnapshot, getRuntimeConfigSourceSnapshot } from "openclaw/plugin-sdk/runtime-config-snapshot";
25
- //#region extensions/matrix/src/cli-shared.ts
25
+ // extensions/matrix/src/cli-shared.ts
26
26
  const MATRIX_CLI_RECOVERY_KEY_STDIN_MAX_BYTES = 1048576;
27
27
  async function readMatrixCliRecoveryKeyFromStdin() {
28
28
  const recoveryKey = (await readByteStreamWithLimit(process.stdin, {
@@ -329,8 +329,7 @@ function printVerificationStatus(status, verbose = false, accountId) {
329
329
  }
330
330
  printVerificationGuidance(status, accountId);
331
331
  }
332
- //#endregion
333
- //#region extensions/matrix/src/matrix/actions/devices.ts
332
+ // extensions/matrix/src/matrix/actions/devices.ts
334
333
  async function listMatrixOwnDevices(opts = {}) {
335
334
  return await withResolvedActionClient(opts, async (client) => await client.listOwnDevices());
336
335
  }
@@ -349,8 +348,7 @@ async function pruneMatrixStaleGatewayDevices(opts = {}) {
349
348
  };
350
349
  });
351
350
  }
352
- //#endregion
353
- //#region extensions/matrix/src/cli-account.ts
351
+ // extensions/matrix/src/cli-account.ts
354
352
  async function addMatrixAccount(params) {
355
353
  const initialSyncLimit = parseOptionalInt(params.initialSyncLimit, "--initial-sync-limit", { min: 0 });
356
354
  const cfg = getMatrixRuntime().config.current();
@@ -405,7 +403,7 @@ async function addMatrixAccount(params) {
405
403
  backupVersion: null
406
404
  };
407
405
  if (accountConfig.encryption === true) {
408
- const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-DmznRqYe.mjs");
406
+ const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-DDhwWvDs.mjs");
409
407
  verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
410
408
  previousCfg: cfg,
411
409
  cfg: updated,
@@ -527,8 +525,7 @@ function registerMatrixAccountCommands(root) {
527
525
  });
528
526
  });
529
527
  }
530
- //#endregion
531
- //#region extensions/matrix/src/cli-devices.ts
528
+ // extensions/matrix/src/cli-devices.ts
532
529
  function printMatrixOwnDevices(devices) {
533
530
  if (devices.length === 0) {
534
531
  console.log("Devices: none");
@@ -575,8 +572,7 @@ function registerMatrixDeviceCommands(root) {
575
572
  });
576
573
  });
577
574
  }
578
- //#endregion
579
- //#region extensions/matrix/src/cli-direct.ts
575
+ // extensions/matrix/src/cli-direct.ts
580
576
  function printDirectRoomCandidate(room) {
581
577
  const members = room.joinedMembers === null ? "unavailable" : room.joinedMembers.map((member) => formatMatrixCliText(member)).join(", ") || "none";
582
578
  console.log(`- ${formatMatrixCliText(room.roomId)} [${room.source}] strict=${room.strict ? "yes" : "no"} joined=${members}`);
@@ -595,7 +591,7 @@ function printDirectRoomInspection(result) {
595
591
  }
596
592
  async function inspectMatrixDirectRoom(params) {
597
593
  const cfg = getMatrixRuntime().config.current();
598
- const [{ withResolvedActionClient }, { inspectMatrixDirectRooms }] = await Promise.all([import("./client-BKiiI29H.mjs").then((n) => n.t), import("./direct-management-B3wYhx_M.mjs").then((n) => n.t)]);
594
+ const [{ withResolvedActionClient }, { inspectMatrixDirectRooms }] = await Promise.all([import("./client-CV0MkCZG.mjs").then((n) => n.t), import("./direct-management-DDaWVbQI.mjs").then((n) => n.t)]);
599
595
  return await withResolvedActionClient({
600
596
  accountId: params.accountId,
601
597
  cfg
@@ -613,7 +609,7 @@ async function repairMatrixDirectRoom(params) {
613
609
  cfg,
614
610
  accountId: params.accountId
615
611
  });
616
- const [{ withStartedActionClient }, { repairMatrixDirectRooms }] = await Promise.all([import("./client-BKiiI29H.mjs").then((n) => n.t), import("./direct-management-B3wYhx_M.mjs").then((n) => n.t)]);
612
+ const [{ withStartedActionClient }, { repairMatrixDirectRooms }] = await Promise.all([import("./client-CV0MkCZG.mjs").then((n) => n.t), import("./direct-management-DDaWVbQI.mjs").then((n) => n.t)]);
617
613
  return await withStartedActionClient({
618
614
  accountId: params.accountId,
619
615
  cfg
@@ -684,8 +680,7 @@ function registerMatrixDirectCommands(root) {
684
680
  });
685
681
  });
686
682
  }
687
- //#endregion
688
- //#region extensions/matrix/src/cli-doctor.ts
683
+ // extensions/matrix/src/cli-doctor.ts
689
684
  function registerMatrixDoctorCommands(root) {
690
685
  const accountForRoot = (rootDir, stateDir) => rootDir === path.resolve(stateDir, "matrix") ? "default" : path.basename(path.dirname(path.dirname(rootDir)));
691
686
  const doctor = root.command("doctor").description("Inspect and recover Matrix crypto storage refusal");
@@ -713,8 +708,7 @@ function registerMatrixDoctorCommands(root) {
713
708
  console.log(`Matrix crypto refusal cleared for account ${account}; restart the Gateway.`);
714
709
  });
715
710
  }
716
- //#endregion
717
- //#region extensions/matrix/src/cli-encryption.ts
711
+ // extensions/matrix/src/cli-encryption.ts
718
712
  function isMatrixVerificationSetupComplete(status) {
719
713
  return status.encryptionEnabled && status.verified && status.crossSigningVerified && status.signedByOwner && status.serverDeviceKnown === true && resolveMatrixRoomKeyBackupIssue(status.backup).code === "ok";
720
714
  }
@@ -821,8 +815,7 @@ function registerMatrixEncryptionCommands(root) {
821
815
  });
822
816
  });
823
817
  }
824
- //#endregion
825
- //#region extensions/matrix/src/cli-profile.ts
818
+ // extensions/matrix/src/cli-profile.ts
826
819
  function registerMatrixProfileCommands(root) {
827
820
  root.command("profile").description("Manage Matrix bot profile").command("set").description("Update Matrix profile display name and/or avatar").option("--account <id>", "Account ID (for multi-account setups)").option("--name <name>", "Profile display name").option("--avatar-url <url>", "Profile avatar URL (mxc:// or http(s) URL)").option("--verbose", "Show detailed diagnostics").option("--json", "Output as JSON").action(async (options) => {
828
821
  await runMatrixCliCommand(options, {
@@ -841,8 +834,7 @@ function registerMatrixProfileCommands(root) {
841
834
  });
842
835
  });
843
836
  }
844
- //#endregion
845
- //#region extensions/matrix/src/cli-verification-backup.ts
837
+ // extensions/matrix/src/cli-verification-backup.ts
846
838
  function registerMatrixVerificationBackupCommands(verify) {
847
839
  const backup = verify.command("backup").description("Matrix room-key backup health and restore");
848
840
  backup.command("status").description("Show Matrix room-key backup status for this device").option("--account <id>", "Account ID (for multi-account setups)").option("--verbose", "Show detailed diagnostics").option("--json", "Output as JSON").action(async (options) => {
@@ -1008,8 +1000,7 @@ function registerMatrixVerificationBackupCommands(verify) {
1008
1000
  });
1009
1001
  });
1010
1002
  }
1011
- //#endregion
1012
- //#region extensions/matrix/src/cli-verification.ts
1003
+ // extensions/matrix/src/cli-verification.ts
1013
1004
  function matrixCliVerificationDmLookupOptions(options) {
1014
1005
  return {
1015
1006
  ...options.roomId !== void 0 ? { verificationDmRoomId: options.roomId } : {},
@@ -1285,8 +1276,7 @@ function registerMatrixVerificationCommands(root) {
1285
1276
  });
1286
1277
  registerMatrixVerificationBackupCommands(verify);
1287
1278
  }
1288
- //#endregion
1289
- //#region extensions/matrix/src/cli.ts
1279
+ // extensions/matrix/src/cli.ts
1290
1280
  function registerMatrixCli(params) {
1291
1281
  const root = params.program.command("matrix").description("Matrix channel utilities").addHelpText("after", () => "\nDocs: https://docs.openclaw.ai/channels/matrix\n");
1292
1282
  registerMatrixAccountCommands(root);
@@ -1297,5 +1287,4 @@ function registerMatrixCli(params) {
1297
1287
  registerMatrixDeviceCommands(root);
1298
1288
  registerMatrixDoctorCommands(root);
1299
1289
  }
1300
- //#endregion
1301
1290
  export { registerMatrixCli };
@@ -1,8 +1,8 @@
1
1
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
2
- //#region extensions/matrix/src/cli-metadata.ts
2
+ // extensions/matrix/src/cli-metadata.ts
3
3
  function registerMatrixCliMetadata(api) {
4
4
  api.registerCli(async ({ program }) => {
5
- const { registerMatrixCli } = await import("./cli-CEmWh7wh.mjs");
5
+ const { registerMatrixCli } = await import("./cli-CuEJNM3c.mjs");
6
6
  registerMatrixCli({ program });
7
7
  }, { descriptors: [{
8
8
  name: "matrix",
@@ -10,13 +10,11 @@ function registerMatrixCliMetadata(api) {
10
10
  hasSubcommands: true
11
11
  }] });
12
12
  }
13
- //#endregion
14
- //#region extensions/matrix/cli-metadata.ts
13
+ // extensions/matrix/cli-metadata.ts
15
14
  var cli_metadata_default = definePluginEntry({
16
15
  id: "matrix",
17
16
  name: "Matrix",
18
17
  description: "Matrix channel plugin (matrix-js-sdk)",
19
18
  register: registerMatrixCliMetadata
20
19
  });
21
- //#endregion
22
20
  export { registerMatrixCliMetadata as n, cli_metadata_default as t };