@openclaw/matrix 2026.11.1 → 2026.11.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 (100) hide show
  1. package/dist/.setup/{account-config-CVM2a28p.mjs → account-config-CRsKoMqJ.mjs} +2 -1
  2. package/dist/.setup/{account-selection-BPFpdMIw.mjs → account-selection-CWsL5zIU.mjs} +8 -5
  3. package/dist/.setup/{approval-handler.runtime-BvuXpzus.mjs → approval-handler.runtime-Co2elSYS.mjs} +9 -8
  4. package/dist/.setup/{approval-reactions-DMDBJos0.mjs → approval-reactions-D2pEUrFS.mjs} +3 -2
  5. package/dist/.setup/{backup-health-BxH69np2.mjs → backup-health-Dm_YMVFT.mjs} +2 -1
  6. package/dist/.setup/{channel-DYRabwmj.mjs → channel-BBvOdxTc.mjs} +44 -30
  7. package/dist/.setup/{channel.runtime-C0VWk0Ch.mjs → channel.runtime-DyX4mM8d.mjs} +10 -8
  8. package/dist/.setup/{channel.setup-Dp7V9AgV.mjs → channel.setup-p6oll48W.mjs} +15 -7
  9. package/dist/.setup/{cli-umlumhB6.mjs → cli-C2XKMk1U.mjs} +39 -28
  10. package/dist/.setup/{cli-metadata-DemZndyG.mjs → cli-metadata-C60BW1oa.mjs} +5 -3
  11. package/dist/.setup/{client-BIsYqIzM.mjs → client-BEl7PU1_.mjs} +25 -19
  12. package/dist/.setup/{client-DL_aELCJ.mjs → client-Cxv-iMwp.mjs} +5 -4
  13. package/dist/.setup/{client-bootstrap-kdsygurH.mjs → client-bootstrap-D1vLveT2.mjs} +3 -2
  14. package/dist/.setup/{client-support-CFofPPPm.mjs → client-support-D-xHScuo.mjs} +5 -3
  15. package/dist/.setup/{config-paths-DBpHxDyc.mjs → config-paths-CnREYb1Y.mjs} +2 -1
  16. package/dist/.setup/{create-client-BFkMM7SP.mjs → create-client-CrY1E3hg.mjs} +9 -8
  17. package/dist/.setup/{credentials-read-BOuCoy-p.mjs → credentials-read-Dj7Hj87M.mjs} +6 -5
  18. package/dist/.setup/{credentials-state-jxq29yQw.mjs → credentials-state-B3cuUFwZ.mjs} +2 -1
  19. package/dist/.setup/{credentials-B3MlOOom.mjs → credentials-udso1z0C.mjs} +6 -5
  20. package/dist/.setup/{crypto-node.runtime-E_hqXGxm.mjs → crypto-node.runtime-6Aj_ltHQ.mjs} +2 -1
  21. package/dist/.setup/{crypto-runtime-s3ogwLRO.mjs → crypto-runtime-DqX7VD1W.mjs} +19 -12
  22. package/dist/.setup/{crypto-state-store-CM57gchf.mjs → crypto-state-store-DclM-fO5.mjs} +5 -3
  23. package/dist/.setup/{crypto-store-ownership-Bratn-Np.mjs → crypto-store-ownership-Dr-T40Rp.mjs} +4 -3
  24. package/dist/.setup/{crypto-unsafe-state-doctor-ClzRgr8z.mjs → crypto-unsafe-state-doctor-BG9qMu0B.mjs} +8 -7
  25. package/dist/.setup/{deps-O7rEnklr.mjs → deps-L_1bUAGL.mjs} +2 -1
  26. package/dist/.setup/{device-health-CmvwmCHB.mjs → device-health-D6_ECUVe.mjs} +3 -2
  27. package/dist/.setup/{direct-management-BOYMqZJQ.mjs → direct-management-ZcjZgYEl.mjs} +11 -7
  28. package/dist/.setup/{directory-live-tItssg9q.mjs → directory-live-_yaRaktv.mjs} +6 -5
  29. package/dist/.setup/{doctor-contract-GiXgCj7k.mjs → doctor-contract-BANpMUbP.mjs} +3 -2
  30. package/dist/.setup/{draft-stream-Buru5huX.mjs → draft-stream-vO_qjwJb.mjs} +4 -3
  31. package/dist/.setup/{encryption-guidance-CLloQ6H7.mjs → encryption-guidance-BLUoN4aV.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-CWeSpE6V.mjs → exec-approvals-BFT-ee9F.mjs} +9 -6
  36. package/dist/.setup/{file-sync-store-D1sEtAap.mjs → file-sync-store-BxUPmUoJ.mjs} +6 -5
  37. package/dist/.setup/{http-client-CxTmU1kT.mjs → http-client-ByR4STVQ.mjs} +7 -4
  38. package/dist/.setup/{idb-persistence-BF0MZglD.mjs → idb-persistence-C2TsCHY2.mjs} +7 -6
  39. package/dist/.setup/{idb-persistence-lock-CH2K6d_3.mjs → idb-persistence-lock-Bh3ZLIsE.mjs} +2 -1
  40. package/dist/.setup/{inbound-dedupe-CZnOq0ja.mjs → inbound-dedupe-sW_gaR44.mjs} +3 -2
  41. package/dist/.setup/{joined-room-encryption-Dl7Sb9FF.mjs → joined-room-encryption-DBbLkdvv.mjs} +3 -2
  42. package/dist/.setup/{logger-BX5kXvh1.mjs → logger-CuAzdD8Q.mjs} +5 -4
  43. package/dist/.setup/{logging-BWPjyW9s.mjs → logging-CoaEyRtA.mjs} +22 -15
  44. package/dist/.setup/{messages-Dt51OgyD.mjs → messages-TuEa_BPZ.mjs} +14 -9
  45. package/dist/.setup/{monitor-BrBbFO8h.mjs → monitor-B86Ll4B8.mjs} +166 -77
  46. package/dist/.setup/{onboarding-QfFvgZ85.mjs → onboarding-DOLEjkg2.mjs} +11 -10
  47. package/dist/.setup/{outbound-B8h2BwR2.mjs → outbound-BWsyqwt1.mjs} +4 -3
  48. package/dist/.setup/{profile-update-DiXtw0NM.mjs → profile-update-DiXSVBki.mjs} +8 -6
  49. package/dist/.setup/{reaction-events-xTg2_wZJ.mjs → reaction-events-CuUeYcBC.mjs} +9 -8
  50. package/dist/.setup/{resolve-targets-vlr765on.mjs → resolve-targets-Dd70hGcM.mjs} +5 -4
  51. package/dist/.setup/{retired-state-vIr2IB90.mjs → retired-state-C4UnLIg4.mjs} +5 -38
  52. package/dist/.setup/{room-info-BSvDbUmt.mjs → room-info-C13IUffQ.mjs} +8 -6
  53. package/dist/.setup/{runtime-Ck8TjD7L.mjs → runtime-1kn1P6io.mjs} +2 -1
  54. package/dist/.setup/{runtime-doctor-migrations-CSvRANPN.mjs → runtime-doctor-migrations-hxP-CXX7.mjs} +10 -5
  55. package/dist/.setup/runtime-setter-api-DtxDAM-x.mjs +3 -0
  56. package/dist/.setup/{sdk-BYR5_wri.mjs → sdk-DNW03GqJ.mjs} +47 -32
  57. package/dist/.setup/{secret-contract-AKnr45nw.mjs → secret-contract-DxyzKSzf.mjs} +3 -2
  58. package/dist/.setup/secret-contract-api-CiuSYjUy.mjs +3 -0
  59. package/dist/.setup/{send-BMe_VcxP.mjs → send-BGgwE5pV.mjs} +40 -24
  60. package/dist/.setup/{send-currentness-CAUVR-f3.mjs → send-currentness-C2rMVVIQ.mjs} +4 -2
  61. package/dist/.setup/{setup-bootstrap-Ch6r7Szn.mjs → setup-bootstrap-BCbltIf_.mjs} +5 -4
  62. package/dist/.setup/{setup-core-CRUekZa3.mjs → setup-core-Di6NtQ_J.mjs} +20 -13
  63. package/dist/.setup/setup-plugin-api-ORC_4yEA.mjs +3 -0
  64. package/dist/.setup/sqlite-state-LByPx4Yp.mjs +37 -0
  65. package/dist/.setup/{startup-verification-Cv_NoW_O.mjs → startup-verification-8xvGpdtK.mjs} +6 -4
  66. package/dist/.setup/{state-layout-walk-BqCZTHpp.mjs → state-layout-walk-BQMgMykU.mjs} +3 -2
  67. package/dist/.setup/{storage-B94yQdJy.mjs → storage-CN4dxdtV.mjs} +11 -8
  68. package/dist/.setup/{storage-paths-e_Vq6cvw.mjs → storage-paths-B51JM-pC.mjs} +2 -1
  69. package/dist/.setup/{subagent-hooks-CT-rdJmh.mjs → subagent-hooks-CSY4iwa_.mjs} +3 -2
  70. package/dist/.setup/{sync-cache-state-B-FayxeA.mjs → sync-cache-state-L1kwjhjj.mjs} +6 -4
  71. package/dist/.setup/{target-ids-DltG_ZHJ.mjs → target-ids-HhcaKX1n.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-CB-jqrf4.mjs → thread-bindings-pNgPVdof.mjs} +10 -7
  74. package/dist/.setup/{thread-bindings-shared-FMu_szTm.mjs → thread-bindings-shared-CPjUA0Ib.mjs} +2 -1
  75. package/dist/.setup/{tool-actions-DjPJ6tpr.mjs → tool-actions-CFC7ZpIt.mjs} +23 -18
  76. package/dist/.setup/{url-validation-C77p4qT9.mjs → url-validation-CF6pG6eE.mjs} +2 -1
  77. package/dist/.setup/{verification-BqjyjLoq.mjs → verification-CuT5ZBDO.mjs} +5 -4
  78. package/dist/api.js +8 -8
  79. package/dist/auth-presence.js +3 -2
  80. package/dist/channel-plugin-api.js +2 -1
  81. package/dist/cli-metadata.js +2 -1
  82. package/dist/contract-api.js +2 -2
  83. package/dist/doctor-contract-api.js +18 -14
  84. package/dist/helper-api.js +3 -3
  85. package/dist/index.js +4 -3
  86. package/dist/plugin-entry.handlers.runtime.js +4 -3
  87. package/dist/runtime-api.js +8 -7
  88. package/dist/runtime-setter-api.js +2 -1
  89. package/dist/secret-contract-api.js +2 -1
  90. package/dist/session-binding-contract-api.js +2 -2
  91. package/dist/setup-entry.js +5 -4
  92. package/dist/setup-plugin-api.js +2 -1
  93. package/dist/subagent-hooks-api.js +3 -2
  94. package/dist/thread-binding-api.js +2 -1
  95. package/dist/thread-bindings-runtime.js +2 -1
  96. package/package.json +4 -4
  97. package/dist/.setup/runtime-setter-api-CpwhcBQK.mjs +0 -2
  98. package/dist/.setup/secret-contract-api-DMSwMIxd.mjs +0 -2
  99. package/dist/.setup/setup-plugin-api-BZPY4Dt2.mjs +0 -2
  100. package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +0 -1
