@openclaw/matrix 2026.11.8 → 2026.11.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/.setup/{account-config-CRsKoMqJ.mjs → account-config-CVM2a28p.mjs} +1 -2
  2. package/dist/.setup/{account-selection-UUPhMBmu.mjs → account-selection-Cow3TMFO.mjs} +5 -8
  3. package/dist/.setup/{approval-handler.runtime-CKiMSdnX.mjs → approval-handler.runtime-eLiImxA4.mjs} +8 -9
  4. package/dist/.setup/{approval-reactions-BazmsDbe.mjs → approval-reactions-Bz_8XB01.mjs} +2 -3
  5. package/dist/.setup/{backup-health-Dm_YMVFT.mjs → backup-health-BxH69np2.mjs} +1 -2
  6. package/dist/.setup/{channel-CZJeLUuu.mjs → channel-D4Ro9xGw.mjs} +27 -38
  7. package/dist/.setup/{channel.runtime-hpiGNile.mjs → channel.runtime-BJs5y1VF.mjs} +10 -12
  8. package/dist/.setup/{channel.setup-Dc4G7kdF.mjs → channel.setup-DbtdaDqc.mjs} +6 -8
  9. package/dist/.setup/{cli-DnLr6VVE.mjs → cli-_ZHQruAA.mjs} +23 -31
  10. package/dist/.setup/{cli-doctor-DRM-8rZg.mjs → cli-doctor-CoRX0erj.mjs} +3 -4
  11. package/dist/.setup/{cli-metadata-C9wZ_TOY.mjs → cli-metadata-BmSJWjxf.mjs} +3 -5
  12. package/dist/.setup/{client-CnPiPhTg.mjs → client-BPMbgtzn.mjs} +21 -26
  13. package/dist/.setup/{client-CsgjDjyA.mjs → client-DVAwx3tH.mjs} +4 -5
  14. package/dist/.setup/{client-bootstrap-CRN75TtW.mjs → client-bootstrap-C02A2wi6.mjs} +2 -3
  15. package/dist/.setup/{client-support-B_Mp4Qk9.mjs → client-support-CqXAOZp3.mjs} +2 -3
  16. package/dist/.setup/{config-paths-CnREYb1Y.mjs → config-paths-DBpHxDyc.mjs} +1 -2
  17. package/dist/.setup/{create-client-C5bd0RUQ.mjs → create-client-B36cEJY6.mjs} +8 -9
  18. package/dist/.setup/{credentials-Byq2Kcqg.mjs → credentials-CGgWuhFV.mjs} +5 -6
  19. package/dist/.setup/{credentials-read-CM6wXUjL.mjs → credentials-read-rPqEpuxv.mjs} +5 -6
  20. package/dist/.setup/{credentials-state-B3cuUFwZ.mjs → credentials-state-jxq29yQw.mjs} +1 -2
  21. package/dist/.setup/{crypto-node.runtime-6Aj_ltHQ.mjs → crypto-node.runtime-E_hqXGxm.mjs} +1 -2
  22. package/dist/.setup/{crypto-runtime-EdW32JgS.mjs → crypto-runtime-Db6nQPh-.mjs} +10 -15
  23. package/dist/.setup/{crypto-state-store-m13QToc7.mjs → crypto-state-store-CzAmeC_Z.mjs} +4 -5
  24. package/dist/.setup/{crypto-store-ownership-CVeppnSH.mjs → crypto-store-ownership-DPO9WcVz.mjs} +3 -4
  25. package/dist/.setup/{crypto-unsafe-state-doctor-C_vhqxOm.mjs → crypto-unsafe-state-doctor-D3WLE-t4.mjs} +6 -7
  26. package/dist/.setup/{deps-D-W_QQjz.mjs → deps-CVPT2Ros.mjs} +1 -2
  27. package/dist/.setup/{device-health-Ck2YpEVN.mjs → device-health-D7n-lPeb.mjs} +2 -3
  28. package/dist/.setup/{direct-management-Dp1giZ34.mjs → direct-management-D59C1WO-.mjs} +7 -11
  29. package/dist/.setup/{directory-live-Brv_PC6z.mjs → directory-live-Bok1h40u.mjs} +5 -6
  30. package/dist/.setup/{doctor-contract-BANpMUbP.mjs → doctor-contract-GiXgCj7k.mjs} +2 -3
  31. package/dist/.setup/{draft-stream-BAf9CYmE.mjs → draft-stream-BbTgTBUa.mjs} +3 -4
  32. package/dist/.setup/{encryption-guidance-Br3Lv9Hm.mjs → encryption-guidance-DfbEaKct.mjs} +3 -4
  33. package/dist/.setup/{env-vars-aEBngJPa.mjs → env-vars-Bh1iOXJ1.mjs} +1 -2
  34. package/dist/.setup/{errors-Bw4EHwKX.mjs → errors-CL3YJV8U.mjs} +1 -2
  35. package/dist/.setup/{event-helpers-CxNgMQqH.mjs → event-helpers-DDUjVVf7.mjs} +1 -2
  36. package/dist/.setup/{exec-approvals-ClD4sAHY.mjs → exec-approvals-DHPrWdH5.mjs} +6 -9
  37. package/dist/.setup/{file-sync-store-Dilb8bVT.mjs → file-sync-store-fkSjB162.mjs} +5 -6
  38. package/dist/.setup/{http-client-B_ohXrBm.mjs → http-client-CqnKFKUH.mjs} +5 -8
  39. package/dist/.setup/{idb-persistence-COLTtrm_.mjs → idb-persistence-DeGUs--C.mjs} +6 -7
  40. package/dist/.setup/{idb-persistence-lock-Bh3ZLIsE.mjs → idb-persistence-lock-CH2K6d_3.mjs} +1 -2
  41. package/dist/.setup/{joined-room-encryption-C0gHa2DG.mjs → joined-room-encryption-9sJK1kM-.mjs} +2 -3
  42. package/dist/.setup/{logger-CuAzdD8Q.mjs → logger-B9TwnY6C.mjs} +2 -3
  43. package/dist/.setup/{logging-CoaEyRtA.mjs → logging-Bnsn7s4r.mjs} +3 -4
  44. package/dist/.setup/{messages-zsGFORuZ.mjs → messages-DJnlpqat.mjs} +9 -14
  45. package/dist/.setup/{monitor-CdT6CsWk.mjs → monitor-DUq2MOB8.mjs} +60 -90
  46. package/dist/.setup/{onboarding-FJiJ-X6s.mjs → onboarding-B-eNKDM4.mjs} +10 -11
  47. package/dist/.setup/{outbound-yjH1XHCr.mjs → outbound-C2GWN9M_.mjs} +3 -4
  48. package/dist/.setup/{profile-update-uRiRQTtX.mjs → profile-update-DpGQpxMi.mjs} +7 -9
  49. package/dist/.setup/{reaction-events-DYJrx8eq.mjs → reaction-events-CDTXMh8-.mjs} +8 -9
  50. package/dist/.setup/{resolve-targets-DwRQnBpN.mjs → resolve-targets-ZIJ6qkiK.mjs} +4 -5
  51. package/dist/.setup/{retired-state-DohpBmxW.mjs → retired-state-BsxdpJNk.mjs} +2 -4
  52. package/dist/.setup/{room-info-B6-Yo6I5.mjs → room-info-BZjtLeSm.mjs} +6 -8
  53. package/dist/.setup/{runtime-1kn1P6io.mjs → runtime-Ck8TjD7L.mjs} +1 -2
  54. package/dist/.setup/{runtime-doctor-migrations-hxP-CXX7.mjs → runtime-doctor-migrations-CSvRANPN.mjs} +5 -10
  55. package/dist/.setup/{runtime-setter-api-i2MOXoT3.mjs → runtime-setter-api-CpwhcBQK.mjs} +1 -1
  56. package/dist/.setup/{sdk-CPgBCtd2.mjs → sdk-Dq4fmgje.mjs} +32 -46
  57. package/dist/.setup/{secret-contract-DxyzKSzf.mjs → secret-contract-AKnr45nw.mjs} +2 -3
  58. package/dist/.setup/{secret-contract-api-Dukgvike.mjs → secret-contract-api-DMSwMIxd.mjs} +1 -1
  59. package/dist/.setup/{send-CCT72yQb.mjs → send-DNqlA143.mjs} +25 -41
  60. package/dist/.setup/{send-currentness-DGxiiBn9.mjs → send-currentness-D1x6YP9O.mjs} +2 -4
  61. package/dist/.setup/{setup-bootstrap-CB0idLzk.mjs → setup-bootstrap-BMqnuJ8B.mjs} +4 -5
  62. package/dist/.setup/{setup-core-5sswwYZt.mjs → setup-core-C56b-HVD.mjs} +13 -20
  63. package/dist/.setup/setup-plugin-api-Bje8sp8k.mjs +2 -0
  64. package/dist/.setup/{sqlite-state-7WEloajv.mjs → sqlite-state-D6Zpz1q1.mjs} +2 -3
  65. package/dist/.setup/{startup-verification-zrBugJBv.mjs → startup-verification-DfOuAruK.mjs} +5 -6
  66. package/dist/.setup/{state-layout-walk-BQMgMykU.mjs → state-layout-walk-BqCZTHpp.mjs} +2 -3
  67. package/dist/.setup/{storage-BjNHtYwT.mjs → storage-CCarF_gm.mjs} +9 -11
  68. package/dist/.setup/{storage-paths-B51JM-pC.mjs → storage-paths-e_Vq6cvw.mjs} +1 -2
  69. package/dist/.setup/{subagent-hooks-CfGAysJi.mjs → subagent-hooks-D-lCcLGQ.mjs} +2 -3
  70. package/dist/.setup/{sync-cache-state-CovS1oSw.mjs → sync-cache-state-BMvqW4Ii.mjs} +5 -6
  71. package/dist/.setup/{sync-state-CWbp0QSY.mjs → sync-state-Cu1nagBV.mjs} +1 -2
  72. package/dist/.setup/{target-ids-HhcaKX1n.mjs → target-ids-DltG_ZHJ.mjs} +1 -2
  73. package/dist/.setup/{task-runner-DY3aKiQa.mjs → task-runner-CYyGHdNW.mjs} +1 -2
  74. package/dist/.setup/{thread-binding-api-BvuaKpd0.mjs → thread-binding-api-OtSciHmZ.mjs} +2 -3
  75. package/dist/.setup/{thread-bindings-DZvpe83d.mjs → thread-bindings-RsHN1U_f.mjs} +8 -10
  76. package/dist/.setup/{thread-bindings-shared-QmZOfX9Q.mjs → thread-bindings-shared-CBlJu3Wz.mjs} +1 -2
  77. package/dist/.setup/{tool-actions-Dd8WTKXA.mjs → tool-actions-Dyw4wFJ7.mjs} +19 -24
  78. package/dist/.setup/{url-validation-By_2hsXr.mjs → url-validation-DesoKUns.mjs} +1 -2
  79. package/dist/.setup/{verification-BKVxSiIq.mjs → verification-BKSXL6rb.mjs} +4 -5
  80. package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +1 -1
  81. package/dist/api.js +8 -8
  82. package/dist/auth-presence.js +2 -3
  83. package/dist/channel-plugin-api.js +1 -1
  84. package/dist/cli-metadata.js +1 -1
  85. package/dist/contract-api.js +2 -2
  86. package/dist/doctor-contract-api.js +15 -18
  87. package/dist/helper-api.js +3 -3
  88. package/dist/index.js +3 -4
  89. package/dist/plugin-entry.handlers.runtime.js +3 -4
  90. package/dist/runtime-api.js +7 -8
  91. package/dist/runtime-setter-api.js +1 -1
  92. package/dist/secret-contract-api.js +1 -1
  93. package/dist/session-binding-contract-api.js +2 -2
  94. package/dist/setup-entry.js +4 -5
  95. package/dist/setup-plugin-api.js +1 -1
  96. package/dist/subagent-hooks-api.js +2 -3
  97. package/dist/thread-binding-api.js +1 -1
  98. package/dist/thread-bindings-runtime.js +1 -1
  99. package/package.json +4 -4
  100. package/dist/.setup/setup-plugin-api-BU7RNSl9.mjs +0 -2
