@openclaw/matrix 2026.11.7 → 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-LBvkygUK.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-CHryi9FS.mjs → channel-D4Ro9xGw.mjs} +27 -38
  7. package/dist/.setup/{channel.runtime-DluXWaGb.mjs → channel.runtime-BJs5y1VF.mjs} +10 -12
  8. package/dist/.setup/{channel.setup-BDbs0FLq.mjs → channel.setup-DbtdaDqc.mjs} +9 -7
  9. package/dist/.setup/{cli-C7Jmy2x4.mjs → cli-_ZHQruAA.mjs} +23 -31
  10. package/dist/.setup/{cli-doctor-BVstkgJE.mjs → cli-doctor-CoRX0erj.mjs} +3 -4
  11. package/dist/.setup/{cli-metadata-B0GHIn05.mjs → cli-metadata-BmSJWjxf.mjs} +3 -5
  12. package/dist/.setup/{client-Bk_tBqNp.mjs → client-BPMbgtzn.mjs} +21 -26
  13. package/dist/.setup/{client-mFRVrUt3.mjs → client-DVAwx3tH.mjs} +4 -5
  14. package/dist/.setup/{client-bootstrap-Bhhri97J.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-CzUtZgYF.mjs → create-client-B36cEJY6.mjs} +8 -9
  18. package/dist/.setup/{credentials-kT20jk_u.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-BI9Pc344.mjs → crypto-runtime-Db6nQPh-.mjs} +10 -15
  23. package/dist/.setup/{crypto-state-store-BZLlwkv_.mjs → crypto-state-store-CzAmeC_Z.mjs} +4 -4
  24. package/dist/.setup/{crypto-store-ownership-CiQ1l_O7.mjs → crypto-store-ownership-DPO9WcVz.mjs} +3 -4
  25. package/dist/.setup/{crypto-unsafe-state-doctor-CmF1X1dZ.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-DmkH9hcp.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-bVedfEB3.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-BeYF9-3o.mjs → exec-approvals-DHPrWdH5.mjs} +6 -9
  37. package/dist/.setup/{file-sync-store-BpS12yaK.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-BTOsltD9.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-BqVczVlt.mjs → messages-DJnlpqat.mjs} +9 -14
  45. package/dist/.setup/{monitor-BsSo3tCv.mjs → monitor-DUq2MOB8.mjs} +60 -90
  46. package/dist/.setup/{onboarding-CoMpgTiK.mjs → onboarding-B-eNKDM4.mjs} +10 -11
  47. package/dist/.setup/{outbound-ntm0KOfK.mjs → outbound-C2GWN9M_.mjs} +3 -4
  48. package/dist/.setup/{profile-update-gC436enW.mjs → profile-update-DpGQpxMi.mjs} +7 -9
  49. package/dist/.setup/{reaction-events-DTThoaJQ.mjs → reaction-events-CDTXMh8-.mjs} +8 -9
  50. package/dist/.setup/{resolve-targets-CWW9zTYp.mjs → resolve-targets-ZIJ6qkiK.mjs} +4 -5
  51. package/dist/.setup/{retired-state-JGUEBE72.mjs → retired-state-BsxdpJNk.mjs} +3 -41
  52. package/dist/.setup/{room-info-CM3MKoh4.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-ByFgA6Il.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-DFB7JGg2.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-razh2kSp.mjs → setup-bootstrap-BMqnuJ8B.mjs} +4 -5
  62. package/dist/.setup/{setup-core-BVbxltMM.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-D6Zpz1q1.mjs +36 -0
  65. package/dist/.setup/{startup-verification-UkaoSldm.mjs → startup-verification-DfOuAruK.mjs} +5 -5
  66. package/dist/.setup/{state-layout-walk-BQMgMykU.mjs → state-layout-walk-BqCZTHpp.mjs} +2 -3
  67. package/dist/.setup/{storage-C3N6YZIn.mjs → storage-CCarF_gm.mjs} +9 -10
  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-BKVaKRzQ.mjs → sync-cache-state-BMvqW4Ii.mjs} +5 -5
  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-D5VJEDZV.mjs → thread-bindings-RsHN1U_f.mjs} +8 -9
  76. package/dist/.setup/{thread-bindings-shared-QmZOfX9Q.mjs → thread-bindings-shared-CBlJu3Wz.mjs} +1 -2
  77. package/dist/.setup/{tool-actions-DexlmVDf.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-B122bsH2.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 -17
  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-CQKySg7F.mjs +0 -2
package/dist/api.js CHANGED
@@ -1,9 +1,9 @@
1
- import { a as resolveConfiguredMatrixAccountIds, i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, o as resolveMatrixChannelConfig, s as resolveMatrixDefaultOrOnlyAccountId } from "./.setup/account-selection-UUPhMBmu.mjs";
2
- import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./.setup/env-vars-aEBngJPa.mjs";
3
- import { a as resolveMatrixCredentialsFilename, i as resolveMatrixCredentialsDir, l as sanitizeMatrixPathSegment, o as resolveMatrixCredentialsPath, r as resolveMatrixAccountStorageRoot, s as resolveMatrixHomeserverKey, t as hashMatrixAccessToken } from "./.setup/storage-paths-B51JM-pC.mjs";
4
- import { r as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./.setup/setup-core-BVbxltMM.mjs";
5
- import { t as matrixPlugin } from "./.setup/channel-CHryi9FS.mjs";
6
- import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, n as getMatrixThreadBindingManager, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./.setup/thread-bindings-shared-QmZOfX9Q.mjs";
7
- import { t as matrixOnboardingAdapter } from "./.setup/onboarding-CoMpgTiK.mjs";
8
- import { t as createMatrixThreadBindingManager } from "./.setup/thread-bindings-D5VJEDZV.mjs";
1
+ import { a as resolveConfiguredMatrixAccountIds, i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, o as resolveMatrixChannelConfig, s as resolveMatrixDefaultOrOnlyAccountId } from "./.setup/account-selection-Cow3TMFO.mjs";
2
+ import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./.setup/env-vars-Bh1iOXJ1.mjs";
3
+ import { a as resolveMatrixCredentialsFilename, i as resolveMatrixCredentialsDir, l as sanitizeMatrixPathSegment, o as resolveMatrixCredentialsPath, r as resolveMatrixAccountStorageRoot, s as resolveMatrixHomeserverKey, t as hashMatrixAccessToken } from "./.setup/storage-paths-e_Vq6cvw.mjs";
4
+ import { r as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./.setup/setup-core-C56b-HVD.mjs";
5
+ import { t as matrixPlugin } from "./.setup/channel-D4Ro9xGw.mjs";
6
+ import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, n as getMatrixThreadBindingManager, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./.setup/thread-bindings-shared-CBlJu3Wz.mjs";
7
+ import { t as matrixOnboardingAdapter } from "./.setup/onboarding-B-eNKDM4.mjs";
8
+ import { t as createMatrixThreadBindingManager } from "./.setup/thread-bindings-RsHN1U_f.mjs";
9
9
  export { createMatrixSetupWizardProxy, createMatrixThreadBindingManager, findMatrixAccountEntry, getMatrixScopedEnvVarNames, getMatrixThreadBindingManager, hashMatrixAccessToken, listMatrixEnvAccountIds, matrixOnboardingAdapter, matrixOnboardingAdapter as matrixSetupWizard, matrixPlugin, matrixSetupAdapter, requiresExplicitMatrixDefaultAccount, resolveConfiguredMatrixAccountIds, resolveMatrixAccountStorageRoot, resolveMatrixChannelConfig, resolveMatrixCredentialsDir, resolveMatrixCredentialsFilename, resolveMatrixCredentialsPath, resolveMatrixDefaultOrOnlyAccountId, resolveMatrixEnvAccountToken, resolveMatrixHomeserverKey, sanitizeMatrixPathSegment, setMatrixThreadBindingIdleTimeoutBySessionKey, setMatrixThreadBindingIdleTimeoutBySessionKeyAsync, setMatrixThreadBindingMaxAgeBySessionKey, setMatrixThreadBindingMaxAgeBySessionKeyAsync };
@@ -1,6 +1,6 @@
1
- import { i as normalizeMatrixStoredCredentials, t as MATRIX_CREDENTIALS_NAMESPACE } from "./.setup/credentials-state-B3cuUFwZ.mjs";
1
+ import { i as normalizeMatrixStoredCredentials, t as MATRIX_CREDENTIALS_NAMESPACE } from "./.setup/credentials-state-jxq29yQw.mjs";
2
2
  import { createPluginStateKeyedStore, createPluginStateSyncKeyedStore } from "openclaw/plugin-sdk/plugin-state-store-runtime";
3
- //#region extensions/matrix/auth-presence.ts
3
+ // extensions/matrix/auth-presence.ts
4
4
  /** @deprecated Use hasAnyMatrixAuthAsync. Final compatibility day: 2026-12-31. Removal in the first January 2027 stable release. */
5
5
  function hasAnyMatrixAuth(params, env = process.env) {
6
6
  const resolvedEnv = params && typeof params === "object" && "cfg" in params ? params.env ?? env : env;
@@ -28,5 +28,4 @@ async function hasAnyMatrixAuthAsync(params, env = process.env) {
28
28
  return false;
29
29
  }
30
30
  }
31
- //#endregion
32
31
  export { hasAnyMatrixAuth, hasAnyMatrixAuthAsync };
@@ -1 +1 @@
1
- export { t as matrixPlugin } from "./.setup/channel-CHryi9FS.mjs";
1
+ export { t as matrixPlugin } from "./.setup/channel-D4Ro9xGw.mjs";
@@ -1 +1 @@
1
- export { t as default, n as registerMatrixCliMetadata } from "./.setup/cli-metadata-B0GHIn05.mjs";
1
+ export { t as default, n as registerMatrixCliMetadata } from "./.setup/cli-metadata-BmSJWjxf.mjs";
@@ -1,3 +1,3 @@
1
- import { c as resolveSingleAccountPromotionTarget, l as singleAccountKeysToMove, r as matrixSetupAdapter, s as namedAccountPromotionKeys } from "./.setup/setup-core-BVbxltMM.mjs";
2
- import { t as matrixOnboardingAdapter } from "./.setup/onboarding-CoMpgTiK.mjs";
1
+ import { c as resolveSingleAccountPromotionTarget, l as singleAccountKeysToMove, r as matrixSetupAdapter, s as namedAccountPromotionKeys } from "./.setup/setup-core-C56b-HVD.mjs";
2
+ import { t as matrixOnboardingAdapter } from "./.setup/onboarding-B-eNKDM4.mjs";
3
3
  export { matrixSetupAdapter, matrixOnboardingAdapter as matrixSetupWizard, namedAccountPromotionKeys, resolveSingleAccountPromotionTarget, singleAccountKeysToMove };
@@ -1,16 +1,17 @@
1
- import { t as runtime_doctor_migrations_exports } from "./.setup/runtime-doctor-migrations-hxP-CXX7.mjs";
2
- import { i as normalizeMatrixStoredCredentials, n as isMatrixCredentialRevocation, r as matrixCredentialsStoreKey, t as MATRIX_CREDENTIALS_NAMESPACE } from "./.setup/credentials-state-B3cuUFwZ.mjs";
3
- import { i as resolveMatrixCredentialsDir } from "./.setup/storage-paths-B51JM-pC.mjs";
4
- import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./.setup/doctor-contract-BANpMUbP.mjs";
5
- import { a as describeRetiredMatrixState, o as resolveMatrixSqliteStateEnv, t as RETIRED_MATRIX_STATE_FILENAMES } from "./.setup/retired-state-JGUEBE72.mjs";
6
- import { t as walkMatrixStateFiles } from "./.setup/state-layout-walk-BQMgMykU.mjs";
7
- import { i as readLegacyMatrixSyncCacheState, n as hasMatrixSyncCacheStateInStore, r as openMatrixSyncCacheStoreOptions, s as writeMatrixSyncCacheStateToStore } from "./.setup/sync-cache-state-BKVaKRzQ.mjs";
1
+ import { t as runtime_doctor_migrations_exports } from "./.setup/runtime-doctor-migrations-CSvRANPN.mjs";
2
+ import { i as normalizeMatrixStoredCredentials, n as isMatrixCredentialRevocation, r as matrixCredentialsStoreKey, t as MATRIX_CREDENTIALS_NAMESPACE } from "./.setup/credentials-state-jxq29yQw.mjs";
3
+ import { i as resolveMatrixCredentialsDir } from "./.setup/storage-paths-e_Vq6cvw.mjs";
4
+ import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./.setup/doctor-contract-GiXgCj7k.mjs";
5
+ import { a as describeRetiredMatrixState, t as RETIRED_MATRIX_STATE_FILENAMES } from "./.setup/retired-state-BsxdpJNk.mjs";
6
+ import { t as resolveMatrixSqliteStateEnv } from "./.setup/sqlite-state-D6Zpz1q1.mjs";
7
+ import { t as walkMatrixStateFiles } from "./.setup/state-layout-walk-BqCZTHpp.mjs";
8
+ import { i as readLegacyMatrixSyncCacheState, n as hasMatrixSyncCacheStateInStore, r as openMatrixSyncCacheStoreOptions, s as writeMatrixSyncCacheStateToStore } from "./.setup/sync-cache-state-BMvqW4Ii.mjs";
8
9
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
9
10
  import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
10
11
  import { createHash } from "node:crypto";
11
12
  import path from "node:path";
12
13
  import fs from "node:fs/promises";
13
- //#region extensions/matrix/src/matrix/account-state-schema-doctor.ts
14
+ // extensions/matrix/src/matrix/account-state-schema-doctor.ts
14
15
  const STATE_DATABASE_FILENAME = "openclaw.sqlite";
15
16
  async function collectMatrixAccountStateRoots(stateDir) {
16
17
  const { entries, failedDirs } = await walkMatrixStateFiles(stateDir, (name, depth) => depth === 5 && name === STATE_DATABASE_FILENAME || (depth === 0 || depth === 2 || depth === 4) && RETIRED_MATRIX_STATE_FILENAMES.has(name), [2, 4]);
@@ -57,8 +58,7 @@ const matrixAccountStateSchemaMigration = {
57
58
  };
58
59
  }
59
60
  };
60
- //#endregion
61
- //#region extensions/matrix/src/matrix/monitor/inbound-dedupe-migration.ts
61
+ // extensions/matrix/src/matrix/monitor/inbound-dedupe-migration.ts
62
62
  const LEGACY_SQLITE_NAMESPACE = "inbound-dedupe";
63
63
  const LEGACY_MARKERS_NAMESPACE = "inbound-dedupe-migrations";
64
64
  const MATRIX_PLUGIN_ID = "matrix";
@@ -288,10 +288,9 @@ const matrixReplayGuardIngressMigration = {
288
288
  };
289
289
  }
290
290
  };