@@ -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_DEFAULT_ACCOUNT_AUTH_ONLY_FIELDS = /* @__PURE__ */ new Set([
9
9
  "userId",
10
10
  "accessToken",
@@ -28,7 +28,8 @@ 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
- // 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, 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-CVM2a28p.mjs";
2
- import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-CWeSpE6V.mjs";
3
- import { s as resolveMatrixTargetIdentity } from "./target-ids-DltG_ZHJ.mjs";
4
- import { a as repairMatrixDirectRooms } from "./direct-management-BOYMqZJQ.mjs";
5
- import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-BMe_VcxP.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-Dt51OgyD.mjs";
1
+ import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
2
+ import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-BFT-ee9F.mjs";
3
+ import { s as resolveMatrixTargetIdentity } from "./target-ids-HhcaKX1n.mjs";
4
+ import { a as repairMatrixDirectRooms } from "./direct-management-ZcjZgYEl.mjs";
5
+ import { a as sendSingleTextMessageMatrix, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-BGgwE5pV.mjs";
6
+ 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-TuEa_BPZ.mjs";
8
8
  import { listMessageReceiptPlatformIds, resolveMessageReceiptPrimaryId } from "openclaw/plugin-sdk/channel-outbound";
9
9
  import { normalizeStringifiedOptionalString, normalizeUniqueStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
10
10
  import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
@@ -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
- // extensions/matrix/src/approval-handler.runtime.ts
16
+ //#region 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,4 +376,5 @@ const matrixApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapterAsy
376
376
  }
377
377
  }
378
378
  });