@@ -1,7 +1,7 @@
1
1
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
2
2
  import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/secret-input";
3
3
  import { listConfiguredAccountIds, resolveMergedAccountConfig, resolveNormalizedAccountEntry } from "openclaw/plugin-sdk/account-resolution-runtime";
4
- //#region extensions/matrix/src/matrix/account-config.ts
4
+ // extensions/matrix/src/matrix/account-config.ts
5
5
  function resolveMatrixBaseConfig(cfg) {
6
6
  return cfg.channels?.matrix ?? {};
7
7
  }
@@ -93,5 +93,4 @@ function resolveMatrixAccountAllowlistConfig(params) {
93
93
  groupAllowFrom
94
94
  };
95
95
  }
96
- //#endregion
97
96
  export { resolveMatrixAccountConfig as a, resolveMatrixAccountAllowlistConfig as i, hasExplicitMatrixAccountConfig as n, resolveMatrixBaseConfig as o, listNormalizedMatrixAccountIds as r, findMatrixAccountConfig as t };
@@ -1,10 +1,10 @@
1
- import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
- import { n as listMatrixEnvAccountIds, t as getMatrixScopedEnvVarNames } from "./env-vars-aEBngJPa.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
+ import { n as listMatrixEnvAccountIds, t as getMatrixScopedEnvVarNames } from "./env-vars-Bh1iOXJ1.mjs";
3
3
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
4
4
  import { isRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  import { listCombinedAccountIds, listConfiguredAccountIds, resolveListedDefaultAccountId, resolveNormalizedAccountEntry } from "openclaw/plugin-sdk/account-core";
6
6
  import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/secret-input";
7
- //#region extensions/matrix/src/auth-precedence.ts
7
+ // extensions/matrix/src/auth-precedence.ts
8
8
  const MATRIX_CONFIG_STRING_FIELDS = [
9
9
  "homeserver",
10
10
  "userId",
@@ -28,8 +28,7 @@ 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
- //#endregion
32
- //#region extensions/matrix/src/matrix/client/env-auth.ts
31
+ // extensions/matrix/src/matrix/client/env-auth.ts
33
32
  function cleanEnv(value) {
34
33
  return normalizeOptionalString(value) ?? "";
35
34
  }
@@ -86,8 +85,7 @@ function resolveMatrixEnvAuthReadiness(accountId, env = process.env) {
86
85
  missingMessage: `Set Matrix env vars for the default account (for example MATRIX_HOMESERVER + MATRIX_ACCESS_TOKEN, MATRIX_USER_ID + MATRIX_PASSWORD, or ${defaultKeys.homeserver} + ${defaultKeys.accessToken}).`
87
86
  };
88
87
  }
89
- //#endregion
90
- //#region extensions/matrix/src/account-selection.ts
88
+ // extensions/matrix/src/account-selection.ts
91
89
  var account_selection_exports = /* @__PURE__ */ __exportAll({
92
90
  findMatrixAccountEntry: () => findMatrixAccountEntry,
93
91
  hasImplicitMatrixAccountConfig: () => hasImplicitMatrixAccountConfig,
@@ -190,5 +188,4 @@ function requiresExplicitMatrixDefaultAccount(cfg, env = process.env) {
190
188
  const configuredDefault = normalizeOptionalAccountId(typeof channel.defaultAccount === "string" ? channel.defaultAccount : void 0);
191
189
  return !(configuredDefault && configuredAccountIds.includes(configuredDefault));
192
190
  }
193
- //#endregion
194
191
  export { resolveConfiguredMatrixAccountIds as a, hasReadyMatrixEnvAuth as c, resolveScopedMatrixEnvConfig as d, 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-CRsKoMqJ.mjs";
2
- import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-ClD4sAHY.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-CCT72yQb.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-zsGFORuZ.mjs";
1
+ import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
2
+ import { r as isMatrixAnyApprovalClientEnabled, s as shouldHandleMatrixApprovalRequest } from "./exec-approvals-DHPrWdH5.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-DNqlA143.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-DJnlpqat.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
- //#region extensions/matrix/src/approval-handler.runtime.ts
15
+ // 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,5 +341,4 @@ const matrixApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapterAsy
341
341
  }
342
342
  }
343
343
  });
