@openclaw/matrix 2026.11.5-beta.1 → 2026.11.5-beta.3

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 (102) hide show
  1. package/dist/.setup/{account-config-CVM2a28p.mjs → account-config-CRsKoMqJ.mjs} +2 -1
  2. package/dist/.setup/{account-selection-Cow3TMFO.mjs → account-selection-UUPhMBmu.mjs} +8 -5
  3. package/dist/.setup/{approval-handler.runtime-_0gqiVgR.mjs → approval-handler.runtime-Ca12_7Qa.mjs} +9 -8
  4. package/dist/.setup/{approval-reactions-Bz_8XB01.mjs → approval-reactions-BazmsDbe.mjs} +3 -2
  5. package/dist/.setup/{backup-health-BxH69np2.mjs → backup-health-Dm_YMVFT.mjs} +2 -1
  6. package/dist/.setup/{channel-ByHcZU28.mjs → channel-CX7k81dL.mjs} +38 -27
  7. package/dist/.setup/{channel.runtime-sNicWjmD.mjs → channel.runtime-K_hHX-9W.mjs} +12 -10
  8. package/dist/.setup/{channel.setup-Bmba21y9.mjs → channel.setup-B00zzOOL.mjs} +7 -5
  9. package/dist/.setup/{cli-B26pps0Q.mjs → cli-dz9hd2dR.mjs} +34 -25
  10. package/dist/.setup/{cli-metadata-CKGwVfmT.mjs → cli-metadata-CwUhA9CY.mjs} +5 -3
  11. package/dist/.setup/{client-N8TEwtmk.mjs → client-CFPYqaYK.mjs} +5 -4
  12. package/dist/.setup/{client-Bqu801rH.mjs → client-D1bsidwU.mjs} +26 -21
  13. package/dist/.setup/{client-bootstrap-k6Zm1M8Y.mjs → client-bootstrap-CTT0VF6v.mjs} +3 -2
  14. package/dist/.setup/{client-support-CqXAOZp3.mjs → client-support-B_Mp4Qk9.mjs} +3 -2
  15. package/dist/.setup/{config-paths-DBpHxDyc.mjs → config-paths-CnREYb1Y.mjs} +2 -1
  16. package/dist/.setup/{create-client-DaGljdrk.mjs → create-client-Ccf5wyS3.mjs} +9 -8
  17. package/dist/.setup/{credentials-DVmY0miU.mjs → credentials-kT20jk_u.mjs} +6 -5
  18. package/dist/.setup/{credentials-read-rPqEpuxv.mjs → credentials-read-CM6wXUjL.mjs} +6 -5
  19. package/dist/.setup/{credentials-state-jxq29yQw.mjs → credentials-state-B3cuUFwZ.mjs} +2 -1
  20. package/dist/.setup/{crypto-node.runtime-E_hqXGxm.mjs → crypto-node.runtime-6Aj_ltHQ.mjs} +2 -1
  21. package/dist/.setup/{crypto-runtime-KQupbxSM.mjs → crypto-runtime-DZNytKX5.mjs} +15 -10
  22. package/dist/.setup/{crypto-state-store-p1mdYTWH.mjs → crypto-state-store-BZLlwkv_.mjs} +4 -3
  23. package/dist/.setup/{crypto-store-ownership-7lVHeXWL.mjs → crypto-store-ownership-CiQ1l_O7.mjs} +4 -3
  24. package/dist/.setup/{crypto-unsafe-state-doctor-CG2nJk8P.mjs → crypto-unsafe-state-doctor-Dh1dtuSz.mjs} +8 -7
  25. package/dist/.setup/{deps-CVPT2Ros.mjs → deps-D-W_QQjz.mjs} +2 -1
  26. package/dist/.setup/{device-health-D7n-lPeb.mjs → device-health-Ck2YpEVN.mjs} +3 -2
  27. package/dist/.setup/{direct-management-D59C1WO-.mjs → direct-management-Dp1giZ34.mjs} +11 -7
  28. package/dist/.setup/{directory-live-YixmpyLW.mjs → directory-live-ufzRheWx.mjs} +6 -5
  29. package/dist/.setup/{doctor-contract-GiXgCj7k.mjs → doctor-contract-BANpMUbP.mjs} +3 -2
  30. package/dist/.setup/{draft-stream-C09OtoJZ.mjs → draft-stream-BPjjKSoI.mjs} +4 -3
  31. package/dist/.setup/{encryption-guidance-DfbEaKct.mjs → encryption-guidance-Br3Lv9Hm.mjs} +4 -3
  32. package/dist/.setup/{env-vars-Bh1iOXJ1.mjs → env-vars-aEBngJPa.mjs} +2 -1
  33. package/dist/.setup/{errors-CL3YJV8U.mjs → errors-Bw4EHwKX.mjs} +2 -1
  34. package/dist/.setup/{event-helpers-DDUjVVf7.mjs → event-helpers-CxNgMQqH.mjs} +2 -1
  35. package/dist/.setup/{exec-approvals-C3rCm0Sn.mjs → exec-approvals-BwEOyI1-.mjs} +9 -6
  36. package/dist/.setup/{file-sync-store-NW6eDuai.mjs → file-sync-store-BpS12yaK.mjs} +36 -6
  37. package/dist/.setup/{http-client-CqnKFKUH.mjs → http-client-B_ohXrBm.mjs} +8 -5
  38. package/dist/.setup/{idb-persistence-CmoPtwDD.mjs → idb-persistence-BTOsltD9.mjs} +7 -6
  39. package/dist/.setup/{idb-persistence-lock-CH2K6d_3.mjs → idb-persistence-lock-Bh3ZLIsE.mjs} +2 -1
  40. package/dist/.setup/{joined-room-encryption-9sJK1kM-.mjs → joined-room-encryption-C0gHa2DG.mjs} +3 -2
  41. package/dist/.setup/{logger-B9TwnY6C.mjs → logger-CuAzdD8Q.mjs} +3 -2
  42. package/dist/.setup/{logging-Bnsn7s4r.mjs → logging-CoaEyRtA.mjs} +4 -3
  43. package/dist/.setup/{messages-BjzsVgS6.mjs → messages-DpJ9naJa.mjs} +14 -9
  44. package/dist/.setup/{monitor-D4vhbNUM.mjs → monitor-Rzl3naSn.mjs} +157 -63
  45. package/dist/.setup/{onboarding-DKmt3jpW.mjs → onboarding-BK-V2ZLT.mjs} +11 -10
  46. package/dist/.setup/{outbound-wsXTF0z_.mjs → outbound-DMMVmZjV.mjs} +4 -3
  47. package/dist/.setup/{profile-update-DX060MnL.mjs → profile-update-RLsY-gu6.mjs} +9 -7
  48. package/dist/.setup/{reaction-events-BMsatzs4.mjs → reaction-events-UA_g6jEX.mjs} +9 -8
  49. package/dist/.setup/{resolve-targets-Yz_3aN_2.mjs → resolve-targets-DYW8ULZS.mjs} +5 -4
  50. package/dist/.setup/{retired-state-Bs3Gqkge.mjs → retired-state-JGUEBE72.mjs} +7 -4
  51. package/dist/.setup/{room-info-OGKjk422.mjs → room-info-Dhc4efkA.mjs} +8 -6
  52. package/dist/.setup/{runtime-Ck8TjD7L.mjs → runtime-1kn1P6io.mjs} +2 -1
  53. package/dist/.setup/{runtime-doctor-migrations-CSvRANPN.mjs → runtime-doctor-migrations-hxP-CXX7.mjs} +10 -5
  54. package/dist/.setup/{runtime-setter-api-CpwhcBQK.mjs → runtime-setter-api-i2MOXoT3.mjs} +1 -1
  55. package/dist/.setup/{sdk-BXcIyN-I.mjs → sdk-DPXiQ3jr.mjs} +46 -32
  56. package/dist/.setup/{secret-contract-AKnr45nw.mjs → secret-contract-DxyzKSzf.mjs} +3 -2
  57. package/dist/.setup/{secret-contract-api-DMSwMIxd.mjs → secret-contract-api-Dukgvike.mjs} +1 -1
  58. package/dist/.setup/{send-CWjH-l-T.mjs → send-HHAbKARg.mjs} +41 -25
  59. package/dist/.setup/{send-currentness-D1x6YP9O.mjs → send-currentness-DGxiiBn9.mjs} +4 -2
  60. package/dist/.setup/{setup-bootstrap-yKeGh4Iy.mjs → setup-bootstrap-DaT2j28V.mjs} +5 -4
  61. package/dist/.setup/{setup-core-BaKffgBi.mjs → setup-core-DcqQbLZv.mjs} +20 -13
  62. package/dist/.setup/setup-plugin-api-Cg4TelGZ.mjs +2 -0
  63. package/dist/.setup/{startup-verification-C-lhD0gk.mjs → startup-verification-UkaoSldm.mjs} +5 -4
  64. package/dist/.setup/{state-layout-walk-BqCZTHpp.mjs → state-layout-walk-BQMgMykU.mjs} +3 -2
  65. package/dist/.setup/{storage-BLLN9jYG.mjs → storage-C3N6YZIn.mjs} +10 -8
  66. package/dist/.setup/{storage-paths-e_Vq6cvw.mjs → storage-paths-B51JM-pC.mjs} +2 -1
  67. package/dist/.setup/{subagent-hooks-D-lCcLGQ.mjs → subagent-hooks-CfGAysJi.mjs} +3 -2
  68. package/dist/.setup/{sync-cache-state-B4hJFIPw.mjs → sync-cache-state-BKVaKRzQ.mjs} +5 -4
  69. package/dist/.setup/{sync-state-Cu1nagBV.mjs → sync-state-CWbp0QSY.mjs} +2 -1
  70. package/dist/.setup/{target-ids-DltG_ZHJ.mjs → target-ids-HhcaKX1n.mjs} +2 -1
  71. package/dist/.setup/{task-runner-CYyGHdNW.mjs → task-runner-DY3aKiQa.mjs} +2 -1
  72. package/dist/.setup/{thread-binding-api-OtSciHmZ.mjs → thread-binding-api-BvuaKpd0.mjs} +3 -2
  73. package/dist/.setup/{thread-bindings-BA2xESjV.mjs → thread-bindings-891JsKXF.mjs} +9 -7
  74. package/dist/.setup/{thread-bindings-shared-CBlJu3Wz.mjs → thread-bindings-shared-QmZOfX9Q.mjs} +2 -1
  75. package/dist/.setup/{tool-actions-CRuiVbqj.mjs → tool-actions-yFZH_7mC.mjs} +24 -19
  76. package/dist/.setup/{url-validation-DesoKUns.mjs → url-validation-By_2hsXr.mjs} +2 -1
  77. package/dist/.setup/{verification-C5x4Hy5Y.mjs → verification-CcZIVL8P.mjs} +5 -4
  78. package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +1 -1
  79. package/dist/api.js +8 -8
  80. package/dist/auth-presence.js +3 -2
  81. package/dist/channel-plugin-api.js +1 -1
  82. package/dist/cli-metadata.js +1 -1
  83. package/dist/contract-api.js +2 -2
  84. package/dist/doctor-contract-api.js +16 -13
  85. package/dist/helper-api.js +3 -3
  86. package/dist/index.js +4 -3
  87. package/dist/plugin-entry.handlers.runtime.js +4 -3
  88. package/dist/runtime-api.js +8 -7
  89. package/dist/runtime-setter-api.js +1 -1
  90. package/dist/secret-contract-api.js +1 -1
  91. package/dist/session-binding-contract-api.js +2 -2
  92. package/dist/setup-entry.js +5 -4
  93. package/dist/setup-plugin-api.js +1 -1
  94. package/dist/subagent-hooks-api.js +3 -2
  95. package/dist/thread-binding-api.js +1 -1
  96. package/dist/thread-bindings-runtime.js +1 -1
  97. package/node_modules/matrix-js-sdk/lib/http-api/utils.js +3 -1
  98. package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js +7 -1
  99. package/node_modules/matrix-js-sdk/src/http-api/utils.ts +5 -1
  100. package/node_modules/matrix-js-sdk/src/rust-crypto/rust-crypto.ts +7 -1
  101. package/package.json +4 -4
  102. package/dist/.setup/setup-plugin-api-B_t4waBw.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
