@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,5 +1,5 @@
1
1
  import "node:module";
2
- //#region \0rolldown/runtime.js
2
+ // \0rolldown/runtime.js
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -24,8 +24,7 @@ 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
- //#endregion
28
- //#region packages/normalization-core/src/record-coerce.ts
27
+ // packages/normalization-core/src/record-coerce.ts
29
28
  /** Type guard for non-array object records at browser-safe boundaries. */
30
29
  function isRecord(value) {
31
30
  return value !== null && typeof value === "object" && !Array.isArray(value);
@@ -34,8 +33,7 @@ function isRecord(value) {
34
33
  function asNullableRecord(value) {
35
34
  return isRecord(value) ? value : null;
36
35
  }
37
- //#endregion
38
- //#region src/config/channel-config-normalization.ts
36
+ // src/config/channel-config-normalization.ts
39
37
  /** Applies one channel-specific doctor migration to every object-shaped account. */
40
38
  function normalizeChannelAccounts(params) {
41
39
  const rawAccounts = asNullableRecord(params.entry.accounts);
@@ -111,8 +109,7 @@ function normalizeChannelConfigEntries(params) {
111
109
  changes
112
110
  };
113
111
  }
114
- //#endregion
115
- //#region src/plugin-sdk/legacy-webhook-listener-migration.ts
112
+ // src/plugin-sdk/legacy-webhook-listener-migration.ts
116
113
  /** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
117
114
  function createLegacyWebhookListenerDoctorContract(params) {
118
115
  const portKey = params.portKey ?? "webhookPort";
@@ -182,10 +179,8 @@ function createLegacyWebhookListenerDoctorContract(params) {
182
179
  }
183
180
  };
184
181
  }
185
- //#endregion
186
- //#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
182
+ // \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
187
183
  var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
188
184
  import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
189
185
  __reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
190
- //#endregion
191
186
  export { __exportAll as n, runtime_doctor_migrations_exports as t };
@@ -1,2 +1,2 @@
1
- export { i as setMatrixRuntime, a as setMatrixRuntimeLifecycle } from "./runtime-1kn1P6io.mjs";
1
+ export { i as setMatrixRuntime, a as setMatrixRuntimeLifecycle } from "./runtime-Ck8TjD7L.mjs";
2
2
  import "../runtime-setter-api.js";
@@ -1,19 +1,19 @@
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-DohpBmxW.mjs";
4
- import { o as readMatrixRecoveryKeyStateForPathAsync, u as writeMatrixRecoveryKeyStateForPathAsync } from "./crypto-state-store-m13QToc7.mjs";
5
- import { n as withMatrixSendCurrentness, r as withoutMatrixSendCurrentness, t as captureMatrixSendCurrentness } from "./send-currentness-DGxiiBn9.mjs";
6
- import { i as parseMxc, r as matrixEventToRaw } from "./event-helpers-CxNgMQqH.mjs";
7
- import { n as isMatrixNotFoundError, t as formatMatrixErrorReason } from "./errors-Bw4EHwKX.mjs";
8
- import { a as isMatrixAccessTokenInvalidatedError, c as resolveMatrixLocalTimeoutMs, i as createMatrixExplicitBootstrapOptions, l as unresolvedMatrixDeviceVerificationStatus, n as MATRIX_INITIAL_CRYPTO_BOOTSTRAP_OPTIONS, o as resolveMatrixDiagnostic, r as MATRIX_STATUS_DIAGNOSTIC_TIMEOUT_MS, s as resolveMatrixDiagnosticResult, t as MATRIX_AUTOMATIC_REPAIR_BOOTSTRAP_OPTIONS, u as unresolvedMatrixRoomKeyBackupStatus } from "./client-support-B_Mp4Qk9.mjs";
9
- import { i as createMatrixStartupAbortError, o as throwIfMatrixStartupAborted, r as awaitMatrixStartupWithAbort } from "./client-CnPiPhTg.mjs";
10
- import { r as createMatrixGuardedFetch, t as MatrixAuthedHttpClient } from "./http-client-B_ohXrBm.mjs";
11
- import { t as acquireMatrixCryptoStoreOwnership } from "./crypto-store-ownership-CVeppnSH.mjs";
12
- import { n as resolveMatrixRoomKeyBackupReadinessError } from "./backup-health-Dm_YMVFT.mjs";
13
- import { r as noop, t as LogService } from "./logger-CuAzdD8Q.mjs";
14
- import { t as createMatrixJsSdkClientLogger } from "./logging-CoaEyRtA.mjs";
15
- import { n as isMatrixReadySyncState, r as isMatrixTerminalSyncState } from "./sync-state-CWbp0QSY.mjs";
16
- import { t as MATRIX_IDB_PERSIST_INTERVAL_MS } from "./idb-persistence-lock-Bh3ZLIsE.mjs";
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-BsxdpJNk.mjs";
4
+ import { o as readMatrixRecoveryKeyStateForPathAsync, u as writeMatrixRecoveryKeyStateForPathAsync } from "./crypto-state-store-CzAmeC_Z.mjs";
5
+ import { n as withMatrixSendCurrentness, r as withoutMatrixSendCurrentness, t as captureMatrixSendCurrentness } from "./send-currentness-D1x6YP9O.mjs";
6
+ import { i as parseMxc, r as matrixEventToRaw } from "./event-helpers-DDUjVVf7.mjs";
7
+ import { n as isMatrixNotFoundError, t as formatMatrixErrorReason } from "./errors-CL3YJV8U.mjs";
8
+ import { a as isMatrixAccessTokenInvalidatedError, c as resolveMatrixLocalTimeoutMs, i as createMatrixExplicitBootstrapOptions, l as unresolvedMatrixDeviceVerificationStatus, n as MATRIX_INITIAL_CRYPTO_BOOTSTRAP_OPTIONS, o as resolveMatrixDiagnostic, r as MATRIX_STATUS_DIAGNOSTIC_TIMEOUT_MS, s as resolveMatrixDiagnosticResult, t as MATRIX_AUTOMATIC_REPAIR_BOOTSTRAP_OPTIONS, u as unresolvedMatrixRoomKeyBackupStatus } from "./client-support-CqXAOZp3.mjs";
9
+ import { i as createMatrixStartupAbortError, o as throwIfMatrixStartupAborted, r as awaitMatrixStartupWithAbort } from "./client-BPMbgtzn.mjs";
10
+ import { r as createMatrixGuardedFetch, t as MatrixAuthedHttpClient } from "./http-client-CqnKFKUH.mjs";
11
+ import { t as acquireMatrixCryptoStoreOwnership } from "./crypto-store-ownership-DPO9WcVz.mjs";
12
+ import { n as resolveMatrixRoomKeyBackupReadinessError } from "./backup-health-BxH69np2.mjs";
13
+ import { r as noop, t as LogService } from "./logger-B9TwnY6C.mjs";
14
+ import { t as createMatrixJsSdkClientLogger } from "./logging-Bnsn7s4r.mjs";
15
+ import { n as isMatrixReadySyncState, r as isMatrixTerminalSyncState } from "./sync-state-Cu1nagBV.mjs";
16
+ import { t as MATRIX_IDB_PERSIST_INTERVAL_MS } from "./idb-persistence-lock-CH2K6d_3.mjs";
17
17
  import { createRequire } from "node:module";
18
18
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
19
19
  import { formatErrorMessage, materializeErrorStack } from "openclaw/plugin-sdk/error-runtime";
@@ -35,7 +35,7 @@ import { createDeferred as createDeferred$1 } from "openclaw/plugin-sdk/concurre
35
35
  import { decodeRecoveryKey } from "matrix-js-sdk/lib/crypto-api/recovery-key.js";
36
36
  import { MatrixScheduler } from "matrix-js-sdk/lib/scheduler.js";
37
37
  import { EventStatus } from "matrix-js-sdk/lib/models/event-status.js";
38
- //#region extensions/matrix/src/matrix/sdk/client-event-bridge.ts
38
+ // extensions/matrix/src/matrix/sdk/client-event-bridge.ts
39
39
  function registerMatrixClientBridge(params) {
40
40
  let initialSyncComplete = false;
41
41
  const joinTransitions = /* @__PURE__ */ new WeakSet();
@@ -105,8 +105,7 @@ function refreshMatrixDmRoomIds(direct, dmRoomIds) {
105
105
  }
106
106
  return true;
107
107
  }
108
- //#endregion
109
- //#region extensions/matrix/src/matrix/sdk/client-crypto-bootstrap.ts
108
+ // extensions/matrix/src/matrix/sdk/client-crypto-bootstrap.ts
110
109
  async function bootstrapMatrixClientCrypto(params) {
111
110
  const { crypto, bootstrapper, abortSignal } = params;
112
111
  if (!crypto || !bootstrapper) return false;
@@ -124,8 +123,7 @@ async function bootstrapMatrixClientCrypto(params) {
124
123
  }
125
124
  return true;
126
125
  }
127
- //#endregion
128
- //#region extensions/matrix/src/matrix/sdk/client-sync-quiesce.ts
126
+ // extensions/matrix/src/matrix/sdk/client-sync-quiesce.ts
129
127
  const MATRIX_SYNC_QUIESCE_TIMEOUT_MS = 5e3;
130
128
  const MATRIX_JS_SDK_SYNC_VERSION = "43.0.0";
131
129
  const matrixJsSdkPackage = createRequire(import.meta.url)("matrix-js-sdk/package.json");
@@ -193,8 +191,7 @@ async function quiesceMatrixClientSync(params) {
193
191
  }
194
192
  });