344
- //#endregion
345
344
  export { matrixApprovalNativeRuntime };
@@ -1,9 +1,9 @@
1
- import { r as getOptionalMatrixRuntime } from "./runtime-1kn1P6io.mjs";
1
+ import { r as getOptionalMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
2
2
  import { normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/routing";
3
3
  import { 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
- //#region extensions/matrix/src/approval-reactions.ts
6
+ // extensions/matrix/src/approval-reactions.ts
7
7
  const MATRIX_APPROVAL_REACTION_BINDINGS = [
8
8
  {
9
9
  decision: "allow-once",
@@ -178,5 +178,4 @@ async function resolveMatrixApprovalReactionTargetWithPersistence(params) {
178
178
  reactionKey: params.reactionKey
179
179
  });
180
180
  }
181
- //#endregion
182
181
  export { unregisterMatrixApprovalReactionTarget as a, resolveMatrixApprovalReactionTargetWithPersistence as i, listMatrixApprovalReactionBindings as n, unregisterMatrixApprovalReactionTargetsForApproval as o, registerMatrixApprovalReactionTarget as r, buildMatrixApprovalReactionHint as t };
@@ -1,4 +1,4 @@
1
- //#region extensions/matrix/src/matrix/backup-health.ts
1
+ // extensions/matrix/src/matrix/backup-health.ts
2
2
  function resolveMatrixRoomKeyBackupIssue(backup) {
3
3
  if (!backup.serverVersion) return {
4
4
  code: "missing-server-backup",
@@ -56,5 +56,4 @@ function resolveMatrixRoomKeyBackupReadinessError(backup, opts) {
56
56
  if (issue.message) return `Matrix room key backup is not usable: ${issue.message}.`;
57
57
  return "Matrix room key backup is not usable on this device.";
58
58
  }
59
- //#endregion
60
59
  export { resolveMatrixRoomKeyBackupReadinessError as n, resolveMatrixRoomKeyBackupIssue as t };
@@ -1,14 +1,14 @@
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-5sswwYZt.mjs";
5
- import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-Dc4G7kdF.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-ClD4sAHY.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";
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-C56b-HVD.mjs";
5
+ import { i as normalizeMatrixUserId, t as matrixPluginBase } from "./channel.setup-DbtdaDqc.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-DHPrWdH5.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";
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
- //#region extensions/matrix/src/actions.ts
38
+ // extensions/matrix/src/actions.ts
39
39
  const MATRIX_PLUGIN_HANDLED_ACTIONS = /* @__PURE__ */ new Set([
40
40
  "send",
41
41
  "poll-vote",
@@ -156,20 +156,18 @@ 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-Dd8WTKXA.mjs");
159
+ const { handleMatrixAction } = await import("./tool-actions-Dyw4wFJ7.mjs");
160
160
  return await handleMatrixAction(ctx);
161
161
  }
162
162
  };
163
- //#endregion
164
- //#region extensions/matrix/src/approval-reaction-auth.ts
163
+ // extensions/matrix/src/approval-reaction-auth.ts
165
164
  var approval_reaction_auth_exports = /* @__PURE__ */ __exportAll({ isMatrixApprovalReactionAuthorizedSender: () => isMatrixApprovalReactionAuthorizedSender });
166
165
  function isMatrixApprovalReactionAuthorizedSender(params) {
167
166
  const normalizedSenderId = params.senderId ? normalizeMatrixApproverId(params.senderId) : void 0;
168
167
  if (!normalizedSenderId) return false;
169
168
  return getMatrixApprovalApprovers(params).includes(normalizedSenderId);
170
169
  }
171
- //#endregion
172
- //#region extensions/matrix/src/approval-native.ts
170
+ // extensions/matrix/src/approval-native.ts
173
171
  function normalizeComparableTarget(value) {
174
172
  const target = resolveMatrixTargetIdentity(value);
175
173
  if (!target) return normalizeLowercaseStringOrEmpty(value);
@@ -272,7 +270,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
272
270
  ],
273
271
  isConfigured: isMatrixAnyApprovalClientEnabled,
274
272
  shouldHandle: shouldHandleMatrixApprovalRequest,
275
- load: async () => (await import("./approval-handler.runtime-CKiMSdnX.mjs")).matrixApprovalNativeRuntime
273
+ load: async () => (await import("./approval-handler.runtime-eLiImxA4.mjs")).matrixApprovalNativeRuntime
276
274
  })
277
275
  });
278
276
  const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
@@ -326,8 +324,7 @@ const matrixApprovalCapability = createChannelApprovalCapability({
326
324
  nativeAsync: matrixBaseNativeApprovalAdapter,
327
325
  render: matrixNativeApprovalCapability.render
328
326
  });
329
- //#endregion
330
- //#region extensions/matrix/src/matrix/monitor/threads.ts
327
+ // extensions/matrix/src/matrix/monitor/threads.ts
331
328
  function resolveMatrixThreadSessionKeys(params) {
332
329
  return resolveThreadSessionKeys({
333
330
  ...params,
@@ -341,8 +338,7 @@ function resolveMatrixThreadRouting(params) {
341
338
  const inboundThreadId = threadRootId && threadRootId !== messageId ? threadRootId : void 0;
342
339
  return { threadId: effectiveThreadReplies === "off" ? void 0 : effectiveThreadReplies === "inbound" ? inboundThreadId : inboundThreadId ?? (messageId || void 0) };
343
340
  }
344
- //#endregion
345
- //#region extensions/matrix/src/matrix/monitor/route.ts
341
+ // extensions/matrix/src/matrix/monitor/route.ts
346
342
  function resolveMatrixBindingRef(params) {
347
343
  return {
348
344
  channel: "matrix",
@@ -441,8 +437,7 @@ function projectMatrixInboundRoute(params, inspection) {
441
437
  pluginId: runtimeRoute.pluginId
442
438
  };
443
439
  }
444
- //#endregion
445
- //#region extensions/matrix/src/matrix/conversation-route-owner.ts
440
+ // extensions/matrix/src/matrix/conversation-route-owner.ts
446
441
  async function prepareMatrixConversationRouteOwnersAsync(inputs, inspectBindings) {
447
442
  const prepared = inputs.map((params) => {
448
443
  const { cfg, conversation } = params;
@@ -486,8 +481,7 @@ async function prepareMatrixConversationRouteOwnersAsync(inputs, inspectBindings
486
481
  return () => item.resolve(inspect()[position]);
487
482
  });
488
483
  }
489
- //#endregion
490
- //#region extensions/matrix/src/matrix/monitor/rooms.ts
484
+ // extensions/matrix/src/matrix/monitor/rooms.ts
491
485
  function readLegacyRoomAllowAlias(room) {
492
486
  const rawRoom = room;
493
487
  return typeof rawRoom?.allow === "boolean" ? rawRoom.allow : void 0;
@@ -521,8 +515,7 @@ function resolveMatrixRoomConfig(params) {
521
515
  matchSource: resolved ? matchKey === "*" ? "wildcard" : "direct" : void 0
522
516
  };
523
517
  }
524
- //#endregion
525
- //#region extensions/matrix/src/presentation-capabilities.ts
518
+ // extensions/matrix/src/presentation-capabilities.ts
526
519
  const matrixPresentationCapabilities = {
527
520
  supported: true,
528
521
  buttons: true,
@@ -534,8 +527,7 @@ const matrixPresentationCapabilities = {
534
527
  supportsEdit: true
535
528
  } }
536
529
  };
537
- //#endregion
538
- //#region extensions/matrix/src/matrix/session-store-metadata.ts
530
+ // extensions/matrix/src/matrix/session-store-metadata.ts
539
531
  function resolveMatrixRoomTargetId(value) {
540
532
  const trimmed = normalizeOptionalString(value);
541
533
  if (!trimmed) return;
@@ -564,8 +556,7 @@ function resolveMatrixStoredSessionMeta(entry) {
564
556
  ...directUserId ? { directUserId } : {}
565
557
  };
566
558
  }
567
- //#endregion
568
- //#region extensions/matrix/src/session-route.ts
559
+ // extensions/matrix/src/session-route.ts
569
560
  async function resolveMatrixOutboundSessionRoute(params) {
570
561
  const target = resolveMatrixTargetIdentity(params.resolvedTarget?.to ?? params.target) ?? resolveMatrixTargetIdentity(params.target);
571
562
  if (!target) return null;
@@ -627,14 +618,13 @@ async function resolveMatrixOutboundSessionRoute(params) {
627
618
  canRecoverCurrentThread: ({ route }) => route.peer.kind !== "direct" || (params.cfg.session?.dmScope ?? "main") !== "main"
628
619
  });
629
620
  }
630
- //#endregion
631
- //#region extensions/matrix/src/channel.ts
632
- const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-hpiGNile.mjs"), "matrixChannelRuntime");
633
- const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-CdT6CsWk.mjs").catch((error) => {
621
+ // extensions/matrix/src/channel.ts
622
+ const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-BJs5y1VF.mjs"), "matrixChannelRuntime");
623
+ const loadMatrixMonitorModule = createLazyRuntimeModule(() => import("./monitor-DUq2MOB8.mjs").catch((error) => {
634
624
  loadMatrixMonitorModule.clear();
635
625
  throw error;
636
626
  }));
637
- const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-DwRQnBpN.mjs").then((n) => n.n), "resolveMatrixTargets");
627
+ const loadMatrixResolver = createLazyRuntimeNamedExport(() => import("./resolve-targets-ZIJ6qkiK.mjs").then((n) => n.n), "resolveMatrixTargets");
638
628
  const matrixDoctor = {
639
629
  dmAllowFromMode: "nestedOnly",
640
630
  groupModel: "sender",
@@ -1090,5 +1080,4 @@ const matrixPlugin = createChatChannelPlugin({
1090
1080
  },
1091
1081
  outbound: matrixChannelOutbound
1092
1082
  });
1093
- //#endregion
1094
1083
  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-By_2hsXr.mjs";
2
- import { C as reconcileMatrixUnknownSend, S as cleanupMatrixDeliveryPlans, o as sendTypingMatrix, r as sendMessageMatrix } from "./send-CCT72yQb.mjs";
3
- import { c as resolveMatrixLocalTimeoutMs } from "./client-support-B_Mp4Qk9.mjs";
4
- import { c as resolveMatrixAuth } from "./client-CnPiPhTg.mjs";
5
- import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-Brv_PC6z.mjs";
6
- import { t as matrixOutbound } from "./outbound-yjH1XHCr.mjs";
7
- import { t as resolveMatrixTargets } from "./resolve-targets-DwRQnBpN.mjs";
1
+ import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-DesoKUns.mjs";
2
+ import { C as reconcileMatrixUnknownSend, S as cleanupMatrixDeliveryPlans, o as sendTypingMatrix, r as sendMessageMatrix } from "./send-DNqlA143.mjs";
3
+ import { c as resolveMatrixLocalTimeoutMs } from "./client-support-CqXAOZp3.mjs";
4
+ import { c as resolveMatrixAuth } from "./client-BPMbgtzn.mjs";
5
+ import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-Bok1h40u.mjs";
6
+ import { t as matrixOutbound } from "./outbound-C2GWN9M_.mjs";
7
+ import { t as resolveMatrixTargets } from "./resolve-targets-ZIJ6qkiK.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
- //#region extensions/matrix/src/matrix/probe.ts
12
+ // 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-B_ohXrBm.mjs").then((n) => n.n);
30
+ const { MatrixAuthedHttpClient } = await import("./http-client-CqnKFKUH.mjs").then((n) => n.n);
31
31
  const identity = await new MatrixAuthedHttpClient({
32
32
  homeserver,
33
33
  accessToken: params.accessToken,
@@ -55,8 +55,7 @@ async function probeMatrix(params) {
55
55
  error: formatErrorMessage(error)
56
56
  }));
57
57
  }
58
- //#endregion
59
- //#region extensions/matrix/src/channel.runtime.ts
58
+ // extensions/matrix/src/channel.runtime.ts
60
59
  const matrixChannelRuntime = {
61
60
  cleanupMatrixDeliveryPlans,
62
61
  listMatrixDirectoryGroupsLive,
@@ -69,5 +68,4 @@ const matrixChannelRuntime = {
69
68
  sendMessageMatrix,
70
69
  sendTypingMatrix
71
70
  };
72
- //#endregion
73
71
  export { matrixChannelRuntime };
@@ -1,5 +1,5 @@
1
- import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
2
- import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, i as matrixSetupContract, m as listMatrixAccountIds, t as createMatrixSetupWizardProxy, v as resolveMatrixAccountAsync } from "./setup-core-5sswwYZt.mjs";
1
+ import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
2
+ import { _ as resolveMatrixAccount, g as resolveDefaultMatrixAccountId, i as matrixSetupContract, m as listMatrixAccountIds, t as createMatrixSetupWizardProxy, v as resolveMatrixAccountAsync } from "./setup-core-C56b-HVD.mjs";
3
3
  import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
4
4
  import { createChannelConfigUiHints } from "openclaw/plugin-sdk/channel-core";
5
5
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -9,7 +9,7 @@ import { normalizeStringEntries as normalizeStringEntries$1 } from "openclaw/plu
9
9
  import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
10
10
  import { AllowFromListSchema, ChannelBotLoopProtectionSchema, ChannelDeliveryStreamingConfigSchema, ChannelStreamingPreviewSchema, ChannelStreamingProgressSchema, ContextVisibilityModeSchema, GroupPolicySchema, MarkdownConfigSchema, MentionPatternsPolicySchema, buildChannelConfigSchema, buildGroupEntrySchema, buildNestedDmConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
11
11
  import { z } from "zod";
12
- //#region extensions/matrix/src/matrix/monitor/allowlist.ts
12
+ // extensions/matrix/src/matrix/monitor/allowlist.ts
13
13
  function normalizeMatrixUser(raw) {
14
14
  const value = (raw ?? "").trim();
15
15
  if (!value) return "";
@@ -58,8 +58,7 @@ function resolveMatrixAllowListMatch(params) {
58
58
  candidates
59
59
  });
60
60
  }
61
- //#endregion
62
- //#region extensions/matrix/src/config-schema.ts
61
+ // extensions/matrix/src/config-schema.ts
63
62
  const matrixChannelConfigUiHints = {
64
63
  requireMentionInBotThreads: {
65
64
  label: "Mention in Bot Threads",
@@ -279,7 +278,7 @@ const matrixPluginBase = {
279
278
  order: 70,
280
279
  quickstartAllowFrom: true
281
280
  },
282
- setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-FJiJ-X6s.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
281
+ setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./onboarding-B-eNKDM4.mjs").then((n) => n.n)).matrixOnboardingAdapter })),
283
282
  setupContract: matrixSetupContract,
284
283
  capabilities: {
285
284
  chatTypes: [
@@ -297,7 +296,7 @@ const matrixPluginBase = {
297
296
  noopPrefixes: ["messages.ackReactionScope"]
298
297
  },
299
298
  lifecycle: { onAccountRemoved: async ({ accountId }) => {
300
- const { clearMatrixCredentials } = await import("./credentials-Byq2Kcqg.mjs");
299
+ const { clearMatrixCredentials } = await import("./credentials-CGgWuhFV.mjs");
301
300
  await clearMatrixCredentials(process.env, accountId);
302
301
  } },
303
302
  configSchema: MatrixChannelConfigSchema,
@@ -349,5 +348,4 @@ const matrixSetupPlugin = {
349
348
  })).configured
350
349
  }
351
350
  };
352
- //#endregion
353
351
  export { resolveMatrixAllowListMatch as a, normalizeMatrixUserId as i, matrixSetupPlugin as n, normalizeMatrixAllowList as r, matrixPluginBase as t };
@@ -1,16 +1,16 @@
1
- import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
- import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
3
- import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-5sswwYZt.mjs";
4
- import { n as resolveMatrixConfigPath } from "./config-paths-CnREYb1Y.mjs";
5
- import { l as resolveMatrixAuthContext } from "./client-CnPiPhTg.mjs";
6
- import { n as withResolvedActionClient } from "./client-CsgjDjyA.mjs";
7
- import { registerMatrixDoctorCommands } from "./cli-doctor-DRM-8rZg.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-uRiRQTtX.mjs";
13
- import { a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, g as runMatrixSelfVerification, h as restoreMatrixRoomKeyBackup, l as getMatrixVerificationSas, m as resetMatrixRoomKeyBackup, n as bootstrapMatrixVerification, p as requestMatrixVerification, r as cancelMatrixVerification, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-BKVxSiIq.mjs";
1
+ import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
2
+ import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
3
+ import { p as updateMatrixAccountConfig, r as matrixSetupAdapter, v as resolveMatrixAccountAsync } from "./setup-core-C56b-HVD.mjs";
4
+ import { n as resolveMatrixConfigPath } from "./config-paths-DBpHxDyc.mjs";
5
+ import { l as resolveMatrixAuthContext } from "./client-BPMbgtzn.mjs";
6
+ import { n as withResolvedActionClient } from "./client-DVAwx3tH.mjs";
7
+ import { registerMatrixDoctorCommands } from "./cli-doctor-CoRX0erj.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-DpGQpxMi.mjs";
13
+ import { a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, g as runMatrixSelfVerification, h as restoreMatrixRoomKeyBackup, l as getMatrixVerificationSas, m as resetMatrixRoomKeyBackup, n as bootstrapMatrixVerification, p as requestMatrixVerification, r as cancelMatrixVerification, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-BKSXL6rb.mjs";
14
14
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
15
15
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
16
16
  import { parseStrictInteger, timestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
@@ -20,7 +20,7 @@ import { readByteStreamWithLimit } from "openclaw/plugin-sdk/response-limit-runt
20
20
  import { isDeepStrictEqual } from "node:util";
21
21
  import { runWithLocalStateOwner } from "openclaw/plugin-sdk/cli-state-owner";
22
22
  import { getRuntimeConfigSnapshot, getRuntimeConfigSourceSnapshot } from "openclaw/plugin-sdk/runtime-config-snapshot";
23
- //#region extensions/matrix/src/cli-shared.ts
23
+ // extensions/matrix/src/cli-shared.ts
24
24
  const MATRIX_CLI_RECOVERY_KEY_STDIN_MAX_BYTES = 1048576;
25
25
  function withMatrixVerificationBootstrapOptions(command) {
26
26
  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");
@@ -328,8 +328,7 @@ function printVerificationStatus(status, verbose = false, accountId) {
328
328
  }
329
329
  printVerificationGuidance(status, accountId);
330
330
  }
331
- //#endregion
332
- //#region extensions/matrix/src/matrix/actions/devices.ts
331
+ // extensions/matrix/src/matrix/actions/devices.ts
333
332
  async function listMatrixOwnDevices(opts = {}) {
334
333
  return await withResolvedActionClient(opts, async (client) => await client.listOwnDevices());
335
334
  }
@@ -348,8 +347,7 @@ async function pruneMatrixStaleGatewayDevices(opts = {}) {
348
347
  };
349
348
  });
350
349
  }
351
- //#endregion
352
- //#region extensions/matrix/src/cli-account.ts
350
+ // extensions/matrix/src/cli-account.ts
353
351
  function registerMatrixAccountCommands(root) {
354
352
  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
353
  await runMatrixCliCommand(options, {
@@ -407,7 +405,7 @@ function registerMatrixAccountCommands(root) {
407
405
  backupVersion: null
408
406
  };
409
407
  if (accountConfig.encryption === true) {
410
- const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-CB0idLzk.mjs");
408
+ const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-BMqnuJ8B.mjs");
411
409
  verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
412
410
  previousCfg: cfg,
413
411
  cfg: updated,
@@ -511,8 +509,7 @@ function registerMatrixAccountCommands(root) {
511
509
  });
512
510
  });
513
511
  }
514
- //#endregion
515
- //#region extensions/matrix/src/cli-direct.ts
512
+ // extensions/matrix/src/cli-direct.ts
516
513
  function printDirectRoomCandidate(room) {
517
514
  const members = room.joinedMembers === null ? "unavailable" : room.joinedMembers.map((member) => formatMatrixCliText(member)).join(", ") || "none";
518
515
  console.log(`- ${formatMatrixCliText(room.roomId)} [${room.source}] strict=${room.strict ? "yes" : "no"} joined=${members}`);
@@ -535,7 +532,7 @@ async function runMatrixDirectRoomCommand(params) {
535
532
  cfg,
536
533
  accountId: params.accountId
537
534
  }) : void 0;
538
- const [{ withResolvedActionClient, withStartedActionClient }, direct] = await Promise.all([import("./client-CsgjDjyA.mjs").then((n) => n.t), import("./direct-management-Dp1giZ34.mjs").then((n) => n.t)]);
535
+ const [{ withResolvedActionClient, withStartedActionClient }, direct] = await Promise.all([import("./client-DVAwx3tH.mjs").then((n) => n.t), import("./direct-management-D59C1WO-.mjs").then((n) => n.t)]);
539
536
  return await (params.repair ? withStartedActionClient : withResolvedActionClient)({
540
537
  accountId: params.accountId,
541
538
  cfg
@@ -604,8 +601,7 @@ function registerMatrixDirectCommands(root) {
604
601
  });
605
602
  }
606
603
  }
607
- //#endregion
608
- //#region extensions/matrix/src/cli-encryption.ts
604
+ // extensions/matrix/src/cli-encryption.ts
609
605
  function isMatrixVerificationSetupComplete(status) {
610
606
  return status.encryptionEnabled && status.verified && status.crossSigningVerified && status.signedByOwner && status.serverDeviceKnown === true && resolveMatrixRoomKeyBackupIssue(status.backup).code === "ok";
611
607
  }
@@ -708,8 +704,7 @@ function registerMatrixEncryptionCommands(root) {
708
704
  });
709
705
  });