379
+ //#endregion
379
380
  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 { 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
- // 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-BPFpdMIw.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-CRUekZa3.mjs";
5
- import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-Dp7V9AgV.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-CWeSpE6V.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-FMu_szTm.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-CWsL5zIU.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-Di6NtQ_J.mjs";
5
+ import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-p6oll48W.mjs";
6
+ import { a as isMatrixExecApprovalAuthorizedSender, c as shouldSuppressLocalMatrixExecApprovalPrompt, d as normalizeMatrixApproverId, i as isMatrixApprovalClientEnabled, l as getMatrixApprovalAuthApprovers, n as getMatrixExecApprovalApprovers, o as resolveMatrixExecApprovalTarget, r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest, t as getMatrixApprovalApprovers, u as matrixApprovalAuth } from "./exec-approvals-BFT-ee9F.mjs";
7
+ 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-CPjUA0Ib.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 { resolveConfiguredAcpBindingRecord } from "openclaw/plugin-sdk/acp-bindi
35
35
  import { inspectConversationBindingAsync } from "openclaw/plugin-sdk/conversation-binding-inspection-runtime";
36
36
  import { inspectRuntimeConversationBindingRoute } from "openclaw/plugin-sdk/conversation-binding-runtime";
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",
@@ -155,18 +155,20 @@ const matrixMessageActions = {
155
155
  return account.enabled && account.configured && createActionGate(account.config.actions)("messages") ? payload : null;
156
156
  },
157
157
  handleAction: async (ctx) => {
158
- const { handleMatrixAction } = await import("./tool-actions-DjPJ6tpr.mjs");
158
+ const { handleMatrixAction } = await import("./tool-actions-CFC7ZpIt.mjs");
159
159
  return await handleMatrixAction(ctx);
160
160
  }
161
161
  };