195
193
  }
196
- //#endregion
197
- //#region extensions/matrix/src/matrix/sdk/client-sync-ready.ts
194
+ // extensions/matrix/src/matrix/sdk/client-sync-ready.ts
198
195
  async function waitForMatrixInitialSyncReady(params) {
199
196
  const timeoutMs = params.timeoutMs ?? 3e4;
200
197
  if (isMatrixReadySyncState(params.state)) return;
@@ -234,8 +231,7 @@ async function waitForMatrixInitialSyncReady(params) {
234
231
  params.emitter.off("sync.unexpected_error", settle);
235
232
  }
236
233
  }
237
- //#endregion
238
- //#region extensions/matrix/src/matrix/sdk/crypto-store-lifecycle.ts
234
+ // extensions/matrix/src/matrix/sdk/crypto-store-lifecycle.ts
239
235
  async function closeMatrixCryptoStores(closeRecoveryKeys, releaseOwnership, teardownComplete) {
240
236
  const recovery = await Promise.allSettled([closeRecoveryKeys()]);
241
237
  const release = teardownComplete ? await Promise.allSettled([releaseOwnership()]) : [];
@@ -333,8 +329,7 @@ function createMatrixSdkStopGate() {
333
329
  }
334
330
  };
335
331
  }
336
- //#endregion
337
- //#region extensions/matrix/src/matrix/sdk/live-room-readiness.ts
332
+ // extensions/matrix/src/matrix/sdk/live-room-readiness.ts
338
333
  async function withMatrixLiveEncryptedRoom(owner, run, params) {
339
334
  const signal = AbortSignal.any([params.generationSignal, ...params.abortSignal ? [params.abortSignal] : []]);
340
335
  const active = (async () => {
@@ -415,8 +410,7 @@ async function probeMatrixLiveEncryptedRoom(params) {
415
410
  params.signal.removeEventListener("abort", onChange);
416
411
  }
417
412
  }
418
- //#endregion
419
- //#region extensions/matrix/src/matrix/sdk/message-wire-dispatch.ts
413
+ // extensions/matrix/src/matrix/sdk/message-wire-dispatch.ts
420
414
  function resolveMessageWireDispatch(resource, init) {
421
415
  if ((init?.method ?? (resource instanceof Request ? resource.method : "GET")).toUpperCase() !== "PUT") return null;
422
416
  const rawUrl = typeof resource === "string" ? resource : resource instanceof URL ? resource.href : resource.url;
@@ -471,8 +465,7 @@ var MatrixMessageWireDispatchGuards = class {
471
465
  }
472
466
  }
473
467
  };
474
- //#endregion
475
- //#region extensions/matrix/src/matrix/sdk/recovery-key-store.ts
468
+ // extensions/matrix/src/matrix/sdk/recovery-key-store.ts
476
469
  function isRepairableSecretStorageAccessError(err) {
477
470
  const message = formatMatrixErrorReason(err);
478
471
  if (!message) return false;
@@ -739,8 +732,7 @@ var MatrixRecoveryKeyStore = class {
739
732
  }
740
733
  }
741
734
  };