710
706
  }
711
- //#endregion
712
- //#region extensions/matrix/src/cli-verification-backup.ts
707
+ // extensions/matrix/src/cli-verification-backup.ts
713
708
  function registerMatrixVerificationBackupCommands(verify) {
714
709
  const backup = verify.command("backup").description("Matrix room-key backup health and restore");
715
710
  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) => {
@@ -859,8 +854,7 @@ function registerMatrixVerificationBackupCommands(verify) {
859
854
  });
860
855
  });
861
856
  }
862
- //#endregion
863
- //#region extensions/matrix/src/cli-verification.ts
857
+ // extensions/matrix/src/cli-verification.ts
864
858
  function matrixCliVerificationDmLookupOptions(options) {
865
859
  return {
866
860
  ...options.roomId !== void 0 ? { verificationDmRoomId: options.roomId } : {},
@@ -1136,8 +1130,7 @@ function registerMatrixVerificationCommands(root) {
1136
1130
  });
1137
1131
  registerMatrixVerificationBackupCommands(verify);
1138
1132
  }
1139
- //#endregion
1140
- //#region extensions/matrix/src/cli.ts
1133
+ // extensions/matrix/src/cli.ts
1141
1134
  function printMatrixOwnDevices(devices) {
1142
1135
  if (devices.length === 0) {
1143
1136
  console.log("Devices: none");
@@ -1212,5 +1205,4 @@ function registerMatrixCli(params) {
1212
1205
  context: { openPluginStateKeyedStore: (options) => getMatrixRuntime().state.openKeyedStoreV2(options) }
1213
1206
  });
1214
1207
  }