162
- // extensions/matrix/src/approval-reaction-auth.ts
162
+ //#endregion
163
+ //#region extensions/matrix/src/approval-reaction-auth.ts
163
164
  var approval_reaction_auth_exports = /* @__PURE__ */ __exportAll({ isMatrixApprovalReactionAuthorizedSender: () => isMatrixApprovalReactionAuthorizedSender });
164
165
  function isMatrixApprovalReactionAuthorizedSender(params) {
165
166
  const normalizedSenderId = params.senderId ? normalizeMatrixApproverId(params.senderId) : void 0;
166
167
  if (!normalizedSenderId) return false;
167
168
  return getMatrixApprovalApprovers(params).includes(normalizedSenderId);
168
169
  }
169
- // extensions/matrix/src/approval-native.ts
170
+ //#endregion
171
+ //#region extensions/matrix/src/approval-native.ts
170
172
  function normalizeComparableTarget(value) {
171
173
  const target = resolveMatrixTargetIdentity(value);
172
174
  if (!target) return normalizeLowercaseStringOrEmpty(value);
@@ -286,7 +288,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
286
288
  ],
287
289
  isConfigured: isMatrixAnyApprovalClientEnabled,
288
290
  shouldHandle: shouldHandleMatrixApprovalRequest,
289
- load: async () => (await import("./approval-handler.runtime-BvuXpzus.mjs")).matrixApprovalNativeRuntime
291
+ load: async () => (await import("./approval-handler.runtime-Co2elSYS.mjs")).matrixApprovalNativeRuntime
290
292
  })
291
293
  });
292
294
  const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
@@ -340,7 +342,8 @@ const matrixApprovalCapability = createChannelApprovalCapability({
340
342
  nativeAsync: matrixBaseNativeApprovalAdapter,
341
343
  render: matrixNativeApprovalCapability.render
342
344
  });