742
- //#endregion
743
- //#region extensions/matrix/src/matrix/sdk/send-scheduler.ts
735
+ // extensions/matrix/src/matrix/sdk/send-scheduler.ts
744
736
  /** Keep SDK FIFO/backoff while settling a caller's pre-request rejection only for its event. */
745
737
  var MatrixSendScheduler = class extends MatrixScheduler {
746
738
  constructor(wasCurrentnessRejected) {
@@ -778,11 +770,10 @@ var MatrixSendScheduler = class extends MatrixScheduler {
778
770
  return this.queue.removeEventFromQueue(event);
779
771
  }
780
772
  };
781
- //#endregion
782
- //#region extensions/matrix/src/matrix/sdk/client-base.ts
773
+ // extensions/matrix/src/matrix/sdk/client-base.ts
783
774
  const MATRIX_ENCRYPTED_STARTUP_TIMEOUT_MS = 6e4;
784
775
  let loadedMatrixCryptoRuntime = null;
785
- const loadMatrixCryptoRuntime = createLazyRuntimeModule(() => import("./crypto-runtime-EdW32JgS.mjs").then((runtime) => {
776
+ const loadMatrixCryptoRuntime = createLazyRuntimeModule(() => import("./crypto-runtime-Db6nQPh-.mjs").then((runtime) => {
786
777
  loadedMatrixCryptoRuntime = runtime;
787
778
  return runtime;
788
779
  }));
@@ -1008,7 +999,7 @@ var MatrixClientBase = class {
1008
999
  });
1009
1000
  checkActive();
1010
1001
  if (this.encryptionEnabled && this.cryptoInitialized) {
1011
- const { reconcileJoinedRoomEncryption } = await import("./joined-room-encryption-C0gHa2DG.mjs");
1002
+ const { reconcileJoinedRoomEncryption } = await import("./joined-room-encryption-9sJK1kM-.mjs");
1012
1003
  checkActive();
1013
1004
  await this.withClientCryptoWork(() => reconcileJoinedRoomEncryption(this.client, signal, checkActive), signal);
1014
1005
  checkActive();
@@ -1218,8 +1209,7 @@ var MatrixClientBase = class {
1218
1209
  }
1219
1210
  }
1220
1211
  };
1221
- //#endregion
1222
- //#region extensions/matrix/src/matrix/sdk/client-core.ts
1212
+ // extensions/matrix/src/matrix/sdk/client-core.ts
1223
1213
  function isUnsupportedAuthenticatedMediaEndpointError(err) {
1224
1214
  const statusCode = err?.statusCode;
1225
1215
  if (statusCode === 404 || statusCode === 405 || statusCode === 501) return true;
@@ -1471,8 +1461,7 @@ var MatrixClientCore = class extends MatrixClientBase {
1471
1461
  });
1472
1462
  }
1473
1463
  };