1215
- //#endregion
1216
1208
  export { registerMatrixCli };
@@ -1,8 +1,8 @@
1
- import { l as sanitizeMatrixPathSegment } from "./storage-paths-B51JM-pC.mjs";
2
- import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-C_vhqxOm.mjs";
1
+ import { l as sanitizeMatrixPathSegment } from "./storage-paths-e_Vq6cvw.mjs";
2
+ import { n as listMatrixCryptoUnsafeState, r as recoverMatrixCryptoUnsafeState } from "./crypto-unsafe-state-doctor-D3WLE-t4.mjs";
3
3
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
4
4
  import path from "node:path";
5
- //#region extensions/matrix/src/cli-doctor.ts
5
+ // extensions/matrix/src/cli-doctor.ts
6
6
  function registerMatrixDoctorCommands(params) {
7
7
  const accountForRoot = (rootDir, stateDir) => rootDir === path.resolve(stateDir, "matrix") ? "default" : path.basename(path.dirname(path.dirname(rootDir)));
8
8
  const doctor = params.program.description("Inspect and recover Matrix crypto storage refusal");
@@ -32,5 +32,4 @@ function registerMatrixDoctorCommands(params) {
32
32
  console.log(`Matrix crypto refusal cleared for account ${account}. Run openclaw update repair (or openclaw doctor --fix) to finish pending migrations, then restart the Gateway.`);
33
33
  });