291
- //#endregion
292
- //#region extensions/matrix/doctor-contract-api.ts
291
+ // extensions/matrix/doctor-contract-api.ts
293
292
  const registerRecoveryCli = async (params) => {
294
- const { registerMatrixDoctorCommands } = await import("./.setup/cli-doctor-BVstkgJE.mjs");
293
+ const { registerMatrixDoctorCommands } = await import("./.setup/cli-doctor-CoRX0erj.mjs");
295
294
  registerMatrixDoctorCommands(params);
296
295
  };
297
296
  const MATRIX_SYNC_CACHE_FILENAME = "bot-storage.json";
@@ -309,7 +308,7 @@ async function collectLegacyMatrixCredentialSources(params) {
309
308
  return left.name.localeCompare(right.name);
310
309
  });
311
310
  if (files.length === 0) return [];
312
- const { requiresExplicitMatrixDefaultAccount, resolveMatrixDefaultOrOnlyAccountId } = await import("./.setup/account-selection-UUPhMBmu.mjs").then((n) => n.t);
311
+ const { requiresExplicitMatrixDefaultAccount, resolveMatrixDefaultOrOnlyAccountId } = await import("./.setup/account-selection-Cow3TMFO.mjs").then((n) => n.t);
313
312
  return files.map((entry) => {
314
313
  const namedAccount = /^credentials(?:-([a-z0-9._-]+))?\.json$/iu.exec(entry.name)?.[1];
315
314
  return {
@@ -359,12 +358,12 @@ const stateMigrations = [
359
358
  id: "matrix-crypto-unsafe-state",
360
359
  label: "Matrix crypto unsafe final state",
361
360
  async detectLegacyState(params) {
362
- const { listMatrixCryptoUnsafeState } = await import("./.setup/crypto-unsafe-state-doctor-CmF1X1dZ.mjs").then((n) => n.t);
361
+ const { listMatrixCryptoUnsafeState } = await import("./.setup/crypto-unsafe-state-doctor-D3WLE-t4.mjs").then((n) => n.t);
363
362
  const roots = await listMatrixCryptoUnsafeState(params.stateDir, { openKeyedStoreV2: params.context.openPluginStateKeyedStore });
364
363
  return roots.length > 0 ? { preview: roots.map((root) => `Matrix crypto store is blocked after unsafe final save: ${root}. Run openclaw matrix doctor inspect; recovery is never automatic.`) } : null;
365
364
  },
366
365
  async migrateLegacyState(params) {
367
- const { listMatrixCryptoUnsafeState } = await import("./.setup/crypto-unsafe-state-doctor-CmF1X1dZ.mjs").then((n) => n.t);
366
+ const { listMatrixCryptoUnsafeState } = await import("./.setup/crypto-unsafe-state-doctor-D3WLE-t4.mjs").then((n) => n.t);
368
367
  return {
369
368
  changes: [],
370
369
  warnings: (await listMatrixCryptoUnsafeState(params.stateDir, { openKeyedStoreV2: params.context.openPluginStateKeyedStore })).map((root) => `Matrix crypto store remains blocked: ${root}. Inspect with openclaw matrix doctor inspect; explicit recovery may roll back keys.`)
@@ -566,5 +565,4 @@ const stateMigrations = [
566
565
  }
567
566
  }
568
567
  ];
569
- //#endregion
570
568
  export { legacyConfigRules, normalizeCompatibilityConfig, registerRecoveryCli, stateMigrations };
@@ -1,4 +1,4 @@
1
- import { a as resolveConfiguredMatrixAccountIds, i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, o as resolveMatrixChannelConfig, r as hasImplicitMatrixAccountConfig, s as resolveMatrixDefaultOrOnlyAccountId } from "./.setup/account-selection-UUPhMBmu.mjs";
2
- import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./.setup/env-vars-aEBngJPa.mjs";
3
- import { a as resolveMatrixCredentialsFilename, c as resolveMatrixStateLayoutChildDepth, i as resolveMatrixCredentialsDir, l as sanitizeMatrixPathSegment, n as isMatrixActiveTokenRootDirectory, o as resolveMatrixCredentialsPath, r as resolveMatrixAccountStorageRoot, s as resolveMatrixHomeserverKey, t as hashMatrixAccessToken } from "./.setup/storage-paths-B51JM-pC.mjs";
1
+ import { a as resolveConfiguredMatrixAccountIds, i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, o as resolveMatrixChannelConfig, r as hasImplicitMatrixAccountConfig, s as resolveMatrixDefaultOrOnlyAccountId } from "./.setup/account-selection-Cow3TMFO.mjs";
2
+ import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./.setup/env-vars-Bh1iOXJ1.mjs";
3
+ import { a as resolveMatrixCredentialsFilename, c as resolveMatrixStateLayoutChildDepth, i as resolveMatrixCredentialsDir, l as sanitizeMatrixPathSegment, n as isMatrixActiveTokenRootDirectory, o as resolveMatrixCredentialsPath, r as resolveMatrixAccountStorageRoot, s as resolveMatrixHomeserverKey, t as hashMatrixAccessToken } from "./.setup/storage-paths-e_Vq6cvw.mjs";
4
4
  export { findMatrixAccountEntry, getMatrixScopedEnvVarNames, hasImplicitMatrixAccountConfig, hashMatrixAccessToken, isMatrixActiveTokenRootDirectory, listMatrixEnvAccountIds, requiresExplicitMatrixDefaultAccount, resolveConfiguredMatrixAccountIds, resolveMatrixAccountStorageRoot, resolveMatrixChannelConfig, resolveMatrixCredentialsDir, resolveMatrixCredentialsFilename, resolveMatrixCredentialsPath, resolveMatrixDefaultOrOnlyAccountId, resolveMatrixEnvAccountToken, resolveMatrixHomeserverKey, resolveMatrixStateLayoutChildDepth, sanitizeMatrixPathSegment };
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import { n as registerMatrixCliMetadata } from "./.setup/cli-metadata-B0GHIn05.mjs";
2
- import { a as setMatrixRuntimeLifecycle } from "./.setup/runtime-1kn1P6io.mjs";
1
+ import { n as registerMatrixCliMetadata } from "./.setup/cli-metadata-BmSJWjxf.mjs";
2
+ import { a as setMatrixRuntimeLifecycle } from "./.setup/runtime-Ck8TjD7L.mjs";
3
3
  import "./runtime-setter-api.js";
4
4
  import { registerMatrixSubagentHooks } from "./subagent-hooks-api.js";
5
5
  import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
6
6
  import { runWithLocalStateMutationOwner } from "openclaw/plugin-sdk/gateway-runtime";
7
7
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
8
- //#region extensions/matrix/index.ts
8
+ // extensions/matrix/index.ts
9
9
  const loadMatrixHandlersRuntimeModule = createLazyRuntimeModule(() => import("./plugin-entry.handlers.runtime.js"));
10
10
  function registerMatrixFullRuntime(api) {
11
11
  setMatrixRuntimeLifecycle(api.runtime, api.lifecycle);
@@ -68,5 +68,4 @@ var matrix_default = defineBundledChannelEntry({
68
68
  registerCliMetadata: registerMatrixCliMetadata,
69
69
  registerFull: registerMatrixFullRuntime
70
70
  });
71
- //#endregion
72
71
  export { matrix_default as default, registerMatrixFullRuntime };
@@ -1,9 +1,9 @@
1
- import { l as resolveMatrixAuthContext } from "./.setup/client-Bk_tBqNp.mjs";
1
+ import { l as resolveMatrixAuthContext } from "./.setup/client-BPMbgtzn.mjs";
2
2
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
3
3
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
4
4
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
- //#region extensions/matrix/src/plugin-entry.runtime.ts
6
- const loadMatrixVerificationRuntime = createLazyRuntimeModule(() => import("./.setup/verification-B122bsH2.mjs").then((n) => n.y));
5
+ // extensions/matrix/src/plugin-entry.runtime.ts
6
+ const loadMatrixVerificationRuntime = createLazyRuntimeModule(() => import("./.setup/verification-BKSXL6rb.mjs").then((n) => n.y));
7
7
  function sendError(respond, err) {
8
8
  respond(false, { error: formatErrorMessage(err) });
9
9
  }
@@ -79,5 +79,4 @@ async function handleVerificationStatus({ params, respond, context }) {
79
79
  sendError(respond, err);
80
80
  }
81
81
  }
82
- //#endregion
83
82
  export { handleVerificationBootstrap, handleVerificationStatus, handleVerifyRecoveryKey };
@@ -1,14 +1,14 @@
1
- import { i as setMatrixRuntime } from "./.setup/runtime-1kn1P6io.mjs";
2
- import { a as resolveConfiguredMatrixAccountIds, i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, o as resolveMatrixChannelConfig, p as resolveMatrixAccountStringValues, s as resolveMatrixDefaultOrOnlyAccountId } from "./.setup/account-selection-UUPhMBmu.mjs";
3
- import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./.setup/env-vars-aEBngJPa.mjs";
4
- import { a as resolveMatrixCredentialsFilename, i as resolveMatrixCredentialsDir, l as sanitizeMatrixPathSegment, o as resolveMatrixCredentialsPath, r as resolveMatrixAccountStorageRoot, s as resolveMatrixHomeserverKey, t as hashMatrixAccessToken } from "./.setup/storage-paths-B51JM-pC.mjs";
5
- import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./.setup/thread-bindings-shared-QmZOfX9Q.mjs";
6
- import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./.setup/deps-D-W_QQjz.mjs";
1
+ import { i as setMatrixRuntime } from "./.setup/runtime-Ck8TjD7L.mjs";
2
+ import { a as resolveConfiguredMatrixAccountIds, i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, o as resolveMatrixChannelConfig, p as resolveMatrixAccountStringValues, s as resolveMatrixDefaultOrOnlyAccountId } from "./.setup/account-selection-Cow3TMFO.mjs";
3
+ import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./.setup/env-vars-Bh1iOXJ1.mjs";
4
+ import { a as resolveMatrixCredentialsFilename, i as resolveMatrixCredentialsDir, l as sanitizeMatrixPathSegment, o as resolveMatrixCredentialsPath, r as resolveMatrixAccountStorageRoot, s as resolveMatrixHomeserverKey, t as hashMatrixAccessToken } from "./.setup/storage-paths-e_Vq6cvw.mjs";
5
+ import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./.setup/thread-bindings-shared-CBlJu3Wz.mjs";
6
+ import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./.setup/deps-CVPT2Ros.mjs";
7
7
  import { chunkTextForOutbound as chunkTextForOutbound$1 } from "openclaw/plugin-sdk/text-chunking";
8
8
  import { assertHttpUrlTargetsPrivateNetwork, closeDispatcher, createPinnedDispatcher, resolvePinnedHostnameWithPolicy, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
9
9
  import { formatZonedTimestamp } from "openclaw/plugin-sdk/time-runtime";
10
10
  import { writeJsonFileAtomically } from "openclaw/plugin-sdk/json-store";
11
- //#region extensions/matrix/runtime-api.ts
11
+ // extensions/matrix/runtime-api.ts
12
12
  function chunkTextForOutbound(text, limit) {
13
13
  if (text.length === 0 || limit <= 0) return [text];
14
14
  if (Number.isFinite(limit) && limit > 0 && !Number.isInteger(limit)) return chunkTextForOutbound$1(text, limit);
@@ -24,5 +24,4 @@ function chunkTextForOutbound(text, limit) {
24
24
  if (remaining.length > 0) chunks.push(remaining);
25
25
  return chunks;
26
26
  }
27
- //#endregion
28
27
  export { assertHttpUrlTargetsPrivateNetwork, chunkTextForOutbound, closeDispatcher, createPinnedDispatcher, ensureMatrixSdkInstalled, findMatrixAccountEntry, formatZonedTimestamp, getMatrixScopedEnvVarNames, hashMatrixAccessToken, isMatrixSdkAvailable, listMatrixEnvAccountIds, requiresExplicitMatrixDefaultAccount, resolveConfiguredMatrixAccountIds, resolveMatrixAccountStorageRoot, resolveMatrixAccountStringValues, resolveMatrixChannelConfig, resolveMatrixCredentialsDir, resolveMatrixCredentialsFilename, resolveMatrixCredentialsPath, resolveMatrixDefaultOrOnlyAccountId, resolveMatrixEnvAccountToken, resolveMatrixHomeserverKey, resolvePinnedHostnameWithPolicy, sanitizeMatrixPathSegment, setMatrixRuntime, setMatrixThreadBindingIdleTimeoutBySessionKey, setMatrixThreadBindingIdleTimeoutBySessionKeyAsync, setMatrixThreadBindingMaxAgeBySessionKey, setMatrixThreadBindingMaxAgeBySessionKeyAsync, ssrfPolicyFromDangerouslyAllowPrivateNetwork, writeJsonFileAtomically };
@@ -1 +1 @@
1
- export { i as setMatrixRuntime, a as setMatrixRuntimeLifecycle } from "./.setup/runtime-1kn1P6io.mjs";
1
+ export { i as setMatrixRuntime, a as setMatrixRuntimeLifecycle } from "./.setup/runtime-Ck8TjD7L.mjs";
@@ -1 +1 @@
1
- export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-contract-DxyzKSzf.mjs";
1
+ export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-contract-AKnr45nw.mjs";
@@ -1,3 +1,3 @@
1
- import { i as setMatrixRuntime } from "./.setup/runtime-1kn1P6io.mjs";
2
- import { t as createMatrixThreadBindingManager } from "./.setup/thread-bindings-D5VJEDZV.mjs";
1
+ import { i as setMatrixRuntime } from "./.setup/runtime-Ck8TjD7L.mjs";
2
+ import { t as createMatrixThreadBindingManager } from "./.setup/thread-bindings-RsHN1U_f.mjs";
3
3
  export { createMatrixThreadBindingManager, setMatrixRuntime };
@@ -1,20 +1,19 @@
1
1
  import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
2
2
  import { fileURLToPath } from "node:url";
3
- //#region extensions/matrix/setup-entry.ts
3
+ // extensions/matrix/setup-entry.ts
4
4
  var setup_entry_default = defineBundledChannelSetupEntry({
5
5
  importMetaUrl: import.meta.url,
6
6
  plugin: {
7
- specifier: fileURLToPath(new URL(".setup/setup-plugin-api-CQKySg7F.mjs", import.meta.url).href),
7
+ specifier: fileURLToPath(new URL(".setup/setup-plugin-api-Bje8sp8k.mjs", import.meta.url).href),
8
8
  exportName: "matrixSetupPlugin"
9
9
  },
10
10
  secrets: {
11
- specifier: fileURLToPath(new URL(".setup/secret-contract-api-Dukgvike.mjs", import.meta.url).href),
11
+ specifier: fileURLToPath(new URL(".setup/secret-contract-api-DMSwMIxd.mjs", import.meta.url).href),
12
12
  exportName: "channelSecrets"
13
13
  },
14
14
  runtime: {
15
- specifier: fileURLToPath(new URL(".setup/runtime-setter-api-i2MOXoT3.mjs", import.meta.url).href),
15
+ specifier: fileURLToPath(new URL(".setup/runtime-setter-api-CpwhcBQK.mjs", import.meta.url).href),
16
16
  exportName: "setMatrixRuntime"
17
17
  }
18
18
  });
19
- //#endregion
20
19
  export { setup_entry_default as default };
@@ -1 +1 @@
1
- export { n as matrixSetupPlugin } from "./.setup/channel.setup-BDbs0FLq.mjs";
1
+ export { n as matrixSetupPlugin } from "./.setup/channel.setup-DbtdaDqc.mjs";
@@ -1,6 +1,6 @@
1
1
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
2
- //#region extensions/matrix/subagent-hooks-api.ts
3
- const loadMatrixSubagentHooksModule = createLazyRuntimeModule(() => import("./.setup/subagent-hooks-CfGAysJi.mjs"));
2
+ // extensions/matrix/subagent-hooks-api.ts
3
+ const loadMatrixSubagentHooksModule = createLazyRuntimeModule(() => import("./.setup/subagent-hooks-D-lCcLGQ.mjs"));
4
4
  function registerMatrixSubagentHooks(api) {
5
5
  api.on("subagent_ended", async (event) => {
6
6
  const { handleMatrixSubagentEnded } = await loadMatrixSubagentHooksModule();
@@ -11,5 +11,4 @@ function registerMatrixSubagentHooks(api) {
11
11
  return handleMatrixSubagentDeliveryTarget(event);
12
12
  });
13
13
  }
14
- //#endregion
15
14
  export { registerMatrixSubagentHooks };
@@ -1 +1 @@
1
- export { t as defaultTopLevelPlacement, n as resolveInboundConversation } from "./.setup/thread-binding-api-BvuaKpd0.mjs";
1
+ export { t as defaultTopLevelPlacement, n as resolveInboundConversation } from "./.setup/thread-binding-api-OtSciHmZ.mjs";
@@ -1 +1 @@
1
- export { l as setMatrixThreadBindingIdleTimeoutBySessionKey, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync, f as setMatrixThreadBindingMaxAgeBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync } from "./.setup/thread-bindings-shared-QmZOfX9Q.mjs";
1
+ export { l as setMatrixThreadBindingIdleTimeoutBySessionKey, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync, f as setMatrixThreadBindingMaxAgeBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync } from "./.setup/thread-bindings-shared-CBlJu3Wz.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/matrix",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.9",
4
4
  "description": "OpenClaw Matrix channel plugin for rooms and direct messages.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "zod": "4.6.7"
20
20
  },
21
21
  "peerDependencies": {
22
- "openclaw": ">=2026.11.7"
22
+ "openclaw": ">=2026.11.9"
23
23
  },
24
24
  "peerDependenciesMeta": {
25
25
  "openclaw": {
@@ -170,11 +170,11 @@
170
170
  "allowInvalidConfigRecovery": true
171
171
  },
172
172
  "compat": {
173
- "pluginApi": ">=2026.11.7"
173
+ "pluginApi": ">=2026.11.9"
174
174
  },
175
175
  "build": {
176
176
  "bundledDist": false,
177
- "openclawVersion": "2026.11.7"
177
+ "openclawVersion": "2026.11.9"
178
178
  },
179
179
  "release": {
180
180
  "publishToClawHub": true,
@@ -1,2 +0,0 @@
1
- export { n as matrixSetupPlugin } from "./channel.setup-BDbs0FLq.mjs";
2
- import "../setup-plugin-api.js";