1474
- //#endregion
1475
- //#region extensions/matrix/src/matrix/sdk/verification-status.ts
1464
+ // extensions/matrix/src/matrix/sdk/verification-status.ts
1476
1465
  function isMatrixDeviceOwnerVerified(status) {
1477
1466
  return status?.crossSigningVerified === true;
1478
1467
  }
@@ -1489,8 +1478,7 @@ async function trustMatrixOwnIdentity(crypto) {
1489
1478
  ownIdentity.free();
1490
1479
  }
1491
1480
  }
1492
- //#endregion
1493
- //#region extensions/matrix/src/matrix/sdk/client-verification.ts
1481
+ // extensions/matrix/src/matrix/sdk/client-verification.ts
1494
1482
  var MatrixClientVerification = class extends MatrixClientCore {
1495
1483
  async refreshOwnDeviceKeys() {
1496
1484
  await this.client.getCrypto()?.userHasCrossSigningKeys(await this.getUserId(), true);
@@ -1639,8 +1627,7 @@ var MatrixClientVerification = class extends MatrixClientCore {
1639
1627
  LogService.info("MatrixClientLite", `Room key backup enabled (version ${createdVersion})`);
1640
1628
  }
1641
1629
  };
1642
- //#endregion
1643
- //#region extensions/matrix/src/matrix/sdk.ts
1630
+ // extensions/matrix/src/matrix/sdk.ts
1644
1631
  var sdk_exports = /* @__PURE__ */ __exportAll({ MatrixClient: () => MatrixClient });
1645
1632
  var MatrixClient = class extends MatrixClientVerification {
1646
1633
  async resolveCryptoControlPlane() {
@@ -1958,5 +1945,4 @@ var MatrixClient = class extends MatrixClientVerification {
1958
1945
  return refreshMatrixDmRoomIds(await this.getAccountData("m.direct"), this.dmRoomIds);
1959
1946
  }
1960
1947
  };
1961
- //#endregion
1962
1948
  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-aEBngJPa.mjs";
1
+ import { t as getMatrixScopedEnvVarNames } from "./env-vars-Bh1iOXJ1.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
- //#region extensions/matrix/src/secret-contract.ts
4
+ // extensions/matrix/src/secret-contract.ts
5
5
  function accountSecretOwner(accountId) {
6
6
  return {
7
7
  ownerKind: "account",
@@ -86,5 +86,4 @@ const channelSecrets = createChannelSecretContract({
86
86
  }
87
87
  });
88
88
  const { secretTargetRegistryEntries, collectRuntimeConfigAssignments } = channelSecrets;
89
- //#endregion
90
89
  export { collectRuntimeConfigAssignments as n, secretTargetRegistryEntries as r, channelSecrets as t };
@@ -1,2 +1,2 @@
1
- export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DxyzKSzf.mjs";
1
+ export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-AKnr45nw.mjs";
2
2
  import "../secret-contract-api.js";
@@ -1,11 +1,11 @@
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-DGxiiBn9.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-Dp1giZ34.mjs";
7
- import { n as getMatrixMonitorTaskSignal } from "./task-runner-DY3aKiQa.mjs";
8
- import { n as getMatrixEventProjection } from "./event-helpers-CxNgMQqH.mjs";
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-D1x6YP9O.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-D59C1WO-.mjs";
7
+ import { n as getMatrixMonitorTaskSignal } from "./task-runner-CYyGHdNW.mjs";
8
+ import { n as getMatrixEventProjection } from "./event-helpers-DDUjVVf7.mjs";
9
9
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
10
10
  import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-outbound";
11
11
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
@@ -24,8 +24,8 @@ import { resolveMarkdownTableMode } from "openclaw/plugin-sdk/markdown-table-run
24
24
  import { resolveTextChunkLimit } from "openclaw/plugin-sdk/reply-chunking";
25
25
  import MarkdownIt from "markdown-it";
26
26
  import { isAutoLinkedFileRef } from "openclaw/plugin-sdk/text-autolink-runtime";
27
- //#region extensions/matrix/src/matrix/send/client.ts
28
- const loadMatrixSendClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-CRN75TtW.mjs"));
27
+ // extensions/matrix/src/matrix/send/client.ts
28
+ const loadMatrixSendClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-C02A2wi6.mjs"));
29
29
  function resolveMediaMaxBytes(accountId, cfg) {
30
30
  const mediaMaxMb = resolveMatrixAccountConfig({
31
31
  cfg,
@@ -59,8 +59,7 @@ async function withResolvedMatrixClient(opts, run) {
59
59
  const { withResolvedRuntimeMatrixClient } = await loadMatrixSendClientRuntime();
60
60
  return await withResolvedRuntimeMatrixClient(opts, run);
61
61
  }
62
- //#endregion
63
- //#region extensions/matrix/src/matrix/send/receipt.ts
62
+ // extensions/matrix/src/matrix/send/receipt.ts
64
63
  function createMatrixSendReceipt(params) {
65
64
  const firstEvent = params.events[0];
66
65
  const receipt = createMessageReceiptFromOutboundResults({
@@ -85,14 +84,12 @@ function createMatrixSendReceipt(params) {
85
84
  });
86
85
  return receipt;
87
86
  }
88
- //#endregion
89
- //#region extensions/matrix/src/matrix/monitor/bounded-cache.ts
87
+ // extensions/matrix/src/matrix/monitor/bounded-cache.ts
90
88
  function setBoundedMap(map, key, value, maxEntries) {
91
89
  map.set(key, value);
92
90
  pruneMapToMaxSize(map, maxEntries);
93
91
  }
94
- //#endregion
95
- //#region extensions/matrix/src/matrix/send/targets.ts
92
+ // extensions/matrix/src/matrix/send/targets.ts
96
93
  function normalizeTarget(raw) {
97
94
  const trimmed = raw.trim();
98
95
  if (!trimmed) throw new Error("Matrix target is required (room:<id> or #alias)");
@@ -152,8 +149,7 @@ async function resolveMatrixRoomId(client, raw, opts = {}) {
152
149
  }
153
150
  return target;
154
151
  }
155
- //#endregion
156
- //#region extensions/matrix/src/matrix/delivery-plan.ts
152
+ // extensions/matrix/src/matrix/delivery-plan.ts
157
153
  const DELIVERY_PLAN_VERSION = 1;
158
154
  const DELIVERY_PLAN_NAMESPACE = "outbound-delivery-plans";
159
155
  const DELIVERY_PLAN_TTL_MS = 864e5;
@@ -379,8 +375,7 @@ async function cleanupMatrixDeliveryPlans(ctx) {
379
375
  const keys = entries.filter((entry) => entry.key.startsWith(prefix)).map((entry) => entry.key);
380
376
  for (const key of keys) await store.delete(key);
381
377
  }
382
- //#endregion
383
- //#region extensions/matrix/src/matrix/poll-types.ts
378
+ // extensions/matrix/src/matrix/poll-types.ts
384
379
  const M_POLL_START = "m.poll.start";
385
380
  const M_POLL_RESPONSE = "m.poll.response";
386
381
  const M_POLL_END = "m.poll.end";
@@ -557,8 +552,7 @@ function buildPollResponseContent(pollEventId, answerIds) {
557
552
  }
558
553
  };
559
554
  }
560
- //#endregion
561
- //#region extensions/matrix/src/matrix/format-profile.ts
555
+ // extensions/matrix/src/matrix/format-profile.ts
562
556
  function createMatrixPrivateMarkers(markdown, exhaustedMessage) {
563
557
  const used = new Set(Array.from(markdown, (character) => character.charCodeAt(0)));
564
558
  for (const match of markdown.matchAll(/&#(?:x([0-9a-f]+)|(\d+));/giu)) {
@@ -601,8 +595,7 @@ function projectMatrixMarkdown(markdown) {
601
595
  function renderMatrixMarkdownTables(markdown, mode) {
602
596
  return MATRIX_FORMAT_PROFILE.constructs.table === "native" && (mode === "off" || mode === "block") ? markdown : convertMarkdownTables(markdown, mode);
603
597
  }
604
- //#endregion
605
- //#region extensions/matrix/src/matrix/format-table-ranges.ts
598
+ // extensions/matrix/src/matrix/format-table-ranges.ts
606
599
  const tableParser = new MarkdownIt({
607
600
  html: false,
608
601
  linkify: false,
@@ -623,8 +616,7 @@ function matrixTableSourceRangesFromTokens(tokens, lineStarts, sourceLength) {
623
616
  }];
624
617
  });
625
618
  }
626
- //#endregion
627
- //#region extensions/matrix/src/matrix/format-spoiler-ranges.ts
619
+ // extensions/matrix/src/matrix/format-spoiler-ranges.ts
628
620
  const spoilerParser = new MarkdownIt({
629
621
  html: false,
630
622
  linkify: true,
@@ -803,8 +795,7 @@ function analyzeMatrixSpoilers(markdown) {
803
795
  metadataCollision: hasMatrixSpoilerMetadataCollision(source, delimiterOffsets)
804
796
  };
805
797
  }
806
- //#endregion
807
- //#region extensions/matrix/src/matrix/format.ts
798
+ // extensions/matrix/src/matrix/format.ts
808
799
  const MATRIX_STYLE_MARKERS = {
809
800
  underline: {
810
801
  open: "<u>",
@@ -1156,8 +1147,7 @@ async function renderMarkdownToMatrixHtmlWithMentions(params) {
1156
1147
  mentions: state.mentions
1157
1148
  };
1158
1149
  }
1159
- //#endregion
1160
- //#region extensions/matrix/src/matrix/send/chunking.ts
1150
+ // extensions/matrix/src/matrix/send/chunking.ts
1161
1151
  function normalizeMatrixEventLimit(limit) {
1162
1152
  if (!Number.isFinite(limit) || limit <= 0) return limit;
1163
1153
  return Math.max(1, Math.floor(limit));
@@ -1319,8 +1309,7 @@ function chunkMatrixText(text, opts) {
1319
1309
  chunks
1320
1310
  };
1321
1311
  }
1322
- //#endregion
1323
- //#region extensions/matrix/src/matrix/media-text.ts
1312
+ // extensions/matrix/src/matrix/media-text.ts
1324
1313
  const MATRIX_MEDIA_KINDS = {
1325
1314
  "m.audio": "audio",
1326
1315
  "m.file": "file",
@@ -1388,8 +1377,7 @@ function formatMatrixMessageText(params) {
1388
1377
  if (!body) return marker;
1389
1378
  return `${body}\n\n${marker}`;
1390
1379
  }
1391
- //#endregion
1392
- //#region extensions/matrix/src/matrix/send/edit-content.ts
1380
+ // extensions/matrix/src/matrix/send/edit-content.ts
1393
1381
  const MAX_EDIT_RELATION_PAGES = 100;
1394
1382
  const EDIT_RELATION_PAGE_SIZE = 100;
1395
1383
  const EDIT_DECRYPTION_ERROR = "Matrix edit history is not fully decrypted; restore encryption keys before editing.";
@@ -1427,8 +1415,7 @@ async function resolveMatrixEditContent(params) {
1427
1415
  }
1428
1416
  throw new Error("Matrix edit history could not be fully read; send a new message instead.");
1429
1417
  }
1430
- //#endregion
1431
- //#region extensions/matrix/src/matrix/send/formatting.ts
1418
+ // extensions/matrix/src/matrix/send/formatting.ts
1432
1419
  function buildTextContent(body, relation, opts = {}) {
1433
1420
  return {
1434
1421
  msgtype: opts.msgtype ?? MsgType.Text,
@@ -1491,8 +1478,7 @@ function resolveMatrixMsgType(contentType) {
1491
1478
  default: return MsgType.File;
1492
1479
  }
1493
1480
  }
1494
- //#endregion
1495
- //#region extensions/matrix/src/matrix/send/media.ts
1481
+ // extensions/matrix/src/matrix/send/media.ts
1496
1482
  const THUMBNAIL_MAX_SIDE = 800;
1497
1483
  const THUMBNAIL_QUALITY = 80;
1498
1484
  async function prepareImageInfo(params) {
@@ -1540,8 +1526,7 @@ async function uploadMediaWithEncryption(client, roomId, buffer, params) {
1540
1526
  }
1541
1527
  return { url: await client.uploadContent(buffer, params.contentType, params.filename) };
1542
1528
  }
1543
- //#endregion
1544
- //#region extensions/matrix/src/matrix/send.ts
1529
+ // extensions/matrix/src/matrix/send.ts
1545
1530
  var send_exports = /* @__PURE__ */ __exportAll({
1546
1531
  chunkMatrixText: () => chunkMatrixText,
1547
1532
  editMessageMatrix: () => editMessageMatrix,
@@ -1938,5 +1923,4 @@ async function reactMatrixMessage(roomId, messageId, emoji, opts = {}) {
1938
1923
  await resolved.sendEvent(resolvedRoom, EventType.Reaction, reaction);
1939
1924
  });
1940
1925
  }
1941
- //#endregion
1942
1926
  export { reconcileMatrixUnknownSend as C, cleanupMatrixDeliveryPlans as S, setBoundedMap as T, formatPollResultsAsText as _, sendSingleTextMessageMatrix as a, parsePollStart as b, formatMatrixMessageText as c, resolveMatrixReplacementContent as d, prepareMatrixSingleText as f, formatPollAsText as g, buildPollResultsSummary as h, sendPollMatrix as i, isLikelyBareFilename as l, buildPollResponseContent as m, reactMatrixMessage as n, sendTypingMatrix as o, ORG_POLL_RESPONSE as p, sendMessageMatrix as r, send_exports as s, editMessageMatrix as t, resolveMatrixMessageAttachment as u, isPollEventType as v, resolveMatrixRoomId as w, resolvePollReferenceEventId as x, isPollStartType as y };
@@ -1,6 +1,6 @@
1
1
  import { asOptionalObjectRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
- //#region extensions/matrix/src/matrix/reaction-common.ts
3
+ // 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 normalizeMatrixReactionValue(value, field) {
@@ -59,8 +59,7 @@ function selectOwnMatrixReactionEventIds(events, userId, emoji) {
59
59
  }
60
60
  return ids;
61
61
  }
62
- //#endregion
63
- //#region extensions/matrix/src/matrix/sdk/send-currentness.ts
62
+ // extensions/matrix/src/matrix/sdk/send-currentness.ts
64
63
  const sendCurrentness = new AsyncLocalStorage();
65
64
  function withMatrixSendCurrentness(client, assertCurrent, run) {
66
65
  assertCurrent();
@@ -77,5 +76,4 @@ function captureMatrixSendCurrentness(client) {
77
76
  function withoutMatrixSendCurrentness(run) {
78
77
  return sendCurrentness.exit(run);
79
78
  }
80
- //#endregion
81
79
  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-CRsKoMqJ.mjs";
2
- import "./setup-core-5sswwYZt.mjs";
3
- import { n as bootstrapMatrixVerification } from "./verification-BKVxSiIq.mjs";
1
+ import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
2
+ import "./setup-core-C56b-HVD.mjs";
3
+ import { n as bootstrapMatrixVerification } from "./verification-BKSXL6rb.mjs";
4
4
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
5
- //#region extensions/matrix/src/setup-bootstrap.ts
5
+ // extensions/matrix/src/setup-bootstrap.ts
6
6
  async function maybeBootstrapNewEncryptedMatrixAccount(params) {
7
7
  const accountConfig = resolveMatrixAccountConfig({
8
8
  cfg: params.cfg,
@@ -54,5 +54,4 @@ 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
58
57
  export { maybeBootstrapNewEncryptedMatrixAccount, runMatrixSetupBootstrapAfterConfigWrite };
@@ -1,8 +1,8 @@
1
- import { n as __exportAll } from "./runtime-doctor-migrations-hxP-CXX7.mjs";
2
- import { a as resolveConfiguredMatrixAccountIds, d as resolveScopedMatrixEnvConfig, l as resolveGlobalMatrixEnvConfig, p as resolveMatrixAccountStringValues, s as resolveMatrixDefaultOrOnlyAccountId, u as resolveMatrixEnvAuthReadiness } from "./account-selection-UUPhMBmu.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-CM6wXUjL.mjs";
5
- import { n as resolveMatrixConfigPath, r as shouldStoreMatrixAccountAtTopLevel, t as resolveMatrixConfigFieldPath } from "./config-paths-CnREYb1Y.mjs";
1
+ import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
2
+ import { a as resolveConfiguredMatrixAccountIds, d as resolveScopedMatrixEnvConfig, l as resolveGlobalMatrixEnvConfig, p as resolveMatrixAccountStringValues, s as resolveMatrixDefaultOrOnlyAccountId, u as resolveMatrixEnvAuthReadiness } from "./account-selection-Cow3TMFO.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-rPqEpuxv.mjs";
5
+ import { n as resolveMatrixConfigPath, r as shouldStoreMatrixAccountAtTopLevel, t as resolveMatrixConfigFieldPath } from "./config-paths-DBpHxDyc.mjs";
6
6
  import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
7
7
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
8
8
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -12,7 +12,7 @@ import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, addWildcardAllowFrom, apply
12
12
  import { resolveOptionalIntegerOption } from "openclaw/plugin-sdk/number-runtime";
13
13
  import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$2, normalizeAccountId as normalizeAccountId$2 } from "openclaw/plugin-sdk/routing";
14
14
  import { createChannelDmPolicy } from "openclaw/plugin-sdk/channel-dm-policy";
15
- //#region extensions/matrix/src/matrix/accounts.ts
15
+ // extensions/matrix/src/matrix/accounts.ts
16
16
  function clean(value) {
17
17
  return normalizeOptionalString(value) ?? "";
18
18
  }
@@ -143,8 +143,7 @@ async function resolveMatrixAccountAsync(params) {
143
143
  configured: isMatrixAccountConfigured(prepared, stored)
144
144
  };
145
145
  }
146
- //#endregion
147
- //#region extensions/matrix/src/matrix/config-update.ts
146
+ // extensions/matrix/src/matrix/config-update.ts
148
147
  var config_update_exports = /* @__PURE__ */ __exportAll({
149
148
  resolveMatrixConfigFieldPath: () => resolveMatrixConfigFieldPath,
150
149
  resolveMatrixConfigPath: () => resolveMatrixConfigPath,
@@ -228,8 +227,7 @@ function updateMatrixAccountConfig(cfg, accountId, patch) {
228
227
  }
229
228
  };
230
229
  }
231
- //#endregion
232
- //#region extensions/matrix/src/matrix/profile.ts
230
+ // extensions/matrix/src/matrix/profile.ts
233
231
  var profile_exports = /* @__PURE__ */ __exportAll({
234
232
  isSupportedMatrixAvatarSource: () => isSupportedMatrixAvatarSource,
235
233
  syncMatrixOwnProfile: () => syncMatrixOwnProfile
@@ -293,8 +291,7 @@ async function syncMatrixOwnProfile(params) {
293
291
  ...avatar
294
292
  };
295
293
  }
296
- //#endregion
297
- //#region extensions/matrix/src/setup-contract.ts
294
+ // extensions/matrix/src/setup-contract.ts
298
295
  const matrixAuthBootstrapKeys = [
299
296
  "homeserver",
300
297
  "userId",
@@ -346,8 +343,7 @@ function resolveSingleAccountPromotionTarget(params) {
346
343
  }
347
344
  return DEFAULT_ACCOUNT_ID$2;
348
345
  }
349
- //#endregion
350
- //#region extensions/matrix/src/setup-config.ts
346
+ // extensions/matrix/src/setup-config.ts
351
347
  const channel$1 = "matrix";
352
348
  const COMMON_SINGLE_ACCOUNT_KEYS_TO_MOVE = /* @__PURE__ */ new Set([
353
349
  "name",
@@ -458,8 +454,7 @@ function applyMatrixSetupAccountConfig(params) {
458
454
  initialSyncLimit: input.initialSyncLimit
459
455
  });
460
456
  }
461
- //#endregion
462
- //#region extensions/matrix/src/setup-dm-policy.ts
457
+ // extensions/matrix/src/setup-dm-policy.ts
463
458
  function resolveMatrixSetupDmAllowFrom(policy, allowFrom) {
464
459
  if (policy === "open") return addWildcardAllowFrom(allowFrom);
465
460
  return normalizeAllowFromEntries(allowFrom ?? []).filter((entry) => entry !== "*");
@@ -500,8 +495,7 @@ function createMatrixSetupDmPolicy(promptAllowFrom) {
500
495
  promptAllowFrom
501
496
  });
502
497
  }
503
- //#endregion
504
- //#region extensions/matrix/src/setup-core.ts
498
+ // extensions/matrix/src/setup-core.ts
505
499
  const channel = "matrix";
506
500
  function resolveMatrixSetupAccountId(params) {
507
501
  return normalizeAccountId$1(params.accountId?.trim() || params.name?.trim() || DEFAULT_ACCOUNT_ID$1);
@@ -529,7 +523,7 @@ function createMatrixSetupWizardProxy(loadWizardModule) {
529
523
  };
530
524
  }
531
525
  const finishMatrixSetupAfterConfigWrite = async ({ previousCfg, cfg, accountId, runtime }) => {
532
- const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-CB0idLzk.mjs");
526
+ const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-BMqnuJ8B.mjs");
533
527
  await runMatrixSetupBootstrapAfterConfigWrite({
534
528
  previousCfg,
535
529
  cfg,
@@ -643,5 +637,4 @@ const matrixSetupContract = defineChannelSetupContract({
643
637
  },
644
638
  legacyAdapter: matrixSetupAdapter
645
639
  });
646
- //#endregion
647
640
  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 };
@@ -0,0 +1,2 @@
1
+ export { n as matrixSetupPlugin } from "./channel.setup-DbtdaDqc.mjs";
2
+ import "../setup-plugin-api.js";
@@ -1,6 +1,6 @@
1
- import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
1
+ import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
2
2
  import os from "node:os";
3
- //#region extensions/matrix/src/matrix/sqlite-state.ts
3
+ // extensions/matrix/src/matrix/sqlite-state.ts
4
4
  function resolveStateDirOverride(options) {
5
5
  if (!options) return;
6
6
  return options.stateDir || getMatrixRuntime().state.resolveStateDir(options.env ?? process.env, os.homedir);
@@ -33,5 +33,4 @@ async function updateMatrixKeyedState(store, key, update, onUndefined = "keep")
33
33
  observation = result.current;
34
34
  }
35
35
  }
36
- //#endregion
37
36
  export { resolveMatrixSqliteStateKey as n, updateMatrixKeyedState as r, resolveMatrixSqliteStateEnv as t };
@@ -1,11 +1,11 @@
1
- import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
- import { r as assertMatrixSupportedStateFile } from "./retired-state-DohpBmxW.mjs";
3
- import { t as resolveMatrixSqliteStateEnv } from "./sqlite-state-7WEloajv.mjs";
4
- import { o as resolveMatrixStoragePaths, r as recordCurrentStorageMetaDeviceId } from "./storage-BjNHtYwT.mjs";
1
+ import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
2
+ import { r as assertMatrixSupportedStateFile } from "./retired-state-BsxdpJNk.mjs";
3
+ import { t as resolveMatrixSqliteStateEnv } from "./sqlite-state-D6Zpz1q1.mjs";
4
+ import { o as resolveMatrixStoragePaths, r as recordCurrentStorageMetaDeviceId } from "./storage-CCarF_gm.mjs";
5
5
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
6
6
  import path from "node:path";
7
7
  import { resolveDateTimestampMs } from "openclaw/plugin-sdk/number-runtime";
8
- //#region extensions/matrix/src/matrix/monitor/startup-verification.ts
8
+ // extensions/matrix/src/matrix/monitor/startup-verification.ts
9
9
  const STARTUP_VERIFICATION_STATE_FILENAME = "startup-verification.json";
10
10
  const STARTUP_VERIFICATION_NAMESPACE = "startup-verification";
11
11
  const STARTUP_VERIFICATION_MAX_ENTRIES = 1e3;
@@ -98,5 +98,4 @@ async function ensureMatrixStartupVerification(params) {
98
98
  };
99
99
  }
100
100
  }
101
- //#endregion
102
101
  export { ensureMatrixStartupVerification };