- // extensions/matrix/src/matrix/account-config.ts
4
+ //#region extensions/matrix/src/matrix/account-config.ts
5
5
  function resolveMatrixBaseConfig(cfg) {
6
6
  return cfg.channels?.matrix ?? {};
7
7
  }
@@ -93,4 +93,5 @@ function resolveMatrixAccountAllowlistConfig(params) {
93
93
  groupAllowFrom
94
94
  };
95
95
  }
96
+ //#endregion
96
97
  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 { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
- import { n as listMatrixEnvAccountIds, t as getMatrixScopedEnvVarNames } from "./env-vars-Bh1iOXJ1.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
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";
5
5
  import { listCombinedAccountIds, listConfiguredAccountIds, resolveListedDefaultAccountId, resolveNormalizedAccountEntry } from "openclaw/plugin-sdk/account-core";
6
6
  import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/secret-input";
7
- // extensions/matrix/src/auth-precedence.ts
7
+ //#region extensions/matrix/src/auth-precedence.ts
8
8
  const MATRIX_CONFIG_STRING_FIELDS = [
9
9
  "homeserver",
10
10
  "userId",
@@ -28,7 +28,8 @@ function resolveMatrixAccountStringValues(params) {
28
28
  for (const field of MATRIX_CONFIG_STRING_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
- // extensions/matrix/src/matrix/client/env-auth.ts
31
+ //#endregion
32
+ //#region extensions/matrix/src/matrix/client/env-auth.ts
32
33
  function cleanEnv(value) {
33
34
  return normalizeOptionalString(value) ?? "";
34
35
  }
@@ -85,7 +86,8 @@ function resolveMatrixEnvAuthReadiness(accountId, env = process.env) {
85
86
  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}).`
86
87
  };
87
88
  }
88
- // extensions/matrix/src/account-selection.ts
89
+ //#endregion
90
+ //#region extensions/matrix/src/account-selection.ts
89
91
  var account_selection_exports = /* @__PURE__ */ __exportAll({
90
92
  findMatrixAccountEntry: () => findMatrixAccountEntry,
91
93
  hasImplicitMatrixAccountConfig: () => hasImplicitMatrixAccountConfig,
@@ -188,4 +190,5 @@ function requiresExplicitMatrixDefaultAccount(cfg, env = process.env) {
188
190
  const configuredDefault = normalizeOptionalAccountId(typeof channel.defaultAccount === "string" ? channel.defaultAccount : void 0);
189
191
  return !(configuredDefault && configuredAccountIds.includes(configuredDefault));
190
192
  }
193
+ //#endregion
191
194
  export { resolveConfiguredMatrixAccountIds as a, hasReadyMatrixEnvAuth as c, resolveScopedMatrixEnvConfig as d, MATRIX_CONFIG_STRING_FIELDS as f, requiresExplicitMatrixDefaultAccount as i, resolveGlobalMatrixEnvConfig as l, findMatrixAccountEntry as n, resolveMatrixChannelConfig as o, resolveMatrixAccountStringValues as p, 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-CVM2a28p.mjs";
2
- import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-C3rCm0Sn.mjs";
3
- import { s as resolveMatrixTargetIdentity } from "./target-ids-DltG_ZHJ.mjs";
4
- import { a as repairMatrixDirectRooms } from "./direct-management-D59C1WO-.mjs";
5
- import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-CWjH-l-T.mjs";
6
- import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-Bz_8XB01.mjs";
7
- import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-BjzsVgS6.mjs";
1
+ import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
2
+ import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-BwEOyI1-.mjs";
3
+ import { s as resolveMatrixTargetIdentity } from "./target-ids-HhcaKX1n.mjs";
4
+ import { a as repairMatrixDirectRooms } from "./direct-management-Dp1giZ34.mjs";
5
+ import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-HHAbKARg.mjs";
6
+ import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-BazmsDbe.mjs";
7
+ import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-DpJ9naJa.mjs";
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";
@@ -12,7 +12,7 @@ import { retryAsync } from "openclaw/plugin-sdk/retry-runtime";
12
12
  import { createChannelApprovalNativeRuntimeAdapterAsync } from "openclaw/plugin-sdk/approval-handler-runtime";
13
13
  import { buildExecApprovalPendingReplyPayload, buildPluginApprovalPendingReplyPayload } from "openclaw/plugin-sdk/approval-reply-runtime";
14
14
  import { buildApprovalPendingReplyPayload, buildPluginApprovalResolvedReplyPayload, formatChannelApprovalResolvedLabel } from "openclaw/plugin-sdk/approval-runtime";
15
- // extensions/matrix/src/approval-handler.runtime.ts
15
+ //#region extensions/matrix/src/approval-handler.runtime.ts
16
16
  const MATRIX_APPROVAL_METADATA_KEY = "com.openclaw.approval";
17
17
  const MATRIX_APPROVAL_DELIVERY_ATTEMPTS = 3;
18
18
  const MATRIX_APPROVAL_DELIVERY_RETRY_DELAY_MS = 250;
@@ -341,4 +341,5 @@ const matrixApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapterAsy
341
341
  }
342
342
  }
343
343
  });
344
+ //#endregion
344
345
  export { matrixApprovalNativeRuntime };
@@ -1,9 +1,9 @@
1
- import { r as getOptionalMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
1
+ import { r as getOptionalMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
2
  import { normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/routing";
3
3
  import { pruneMapToMaxSize } from "openclaw/plugin-sdk/collection-runtime";
4
4
  import { createApprovalReactionTargetStore } from "openclaw/plugin-sdk/approval-reaction-runtime";
5
5
  import { createPluginStateErrorReporter } from "openclaw/plugin-sdk/plugin-state-runtime";
6
- // extensions/matrix/src/approval-reactions.ts
6
+ //#region extensions/matrix/src/approval-reactions.ts
7
7
  const MATRIX_APPROVAL_REACTION_BINDINGS = [
8
8
  {
9
9
  decision: "allow-once",
@@ -178,4 +178,5 @@ async function resolveMatrixApprovalReactionTargetWithPersistence(params) {
178
178
  reactionKey: params.reactionKey
179
179
  });
180
180
  }
181
+ //#endregion
181
182
  export { unregisterMatrixApprovalReactionTarget as a, resolveMatrixApprovalReactionTargetWithPersistence as i, listMatrixApprovalReactionBindings as n, unregisterMatrixApprovalReactionTargetsForApproval as o, registerMatrixApprovalReactionTarget as r, buildMatrixApprovalReactionHint as t };
@@ -1,4 +1,4 @@
1
- // extensions/matrix/src/matrix/backup-health.ts
1
+ //#region 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,4 +56,5 @@ 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
59
60
  export { resolveMatrixRoomKeyBackupReadinessError as n, resolveMatrixRoomKeyBackupIssue as t };
@@ -1,14 +1,14 @@
1
- import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
- import { i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, r as hasImplicitMatrixAccountConfig } from "./account-selection-Cow3TMFO.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-BaKffgBi.mjs";
5
- import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-Bmba21y9.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-C3rCm0Sn.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 { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-GiXgCj7k.mjs";
9
- import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./thread-bindings-shared-CBlJu3Wz.mjs";
10
- import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-AKnr45nw.mjs";
11
- import { n as resolveMatrixInboundConversation, t as defaultTopLevelPlacement } from "./thread-binding-api-OtSciHmZ.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-UUPhMBmu.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-DcqQbLZv.mjs";
5
+ import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-B00zzOOL.mjs";
6
+ import { a as isMatrixExecApprovalAuthorizedSender, c as shouldSuppressLocalMatrixExecApprovalPrompt, d as normalizeMatrixApproverId, i as isMatrixApprovalClientEnabled, l as getMatrixApprovalAuthApprovers, n as getMatrixExecApprovalApprovers, o as resolveMatrixExecApprovalTarget, r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest, t as getMatrixApprovalApprovers, u as matrixApprovalAuth } from "./exec-approvals-BwEOyI1-.mjs";
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";
9
+ import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./thread-bindings-shared-QmZOfX9Q.mjs";
10
+ import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DxyzKSzf.mjs";
11
+ import { n as resolveMatrixInboundConversation, t as defaultTopLevelPlacement } from "./thread-binding-api-BvuaKpd0.mjs";
12
12
  import { createLazyRuntimeModule, createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
13
13
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
14
14
  import { adaptScopedAccountAccessor, createScopedDmSecurityResolver } from "openclaw/plugin-sdk/channel-config-helpers";
@@ -35,7 +35,7 @@ import { inspectConversationBindingAsync } from "openclaw/plugin-sdk/conversatio
35
35
  import { inspectRuntimeConversationBindingRoute } from "openclaw/plugin-sdk/conversation-binding-runtime";
36
36
  import { buildChannelKeyCandidates } from "openclaw/plugin-sdk/channel-targets";
37
37
  import { deliveryContextFromSession, getSessionEntryAsync, resolveStorePath, sessionDeliveryOrigin } from "openclaw/plugin-sdk/session-store-runtime";
38
- // extensions/matrix/src/actions.ts
38
+ //#region extensions/matrix/src/actions.ts
39
39
  const MATRIX_PLUGIN_HANDLED_ACTIONS = /* @__PURE__ */ new Set([
40
40
  "send",
41
41
  "poll-vote",
@@ -156,18 +156,20 @@ const matrixMessageActions = {
156
156
  return account.enabled && account.configured && createActionGate(account.config.actions)("messages") ? payload : null;
157
157
  },
158
158
  handleAction: async (ctx) => {
159
- const { handleMatrixAction } = await import("./tool-actions-CRuiVbqj.mjs");
159
+ const { handleMatrixAction } = await import("./tool-actions-yFZH_7mC.mjs");
160
160
  return await handleMatrixAction(ctx);
161
161
  }
162
162
  };
163
- // extensions/matrix/src/approval-reaction-auth.ts
163
+ //#endregion
164
+ //#region extensions/matrix/src/approval-reaction-auth.ts
164
165
  var approval_reaction_auth_exports = /* @__PURE__ */ __exportAll({ isMatrixApprovalReactionAuthorizedSender: () => isMatrixApprovalReactionAuthorizedSender });
165
166
  function isMatrixApprovalReactionAuthorizedSender(params) {
166
167
  const normalizedSenderId = params.senderId ? normalizeMatrixApproverId(params.senderId) : void 0;
167
168
  if (!normalizedSenderId) return false;
168
169
  return getMatrixApprovalApprovers(params).includes(normalizedSenderId);
169
170
  }
170
- // extensions/matrix/src/approval-native.ts
171
+ //#endregion
172
+ //#region extensions/matrix/src/approval-native.ts
171
173
  function normalizeComparableTarget(value) {
172
174
  const target = resolveMatrixTargetIdentity(value);
173
175
  if (!target) return normalizeLowercaseStringOrEmpty(value);
@@ -270,7 +272,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
270
272
  ],
271
273
  isConfigured: isMatrixAnyApprovalClientEnabled,
272
274
  shouldHandle: shouldHandleMatrixApprovalRequest,
273
- load: async () => (await import("./approval-handler.runtime-_0gqiVgR.mjs")).matrixApprovalNativeRuntime
275
+ load: async () => (await import("./approval-handler.runtime-Ca12_7Qa.mjs")).matrixApprovalNativeRuntime
274
276
  })
275
277
  });
276
278
  const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
@@ -324,7 +326,8 @@ const matrixApprovalCapability = createChannelApprovalCapability({
324
326
  nativeAsync: matrixBaseNativeApprovalAdapter,
325
327
  render: matrixNativeApprovalCapability.render
326
328
  });
327
- // extensions/matrix/src/matrix/monitor/threads.ts
329
+ //#endregion
330
+ //#region extensions/matrix/src/matrix/monitor/threads.ts
328
331
  function resolveMatrixThreadSessionKeys(params) {
329
332
  return resolveThreadSessionKeys({
330
333
  ...params,
@@ -338,7 +341,8 @@ function resolveMatrixThreadRouting(params) {
338
341
  const inboundThreadId = threadRootId && threadRootId !== messageId ? threadRootId : void 0;
339
342
  return { threadId: effectiveThreadReplies === "off" ? void 0 : effectiveThreadReplies === "inbound" ? inboundThreadId : inboundThreadId ?? (messageId || void 0) };
340
343
  }
341
- // extensions/matrix/src/matrix/monitor/route.ts
344
+ //#endregion
345
+ //#region extensions/matrix/src/matrix/monitor/route.ts
342
346
  function resolveMatrixBindingRef(params) {
343
347
  return {
344
348
  channel: "matrix",
@@ -437,7 +441,8 @@ function projectMatrixInboundRoute(params, inspection) {
437
441
  pluginId: runtimeRoute.pluginId
438
442
  };
439
443
  }
440
- // extensions/matrix/src/matrix/conversation-route-owner.ts
444
+ //#endregion
445
+ //#region extensions/matrix/src/matrix/conversation-route-owner.ts
441
446
  async function prepareMatrixConversationRouteOwnersAsync(inputs, inspectBindings) {
442
447
  const prepared = inputs.map((params) => {
443
448
  const { cfg, conversation } = params;
@@ -481,7 +486,8 @@ async function prepareMatrixConversationRouteOwnersAsync(inputs, inspectBindings
481
486
  return () => item.resolve(inspect()[position]);
482
487
  });
483
488
  }
484
- // extensions/matrix/src/matrix/monitor/rooms.ts
489
+ //#endregion
490
+ //#region extensions/matrix/src/matrix/monitor/rooms.ts
485
491
  function readLegacyRoomAllowAlias(room) {
486
492
  const rawRoom = room;
487
493
  return typeof rawRoom?.allow === "boolean" ? rawRoom.allow : void 0;
@@ -515,7 +521,8 @@ function resolveMatrixRoomConfig(params) {
515
521
  matchSource: resolved ? matchKey === "*" ? "wildcard" : "direct" : void 0
516
522
  };
517
523
  }
518
- // extensions/matrix/src/presentation-capabilities.ts
524
+ //#endregion
525
+ //#region extensions/matrix/src/presentation-capabilities.ts
519
526
  const matrixPresentationCapabilities = {
520
527
  supported: true,
521
528
  buttons: true,
@@ -527,7 +534,8 @@ const matrixPresentationCapabilities = {
527
534
  supportsEdit: true
528
535
  } }
529
536
  };
530
- // extensions/matrix/src/matrix/session-store-metadata.ts
537
+ //#endregion
538
+ //#region extensions/matrix/src/matrix/session-store-metadata.ts
531
539
  function resolveMatrixRoomTargetId(value) {
532
540
  const trimmed = normalizeOptionalString(value);
533
541
  if (!trimmed) return;
@@ -556,7 +564,8 @@ function resolveMatrixStoredSessionMeta(entry) {
556
564
  ...directUserId ? { directUserId } : {}
557
565
  };
558
566
  }
559
- // extensions/matrix/src/session-route.ts
567
+ //#endregion
568
+ //#region extensions/matrix/src/session-route.ts
560
569
  async function resolveMatrixOutboundSessionRoute(params) {
561
570
  const target = resolveMatrixTargetIdentity(params.resolvedTarget?.to ?? params.target) ?? resolveMatrixTargetIdentity(params.target);
562
571
  if (!target) return null;
@@ -618,13 +627,14 @@ async function resolveMatrixOutboundSessionRoute(params) {
618
627
  canRecoverCurrentThread: ({ route }) => route.peer.kind !== "direct" || (params.cfg.session?.dmScope ?? "main") !== "main"
619
628
  });
620
629
  }
621
- // extensions/matrix/src/channel.ts
622
- const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-sNicWjmD.mjs"), "matrixChannelRuntime");
623
- const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-D4vhbNUM.mjs").catch((error) => {
630
+ //#endregion
631
+ //#region extensions/matrix/src/channel.ts
632
+ const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-K_hHX-9W.mjs"), "matrixChannelRuntime");
633
+ const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-Rzl3naSn.mjs").catch((error) => {
624
634
  loadMatrixMonitorModule.clear();
625
635
  throw error;
626
636
  }));
627
- const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-Yz_3aN_2.mjs").then((n) => n.n), "resolveMatrixTargets");
637
+ const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-DYW8ULZS.mjs").then((n) => n.n), "resolveMatrixTargets");
628
638
  const matrixDoctor = {
629
639
  dmAllowFromMode: "nestedOnly",
630
640
  groupModel: "sender",
@@ -1080,4 +1090,5 @@ const matrixPlugin = createChatChannelPlugin({
1080
1090
  },
1081
1091
  outbound: matrixChannelOutbound
1082
1092
  });
1093
+ //#endregion
1083
1094
  export { resolveMatrixInboundRouteAsync as a, resolveMatrixRoomConfig as i, resolveMatrixStoredSessionMeta as n, resolveMatrixThreadRouting as o, matrixPresentationCapabilities as r, approval_reaction_auth_exports as s, matrixPlugin as t };
@@ -1,15 +1,15 @@
1
- import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-DesoKUns.mjs";
2
- import { S as reconcileMatrixUnknownSend, o as sendTypingMatrix, r as sendMessageMatrix, x as cleanupMatrixDeliveryPlans } from "./send-CWjH-l-T.mjs";
3
- import { c as resolveMatrixLocalTimeoutMs } from "./client-support-CqXAOZp3.mjs";
4
- import { c as resolveMatrixAuth } from "./client-Bqu801rH.mjs";
5
- import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-YixmpyLW.mjs";
6
- import { t as matrixOutbound } from "./outbound-wsXTF0z_.mjs";
7
- import { t as resolveMatrixTargets } from "./resolve-targets-Yz_3aN_2.mjs";
1
+ import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-By_2hsXr.mjs";
2
+ import { S as reconcileMatrixUnknownSend, o as sendTypingMatrix, r as sendMessageMatrix, x as cleanupMatrixDeliveryPlans } from "./send-HHAbKARg.mjs";
3
+ import { c as resolveMatrixLocalTimeoutMs } from "./client-support-B_Mp4Qk9.mjs";
4
+ import { c as resolveMatrixAuth } from "./client-D1bsidwU.mjs";
5
+ import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-ufzRheWx.mjs";
6
+ import { t as matrixOutbound } from "./outbound-DMMVmZjV.mjs";
7
+ import { t as resolveMatrixTargets } from "./resolve-targets-DYW8ULZS.mjs";
8
8
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
9
9
  import { isRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
10
10
  import { ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
11
11
  import { runChannelProbe } from "openclaw/plugin-sdk/text-utility-runtime";
12
- // extensions/matrix/src/matrix/probe.ts
12
+ //#region extensions/matrix/src/matrix/probe.ts
13
13
  async function probeMatrix(params) {
14
14
  return await runChannelProbe(void 0, async () => {
15
15
  const result = {
@@ -27,7 +27,7 @@ async function probeMatrix(params) {
27
27
  };
28
28
  const inputUserId = normalizeOptionalString(params.userId);
29
29
  const homeserver = await resolveValidatedMatrixHomeserverUrl(params.homeserver, { dangerouslyAllowPrivateNetwork: params.allowPrivateNetwork });
30
- const { MatrixAuthedHttpClient } = await import("./http-client-CqnKFKUH.mjs").then((n) => n.n);
30
+ const { MatrixAuthedHttpClient } = await import("./http-client-B_ohXrBm.mjs").then((n) => n.n);
31
31
  const identity = await new MatrixAuthedHttpClient({
32
32
  homeserver,
33
33
  accessToken: params.accessToken,
@@ -55,7 +55,8 @@ async function probeMatrix(params) {
55
55
  error: formatErrorMessage(error)
56
56
  }));
57
57
  }
58
- // extensions/matrix/src/channel.runtime.ts
58
+ //#endregion
59
+ //#region extensions/matrix/src/channel.runtime.ts
59
60
  const matrixChannelRuntime = {
60
61
  cleanupMatrixDeliveryPlans,
61
62
  listMatrixDirectoryGroupsLive,
@@ -68,4 +69,5 @@ const matrixChannelRuntime = {
68
69
  sendMessageMatrix,
69
70
  sendTypingMatrix
70
71
  };
72
+ //#endregion
71
73
  export { matrixChannelRuntime };
@@ -1,5 +1,5 @@
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-BaKffgBi.mjs";
1
+ import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
2
+ import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, i as matrixSetupContract, m as listMatrixAccountIds, t as createMatrixSetupWizardProxy, v as resolveMatrixAccountAsync } from "./setup-core-DcqQbLZv.mjs";
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
- // extensions/matrix/src/matrix/monitor/allowlist.ts
12
+ //#region extensions/matrix/src/matrix/monitor/allowlist.ts
13
13
  function normalizeMatrixUser(raw) {
14
14
  const value = (raw ?? "").trim();
15
15
  if (!value) return "";
@@ -58,7 +58,8 @@ function resolveMatrixAllowListMatch(params) {
58
58
  candidates
59
59
  });
60
60
  }
61
- // extensions/matrix/src/config-schema.ts
61
+ //#endregion
62
+ //#region extensions/matrix/src/config-schema.ts
62
63
  const matrixChannelConfigUiHints = {
63
64
  requireMentionInBotThreads: {
64
65
  label: "Mention in Bot Threads",
@@ -278,7 +279,7 @@ const matrixPluginBase = {
278
279
  order: 70,
279
280
  quickstartAllowFrom: true
280
281
  },
281
- setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-DKmt3jpW.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
282
+ setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-BK-V2ZLT.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
282
283
  setupContract: matrixSetupContract,
283
284
  capabilities: {
284
285
  chatTypes: [
@@ -344,4 +345,5 @@ const matrixSetupPlugin = {
344
345
  })).configured
345
346
  }
346
347
  };
348
+ //#endregion
347
349
  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-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-BaKffgBi.mjs";
5
- import { n as resolveMatrixConfigPath } from "./config-paths-DBpHxDyc.mjs";
6
- import { l as resolveMatrixAuthContext } from "./client-Bqu801rH.mjs";
7
- import { n as withResolvedActionClient } from "./client-N8TEwtmk.mjs";
8
- import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-BxH69np2.mjs";
9
- import { i as setMatrixConsoleLogging } from "./logger-B9TwnY6C.mjs";
10
- import { r as setMatrixSdkLogMode } from "./logging-Bnsn7s4r.mjs";
11
- import { n as listStaleOpenClawMatrixDevices } from "./device-health-D7n-lPeb.mjs";
12
- import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-DX060MnL.mjs";
13
- import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-CG2nJk8P.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-C5x4Hy5Y.mjs";
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-DcqQbLZv.mjs";
5
+ import { n as resolveMatrixConfigPath } from "./config-paths-CnREYb1Y.mjs";
6
+ import { l as resolveMatrixAuthContext } from "./client-D1bsidwU.mjs";
7
+ import { n as withResolvedActionClient } from "./client-CFPYqaYK.mjs";
8
+ import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-Dm_YMVFT.mjs";
9
+ import { i as setMatrixConsoleLogging } from "./logger-CuAzdD8Q.mjs";
10
+ import { r as setMatrixSdkLogMode } from "./logging-CoaEyRtA.mjs";
11
+ import { n as listStaleOpenClawMatrixDevices } from "./device-health-Ck2YpEVN.mjs";
12
+ import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-RLsY-gu6.mjs";
13
+ import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-Dh1dtuSz.mjs";
14
+ import { a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, g as runMatrixSelfVerification, h as restoreMatrixRoomKeyBackup, l as getMatrixVerificationSas, m as resetMatrixRoomKeyBackup, n as bootstrapMatrixVerification, p as requestMatrixVerification, r as cancelMatrixVerification, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-CcZIVL8P.mjs";
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
- // extensions/matrix/src/cli-shared.ts
25
+ //#region extensions/matrix/src/cli-shared.ts
26
26
  const MATRIX_CLI_RECOVERY_KEY_STDIN_MAX_BYTES = 1048576;
27
27
  function withMatrixVerificationBootstrapOptions(command) {
28
28
  return command.option("--account <id>", "Account ID (for multi-account setups)").option("--recovery-key <key>", "Recovery key to apply before bootstrap (prefer --recovery-key-stdin)").option("--recovery-key-stdin", "Read the Matrix recovery key from stdin").option("--force-reset-cross-signing", "Force reset cross-signing identity before bootstrap (requires active recovery key)").option("--verbose", "Show detailed diagnostics").option("--json", "Output as JSON");
@@ -330,7 +330,8 @@ function printVerificationStatus(status, verbose = false, accountId) {
330
330
  }
331
331
  printVerificationGuidance(status, accountId);
332
332
  }
333
- // extensions/matrix/src/matrix/actions/devices.ts
333
+ //#endregion
334
+ //#region extensions/matrix/src/matrix/actions/devices.ts
334
335
  async function listMatrixOwnDevices(opts = {}) {
335
336
  return await withResolvedActionClient(opts, async (client) => await client.listOwnDevices());
336
337
  }
@@ -349,7 +350,8 @@ async function pruneMatrixStaleGatewayDevices(opts = {}) {
349
350
  };
350
351
  });
351
352
  }
352
- // extensions/matrix/src/cli-account.ts
353
+ //#endregion
354
+ //#region extensions/matrix/src/cli-account.ts
353
355
  function registerMatrixAccountCommands(root) {
354
356
  root.command("account").description("Manage matrix channel accounts").command("add").description("Add or update a matrix account (wrapper around channel setup)").option("--account <id>", "Account ID (default: normalized --name, else default)").option("--name <name>", "Optional display name for this account").option("--avatar-url <url>", "Optional Matrix avatar URL (mxc:// or http(s) URL)").option("--homeserver <url>", "Matrix homeserver URL").option("--proxy <url>", "Optional HTTP(S) proxy URL for Matrix requests").option("--allow-private-network", "Allow Matrix homeserver traffic to private/internal hosts for this account").option("--user-id <id>", "Matrix user ID").option("--access-token <token>", "Matrix access token").option("--password <password>", "Matrix password").option("--device-name <name>", "Matrix device display name").option("--initial-sync-limit <n>", "Matrix initial sync limit").option("--enable-e2ee", "Enable Matrix end-to-end encryption and bootstrap verification").option("--encryption", "Alias for --enable-e2ee").option("--use-env", "Use MATRIX_* env vars (or MATRIX_<ACCOUNT_ID>_* for non-default accounts)").option("--verbose", "Show setup details").option("--json", "Output as JSON").action(async (options) => {
355
357
  await runMatrixCliCommand(options, {
@@ -407,7 +409,7 @@ function registerMatrixAccountCommands(root) {
407
409
  backupVersion: null
408
410
  };
409
411
  if (accountConfig.encryption === true) {
410
- const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-yKeGh4Iy.mjs");
412
+ const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-DaT2j28V.mjs");
411
413
  verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
412
414
  previousCfg: cfg,
413
415
  cfg: updated,
@@ -511,7 +513,8 @@ function registerMatrixAccountCommands(root) {
511
513
  });
512
514
  });
513
515
  }
514
- // extensions/matrix/src/cli-direct.ts
516
+ //#endregion
517
+ //#region extensions/matrix/src/cli-direct.ts
515
518
  function printDirectRoomCandidate(room) {
516
519
  const members = room.joinedMembers === null ? "unavailable" : room.joinedMembers.map((member) => formatMatrixCliText(member)).join(", ") || "none";
517
520
  console.log(`- ${formatMatrixCliText(room.roomId)} [${room.source}] strict=${room.strict ? "yes" : "no"} joined=${members}`);
@@ -534,7 +537,7 @@ async function runMatrixDirectRoomCommand(params) {
534
537
  cfg,
535
538
  accountId: params.accountId
536
539
  }) : void 0;
537
- const [{ withResolvedActionClient, withStartedActionClient }, direct] = await Promise.all([import("./client-N8TEwtmk.mjs").then((n) => n.t), import("./direct-management-D59C1WO-.mjs").then((n) => n.t)]);
540
+ const [{ withResolvedActionClient, withStartedActionClient }, direct] = await Promise.all([import("./client-CFPYqaYK.mjs").then((n) => n.t), import("./direct-management-Dp1giZ34.mjs").then((n) => n.t)]);
538
541
  return await (params.repair ? withStartedActionClient : withResolvedActionClient)({
539
542
  accountId: params.accountId,
540
543
  cfg
@@ -603,7 +606,8 @@ function registerMatrixDirectCommands(root) {
603
606
  });
604
607
  }
605
608
  }
606
- // extensions/matrix/src/cli-doctor.ts
609
+ //#endregion
610
+ //#region extensions/matrix/src/cli-doctor.ts
607
611
  function registerMatrixDoctorCommands(root) {
608
612
  const accountForRoot = (rootDir, stateDir) => rootDir === path.resolve(stateDir, "matrix") ? "default" : path.basename(path.dirname(path.dirname(rootDir)));
609
613
  const doctor = root.command("doctor").description("Inspect and recover Matrix crypto storage refusal");
@@ -631,7 +635,8 @@ function registerMatrixDoctorCommands(root) {
631
635
  console.log(`Matrix crypto refusal cleared for account ${account}; restart the Gateway.`);
632
636
  });
633
637
  }
634
- // extensions/matrix/src/cli-encryption.ts
638
+ //#endregion
639
+ //#region extensions/matrix/src/cli-encryption.ts
635
640
  function isMatrixVerificationSetupComplete(status) {
636
641
  return status.encryptionEnabled && status.verified && status.crossSigningVerified && status.signedByOwner && status.serverDeviceKnown === true && resolveMatrixRoomKeyBackupIssue(status.backup).code === "ok";
637
642
  }
@@ -734,7 +739,8 @@ function registerMatrixEncryptionCommands(root) {
734
739
  });
735
740
  });
736
741
  }
737
- // extensions/matrix/src/cli-verification-backup.ts
742
+ //#endregion
743
+ //#region extensions/matrix/src/cli-verification-backup.ts
738
744
  function registerMatrixVerificationBackupCommands(verify) {
739
745
  const backup = verify.command("backup").description("Matrix room-key backup health and restore");
740
746
  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) => {
@@ -884,7 +890,8 @@ function registerMatrixVerificationBackupCommands(verify) {
884
890
  });
885
891
  });
886
892
  }
887
- // extensions/matrix/src/cli-verification.ts
893
+ //#endregion
894
+ //#region extensions/matrix/src/cli-verification.ts
888
895
  function matrixCliVerificationDmLookupOptions(options) {
889
896
  return {
890
897
  ...options.roomId !== void 0 ? { verificationDmRoomId: options.roomId } : {},
@@ -1160,7 +1167,8 @@ function registerMatrixVerificationCommands(root) {
1160
1167
  });
1161
1168
  registerMatrixVerificationBackupCommands(verify);
1162
1169
  }
1163
- // extensions/matrix/src/cli.ts
1170
+ //#endregion
1171
+ //#region extensions/matrix/src/cli.ts
1164
1172
  function printMatrixOwnDevices(devices) {
1165
1173
  if (devices.length === 0) {
1166
1174
  console.log("Devices: none");
@@ -1229,4 +1237,5 @@ function registerMatrixCli(params) {
1229
1237
  });
1230
1238
  registerMatrixDoctorCommands(root);
1231
1239
  }
1240
+ //#endregion
1232
1241
  export { registerMatrixCli };
@@ -1,8 +1,8 @@
1
1
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
2
- // extensions/matrix/src/cli-metadata.ts
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-B26pps0Q.mjs");
5
+ const { registerMatrixCli } = await import("./cli-dz9hd2dR.mjs");
6
6
  registerMatrixCli({ program });
7
7
  }, { descriptors: [{
8
8
  name: "matrix",
@@ -10,11 +10,13 @@ function registerMatrixCliMetadata(api) {
10
10
  hasSubcommands: true
11
11
  }] });
12
12
  }
13
- // extensions/matrix/cli-metadata.ts
13
+ //#endregion
14
+ //#region extensions/matrix/cli-metadata.ts
14
15
  var cli_metadata_default = definePluginEntry({
15
16
  id: "matrix",
16
17
  name: "Matrix",
17
18
  description: "Matrix channel plugin (matrix-js-sdk)",
18
19
  register: registerMatrixCliMetadata
19
20
  });
21
+ //#endregion
20
22
  export { registerMatrixCliMetadata as n, cli_metadata_default as t };
@@ -1,13 +1,13 @@
1
- import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
- import { C as resolveMatrixRoomId } from "./send-CWjH-l-T.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
+ import { C as resolveMatrixRoomId } from "./send-HHAbKARg.mjs";
3
3
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
4
- // extensions/matrix/src/matrix/actions/client.ts
4
+ //#region extensions/matrix/src/matrix/actions/client.ts
5
5
  var client_exports = /* @__PURE__ */ __exportAll({
6
6
  withResolvedActionClient: () => withResolvedActionClient,
7
7
  withResolvedRoomAction: () => withResolvedRoomAction,
8
8
  withStartedActionClient: () => withStartedActionClient
9
9
  });
10
- const loadMatrixActionClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-k6Zm1M8Y.mjs"));
10
+ const loadMatrixActionClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-CTT0VF6v.mjs"));
11
11
  async function withResolvedActionClient(opts, run) {
12
12
  const { withResolvedRuntimeMatrixClient } = await loadMatrixActionClientRuntime();
13
13
  return await withResolvedRuntimeMatrixClient(opts, run);
@@ -23,4 +23,5 @@ async function withResolvedRoomAction(roomId, opts, run) {
23
23
  return await run(client, await resolveMatrixRoomId(client, roomId), abortSignal);
24
24
  });
25
25
  }
26
+ //#endregion
26
27
  export { withStartedActionClient as i, withResolvedActionClient as n, withResolvedRoomAction as r, client_exports as t };