343
- // extensions/matrix/src/channel-message-adapter.ts
345
+ //#endregion
346
+ //#region extensions/matrix/src/channel-message-adapter.ts
344
347
  function createMatrixMessageAdapter(params) {
345
348
  const base = createChannelMessageAdapterFromOutbound({
346
349
  id: "matrix",
@@ -386,7 +389,8 @@ function createMatrixMessageAdapter(params) {
386
389
  }
387
390
  };
388
391
  }
389
- // extensions/matrix/src/matrix/monitor/rooms.ts
392
+ //#endregion
393
+ //#region extensions/matrix/src/matrix/monitor/rooms.ts
390
394
  function readLegacyRoomAllowAlias(room) {
391
395
  const rawRoom = room;
392
396
  return typeof rawRoom?.allow === "boolean" ? rawRoom.allow : void 0;
@@ -420,7 +424,8 @@ function resolveMatrixRoomConfig(params) {
420
424
  matchSource: resolved ? matchKey === "*" ? "wildcard" : "direct" : void 0
421
425
  };
422
426
  }
423
- // extensions/matrix/src/group-mentions.ts
427
+ //#endregion
428
+ //#region extensions/matrix/src/group-mentions.ts
424
429
  function resolveMatrixGroupScope(params) {
425
430
  const matrixConfig = resolveMatrixAccountConfig({
426
431
  cfg: params.cfg,
@@ -444,7 +449,8 @@ function resolveMatrixGroupRequireMention(params) {
444
449
  function resolveMatrixGroupToolPolicy(params) {
445
450
  return resolveScopeToolsPolicy(resolveMatrixGroupScope(params));
446
451
  }
447
- // extensions/matrix/src/matrix/monitor/threads.ts
452
+ //#endregion
453
+ //#region extensions/matrix/src/matrix/monitor/threads.ts
448
454
  function resolveMatrixThreadSessionKeys(params) {
449
455
  return resolveThreadSessionKeys({
450
456
  ...params,
@@ -458,7 +464,8 @@ function resolveMatrixThreadRouting(params) {
458
464
  const inboundThreadId = threadRootId && threadRootId !== messageId ? threadRootId : void 0;
459
465
  return { threadId: effectiveThreadReplies === "off" ? void 0 : effectiveThreadReplies === "inbound" ? inboundThreadId : inboundThreadId ?? (messageId || void 0) };
460
466
  }
461
- // extensions/matrix/src/matrix/monitor/route.ts
467
+ //#endregion
468
+ //#region extensions/matrix/src/matrix/monitor/route.ts
462
469
  function resolveMatrixDmSessionKey(params) {
463
470
  if (params.dmSessionScope !== "per-room") return params.fallbackSessionKey;
464
471
  return buildAgentSessionKey({
@@ -567,7 +574,8 @@ function projectMatrixInboundRoute(params, inspection) {
567
574
  pluginId: runtimeRoute.pluginId
568
575
  };
569
576
  }
570
- // extensions/matrix/src/matrix/conversation-route-owner.ts
577
+ //#endregion
578
+ //#region extensions/matrix/src/matrix/conversation-route-owner.ts
571
579
  function prepareMatrixConversationRouteOwner(params) {
572
580
  const { cfg, conversation } = params;
573
581
  const accountId = normalizeAccountId(params.accountId);
@@ -612,7 +620,8 @@ async function prepareMatrixConversationRouteOwnersAsync(inputs, inspectBindings
612
620
  return () => item.resolve(inspect()[position]);
613
621
  });
614
622
  }
615
- // extensions/matrix/src/presentation-capabilities.ts
623
+ //#endregion
624
+ //#region extensions/matrix/src/presentation-capabilities.ts
616
625
  const matrixPresentationCapabilities = {
617
626
  supported: true,
618
627
  buttons: true,
@@ -624,10 +633,12 @@ const matrixPresentationCapabilities = {
624
633
  supportsEdit: true
625
634
  } }
626
635
  };
627
- // extensions/matrix/src/resolver.ts
628
- const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-vlr765on.mjs").then((n) => n.n), "resolveMatrixTargets");
636
+ //#endregion
637
+ //#region extensions/matrix/src/resolver.ts
638
+ const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-Dd70hGcM.mjs").then((n) => n.n), "resolveMatrixTargets");
629
639
  const matrixResolverAdapter = { resolveTargets: async (params) => (await loadMatrixResolver())(params) };
630
- // extensions/matrix/src/matrix/session-store-metadata.ts
640
+ //#endregion
641
+ //#region extensions/matrix/src/matrix/session-store-metadata.ts
631
642
  function resolveMatrixRoomTargetId(value) {
632
643
  const trimmed = normalizeOptionalString(value);
633
644
  if (!trimmed) return;
@@ -656,7 +667,8 @@ function resolveMatrixStoredSessionMeta(entry) {
656
667
  ...directUserId ? { directUserId } : {}
657
668
  };
658
669
  }
659
- // extensions/matrix/src/session-route.ts
670
+ //#endregion
671
+ //#region extensions/matrix/src/session-route.ts
660
672
  function resolveEffectiveMatrixAccountId(params) {
661
673
  return normalizeAccountId(params.accountId ?? resolveDefaultMatrixAccountId(params.cfg));
662
674
  }
@@ -733,9 +745,10 @@ async function resolveMatrixOutboundSessionRoute(params) {
733
745
  canRecoverCurrentThread: ({ route }) => route.peer.kind !== "direct" || (params.cfg.session?.dmScope ?? "main") !== "main"
734
746
  });
735
747
  }
736
- // extensions/matrix/src/channel.ts
737
- const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-C0VWk0Ch.mjs"), "matrixChannelRuntime");
738
- const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-BrBbFO8h.mjs").catch((error) => {
748
+ //#endregion
749
+ //#region extensions/matrix/src/channel.ts
750
+ const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DyX4mM8d.mjs"), "matrixChannelRuntime");
751
+ const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-B86Ll4B8.mjs").catch((error) => {
739
752
  loadMatrixMonitorModule.clear();
740
753
  throw error;
741
754
  }));
@@ -1146,4 +1159,5 @@ const matrixPlugin = createChatChannelPlugin({
1146
1159
  },
1147
1160
  outbound: matrixChannelOutbound
1148
1161
  });
1162
+ //#endregion
1149
1163
  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-BMe_VcxP.mjs";
2
- import { u as resolveMatrixAuth } from "./client-BIsYqIzM.mjs";
3
- import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-tItssg9q.mjs";
4
- import { t as matrixOutbound } from "./outbound-B8h2BwR2.mjs";
5
- import { t as resolveMatrixTargets } from "./resolve-targets-vlr765on.mjs";
1
+ import { S as reconcileMatrixUnknownSend, o as sendTypingMatrix, r as sendMessageMatrix, x as cleanupMatrixDeliveryPlans } from "./send-BGgwE5pV.mjs";
2
+ import { u as resolveMatrixAuth } from "./client-BEl7PU1_.mjs";
3
+ import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-_yaRaktv.mjs";
4
+ import { t as matrixOutbound } from "./outbound-BWsyqwt1.mjs";
5
+ import { t as resolveMatrixTargets } from "./resolve-targets-Dd70hGcM.mjs";
6
6
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
7
7
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
8
8
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
9
9
  import { runChannelProbe } from "openclaw/plugin-sdk/text-utility-runtime";
10
- // extensions/matrix/src/matrix/probe.ts
11
- const loadMatrixProbeRuntimeDeps = createLazyRuntimeModule(() => import("./client-BIsYqIzM.mjs").then((n) => n.t));
10
+ //#region extensions/matrix/src/matrix/probe.ts
11
+ const loadMatrixProbeRuntimeDeps = createLazyRuntimeModule(() => import("./client-BEl7PU1_.mjs").then((n) => n.t));
12
12
  async function probeMatrix(params) {
13
13
  return await runChannelProbe(void 0, async () => {
14
14
  const result = {
@@ -58,7 +58,8 @@ async function probeMatrix(params) {
58
58
  error: formatErrorMessage(error)
59
59
  }));
60
60
  }
61
- // extensions/matrix/src/channel.runtime.ts
61
+ //#endregion
62
+ //#region extensions/matrix/src/channel.runtime.ts
62
63
  const matrixChannelRuntime = {
63
64
  cleanupMatrixDeliveryPlans,
64
65
  listMatrixDirectoryGroupsLive,
@@ -71,4 +72,5 @@ const matrixChannelRuntime = {
71
72
  sendMessageMatrix,
72
73
  sendTypingMatrix
73
74
  };
75
+ //#endregion
74
76
  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-CRUekZa3.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-Di6NtQ_J.mjs";
3
3
  import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
4
4
  import { createChannelConfigUiHints } from "openclaw/plugin-sdk/channel-core";
5
5
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -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 "";
@@ -64,7 +64,8 @@ function resolveMatrixAllowListMatch(params) {
64
64
  candidates
65
65
  });
66
66
  }
67
- // extensions/matrix/src/config-adapter.ts
67
+ //#endregion
68
+ //#region extensions/matrix/src/config-adapter.ts
68
69
  const matrixConfigAdapter = {
69
70
  ...createScopedChannelConfigAdapter({
70
71
  sectionKey: "matrix",
@@ -91,7 +92,8 @@ const matrixConfigAdapter = {
91
92
  }),
92
93
  resolveAccountAsync: adaptScopedAccountAccessor(resolveMatrixAccountAsync)
93
94
  };
94
- // extensions/matrix/src/config-ui-hints.ts
95
+ //#endregion
96
+ //#region extensions/matrix/src/config-ui-hints.ts
95
97
  const matrixChannelConfigUiHints = {
96
98
  requireMentionInBotThreads: {
97
99
  label: "Mention in Bot Threads",
@@ -150,7 +152,8 @@ const matrixChannelConfigUiHints = {
150
152
  progress: {}
151
153
  })
152
154
  };
153
- // extensions/matrix/src/config-schema.ts
155
+ //#endregion
156
+ //#region extensions/matrix/src/config-schema.ts
154
157
  const matrixActionSchema = z.object({
155
158
  reactions: z.boolean().optional(),
156
159
  messages: z.boolean().optional(),
@@ -312,7 +315,7 @@ const matrixPluginBase = {
312
315
  order: 70,
313
316
  quickstartAllowFrom: true
314
317
  },
315
- setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-QfFvgZ85.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
318
+ setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-DOLEjkg2.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
316
319
  setupContract: matrixSetupContract,
317
320
  capabilities: {
318
321
  chatTypes: [
@@ -329,6 +332,10 @@ const matrixPluginBase = {
329
332
  configPrefixes: ["channels.matrix"],
330
333
  noopPrefixes: ["messages.ackReactionScope"]
331
334
  },
335
+ lifecycle: { onAccountRemoved: async ({ accountId }) => {
336
+ const { clearMatrixCredentials } = await import("./credentials-udso1z0C.mjs");
337
+ await clearMatrixCredentials(process.env, accountId);
338
+ } },
332
339
  configSchema: MatrixChannelConfigSchema,
333
340
  config: {
334
341
  ...matrixConfigAdapter,
@@ -355,4 +362,5 @@ const matrixSetupPlugin = {
355
362
  })).configured
356
363
  }
357
364
  };
365
+ //#endregion
358
366
  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-CRUekZa3.mjs";
5
- import { n as resolveMatrixConfigPath } from "./config-paths-DBpHxDyc.mjs";
6
- import { d as resolveMatrixAuthContext } from "./client-BIsYqIzM.mjs";
7
- import { n as withResolvedActionClient } from "./client-DL_aELCJ.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-BWPjyW9s.mjs";
11
- import { n as isOpenClawManagedMatrixDevice, r as summarizeMatrixDeviceHealth } from "./device-health-CmvwmCHB.mjs";
12
- import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-DiXtw0NM.mjs";
13
- import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-ClzRgr8z.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-BqjyjLoq.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-Di6NtQ_J.mjs";
5
+ import { n as resolveMatrixConfigPath } from "./config-paths-CnREYb1Y.mjs";
6
+ import { d as resolveMatrixAuthContext } from "./client-BEl7PU1_.mjs";
7
+ import { n as withResolvedActionClient } from "./client-Cxv-iMwp.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 isOpenClawManagedMatrixDevice, r as summarizeMatrixDeviceHealth } from "./device-health-D6_ECUVe.mjs";
12
+ import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-DiXSVBki.mjs";
13
+ import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-BG9qMu0B.mjs";
14
+ import { a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, g as runMatrixSelfVerification, h as restoreMatrixRoomKeyBackup, l as getMatrixVerificationSas, m as resetMatrixRoomKeyBackup, n as bootstrapMatrixVerification, p as requestMatrixVerification, r as cancelMatrixVerification, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-CuT5ZBDO.mjs";
15
15
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
16
16
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
17
17
  import path from "node:path";
@@ -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
  async function readMatrixCliRecoveryKeyFromStdin() {
28
28
  const recoveryKey = (await readByteStreamWithLimit(process.stdin, {
@@ -329,7 +329,8 @@ function printVerificationStatus(status, verbose = false, accountId) {
329
329
  }
330
330
  printVerificationGuidance(status, accountId);
331
331
  }
332
- // extensions/matrix/src/matrix/actions/devices.ts
332
+ //#endregion
333
+ //#region extensions/matrix/src/matrix/actions/devices.ts
333
334
  async function listMatrixOwnDevices(opts = {}) {
334
335
  return await withResolvedActionClient(opts, async (client) => await client.listOwnDevices());
335
336
  }
@@ -348,7 +349,8 @@ async function pruneMatrixStaleGatewayDevices(opts = {}) {
348
349
  };
349
350
  });
350
351
  }
351
- // extensions/matrix/src/cli-account.ts
352
+ //#endregion
353
+ //#region extensions/matrix/src/cli-account.ts
352
354
  async function addMatrixAccount(params) {
353
355
  const initialSyncLimit = parseOptionalInt(params.initialSyncLimit, "--initial-sync-limit", { min: 0 });
354
356
  const cfg = getMatrixRuntime().config.current();
@@ -403,7 +405,7 @@ async function addMatrixAccount(params) {
403
405
  backupVersion: null
404
406
  };
405
407
  if (accountConfig.encryption === true) {
406
- const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-Ch6r7Szn.mjs");
408
+ const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-BCbltIf_.mjs");
407
409
  verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
408
410
  previousCfg: cfg,
409
411
  cfg: updated,
@@ -525,7 +527,8 @@ function registerMatrixAccountCommands(root) {
525
527
  });
526
528
  });
527
529
  }
528
- // extensions/matrix/src/cli-devices.ts
530
+ //#endregion
531
+ //#region extensions/matrix/src/cli-devices.ts
529
532
  function printMatrixOwnDevices(devices) {
530
533
  if (devices.length === 0) {
531
534
  console.log("Devices: none");
@@ -572,7 +575,8 @@ function registerMatrixDeviceCommands(root) {
572
575
  });
573
576
  });
574
577
  }
575
- // extensions/matrix/src/cli-direct.ts
578
+ //#endregion
579
+ //#region extensions/matrix/src/cli-direct.ts
576
580
  function printDirectRoomCandidate(room) {
577
581
  const members = room.joinedMembers === null ? "unavailable" : room.joinedMembers.map((member) => formatMatrixCliText(member)).join(", ") || "none";
578
582
  console.log(`- ${formatMatrixCliText(room.roomId)} [${room.source}] strict=${room.strict ? "yes" : "no"} joined=${members}`);
@@ -591,7 +595,7 @@ function printDirectRoomInspection(result) {
591
595
  }
592
596
  async function inspectMatrixDirectRoom(params) {
593
597
  const cfg = getMatrixRuntime().config.current();
594
- const [{ withResolvedActionClient }, { inspectMatrixDirectRooms }] = await Promise.all([import("./client-DL_aELCJ.mjs").then((n) => n.t), import("./direct-management-BOYMqZJQ.mjs").then((n) => n.t)]);
598
+ const [{ withResolvedActionClient }, { inspectMatrixDirectRooms }] = await Promise.all([import("./client-Cxv-iMwp.mjs").then((n) => n.t), import("./direct-management-ZcjZgYEl.mjs").then((n) => n.t)]);
595
599
  return await withResolvedActionClient({
596
600
  accountId: params.accountId,
597
601
  cfg
@@ -609,7 +613,7 @@ async function repairMatrixDirectRoom(params) {
609
613
  cfg,
610
614
  accountId: params.accountId
611
615
  });
612
- const [{ withStartedActionClient }, { repairMatrixDirectRooms }] = await Promise.all([import("./client-DL_aELCJ.mjs").then((n) => n.t), import("./direct-management-BOYMqZJQ.mjs").then((n) => n.t)]);
616
+ const [{ withStartedActionClient }, { repairMatrixDirectRooms }] = await Promise.all([import("./client-Cxv-iMwp.mjs").then((n) => n.t), import("./direct-management-ZcjZgYEl.mjs").then((n) => n.t)]);
613
617
  return await withStartedActionClient({
614
618
  accountId: params.accountId,
615
619
  cfg
@@ -680,7 +684,8 @@ function registerMatrixDirectCommands(root) {
680
684
  });
681
685
  });
682
686
  }
683
- // extensions/matrix/src/cli-doctor.ts
687
+ //#endregion
688
+ //#region extensions/matrix/src/cli-doctor.ts
684
689
  function registerMatrixDoctorCommands(root) {
685
690
  const accountForRoot = (rootDir, stateDir) => rootDir === path.resolve(stateDir, "matrix") ? "default" : path.basename(path.dirname(path.dirname(rootDir)));
686
691
  const doctor = root.command("doctor").description("Inspect and recover Matrix crypto storage refusal");
@@ -708,7 +713,8 @@ function registerMatrixDoctorCommands(root) {
708
713
  console.log(`Matrix crypto refusal cleared for account ${account}; restart the Gateway.`);
709
714
  });
710
715
  }
711
- // extensions/matrix/src/cli-encryption.ts
716
+ //#endregion
717
+ //#region extensions/matrix/src/cli-encryption.ts
712
718
  function isMatrixVerificationSetupComplete(status) {
713
719
  return status.encryptionEnabled && status.verified && status.crossSigningVerified && status.signedByOwner && status.serverDeviceKnown === true && resolveMatrixRoomKeyBackupIssue(status.backup).code === "ok";
714
720
  }
@@ -815,7 +821,8 @@ function registerMatrixEncryptionCommands(root) {
815
821
  });
