@openclaw/matrix 2026.11.1 → 2026.11.2

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-OgoZc4uR.mjs} +44 -30
  7. package/dist/.setup/{channel.runtime-C0VWk0Ch.mjs → channel.runtime-BbPbs1Hp.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-B7aj9WSD.mjs} +93 -60
  46. package/dist/.setup/{onboarding-QfFvgZ85.mjs → onboarding-DOLEjkg2.mjs} +11 -10
  47. package/dist/.setup/{outbound-B8h2BwR2.mjs → outbound-SIW3NaJ2.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-C3DvaS9B.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-CFX8h2Vm.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,9 +1,9 @@
1
- import { w as setBoundedMap } from "./send-BMe_VcxP.mjs";
2
- import { s as EventType } from "./messages-Dt51OgyD.mjs";
3
- import { r as withResolvedRoomAction } from "./client-DL_aELCJ.mjs";
4
- import { n as isMatrixNotFoundError } from "./errors-CL3YJV8U.mjs";
1
+ import { w as setBoundedMap } from "./send-BGgwE5pV.mjs";
2
+ import { s as EventType } from "./messages-TuEa_BPZ.mjs";
3
+ import { r as withResolvedRoomAction } from "./client-Cxv-iMwp.mjs";
4
+ import { n as isMatrixNotFoundError } from "./errors-Bw4EHwKX.mjs";
5
5
  import { filterStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
6
- // extensions/matrix/src/matrix/actions/room.ts
6
+ //#region extensions/matrix/src/matrix/actions/room.ts
7
7
  async function getMatrixMemberInfo(userId, opts) {
8
8
  return await withResolvedRoomAction(opts.roomId, opts, async (client, roomId) => {
9
9
  if (!(await client.getJoinedRoomMembers(roomId)).includes(userId)) throw new Error(`User ${userId} is not a member of room ${roomId}`);
@@ -42,7 +42,8 @@ async function getMatrixRoomInfo(roomId, opts = {}) {
42
42
  };
43
43
  });
44
44
  }
45
- // extensions/matrix/src/matrix/monitor/room-info.ts
45
+ //#endregion
46
+ //#region extensions/matrix/src/matrix/monitor/room-info.ts
46
47
  const MAX_ROOM_INFO = 1024;
47
48
  const MAX_MEMBER_DISPLAY_NAMES = 4096;
48
49
  function createMatrixRoomInfoResolver(client) {
@@ -112,4 +113,5 @@ function createMatrixRoomInfoResolver(client) {
112
113
  invalidateMemberDisplayName
113
114
  };
114
115
  }
116
+ //#endregion
115
117
  export { getMatrixMemberInfo as n, getMatrixRoomInfo as r, createMatrixRoomInfoResolver as t };
@@ -1,5 +1,5 @@
1
1
  import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
2
- // extensions/matrix/src/runtime.ts
2
+ //#region extensions/matrix/src/runtime.ts
3
3
  const { setRuntime: setMatrixRuntime, getRuntime: getMatrixRuntime, tryGetRuntime: getOptionalMatrixRuntime } = createPluginRuntimeStore({
4
4
  pluginId: "matrix",
5
5
  errorMessage: "Matrix runtime not initialized"
@@ -25,4 +25,5 @@ function getMatrixRuntimeLifecycle() {
25
25
  const runtime = getOptionalMatrixRuntime();
26
26
  return runtime ? runtimeLifecycles.tryGetRuntime()?.get(runtime) : void 0;
27
27
  }
28
+ //#endregion
28
29
  export { setMatrixRuntimeLifecycle as a, setMatrixRuntime as i, getMatrixRuntimeLifecycle as n, getOptionalMatrixRuntime as r, getMatrixRuntime as t };
@@ -1,5 +1,5 @@
1
1
  import "node:module";
2
- // \0rolldown/runtime.js
2
+ //#region \0rolldown/runtime.js
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -24,7 +24,8 @@ var __copyProps = (to, from, except, desc) => {
24
24
  return to;
25
25
  };
26
26
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
27
- // packages/normalization-core/src/record-coerce.ts
27
+ //#endregion
28
+ //#region packages/normalization-core/src/record-coerce.ts
28
29
  /** Type guard for non-array object records at browser-safe boundaries. */
29
30
  function isRecord(value) {
30
31
  return value !== null && typeof value === "object" && !Array.isArray(value);
@@ -33,7 +34,8 @@ function isRecord(value) {
33
34
  function asNullableRecord(value) {
34
35
  return isRecord(value) ? value : null;
35
36
  }
36
- // src/config/channel-config-normalization.ts
37
+ //#endregion
38
+ //#region src/config/channel-config-normalization.ts
37
39
  /** Applies one channel-specific doctor migration to every object-shaped account. */
38
40
  function normalizeChannelAccounts(params) {
39
41
  const rawAccounts = asNullableRecord(params.entry.accounts);
@@ -109,7 +111,8 @@ function normalizeChannelConfigEntries(params) {
109
111
  changes
110
112
  };
111
113
  }
112
- // src/plugin-sdk/legacy-webhook-listener-migration.ts
114
+ //#endregion
115
+ //#region src/plugin-sdk/legacy-webhook-listener-migration.ts
113
116
  /** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
114
117
  function createLegacyWebhookListenerDoctorContract(params) {
115
118
  const portKey = params.portKey ?? "webhookPort";
@@ -179,8 +182,10 @@ function createLegacyWebhookListenerDoctorContract(params) {
179
182
  }
180
183
  };
181
184
  }
182
- // \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
185
+ //#endregion
186
+ //#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
183
187
  var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
184
188
  import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
185
189
  __reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
190
+ //#endregion
186
191
  export { __exportAll as n, runtime_doctor_migrations_exports as t };
@@ -0,0 +1,3 @@
1
+ import { a as setMatrixRuntimeLifecycle, i as setMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
+ import "../runtime-setter-api.js";
3
+ export { setMatrixRuntime, setMatrixRuntimeLifecycle };
@@ -1,18 +1,18 @@
1
- import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
- import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
3
- import { r as assertMatrixSupportedStateFile } from "./retired-state-vIr2IB90.mjs";
4
- import { a as readMatrixRecoveryKeyStateForPathAsync, l as writeMatrixRecoveryKeyStateForPathAsync } from "./crypto-state-store-CM57gchf.mjs";
5
- import { n as withMatrixSendCurrentness, r as withoutMatrixSendCurrentness, t as captureMatrixSendCurrentness } from "./send-currentness-CAUVR-f3.mjs";
6
- import { i as parseMxc, r as matrixEventToRaw } from "./event-helpers-DDUjVVf7.mjs";
7
- import { i as createMatrixStartupAbortError, o as throwIfMatrixStartupAborted, r as awaitMatrixStartupWithAbort } from "./client-BIsYqIzM.mjs";
8
- import { n as isMatrixNotFoundError, t as formatMatrixErrorReason } from "./errors-CL3YJV8U.mjs";
9
- import { n as createMatrixGuardedFetch, t as MatrixAuthedHttpClient } from "./http-client-CxTmU1kT.mjs";
10
- import { n as resolveMatrixRoomKeyBackupReadinessError } from "./backup-health-BxH69np2.mjs";
11
- import { r as noop, t as LogService } from "./logger-BX5kXvh1.mjs";
12
- import { t as createMatrixJsSdkClientLogger } from "./logging-BWPjyW9s.mjs";
13
- import { t as acquireMatrixCryptoStoreOwnership } from "./crypto-store-ownership-Bratn-Np.mjs";
14
- import { a as isMatrixAccessTokenInvalidatedError, c as resolveMatrixLocalTimeoutMs, f as isMatrixReadySyncState, i as createMatrixExplicitBootstrapOptions, l as unresolvedMatrixDeviceVerificationStatus, n as MATRIX_INITIAL_CRYPTO_BOOTSTRAP_OPTIONS, o as resolveMatrixDiagnostic, p as isMatrixTerminalSyncState, r as MATRIX_STATUS_DIAGNOSTIC_TIMEOUT_MS, s as resolveMatrixDiagnosticResult, t as MATRIX_AUTOMATIC_REPAIR_BOOTSTRAP_OPTIONS, u as unresolvedMatrixRoomKeyBackupStatus } from "./client-support-CFofPPPm.mjs";
15
- import { t as MATRIX_IDB_PERSIST_INTERVAL_MS } from "./idb-persistence-lock-CH2K6d_3.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
+ import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
3
+ import { r as assertMatrixSupportedStateFile } from "./retired-state-C4UnLIg4.mjs";
4
+ import { a as readMatrixRecoveryKeyStateForPathAsync, l as writeMatrixRecoveryKeyStateForPathAsync } from "./crypto-state-store-DclM-fO5.mjs";
5
+ import { n as withMatrixSendCurrentness, r as withoutMatrixSendCurrentness, t as captureMatrixSendCurrentness } from "./send-currentness-C2rMVVIQ.mjs";
6
+ import { i as parseMxc, r as matrixEventToRaw } from "./event-helpers-CxNgMQqH.mjs";
7
+ import { i as createMatrixStartupAbortError, o as throwIfMatrixStartupAborted, r as awaitMatrixStartupWithAbort } from "./client-BEl7PU1_.mjs";
8
+ import { n as isMatrixNotFoundError, t as formatMatrixErrorReason } from "./errors-Bw4EHwKX.mjs";
9
+ import { n as createMatrixGuardedFetch, t as MatrixAuthedHttpClient } from "./http-client-ByR4STVQ.mjs";
10
+ import { n as resolveMatrixRoomKeyBackupReadinessError } from "./backup-health-Dm_YMVFT.mjs";
11
+ import { r as noop, t as LogService } from "./logger-CuAzdD8Q.mjs";
12
+ import { t as createMatrixJsSdkClientLogger } from "./logging-CoaEyRtA.mjs";
13
+ import { t as acquireMatrixCryptoStoreOwnership } from "./crypto-store-ownership-Dr-T40Rp.mjs";
14
+ import { a as isMatrixAccessTokenInvalidatedError, c as resolveMatrixLocalTimeoutMs, f as isMatrixReadySyncState, i as createMatrixExplicitBootstrapOptions, l as unresolvedMatrixDeviceVerificationStatus, n as MATRIX_INITIAL_CRYPTO_BOOTSTRAP_OPTIONS, o as resolveMatrixDiagnostic, p as isMatrixTerminalSyncState, r as MATRIX_STATUS_DIAGNOSTIC_TIMEOUT_MS, s as resolveMatrixDiagnosticResult, t as MATRIX_AUTOMATIC_REPAIR_BOOTSTRAP_OPTIONS, u as unresolvedMatrixRoomKeyBackupStatus } from "./client-support-D-xHScuo.mjs";
15
+ import { t as MATRIX_IDB_PERSIST_INTERVAL_MS } from "./idb-persistence-lock-Bh3ZLIsE.mjs";
16
16
  import { createRequire } from "node:module";
17
17
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
18
18
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
@@ -33,7 +33,7 @@ import { createDeferred as createDeferred$1 } from "openclaw/plugin-sdk/concurre
33
33
  import { decodeRecoveryKey } from "matrix-js-sdk/lib/crypto-api/recovery-key.js";
34
34
  import { MatrixScheduler } from "matrix-js-sdk/lib/scheduler.js";
35
35
  import { EventStatus } from "matrix-js-sdk/lib/models/event-status.js";
36
- // extensions/matrix/src/matrix/sdk/client-device-info.ts
36
+ //#region extensions/matrix/src/matrix/sdk/client-device-info.ts
37
37
  async function resolveMatrixCrossSigningPublicationStatus(params) {
38
38
  let response;
39
39
  if (params.userId) try {
@@ -62,7 +62,8 @@ async function listMatrixOwnDevices(client) {
62
62
  current: currentDeviceId !== null && device.device_id === currentDeviceId
63
63
  }));
64
64
  }
65
- // extensions/matrix/src/matrix/sdk/client-event-bridge.ts
65
+ //#endregion
66
+ //#region extensions/matrix/src/matrix/sdk/client-event-bridge.ts
66
67
  function registerMatrixClientBridge(params) {
67
68
  let initialSyncComplete = false;
68
69
  const joinTransitions = /* @__PURE__ */ new WeakSet();
@@ -132,7 +133,8 @@ function refreshMatrixDmRoomIds(direct, dmRoomIds) {
132
133
  }
133
134
  return true;
134
135
  }
135
- // extensions/matrix/src/matrix/sdk/client-crypto-bootstrap.ts
136
+ //#endregion
137
+ //#region extensions/matrix/src/matrix/sdk/client-crypto-bootstrap.ts
136
138
  async function bootstrapMatrixClientCrypto(params) {
137
139
  const { crypto, bootstrapper, abortSignal } = params;
138
140
  if (!crypto || !bootstrapper) return false;
@@ -150,7 +152,8 @@ async function bootstrapMatrixClientCrypto(params) {
150
152
  }
151
153
  return true;
152
154
  }
153
- // extensions/matrix/src/matrix/sdk/client-sync-quiesce.ts
155
+ //#endregion
156
+ //#region extensions/matrix/src/matrix/sdk/client-sync-quiesce.ts
154
157
  const MATRIX_SYNC_QUIESCE_TIMEOUT_MS = 5e3;
155
158
  const MATRIX_JS_SDK_SYNC_VERSION = "42.4.0";
156
159
  const matrixJsSdkPackage = createRequire(import.meta.url)("matrix-js-sdk/package.json");
@@ -218,7 +221,8 @@ async function quiesceMatrixClientSync(params) {
218
221
  }
219
222
  });
220
223
  }
221
- // extensions/matrix/src/matrix/sdk/client-sync-ready.ts
224
+ //#endregion
225
+ //#region extensions/matrix/src/matrix/sdk/client-sync-ready.ts
222
226
  async function waitForMatrixInitialSyncReady(params) {
223
227
  const timeoutMs = params.timeoutMs ?? 3e4;
224
228
  if (isMatrixReadySyncState(params.state)) return;
@@ -258,7 +262,8 @@ async function waitForMatrixInitialSyncReady(params) {
258
262
  params.emitter.off("sync.unexpected_error", settle);
259
263
  }
260
264
  }
261
- // extensions/matrix/src/matrix/sdk/crypto-store-lifecycle.ts
265
+ //#endregion
266
+ //#region extensions/matrix/src/matrix/sdk/crypto-store-lifecycle.ts
262
267
  async function closeMatrixCryptoStores(closeRecoveryKeys, releaseOwnership, teardownComplete) {
263
268
  const recovery = await Promise.allSettled([closeRecoveryKeys()]);
264
269
  const release = teardownComplete ? await Promise.allSettled([releaseOwnership()]) : [];
@@ -354,7 +359,8 @@ function createMatrixSdkStopGate() {
354
359
  }
355
360
  };
356
361
  }
357
- // extensions/matrix/src/matrix/sdk/live-room-readiness.ts
362
+ //#endregion
363
+ //#region extensions/matrix/src/matrix/sdk/live-room-readiness.ts
358
364
  async function withMatrixLiveEncryptedRoom(owner, run, params) {
359
365
  const signal = AbortSignal.any([params.generationSignal, ...params.abortSignal ? [params.abortSignal] : []]);
360
366
  const active = (async () => {
@@ -435,7 +441,8 @@ async function probeMatrixLiveEncryptedRoom(params) {
435
441
  params.signal.removeEventListener("abort", onChange);
436
442
  }
437
443
  }
438
- // extensions/matrix/src/matrix/sdk/message-wire-dispatch.ts
444
+ //#endregion
445
+ //#region extensions/matrix/src/matrix/sdk/message-wire-dispatch.ts
439
446
  function resolveMessageWireDispatch(resource, init) {
440
447
  if ((init?.method ?? (resource instanceof Request ? resource.method : "GET")).toUpperCase() !== "PUT") return null;
441
448
  const rawUrl = typeof resource === "string" ? resource : resource instanceof URL ? resource.href : resource.url;
@@ -490,7 +497,8 @@ var MatrixMessageWireDispatchGuards = class {
490
497
  }
491
498
  }
492
499
  };
493
- // extensions/matrix/src/matrix/sdk/recovery-key-store.ts
500
+ //#endregion
501
+ //#region extensions/matrix/src/matrix/sdk/recovery-key-store.ts
494
502
  function isRepairableSecretStorageAccessError(err) {
495
503
  const message = formatMatrixErrorReason(err);
496
504
  if (!message) return false;
@@ -767,7 +775,8 @@ var MatrixRecoveryKeyStore = class {
767
775
  }
768
776
  }
769
777
  };
770
- // extensions/matrix/src/matrix/sdk/send-scheduler.ts
778
+ //#endregion
779
+ //#region extensions/matrix/src/matrix/sdk/send-scheduler.ts
771
780
  /** Keep SDK FIFO/backoff while settling a caller's pre-request rejection only for its event. */
772
781
  var MatrixSendScheduler = class extends MatrixScheduler {
773
782
  constructor(wasCurrentnessRejected) {
@@ -805,10 +814,11 @@ var MatrixSendScheduler = class extends MatrixScheduler {
805
814
  return this.queue.removeEventFromQueue(event);
806
815
  }
807
816
  };
808
- // extensions/matrix/src/matrix/sdk/client-base.ts
817
+ //#endregion
818
+ //#region extensions/matrix/src/matrix/sdk/client-base.ts
809
819
  const MATRIX_ENCRYPTED_STARTUP_TIMEOUT_MS = 6e4;
810
820
  let loadedMatrixCryptoRuntime = null;
811
- const loadMatrixCryptoRuntime = createLazyRuntimeModule(() => import("./crypto-runtime-s3ogwLRO.mjs").then((runtime) => {
821
+ const loadMatrixCryptoRuntime = createLazyRuntimeModule(() => import("./crypto-runtime-DqX7VD1W.mjs").then((runtime) => {
812
822
  loadedMatrixCryptoRuntime = runtime;
813
823
  return runtime;
814
824
  }));
@@ -1038,7 +1048,7 @@ var MatrixClientBase = class {
1038
1048
  checkActive();
1039
1049
  throwIfMatrixStartupAborted(signal);
1040
1050
  if (this.encryptionEnabled && this.cryptoInitialized) {
1041
- const { reconcileJoinedRoomEncryption } = await import("./joined-room-encryption-Dl7Sb9FF.mjs");
1051
+ const { reconcileJoinedRoomEncryption } = await import("./joined-room-encryption-DBbLkdvv.mjs");
1042
1052
  checkActive();
1043
1053
  await this.withClientCryptoWork(() => reconcileJoinedRoomEncryption(this.client, signal, checkActive), signal);
1044
1054
  checkActive();
@@ -1250,7 +1260,8 @@ var MatrixClientBase = class {
1250
1260
  }
1251
1261
  }
1252
1262
  };
1253
- // extensions/matrix/src/matrix/sdk/client-core.ts
1263
+ //#endregion
1264
+ //#region extensions/matrix/src/matrix/sdk/client-core.ts
1254
1265
  function isUnsupportedAuthenticatedMediaEndpointError(err) {
1255
1266
  const statusCode = err?.statusCode;
1256
1267
  if (statusCode === 404 || statusCode === 405 || statusCode === 501) return true;
@@ -1490,7 +1501,8 @@ var MatrixClientCore = class extends MatrixClientBase {
1490
1501
  });
1491
1502
  }
1492
1503
  };
1493
- // extensions/matrix/src/matrix/sdk/verification-status.ts
1504
+ //#endregion
1505
+ //#region extensions/matrix/src/matrix/sdk/verification-status.ts
1494
1506
  function isMatrixDeviceOwnerVerified(status) {
1495
1507
  return status?.crossSigningVerified === true;
1496
1508
  }
@@ -1507,7 +1519,8 @@ async function trustMatrixOwnIdentity(crypto) {
1507
1519
  ownIdentity.free?.();
1508
1520
  }
1509
1521
  }
1510
- // extensions/matrix/src/matrix/sdk/client-verification.ts
1522
+ //#endregion
1523
+ //#region extensions/matrix/src/matrix/sdk/client-verification.ts
1511
1524
  var MatrixClientVerification = class extends MatrixClientCore {
1512
1525
  async refreshOwnDeviceKeys() {
1513
1526
  await this.client.getCrypto()?.userHasCrossSigningKeys(await this.getUserId(), true);
@@ -1657,7 +1670,8 @@ var MatrixClientVerification = class extends MatrixClientCore {
1657
1670
  LogService.info("MatrixClientLite", `Room key backup enabled (version ${createdVersion})`);
1658
1671
  }
1659
1672
  };
1660
- // extensions/matrix/src/matrix/sdk.ts
1673
+ //#endregion
1674
+ //#region extensions/matrix/src/matrix/sdk.ts
1661
1675
  var sdk_exports = /* @__PURE__ */ __exportAll({ MatrixClient: () => MatrixClient });
1662
1676
  var MatrixClient = class extends MatrixClientVerification {
1663
1677
  async verifyWithRecoveryKey(rawRecoveryKey) {
@@ -1956,4 +1970,5 @@ var MatrixClient = class extends MatrixClientVerification {
1956
1970
  return refreshMatrixDmRoomIds(await this.getAccountData("m.direct"), this.dmRoomIds);
1957
1971
  }
1958
1972
  };
1973
+ //#endregion
1959
1974
  export { MatrixClient, isRepairableSecretStorageAccessError as a, trustMatrixOwnIdentity as i, isMatrixDeviceOwnerVerified as n, isMatrixDeviceVerifiedInCurrentClient as r, sdk_exports as t };
@@ -1,7 +1,7 @@
1
- import { t as getMatrixScopedEnvVarNames } from "./env-vars-Bh1iOXJ1.mjs";
1
+ import { t as getMatrixScopedEnvVarNames } from "./env-vars-aEBngJPa.mjs";
2
2
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
3
3
  import { collectSecretInputAssignment, createChannelSecretContract, hasConfiguredSecretInputValue, hasOwnProperty, normalizeSecretStringValue } from "openclaw/plugin-sdk/channel-secret-basic-runtime";
4
- // extensions/matrix/src/secret-contract.ts
4
+ //#region extensions/matrix/src/secret-contract.ts
5
5
  function accountSecretOwner(accountId) {
6
6
  return {
7
7
  ownerKind: "account",
@@ -86,4 +86,5 @@ const channelSecrets = createChannelSecretContract({
86
86
  }
87
87
  });
88
88
  const { secretTargetRegistryEntries, collectRuntimeConfigAssignments } = channelSecrets;
89
+ //#endregion
89
90
  export { collectRuntimeConfigAssignments as n, secretTargetRegistryEntries as r, channelSecrets as t };
@@ -0,0 +1,3 @@
1
+ import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "./secret-contract-DxyzKSzf.mjs";
2
+ import "../secret-contract-api.js";
3
+ export { channelSecrets, collectRuntimeConfigAssignments, secretTargetRegistryEntries };
@@ -1,10 +1,10 @@
1
- import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
- import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
3
- import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
4
- import { a as normalizeMatrixResolvableTarget, n as isMatrixQualifiedUserId } from "./target-ids-DltG_ZHJ.mjs";
5
- import { n as withMatrixSendCurrentness, o as buildMatrixReactionContent, t as captureMatrixSendCurrentness } from "./send-currentness-CAUVR-f3.mjs";
6
- import { _ as MsgType, d as buildMatrixMessageRelation, f as resolveMatrixReplyToEventId, g as MSC4357_LIVE_KEY, l as isStrictDirectRoom, m as EventType, n as inspectMatrixDirectRooms, p as resolveMatrixThreadRootId, r as persistMatrixDirectRoomMapping, v as RelationType } from "./direct-management-BOYMqZJQ.mjs";
7
- import { n as getMatrixEventProjection } from "./event-helpers-DDUjVVf7.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
+ import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
3
+ import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
4
+ import { a as normalizeMatrixResolvableTarget, n as isMatrixQualifiedUserId } from "./target-ids-HhcaKX1n.mjs";
5
+ import { n as withMatrixSendCurrentness, o as buildMatrixReactionContent, t as captureMatrixSendCurrentness } from "./send-currentness-C2rMVVIQ.mjs";
6
+ import { _ as MsgType, d as buildMatrixMessageRelation, f as resolveMatrixReplyToEventId, g as MSC4357_LIVE_KEY, l as isStrictDirectRoom, m as EventType, n as inspectMatrixDirectRooms, p as resolveMatrixThreadRootId, r as persistMatrixDirectRoomMapping, v as RelationType } from "./direct-management-ZcjZgYEl.mjs";
7
+ import { n as getMatrixEventProjection } from "./event-helpers-CxNgMQqH.mjs";
8
8
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
9
9
  import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-outbound";
10
10
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
@@ -22,8 +22,8 @@ import { resolveTextChunkLimit } from "openclaw/plugin-sdk/reply-chunking";
22
22
  import MarkdownIt from "markdown-it";
23
23
  import { isAutoLinkedFileRef } from "openclaw/plugin-sdk/text-autolink-runtime";
24
24
  import { parseBuffer } from "music-metadata";
25
- // extensions/matrix/src/matrix/send/client.ts
26
- const loadMatrixSendClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-kdsygurH.mjs"));
25
+ //#region extensions/matrix/src/matrix/send/client.ts
26
+ const loadMatrixSendClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-D1vLveT2.mjs"));
27
27
  function resolveMediaMaxBytes(accountId, cfg) {
28
28
  if (!cfg) throw new Error("Matrix media limits requires a resolved runtime config. Load and resolve config at the command or gateway boundary, then pass cfg through the runtime path.");
29
29
  const mediaMaxMb = resolveMatrixAccountConfig({
@@ -56,7 +56,8 @@ async function withResolvedMatrixClient(opts, run, shutdownBehavior) {
56
56
  const { withResolvedRuntimeMatrixClient } = await loadMatrixSendClientRuntime();
57
57
  return await withResolvedRuntimeMatrixClient(opts, run, shutdownBehavior);
58
58
  }
59
- // extensions/matrix/src/matrix/send/receipt.ts
59
+ //#endregion
60
+ //#region extensions/matrix/src/matrix/send/receipt.ts
60
61
  function createMatrixSendReceipt(params) {
61
62
  const firstEvent = params.events[0];
62
63
  const receipt = createMessageReceiptFromOutboundResults({
@@ -81,14 +82,16 @@ function createMatrixSendReceipt(params) {
81
82
  });
82
83
  return receipt;
83
84
  }
84
- // extensions/matrix/src/matrix/monitor/bounded-cache.ts
85
+ //#endregion
86
+ //#region extensions/matrix/src/matrix/monitor/bounded-cache.ts
85
87
  function setBoundedMap(map, key, value, maxEntries) {
86
88
  map.set(key, value);
87
89
  if (map.size <= maxEntries) return;
88
90
  const oldest = map.keys().next();
89
91
  if (!oldest.done) map.delete(oldest.value);
90
92
  }
91
- // extensions/matrix/src/matrix/send/targets.ts
93
+ //#endregion
94
+ //#region extensions/matrix/src/matrix/send/targets.ts
92
95
  function normalizeTarget(raw) {
93
96
  const trimmed = raw.trim();
94
97
  if (!trimmed) throw new Error("Matrix target is required (room:<id> or #alias)");
@@ -148,7 +151,8 @@ async function resolveMatrixRoomId(client, raw, opts = {}) {
148
151
  }
149
152
  return target;
150
153
  }
151
- // extensions/matrix/src/matrix/delivery-plan.ts
154
+ //#endregion
155
+ //#region extensions/matrix/src/matrix/delivery-plan.ts
152
156
  const DELIVERY_PLAN_VERSION = 1;
153
157
  const DELIVERY_PLAN_NAMESPACE = "outbound-delivery-plans";
154
158
  const DELIVERY_PLAN_TTL_MS = 864e5;
@@ -379,7 +383,8 @@ async function cleanupMatrixDeliveryPlans(ctx) {
379
383
  const keys = entries.filter((entry) => entry.key.startsWith(prefix)).map((entry) => entry.key);
380
384
  for (const key of keys) await store.delete(key);
381
385
  }
382
- // extensions/matrix/src/matrix/poll-types.ts
386
+ //#endregion
387
+ //#region extensions/matrix/src/matrix/poll-types.ts
383
388
  const M_POLL_START = "m.poll.start";
384
389
  const M_POLL_RESPONSE = "m.poll.response";
385
390
  const M_POLL_END = "m.poll.end";
@@ -556,7 +561,8 @@ function buildPollResponseContent(pollEventId, answerIds) {
556
561
  }
557
562
  };
558
563
  }
559
- // extensions/matrix/src/matrix/format-profile.ts
564
+ //#endregion
565
+ //#region extensions/matrix/src/matrix/format-profile.ts
560
566
  function createMatrixPrivateMarkers(markdown, exhaustedMessage) {
561
567
  const used = new Set(Array.from(markdown, (character) => character.charCodeAt(0)));
562
568
  for (const match of markdown.matchAll(/&#(?:x([0-9a-f]+)|(\d+));/giu)) {
@@ -599,7 +605,8 @@ function projectMatrixMarkdown(markdown) {
599
605
  function renderMatrixMarkdownTables(markdown, mode) {
600
606
  return MATRIX_FORMAT_PROFILE.constructs.table === "native" && (mode === "off" || mode === "block") ? markdown : convertMarkdownTables(markdown, mode);
601
607
  }
602
- // extensions/matrix/src/matrix/format-table-ranges.ts
608
+ //#endregion
609
+ //#region extensions/matrix/src/matrix/format-table-ranges.ts
603
610
  const tableParser = new MarkdownIt({
604
611
  html: false,
605
612
  linkify: false,
@@ -620,7 +627,8 @@ function matrixTableSourceRangesFromTokens(tokens, lineStarts, sourceLength) {
620
627
  }];
621
628
  });
622
629
  }
623
- // extensions/matrix/src/matrix/format-spoiler-ranges.ts
630
+ //#endregion
631
+ //#region extensions/matrix/src/matrix/format-spoiler-ranges.ts
624
632
  const spoilerParser = new MarkdownIt({
625
633
  html: false,
626
634
  linkify: true,
@@ -799,7 +807,8 @@ function analyzeMatrixSpoilers(markdown) {
799
807
  metadataCollision: hasMatrixSpoilerMetadataCollision(source, delimiterOffsets)
800
808
  };
801
809
  }
802
- // extensions/matrix/src/matrix/format.ts
810
+ //#endregion
811
+ //#region extensions/matrix/src/matrix/format.ts
803
812
  const MATRIX_STYLE_MARKERS = {
804
813
  underline: {
805
814
  open: "<u>",
@@ -1198,7 +1207,8 @@ async function renderMarkdownToMatrixHtmlWithMentions(params) {
1198
1207
  mentions: state.mentions
1199
1208
  };
1200
1209
  }
1201
- // extensions/matrix/src/matrix/send/chunking.ts
1210
+ //#endregion
1211
+ //#region extensions/matrix/src/matrix/send/chunking.ts
1202
1212
  function normalizeMatrixEventLimit(limit) {
1203
1213
  if (!Number.isFinite(limit) || limit <= 0) return limit;
1204
1214
  return Math.max(1, Math.floor(limit));
@@ -1361,7 +1371,8 @@ function chunkMatrixText(text, opts) {
1361
1371
  chunks
1362
1372
  };
1363
1373
  }
1364
- // extensions/matrix/src/matrix/media-text.ts
1374
+ //#endregion
1375
+ //#region extensions/matrix/src/matrix/media-text.ts
1365
1376
  const MATRIX_MEDIA_KINDS = {
1366
1377
  "m.audio": "audio",
1367
1378
  "m.file": "file",
@@ -1429,7 +1440,8 @@ function formatMatrixMessageText(params) {
1429
1440
  if (!body) return marker;
1430
1441
  return `${body}\n\n${marker}`;
1431
1442
  }
1432
- // extensions/matrix/src/matrix/send/edit-content.ts
1443
+ //#endregion
1444
+ //#region extensions/matrix/src/matrix/send/edit-content.ts
1433
1445
  const MAX_EDIT_RELATION_PAGES = 100;
1434
1446
  const EDIT_RELATION_PAGE_SIZE = 100;
1435
1447
  const EDIT_DECRYPTION_ERROR = "Matrix edit history is not fully decrypted; restore encryption keys before editing.";
@@ -1467,7 +1479,8 @@ async function resolveMatrixEditContent(params) {
1467
1479
  }
1468
1480
  throw new Error("Matrix edit history could not be fully read; send a new message instead.");
1469
1481
  }
1470
- // extensions/matrix/src/matrix/send/formatting.ts
1482
+ //#endregion
1483
+ //#region extensions/matrix/src/matrix/send/formatting.ts
1471
1484
  function buildTextContent(body, relation, opts = {}) {
1472
1485
  return {
1473
1486
  msgtype: opts.msgtype ?? MsgType.Text,
@@ -1530,7 +1543,8 @@ function resolveMatrixMsgType(contentType) {
1530
1543
  default: return MsgType.File;
1531
1544
  }
1532
1545
  }
1533
- // extensions/matrix/src/matrix/send/media.ts
1546
+ //#endregion
1547
+ //#region extensions/matrix/src/matrix/send/media.ts
1534
1548
  function buildMediaContent(params) {
1535
1549
  const base = {
1536
1550
  msgtype: params.msgtype,
@@ -1646,7 +1660,8 @@ async function uploadMediaWithEncryption(client, roomId, buffer, params) {
1646
1660
  }
1647
1661
  return { url: await client.uploadContent(buffer, params.contentType, params.filename) };
1648
1662
  }
1649
- // extensions/matrix/src/matrix/send.ts
1663
+ //#endregion
1664
+ //#region extensions/matrix/src/matrix/send.ts
1650
1665
  var send_exports = /* @__PURE__ */ __exportAll({
1651
1666
  chunkMatrixText: () => chunkMatrixText,
1652
1667
  editMessageMatrix: () => editMessageMatrix,
@@ -2005,4 +2020,5 @@ async function reactMatrixMessage(roomId, messageId, emoji, opts = {}) {
2005
2020
  await resolved.sendEvent(resolvedRoom, EventType.Reaction, reaction);
2006
2021
  });
2007
2022
  }
2023
+ //#endregion
2008
2024
  export { resolveMatrixRoomId as C, reconcileMatrixUnknownSend as S, isPollEventType as _, sendSingleTextMessageMatrix as a, resolvePollReferenceEventId as b, formatMatrixMessageText as c, resolveMatrixReplacementContent as d, prepareMatrixSingleText as f, formatPollResultsAsText as g, formatPollAsText as h, sendPollMatrix as i, isLikelyBareFilename as l, buildPollResultsSummary as m, reactMatrixMessage as n, sendTypingMatrix as o, buildPollResponseContent as p, sendMessageMatrix as r, send_exports as s, editMessageMatrix as t, resolveMatrixMessageAttachment as u, isPollStartType as v, setBoundedMap as w, cleanupMatrixDeliveryPlans as x, parsePollStart as y };
@@ -1,6 +1,6 @@
1
1
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
- // extensions/matrix/src/matrix/reaction-common.ts
3
+ //#region extensions/matrix/src/matrix/reaction-common.ts
4
4
  const MATRIX_ANNOTATION_RELATION_TYPE = "m.annotation";
5
5
  const MATRIX_REACTION_EVENT_TYPE = "m.reaction";
6
6
  function normalizeMatrixReactionMessageId(messageId) {
@@ -65,7 +65,8 @@ function selectOwnMatrixReactionEventIds(events, userId, emoji) {
65
65
  }
66
66
  return ids;
67
67
  }
68
- // extensions/matrix/src/matrix/sdk/send-currentness.ts
68
+ //#endregion
69
+ //#region extensions/matrix/src/matrix/sdk/send-currentness.ts
69
70
  const sendCurrentness = new AsyncLocalStorage();
70
71
  function withMatrixSendCurrentness(client, assertCurrent, run) {
71
72
  assertCurrent();
@@ -82,4 +83,5 @@ function captureMatrixSendCurrentness(client) {
82
83
  function withoutMatrixSendCurrentness(run) {
83
84
  return sendCurrentness.exit(run);
84
85
  }
86
+ //#endregion
85
87
  export { MATRIX_REACTION_EVENT_TYPE as a, extractMatrixReactionAnnotation as c, MATRIX_ANNOTATION_RELATION_TYPE as i, selectOwnMatrixReactionEventIds as l, withMatrixSendCurrentness as n, buildMatrixReactionContent as o, withoutMatrixSendCurrentness as r, buildMatrixReactionRelationsPath as s, captureMatrixSendCurrentness as t, summarizeMatrixReactionEvents as u };
@@ -1,8 +1,8 @@
1
- import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
2
- import "./setup-core-CRUekZa3.mjs";
3
- import { n as bootstrapMatrixVerification } from "./verification-BqjyjLoq.mjs";
1
+ import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
2
+ import "./setup-core-Di6NtQ_J.mjs";
3
+ import { n as bootstrapMatrixVerification } from "./verification-CuT5ZBDO.mjs";
4
4
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
5
- // extensions/matrix/src/setup-bootstrap.ts
5
+ //#region extensions/matrix/src/setup-bootstrap.ts
6
6
  async function maybeBootstrapNewEncryptedMatrixAccount(params) {
7
7
  const accountConfig = resolveMatrixAccountConfig({
8
8
  cfg: params.cfg,
@@ -54,4 +54,5 @@ async function runMatrixSetupBootstrapAfterConfigWrite(params) {
54
54
  }
55
55
  params.runtime.error(`Matrix verification bootstrap warning for "${params.accountId}": ${bootstrap.error ?? "unknown bootstrap failure"}`);
56
56
  }
57
+ //#endregion
57
58
  export { maybeBootstrapNewEncryptedMatrixAccount, runMatrixSetupBootstrapAfterConfigWrite };
@@ -1,8 +1,8 @@
1
- import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
- import { a as resolveConfiguredMatrixAccountIds, d as resolveScopedMatrixEnvConfig, f as resolveMatrixAccountStringValues, l as resolveGlobalMatrixEnvConfig, s as resolveMatrixDefaultOrOnlyAccountId, u as resolveMatrixEnvAuthReadiness } from "./account-selection-BPFpdMIw.mjs";
3
- import { a as resolveMatrixAccountConfig, o as resolveMatrixBaseConfig, t as findMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
4
- import { a as loadMatrixCredentials, o as loadMatrixCredentialsAsync, r as credentialsMatchConfig, t as captureMatrixCredentialsEnv } from "./credentials-read-BOuCoy-p.mjs";
5
- import { n as resolveMatrixConfigPath, r as shouldStoreMatrixAccountAtTopLevel, t as resolveMatrixConfigFieldPath } from "./config-paths-DBpHxDyc.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
+ import { a as resolveConfiguredMatrixAccountIds, d as resolveScopedMatrixEnvConfig, f as resolveMatrixAccountStringValues, l as resolveGlobalMatrixEnvConfig, s as resolveMatrixDefaultOrOnlyAccountId, u as resolveMatrixEnvAuthReadiness } from "./account-selection-CWsL5zIU.mjs";
3
+ import { a as resolveMatrixAccountConfig, o as resolveMatrixBaseConfig, t as findMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
4
+ import { a as loadMatrixCredentials, o as loadMatrixCredentialsAsync, r as credentialsMatchConfig, t as captureMatrixCredentialsEnv } from "./credentials-read-Dj7Hj87M.mjs";
5
+ import { n as resolveMatrixConfigPath, r as shouldStoreMatrixAccountAtTopLevel, t as resolveMatrixConfigFieldPath } from "./config-paths-CnREYb1Y.mjs";
6
6
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
7
7
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
8
8
  import { coerceSecretRef, hasConfiguredSecretInput, normalizeSecretInputString } from "openclaw/plugin-sdk/secret-input";
@@ -11,7 +11,7 @@ import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, addWildcardAllowFrom, apply
11
11
  import { resolveOptionalIntegerOption } from "openclaw/plugin-sdk/number-runtime";
12
12
  import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$2, normalizeAccountId as normalizeAccountId$2 } from "openclaw/plugin-sdk/routing";
13
13
  import { createChannelDmPolicy } from "openclaw/plugin-sdk/channel-dm-policy";
14
- // extensions/matrix/src/matrix/accounts.ts
14
+ //#region extensions/matrix/src/matrix/accounts.ts
15
15
  function clean(value) {
16
16
  return normalizeOptionalString(value) ?? "";
17
17
  }
@@ -142,7 +142,8 @@ async function resolveMatrixAccountAsync(params) {
142
142
  configured: isMatrixAccountConfigured(prepared, stored)
143
143
  };
144
144
  }
145
- // extensions/matrix/src/matrix/config-update.ts
145
+ //#endregion
146
+ //#region extensions/matrix/src/matrix/config-update.ts
146
147
  var config_update_exports = /* @__PURE__ */ __exportAll({
147
148
  resolveMatrixConfigFieldPath: () => resolveMatrixConfigFieldPath,
148
149
  resolveMatrixConfigPath: () => resolveMatrixConfigPath,
@@ -236,7 +237,8 @@ function updateMatrixAccountConfig(cfg, accountId, patch) {
236
237
  }
237
238
  };
238
239
  }
239
- // extensions/matrix/src/matrix/profile.ts
240
+ //#endregion
241
+ //#region extensions/matrix/src/matrix/profile.ts
240
242
  var profile_exports = /* @__PURE__ */ __exportAll({
241
243
  isSupportedMatrixAvatarSource: () => isSupportedMatrixAvatarSource,
242
244
  syncMatrixOwnProfile: () => syncMatrixOwnProfile
@@ -302,7 +304,8 @@ async function syncMatrixOwnProfile(params) {
302
304
  ...avatar
303
305
  };
304
306
  }
305
- // extensions/matrix/src/setup-contract.ts
307
+ //#endregion
308
+ //#region extensions/matrix/src/setup-contract.ts
306
309
  const matrixSingleAccountKeysToMove = [
307
310
  "homeserver",
308
311
  "userId",
@@ -362,7 +365,8 @@ function resolveSingleAccountPromotionTarget(params) {
362
365
  }
363
366
  return DEFAULT_ACCOUNT_ID$2;
364
367
  }
365
- // extensions/matrix/src/setup-config.ts
368
+ //#endregion
369
+ //#region extensions/matrix/src/setup-config.ts
366
370
  const channel$1 = "matrix";
367
371
  const COMMON_SINGLE_ACCOUNT_KEYS_TO_MOVE = /* @__PURE__ */ new Set([
368
372
  "name",
@@ -473,7 +477,8 @@ function applyMatrixSetupAccountConfig(params) {
473
477
  initialSyncLimit: input.initialSyncLimit
474
478
  });
475
479
  }
476
- // extensions/matrix/src/setup-dm-policy.ts
480
+ //#endregion
481
+ //#region extensions/matrix/src/setup-dm-policy.ts
477
482
  function resolveMatrixSetupDmAllowFrom(policy, allowFrom) {
478
483
  if (policy === "open") return addWildcardAllowFrom(allowFrom);
479
484
  return normalizeAllowFromEntries(allowFrom ?? []).filter((entry) => entry !== "*");
@@ -514,7 +519,8 @@ function createMatrixSetupDmPolicy(promptAllowFrom) {
514
519
  promptAllowFrom
515
520
  });
516
521
  }
517
- // extensions/matrix/src/setup-core.ts
522
+ //#endregion
523
+ //#region extensions/matrix/src/setup-core.ts
518
524
  const channel = "matrix";
519
525
  function resolveMatrixSetupAccountId(params) {
520
526
  return normalizeAccountId$1(params.accountId?.trim() || params.name?.trim() || DEFAULT_ACCOUNT_ID$1);
@@ -546,7 +552,7 @@ function createMatrixSetupWizardProxy(loadWizardModule) {
546
552
  };
547
553
  }
548
554
  const finishMatrixSetupAfterConfigWrite = async ({ previousCfg, cfg, accountId, runtime }) => {
549
- const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-Ch6r7Szn.mjs");
555
+ const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-BCbltIf_.mjs");
550
556
  await runMatrixSetupBootstrapAfterConfigWrite({
551
557
  previousCfg,
552
558
  cfg,
@@ -660,4 +666,5 @@ const matrixSetupContract = defineChannelSetupContract({
660
666
  },
661
667
  legacyAdapter: matrixSetupAdapter
662
668
  });
669
+ //#endregion
663
670
  export { resolveMatrixAccount as _, createMatrixSetupDmPolicy as a, resolveSingleAccountPromotionTarget as c, syncMatrixOwnProfile as d, config_update_exports as f, resolveDefaultMatrixAccountId as g, resolveConfiguredMatrixBotUserIds as h, matrixSetupContract as i, singleAccountKeysToMove as l, listMatrixAccountIds as m, finishMatrixSetupAfterConfigWrite as n, moveSingleMatrixAccountConfigToNamedAccount as o, updateMatrixAccountConfig as p, matrixSetupAdapter as r, namedAccountPromotionKeys as s, createMatrixSetupWizardProxy as t, profile_exports as u, resolveMatrixAccountAsync as v };