34
34
  }
35
- //#endregion
36
35
  export { registerMatrixDoctorCommands };
@@ -1,8 +1,8 @@
1
1
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
2
- //#region extensions/matrix/src/cli-metadata.ts
2
+ // extensions/matrix/src/cli-metadata.ts
3
3
  function registerMatrixCliMetadata(api) {
4
4
  api.registerCli(async ({ program }) => {
5
- const { registerMatrixCli } = await import("./cli-DnLr6VVE.mjs");
5
+ const { registerMatrixCli } = await import("./cli-_ZHQruAA.mjs");
6
6
  registerMatrixCli({ program });
7
7
  }, { descriptors: [{
8
8
  name: "matrix",
@@ -10,13 +10,11 @@ function registerMatrixCliMetadata(api) {
10
10
  hasSubcommands: true
11
11
  }] });
12
12
  }
13
- //#endregion
14
- //#region extensions/matrix/cli-metadata.ts
13
+ // extensions/matrix/cli-metadata.ts
15
14
  var cli_metadata_default = definePluginEntry({
16
15
  id: "matrix",
17
16
  name: "Matrix",
18
17
  description: "Matrix channel plugin (matrix-js-sdk)",
19
18
  register: registerMatrixCliMetadata
20
19
  });
21
- //#endregion
22
20
  export { registerMatrixCliMetadata as n, cli_metadata_default as t };