816
822
  });
817
823
  }
818
- // extensions/matrix/src/cli-profile.ts
824
+ //#endregion
825
+ //#region extensions/matrix/src/cli-profile.ts
819
826
  function registerMatrixProfileCommands(root) {
820
827
  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) => {
821
828
  await runMatrixCliCommand(options, {
@@ -834,7 +841,8 @@ function registerMatrixProfileCommands(root) {
834
841
  });
835
842
  });
836
843
  }
837
- // extensions/matrix/src/cli-verification-backup.ts
844
+ //#endregion
845
+ //#region extensions/matrix/src/cli-verification-backup.ts
838
846
  function registerMatrixVerificationBackupCommands(verify) {
839
847
  const backup = verify.command("backup").description("Matrix room-key backup health and restore");
840
848
  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) => {
@@ -1000,7 +1008,8 @@ function registerMatrixVerificationBackupCommands(verify) {
1000
1008
  });
1001
1009
  });
1002
1010
  }
1003
- // extensions/matrix/src/cli-verification.ts
1011
+ //#endregion
1012
+ //#region extensions/matrix/src/cli-verification.ts
1004
1013
  function matrixCliVerificationDmLookupOptions(options) {
1005
1014
  return {
1006
1015
  ...options.roomId !== void 0 ? { verificationDmRoomId: options.roomId } : {},
@@ -1276,7 +1285,8 @@ function registerMatrixVerificationCommands(root) {
1276
1285
  });
1277
1286
  registerMatrixVerificationBackupCommands(verify);
1278
1287
  }
1279
- // extensions/matrix/src/cli.ts
1288
+ //#endregion
1289
+ //#region extensions/matrix/src/cli.ts
1280
1290
  function registerMatrixCli(params) {
1281
1291
  const root = params.program.command("matrix").description("Matrix channel utilities").addHelpText("after", () => "\nDocs: https://docs.openclaw.ai/channels/matrix\n");
1282
1292
  registerMatrixAccountCommands(root);
@@ -1287,4 +1297,5 @@ function registerMatrixCli(params) {
1287
1297
  registerMatrixDeviceCommands(root);
1288
1298
  registerMatrixDoctorCommands(root);
1289
1299
  }
1300
+ //#endregion
1290
1301
  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-umlumhB6.mjs");
5
+ const { registerMatrixCli } = await import("./cli-C2XKMk1U.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 };