@openclaw/matrix 2026.10.10-beta.4 → 2026.10.10
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.
- package/dist/.setup/{account-config-CRsKoMqJ.mjs → account-config-CVM2a28p.mjs} +1 -2
- package/dist/.setup/{account-selection-Bs_jCAaG.mjs → account-selection-Co94mKNj.mjs} +5 -8
- package/dist/.setup/{approval-handler.runtime-CsqMdj7h.mjs → approval-handler.runtime-DtNvJpfB.mjs} +8 -9
- package/dist/.setup/{approval-reactions-D2pEUrFS.mjs → approval-reactions-DMDBJos0.mjs} +2 -3
- package/dist/.setup/{backup-health-Dm_YMVFT.mjs → backup-health-BxH69np2.mjs} +1 -2
- package/dist/.setup/{channel-Dw4_imdd.mjs → channel-CNjJyBS_.mjs} +29 -43
- package/dist/.setup/{channel.runtime-2EEtIlyu.mjs → channel.runtime-DaGbm27q.mjs} +8 -10
- package/dist/.setup/{channel.setup-Be8TYKMA.mjs → channel.setup-IjRB0ymg.mjs} +7 -11
- package/dist/.setup/{cli-CEmWh7wh.mjs → cli-CuEJNM3c.mjs} +28 -39
- package/dist/.setup/{cli-metadata-CBLGwJT6.mjs → cli-metadata-rWmD_rzx.mjs} +3 -5
- package/dist/.setup/{client-C4Gibhzl.mjs → client-7eyTX0cu.mjs} +19 -25
- package/dist/.setup/{client-BKiiI29H.mjs → client-CV0MkCZG.mjs} +4 -5
- package/dist/.setup/{client-bootstrap-kOIDV4z_.mjs → client-bootstrap-BjcmTmyR.mjs} +2 -3
- package/dist/.setup/{client-support-D-xHScuo.mjs → client-support-CFofPPPm.mjs} +3 -5
- package/dist/.setup/{config-paths-CnREYb1Y.mjs → config-paths-DBpHxDyc.mjs} +1 -2
- package/dist/.setup/{create-client-BS8UYx6N.mjs → create-client-C4Lnqs2C.mjs} +8 -9
- package/dist/.setup/{credentials-CPnJZaZB.mjs → credentials-B0vpXvcB.mjs} +5 -6
- package/dist/.setup/{credentials-read-D2ULV55A.mjs → credentials-read-WCQSEvI8.mjs} +5 -6
- package/dist/.setup/{credentials-state-B3cuUFwZ.mjs → credentials-state-jxq29yQw.mjs} +1 -2
- package/dist/.setup/{crypto-node.runtime-6Aj_ltHQ.mjs → crypto-node.runtime-E_hqXGxm.mjs} +1 -2
- package/dist/.setup/{crypto-runtime-D8yY7kjD.mjs → crypto-runtime-Crp1is7m.mjs} +12 -19
- package/dist/.setup/{crypto-state-store-D4wrCvFs.mjs → crypto-state-store-CM57gchf.mjs} +3 -4
- package/dist/.setup/{crypto-store-ownership-Z_Y5WRKr.mjs → crypto-store-ownership-Bratn-Np.mjs} +3 -4
- package/dist/.setup/{crypto-unsafe-state-doctor-C8szCYmf.mjs → crypto-unsafe-state-doctor-Brv4bIyx.mjs} +7 -8
- package/dist/.setup/{deps-L_1bUAGL.mjs → deps-O7rEnklr.mjs} +1 -2
- package/dist/.setup/{device-health-Be60VF1w.mjs → device-health-DnKAXW1v.mjs} +2 -3
- package/dist/.setup/{direct-management-B3wYhx_M.mjs → direct-management-DDaWVbQI.mjs} +7 -11
- package/dist/.setup/{directory-live-BpSz-FQB.mjs → directory-live-B-csizuK.mjs} +5 -6
- package/dist/.setup/{doctor-contract-CsTNmbMa.mjs → doctor-contract-DybEjJcd.mjs} +6 -12
- package/dist/.setup/{draft-stream-DYf0th1n.mjs → draft-stream-dmhBHufd.mjs} +4 -4
- package/dist/.setup/{encryption-guidance-D5_IsDIy.mjs → encryption-guidance-Cn6-Tlx0.mjs} +3 -4
- package/dist/.setup/{env-vars-aEBngJPa.mjs → env-vars-Bh1iOXJ1.mjs} +1 -2
- package/dist/.setup/{errors-Bw4EHwKX.mjs → errors-CL3YJV8U.mjs} +1 -2
- package/dist/.setup/{event-helpers-CxNgMQqH.mjs → event-helpers-DDUjVVf7.mjs} +1 -2
- package/dist/.setup/{exec-approvals-DaM-5OA5.mjs → exec-approvals-D7vv3AZS.mjs} +6 -9
- package/dist/.setup/{file-sync-store-CUH8EAJq.mjs → file-sync-store-q5KCV2Lp.mjs} +5 -6
- package/dist/.setup/{http-client-ByR4STVQ.mjs → http-client-CxTmU1kT.mjs} +4 -7
- package/dist/.setup/{idb-persistence-BHTYPRe_.mjs → idb-persistence-BF0MZglD.mjs} +6 -7
- package/dist/.setup/{idb-persistence-lock-Bh3ZLIsE.mjs → idb-persistence-lock-CH2K6d_3.mjs} +1 -2
- package/dist/.setup/{inbound-dedupe-C-EBGY0B.mjs → inbound-dedupe-CZnOq0ja.mjs} +2 -3
- package/dist/.setup/{joined-room-encryption-BAD70N5n.mjs → joined-room-encryption-Dl7Sb9FF.mjs} +2 -3
- package/dist/.setup/{logger-CXQnpXCt.mjs → logger-BX5kXvh1.mjs} +2 -3
- package/dist/.setup/{logging-BKV8TYQq.mjs → logging-BLcaOSRD.mjs} +3 -4
- package/dist/.setup/{messages-_XHVg3do.mjs → messages-BiHM0DM3.mjs} +9 -14
- package/dist/.setup/{monitor-DRUSJ_Ev.mjs → monitor-CPwDgRFY.mjs} +88 -96
- package/dist/.setup/{onboarding-CK9Ksgio.mjs → onboarding-DiVtpjNu.mjs} +10 -11
- package/dist/.setup/{outbound-D5Z_4FBg.mjs → outbound-DwP97VpQ.mjs} +3 -4
- package/dist/.setup/{profile-update--Pf3jCXD.mjs → profile-update-DnNA9mEa.mjs} +6 -8
- package/dist/.setup/{reaction-events-BG9spedG.mjs → reaction-events-ClY9h_FC.mjs} +8 -9
- package/dist/.setup/{resolve-targets-BJ5sIKeM.mjs → resolve-targets-B8PAwHVS.mjs} +4 -5
- package/dist/.setup/{retired-state-DOCruzWd.mjs → retired-state-vIr2IB90.mjs} +4 -7
- package/dist/.setup/{room-info-BE7bbX_c.mjs → room-info-T_PR_liR.mjs} +6 -8
- package/dist/.setup/{runtime-1kn1P6io.mjs → runtime-Ck8TjD7L.mjs} +1 -2
- package/dist/.setup/{runtime-setter-api-i2MOXoT3.mjs → runtime-setter-api-CpwhcBQK.mjs} +1 -1
- package/dist/.setup/{sdk-ByU8So5S.mjs → sdk-Cj3ggJHG.mjs} +32 -47
- package/dist/.setup/{secret-contract-DxyzKSzf.mjs → secret-contract-AKnr45nw.mjs} +2 -3
- package/dist/.setup/{secret-contract-api-Dukgvike.mjs → secret-contract-api-DMSwMIxd.mjs} +1 -1
- package/dist/.setup/{send-BprM-Wmx.mjs → send-C1qeMQAy.mjs} +25 -42
- package/dist/.setup/{send-currentness-C2rMVVIQ.mjs → send-currentness-CAUVR-f3.mjs} +2 -4
- package/dist/.setup/{setup-bootstrap-DmznRqYe.mjs → setup-bootstrap-DDhwWvDs.mjs} +4 -5
- package/dist/.setup/{setup-core-DcCk1_Tv.mjs → setup-core-D2r4BivQ.mjs} +13 -20
- package/dist/.setup/setup-plugin-api-SO1hdrsT.mjs +2 -0
- package/dist/.setup/{startup-verification-UU8DUvi4.mjs → startup-verification-B3LEbW33.mjs} +4 -5
- package/dist/.setup/{state-layout-walk-BQMgMykU.mjs → state-layout-walk-BqCZTHpp.mjs} +2 -3
- package/dist/.setup/{storage-l8V0XsGM.mjs → storage-CxN4jqKI.mjs} +7 -9
- package/dist/.setup/{storage-paths-B51JM-pC.mjs → storage-paths-e_Vq6cvw.mjs} +1 -2
- package/dist/.setup/{subagent-hooks-CSY4iwa_.mjs → subagent-hooks-CT-rdJmh.mjs} +2 -3
- package/dist/.setup/{sync-cache-state-Cnm4TCEI.mjs → sync-cache-state-qYrd2EEh.mjs} +3 -4
- package/dist/.setup/{target-ids-HhcaKX1n.mjs → target-ids-DltG_ZHJ.mjs} +1 -2
- package/dist/.setup/{thread-binding-api-BvuaKpd0.mjs → thread-binding-api-OtSciHmZ.mjs} +2 -3
- package/dist/.setup/{thread-bindings-rrwQAS6R.mjs → thread-bindings-D2ZR6mEZ.mjs} +7 -9
- package/dist/.setup/{thread-bindings-shared-CPjUA0Ib.mjs → thread-bindings-shared-FMu_szTm.mjs} +1 -2
- package/dist/.setup/{tool-actions-DBrk6Yei.mjs → tool-actions-CdKa0DC4.mjs} +18 -23
- package/dist/.setup/{url-validation-CF6pG6eE.mjs → url-validation-C77p4qT9.mjs} +1 -2
- package/dist/.setup/{verification--qUbmRd-.mjs → verification-jP3tm-xD.mjs} +4 -5
- package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +1 -1
- package/dist/api.js +8 -8
- package/dist/auth-presence.js +2 -3
- package/dist/channel-plugin-api.js +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/contract-api.js +2 -2
- package/dist/doctor-contract-api.js +13 -16
- package/dist/helper-api.js +3 -3
- package/dist/index.js +3 -4
- package/dist/plugin-entry.handlers.runtime.js +3 -4
- package/dist/runtime-api.js +7 -8
- package/dist/runtime-setter-api.js +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/session-binding-contract-api.js +2 -2
- package/dist/setup-entry.js +4 -5
- package/dist/setup-plugin-api.js +1 -1
- package/dist/subagent-hooks-api.js +2 -3
- package/dist/thread-binding-api.js +1 -1
- package/dist/thread-bindings-runtime.js +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/utils.js +3 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js +7 -1
- package/node_modules/matrix-js-sdk/src/http-api/utils.ts +5 -1
- package/node_modules/matrix-js-sdk/src/rust-crypto/rust-crypto.ts +7 -1
- package/package.json +4 -4
- package/dist/.setup/setup-plugin-api-BU6UGksW.mjs +0 -2
package/dist/contract-api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as resolveSingleAccountPromotionTarget, l as singleAccountKeysToMove, r as matrixSetupAdapter, s as namedAccountPromotionKeys } from "./.setup/setup-core-
|
|
2
|
-
import { t as matrixOnboardingAdapter } from "./.setup/onboarding-
|
|
1
|
+
import { c as resolveSingleAccountPromotionTarget, l as singleAccountKeysToMove, r as matrixSetupAdapter, s as namedAccountPromotionKeys } from "./.setup/setup-core-D2r4BivQ.mjs";
|
|
2
|
+
import { t as matrixOnboardingAdapter } from "./.setup/onboarding-DiVtpjNu.mjs";
|
|
3
3
|
export { matrixSetupAdapter, matrixOnboardingAdapter as matrixSetupWizard, namedAccountPromotionKeys, resolveSingleAccountPromotionTarget, singleAccountKeysToMove };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { n as normalizeCompatibilityConfig, r as runtime_doctor_migrations_exports, t as legacyConfigRules } from "./.setup/doctor-contract-
|
|
2
|
-
import { i as normalizeMatrixStoredCredentials, n as isMatrixCredentialRevocation, r as matrixCredentialsStoreKey, t as MATRIX_CREDENTIALS_NAMESPACE } from "./.setup/credentials-state-
|
|
3
|
-
import { i as resolveMatrixCredentialsDir } from "./.setup/storage-paths-
|
|
4
|
-
import { a as describeRetiredMatrixState, o as resolveMatrixSqliteStateEnv, t as RETIRED_MATRIX_STATE_FILENAMES } from "./.setup/retired-state-
|
|
5
|
-
import { t as walkMatrixStateFiles } from "./.setup/state-layout-walk-
|
|
6
|
-
import { i as readLegacyMatrixSyncCacheState, n as hasMatrixSyncCacheStateInStore, r as openMatrixSyncCacheStoreOptions, s as writeMatrixSyncCacheStateToStore } from "./.setup/sync-cache-state-
|
|
1
|
+
import { n as normalizeCompatibilityConfig, r as runtime_doctor_migrations_exports, t as legacyConfigRules } from "./.setup/doctor-contract-DybEjJcd.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 { a as describeRetiredMatrixState, o as resolveMatrixSqliteStateEnv, t as RETIRED_MATRIX_STATE_FILENAMES } from "./.setup/retired-state-vIr2IB90.mjs";
|
|
5
|
+
import { t as walkMatrixStateFiles } from "./.setup/state-layout-walk-BqCZTHpp.mjs";
|
|
6
|
+
import { i as readLegacyMatrixSyncCacheState, n as hasMatrixSyncCacheStateInStore, r as openMatrixSyncCacheStoreOptions, s as writeMatrixSyncCacheStateToStore } from "./.setup/sync-cache-state-qYrd2EEh.mjs";
|
|
7
7
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
8
8
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import fs from "node:fs/promises";
|
|
12
|
-
|
|
12
|
+
// extensions/matrix/src/matrix/account-state-schema-doctor.ts
|
|
13
13
|
const STATE_DATABASE_FILENAME = "openclaw.sqlite";
|
|
14
14
|
async function collectMatrixAccountStateRoots(stateDir) {
|
|
15
15
|
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]);
|
|
@@ -56,8 +56,7 @@ const matrixAccountStateSchemaMigration = {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
|
|
60
|
-
//#region extensions/matrix/src/matrix/monitor/inbound-dedupe-migration.ts
|
|
59
|
+
// extensions/matrix/src/matrix/monitor/inbound-dedupe-migration.ts
|
|
61
60
|
const LEGACY_SQLITE_NAMESPACE = "inbound-dedupe";
|
|
62
61
|
const LEGACY_MARKERS_NAMESPACE = "inbound-dedupe-migrations";
|
|
63
62
|
const MATRIX_PLUGIN_ID = "matrix";
|
|
@@ -216,7 +215,7 @@ async function verifyMatrixInboundDedupeSourcesRetired(stateDir) {
|
|
|
216
215
|
*/
|
|
217
216
|
async function importNewestInboundDedupeMarkers(params) {
|
|
218
217
|
const { createPersistentDedupeImportEntry } = await import("openclaw/plugin-sdk/persistent-dedupe");
|
|
219
|
-
const { buildMatrixInboundDedupeEventKey, MATRIX_INBOUND_DEDUPE_STATE_MAX_ENTRIES, MATRIX_INBOUND_DEDUPE_TTL_MS, resolveMatrixInboundDedupeStateNamespace } = await import("./.setup/inbound-dedupe-
|
|
218
|
+
const { buildMatrixInboundDedupeEventKey, MATRIX_INBOUND_DEDUPE_STATE_MAX_ENTRIES, MATRIX_INBOUND_DEDUPE_TTL_MS, resolveMatrixInboundDedupeStateNamespace } = await import("./.setup/inbound-dedupe-CZnOq0ja.mjs");
|
|
220
219
|
const now = params.now ?? Date.now();
|
|
221
220
|
const stateMaxEntries = MATRIX_INBOUND_DEDUPE_STATE_MAX_ENTRIES;
|
|
222
221
|
const newestByKey = /* @__PURE__ */ new Map();
|
|
@@ -280,8 +279,7 @@ async function importNewestInboundDedupeMarkers(params) {
|
|
|
280
279
|
total: markers.length
|
|
281
280
|
};
|
|
282
281
|
}
|
|
283
|
-
|
|
284
|
-
//#region extensions/matrix/doctor-contract-api.ts
|
|
282
|
+
// extensions/matrix/doctor-contract-api.ts
|
|
285
283
|
const MATRIX_SYNC_CACHE_FILENAME = "bot-storage.json";
|
|
286
284
|
async function collectLegacyMatrixCredentialSources(params) {
|
|
287
285
|
const credentialsDir = resolveMatrixCredentialsDir(params.stateDir);
|
|
@@ -297,7 +295,7 @@ async function collectLegacyMatrixCredentialSources(params) {
|
|
|
297
295
|
return left.name.localeCompare(right.name);
|
|
298
296
|
});
|
|
299
297
|
if (files.length === 0) return [];
|
|
300
|
-
const { requiresExplicitMatrixDefaultAccount, resolveMatrixDefaultOrOnlyAccountId } = await import("./.setup/account-selection-
|
|
298
|
+
const { requiresExplicitMatrixDefaultAccount, resolveMatrixDefaultOrOnlyAccountId } = await import("./.setup/account-selection-Co94mKNj.mjs").then((n) => n.t);
|
|
301
299
|
return files.map((entry) => {
|
|
302
300
|
const namedAccount = /^credentials(?:-([a-z0-9._-]+))?\.json$/iu.exec(entry.name)?.[1];
|
|
303
301
|
return {
|
|
@@ -334,12 +332,12 @@ const stateMigrations = [
|
|
|
334
332
|
id: "matrix-crypto-unsafe-state",
|
|
335
333
|
label: "Matrix crypto unsafe final state",
|
|
336
334
|
async detectLegacyState(params) {
|
|
337
|
-
const { listMatrixCryptoUnsafeState } = await import("./.setup/crypto-unsafe-state-doctor-
|
|
335
|
+
const { listMatrixCryptoUnsafeState } = await import("./.setup/crypto-unsafe-state-doctor-Brv4bIyx.mjs").then((n) => n.t);
|
|
338
336
|
const roots = await listMatrixCryptoUnsafeState(params.stateDir, { openKeyedStoreV2: params.context.openPluginStateKeyedStore });
|
|
339
337
|
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;
|
|
340
338
|
},
|
|
341
339
|
async migrateLegacyState(params) {
|
|
342
|
-
const { listMatrixCryptoUnsafeState } = await import("./.setup/crypto-unsafe-state-doctor-
|
|
340
|
+
const { listMatrixCryptoUnsafeState } = await import("./.setup/crypto-unsafe-state-doctor-Brv4bIyx.mjs").then((n) => n.t);
|
|
343
341
|
return {
|
|
344
342
|
changes: [],
|
|
345
343
|
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.`)
|
|
@@ -540,5 +538,4 @@ const stateMigrations = [
|
|
|
540
538
|
}
|
|
541
539
|
}
|
|
542
540
|
];
|
|
543
|
-
//#endregion
|
|
544
541
|
export { legacyConfigRules, normalizeCompatibilityConfig, stateMigrations };
|
package/dist/helper-api.js
CHANGED
|
@@ -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-
|
|
2
|
-
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./.setup/env-vars-
|
|
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-
|
|
1
|
+
import { a as resolveConfiguredMatrixAccountIds, i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, o as resolveMatrixChannelConfig, r as hasImplicitMatrixAccountConfig, s as resolveMatrixDefaultOrOnlyAccountId } from "./.setup/account-selection-Co94mKNj.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-
|
|
2
|
-
import { a as setMatrixRuntimeLifecycle } from "./.setup/runtime-
|
|
1
|
+
import { n as registerMatrixCliMetadata } from "./.setup/cli-metadata-rWmD_rzx.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
|
-
|
|
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 { d as resolveMatrixAuthContext } from "./.setup/client-
|
|
1
|
+
import { d as resolveMatrixAuthContext } from "./.setup/client-7eyTX0cu.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
|
-
|
|
6
|
-
const loadMatrixVerificationRuntime = createLazyRuntimeModule(() => import("./.setup/verification
|
|
5
|
+
// extensions/matrix/src/plugin-entry.runtime.ts
|
|
6
|
+
const loadMatrixVerificationRuntime = createLazyRuntimeModule(() => import("./.setup/verification-jP3tm-xD.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 };
|
package/dist/runtime-api.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { i as setMatrixRuntime } from "./.setup/runtime-
|
|
2
|
-
import { a as resolveConfiguredMatrixAccountIds, f as resolveMatrixAccountStringValues, i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, o as resolveMatrixChannelConfig, s as resolveMatrixDefaultOrOnlyAccountId } from "./.setup/account-selection-
|
|
3
|
-
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./.setup/env-vars-
|
|
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-
|
|
5
|
-
import { f as setMatrixThreadBindingMaxAgeBySessionKey, l as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync } from "./.setup/thread-bindings-shared-
|
|
6
|
-
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./.setup/deps-
|
|
1
|
+
import { i as setMatrixRuntime } from "./.setup/runtime-Ck8TjD7L.mjs";
|
|
2
|
+
import { a as resolveConfiguredMatrixAccountIds, f as resolveMatrixAccountStringValues, i as requiresExplicitMatrixDefaultAccount, n as findMatrixAccountEntry, o as resolveMatrixChannelConfig, s as resolveMatrixDefaultOrOnlyAccountId } from "./.setup/account-selection-Co94mKNj.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-FMu_szTm.mjs";
|
|
6
|
+
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./.setup/deps-O7rEnklr.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
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
2
|
-
import { t as createMatrixThreadBindingManager } from "./.setup/thread-bindings-
|
|
1
|
+
import { i as setMatrixRuntime } from "./.setup/runtime-Ck8TjD7L.mjs";
|
|
2
|
+
import { t as createMatrixThreadBindingManager } from "./.setup/thread-bindings-D2ZR6mEZ.mjs";
|
|
3
3
|
export { createMatrixThreadBindingManager, setMatrixRuntime };
|
package/dist/setup-entry.js
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
|
|
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-
|
|
7
|
+
specifier: fileURLToPath(new URL(".setup/setup-plugin-api-SO1hdrsT.mjs", import.meta.url).href),
|
|
8
8
|
exportName: "matrixSetupPlugin"
|
|
9
9
|
},
|
|
10
10
|
secrets: {
|
|
11
|
-
specifier: fileURLToPath(new URL(".setup/secret-contract-api-
|
|
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-
|
|
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 };
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as matrixSetupPlugin } from "./.setup/channel.setup-
|
|
1
|
+
export { n as matrixSetupPlugin } from "./.setup/channel.setup-IjRB0ymg.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
2
|
-
|
|
3
|
-
const loadMatrixSubagentHooksModule = createLazyRuntimeModule(() => import("./.setup/subagent-hooks-
|
|
2
|
+
// extensions/matrix/subagent-hooks-api.ts
|
|
3
|
+
const loadMatrixSubagentHooksModule = createLazyRuntimeModule(() => import("./.setup/subagent-hooks-CT-rdJmh.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-
|
|
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-
|
|
1
|
+
export { l as setMatrixThreadBindingIdleTimeoutBySessionKey, u as setMatrixThreadBindingIdleTimeoutBySessionKeyAsync, f as setMatrixThreadBindingMaxAgeBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKeyAsync } from "./.setup/thread-bindings-shared-FMu_szTm.mjs";
|
|
@@ -22,9 +22,11 @@ import { ConnectionError, HTTPError, MatrixError, MatrixSafetyError, MatrixSafet
|
|
|
22
22
|
// Ponyfill for https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout
|
|
23
23
|
export function timeoutSignal(ms) {
|
|
24
24
|
const controller = new AbortController();
|
|
25
|
-
setTimeout(() => {
|
|
25
|
+
const timer = setTimeout(() => {
|
|
26
26
|
controller.abort();
|
|
27
27
|
}, ms);
|
|
28
|
+
// Like AbortSignal.timeout, a request deadline must not keep a finished Node process alive.
|
|
29
|
+
timer?.unref?.();
|
|
28
30
|
return controller.signal;
|
|
29
31
|
}
|
|
30
32
|
export function anySignal(signals) {
|
|
@@ -1743,7 +1743,13 @@ export class RustCrypto extends TypedEventEmitter {
|
|
|
1743
1743
|
const processEvent = async evt => {
|
|
1744
1744
|
// Process only verification event
|
|
1745
1745
|
if (isVerificationEvent(event)) {
|
|
1746
|
-
|
|
1746
|
+
// Callers start this without awaiting it. A stopped client's crypto store can
|
|
1747
|
+
// reject here; report it instead of leaving an unhandled rejection.
|
|
1748
|
+
try {
|
|
1749
|
+
await this.onKeyVerificationEvent(evt);
|
|
1750
|
+
} catch (e) {
|
|
1751
|
+
this.logger.warn(`Failed to process in-room verification event ${evt.getId()}`, e);
|
|
1752
|
+
}
|
|
1747
1753
|
}
|
|
1748
1754
|
};
|
|
1749
1755
|
|
|
@@ -30,9 +30,13 @@ import {
|
|
|
30
30
|
// Ponyfill for https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout
|
|
31
31
|
export function timeoutSignal(ms: number): AbortSignal {
|
|
32
32
|
const controller = new AbortController();
|
|
33
|
-
setTimeout(() => {
|
|
33
|
+
const timer: ReturnType<typeof setTimeout> | number = setTimeout(() => {
|
|
34
34
|
controller.abort();
|
|
35
35
|
}, ms);
|
|
36
|
+
// Like AbortSignal.timeout, a request deadline must not keep a finished Node process alive.
|
|
37
|
+
if (typeof timer === "object") {
|
|
38
|
+
timer.unref?.();
|
|
39
|
+
}
|
|
36
40
|
|
|
37
41
|
return controller.signal;
|
|
38
42
|
}
|
|
@@ -2141,7 +2141,13 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, CryptoEventH
|
|
|
2141
2141
|
const processEvent = async (evt: MatrixEvent): Promise<void> => {
|
|
2142
2142
|
// Process only verification event
|
|
2143
2143
|
if (isVerificationEvent(event)) {
|
|
2144
|
-
|
|
2144
|
+
// Callers start this without awaiting it. A stopped client's crypto store can
|
|
2145
|
+
// reject here; report it instead of leaving an unhandled rejection.
|
|
2146
|
+
try {
|
|
2147
|
+
await this.onKeyVerificationEvent(evt);
|
|
2148
|
+
} catch (e) {
|
|
2149
|
+
this.logger.warn(`Failed to process in-room verification event ${evt.getId()}`, e);
|
|
2150
|
+
}
|
|
2145
2151
|
}
|
|
2146
2152
|
};
|
|
2147
2153
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/matrix",
|
|
3
|
-
"version": "2026.10.10
|
|
3
|
+
"version": "2026.10.10",
|
|
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.5"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"openclaw": ">=2026.10.10
|
|
22
|
+
"openclaw": ">=2026.10.10"
|
|
23
23
|
},
|
|
24
24
|
"peerDependenciesMeta": {
|
|
25
25
|
"openclaw": {
|
|
@@ -170,11 +170,11 @@
|
|
|
170
170
|
"allowInvalidConfigRecovery": true
|
|
171
171
|
},
|
|
172
172
|
"compat": {
|
|
173
|
-
"pluginApi": ">=2026.10.10
|
|
173
|
+
"pluginApi": ">=2026.10.10"
|
|
174
174
|
},
|
|
175
175
|
"build": {
|
|
176
176
|
"bundledDist": false,
|
|
177
|
-
"openclawVersion": "2026.10.10
|
|
177
|
+
"openclawVersion": "2026.10.10"
|
|
178
178
|
},
|
|
179
179
|
"release": {
|
|
180
180
|
"publishToClawHub": true,
|