@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.
- package/dist/.setup/{account-config-CRsKoMqJ.mjs → account-config-CVM2a28p.mjs} +1 -2
- package/dist/.setup/{account-selection-UUPhMBmu.mjs → account-selection-Cow3TMFO.mjs} +5 -8
- package/dist/.setup/{approval-handler.runtime-LBvkygUK.mjs → approval-handler.runtime-eLiImxA4.mjs} +8 -9
- package/dist/.setup/{approval-reactions-BazmsDbe.mjs → approval-reactions-Bz_8XB01.mjs} +2 -3
- package/dist/.setup/{backup-health-Dm_YMVFT.mjs → backup-health-BxH69np2.mjs} +1 -2
- package/dist/.setup/{channel-CHryi9FS.mjs → channel-D4Ro9xGw.mjs} +27 -38
- package/dist/.setup/{channel.runtime-DluXWaGb.mjs → channel.runtime-BJs5y1VF.mjs} +10 -12
- package/dist/.setup/{channel.setup-BDbs0FLq.mjs → channel.setup-DbtdaDqc.mjs} +9 -7
- package/dist/.setup/{cli-C7Jmy2x4.mjs → cli-_ZHQruAA.mjs} +23 -31
- package/dist/.setup/{cli-doctor-BVstkgJE.mjs → cli-doctor-CoRX0erj.mjs} +3 -4
- package/dist/.setup/{cli-metadata-B0GHIn05.mjs → cli-metadata-BmSJWjxf.mjs} +3 -5
- package/dist/.setup/{client-Bk_tBqNp.mjs → client-BPMbgtzn.mjs} +21 -26
- package/dist/.setup/{client-mFRVrUt3.mjs → client-DVAwx3tH.mjs} +4 -5
- package/dist/.setup/{client-bootstrap-Bhhri97J.mjs → client-bootstrap-C02A2wi6.mjs} +2 -3
- package/dist/.setup/{client-support-B_Mp4Qk9.mjs → client-support-CqXAOZp3.mjs} +2 -3
- package/dist/.setup/{config-paths-CnREYb1Y.mjs → config-paths-DBpHxDyc.mjs} +1 -2
- package/dist/.setup/{create-client-CzUtZgYF.mjs → create-client-B36cEJY6.mjs} +8 -9
- package/dist/.setup/{credentials-kT20jk_u.mjs → credentials-CGgWuhFV.mjs} +5 -6
- package/dist/.setup/{credentials-read-CM6wXUjL.mjs → credentials-read-rPqEpuxv.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-BI9Pc344.mjs → crypto-runtime-Db6nQPh-.mjs} +10 -15
- package/dist/.setup/{crypto-state-store-BZLlwkv_.mjs → crypto-state-store-CzAmeC_Z.mjs} +4 -4
- package/dist/.setup/{crypto-store-ownership-CiQ1l_O7.mjs → crypto-store-ownership-DPO9WcVz.mjs} +3 -4
- package/dist/.setup/{crypto-unsafe-state-doctor-CmF1X1dZ.mjs → crypto-unsafe-state-doctor-D3WLE-t4.mjs} +6 -7
- package/dist/.setup/{deps-D-W_QQjz.mjs → deps-CVPT2Ros.mjs} +1 -2
- package/dist/.setup/{device-health-Ck2YpEVN.mjs → device-health-D7n-lPeb.mjs} +2 -3
- package/dist/.setup/{direct-management-Dp1giZ34.mjs → direct-management-D59C1WO-.mjs} +7 -11
- package/dist/.setup/{directory-live-DmkH9hcp.mjs → directory-live-Bok1h40u.mjs} +5 -6
- package/dist/.setup/{doctor-contract-BANpMUbP.mjs → doctor-contract-GiXgCj7k.mjs} +2 -3
- package/dist/.setup/{draft-stream-bVedfEB3.mjs → draft-stream-BbTgTBUa.mjs} +3 -4
- package/dist/.setup/{encryption-guidance-Br3Lv9Hm.mjs → encryption-guidance-DfbEaKct.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-BeYF9-3o.mjs → exec-approvals-DHPrWdH5.mjs} +6 -9
- package/dist/.setup/{file-sync-store-BpS12yaK.mjs → file-sync-store-fkSjB162.mjs} +5 -6
- package/dist/.setup/{http-client-B_ohXrBm.mjs → http-client-CqnKFKUH.mjs} +5 -8
- package/dist/.setup/{idb-persistence-BTOsltD9.mjs → idb-persistence-DeGUs--C.mjs} +6 -7
- package/dist/.setup/{idb-persistence-lock-Bh3ZLIsE.mjs → idb-persistence-lock-CH2K6d_3.mjs} +1 -2
- package/dist/.setup/{joined-room-encryption-C0gHa2DG.mjs → joined-room-encryption-9sJK1kM-.mjs} +2 -3
- package/dist/.setup/{logger-CuAzdD8Q.mjs → logger-B9TwnY6C.mjs} +2 -3
- package/dist/.setup/{logging-CoaEyRtA.mjs → logging-Bnsn7s4r.mjs} +3 -4
- package/dist/.setup/{messages-BqVczVlt.mjs → messages-DJnlpqat.mjs} +9 -14
- package/dist/.setup/{monitor-BsSo3tCv.mjs → monitor-DUq2MOB8.mjs} +60 -90
- package/dist/.setup/{onboarding-CoMpgTiK.mjs → onboarding-B-eNKDM4.mjs} +10 -11
- package/dist/.setup/{outbound-ntm0KOfK.mjs → outbound-C2GWN9M_.mjs} +3 -4
- package/dist/.setup/{profile-update-gC436enW.mjs → profile-update-DpGQpxMi.mjs} +7 -9
- package/dist/.setup/{reaction-events-DTThoaJQ.mjs → reaction-events-CDTXMh8-.mjs} +8 -9
- package/dist/.setup/{resolve-targets-CWW9zTYp.mjs → resolve-targets-ZIJ6qkiK.mjs} +4 -5
- package/dist/.setup/{retired-state-JGUEBE72.mjs → retired-state-BsxdpJNk.mjs} +3 -41
- package/dist/.setup/{room-info-CM3MKoh4.mjs → room-info-BZjtLeSm.mjs} +6 -8
- package/dist/.setup/{runtime-1kn1P6io.mjs → runtime-Ck8TjD7L.mjs} +1 -2
- package/dist/.setup/{runtime-doctor-migrations-hxP-CXX7.mjs → runtime-doctor-migrations-CSvRANPN.mjs} +5 -10
- package/dist/.setup/{runtime-setter-api-i2MOXoT3.mjs → runtime-setter-api-CpwhcBQK.mjs} +1 -1
- package/dist/.setup/{sdk-ByFgA6Il.mjs → sdk-Dq4fmgje.mjs} +32 -46
- 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-DFB7JGg2.mjs → send-DNqlA143.mjs} +25 -41
- package/dist/.setup/{send-currentness-DGxiiBn9.mjs → send-currentness-D1x6YP9O.mjs} +2 -4
- package/dist/.setup/{setup-bootstrap-razh2kSp.mjs → setup-bootstrap-BMqnuJ8B.mjs} +4 -5
- package/dist/.setup/{setup-core-BVbxltMM.mjs → setup-core-C56b-HVD.mjs} +13 -20
- package/dist/.setup/setup-plugin-api-Bje8sp8k.mjs +2 -0
- package/dist/.setup/sqlite-state-D6Zpz1q1.mjs +36 -0
- package/dist/.setup/{startup-verification-UkaoSldm.mjs → startup-verification-DfOuAruK.mjs} +5 -5
- package/dist/.setup/{state-layout-walk-BQMgMykU.mjs → state-layout-walk-BqCZTHpp.mjs} +2 -3
- package/dist/.setup/{storage-C3N6YZIn.mjs → storage-CCarF_gm.mjs} +9 -10
- package/dist/.setup/{storage-paths-B51JM-pC.mjs → storage-paths-e_Vq6cvw.mjs} +1 -2
- package/dist/.setup/{subagent-hooks-CfGAysJi.mjs → subagent-hooks-D-lCcLGQ.mjs} +2 -3
- package/dist/.setup/{sync-cache-state-BKVaKRzQ.mjs → sync-cache-state-BMvqW4Ii.mjs} +5 -5
- package/dist/.setup/{sync-state-CWbp0QSY.mjs → sync-state-Cu1nagBV.mjs} +1 -2
- package/dist/.setup/{target-ids-HhcaKX1n.mjs → target-ids-DltG_ZHJ.mjs} +1 -2
- package/dist/.setup/{task-runner-DY3aKiQa.mjs → task-runner-CYyGHdNW.mjs} +1 -2
- package/dist/.setup/{thread-binding-api-BvuaKpd0.mjs → thread-binding-api-OtSciHmZ.mjs} +2 -3
- package/dist/.setup/{thread-bindings-D5VJEDZV.mjs → thread-bindings-RsHN1U_f.mjs} +8 -9
- package/dist/.setup/{thread-bindings-shared-QmZOfX9Q.mjs → thread-bindings-shared-CBlJu3Wz.mjs} +1 -2
- package/dist/.setup/{tool-actions-DexlmVDf.mjs → tool-actions-Dyw4wFJ7.mjs} +19 -24
- package/dist/.setup/{url-validation-By_2hsXr.mjs → url-validation-DesoKUns.mjs} +1 -2
- package/dist/.setup/{verification-B122bsH2.mjs → verification-BKSXL6rb.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 +15 -17
- 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/package.json +4 -4
- package/dist/.setup/setup-plugin-api-CQKySg7F.mjs +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
2
|
import { safeParseJson, truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
3
|
-
|
|
3
|
+
// extensions/matrix/src/matrix/sdk/event-helpers.ts
|
|
4
4
|
const matrixEventProjections = /* @__PURE__ */ new WeakMap();
|
|
5
5
|
function getMatrixEventProjection(event) {
|
|
6
6
|
return matrixEventProjections.get(event);
|
|
@@ -48,5 +48,4 @@ function buildHttpError(statusCode, bodyText) {
|
|
|
48
48
|
}
|
|
49
49
|
return Object.assign(new Error(message), { statusCode });
|
|
50
50
|
}
|
|
51
|
-
//#endregion
|
|
52
51
|
export { parseMxc as i, getMatrixEventProjection as n, matrixEventToRaw as r, buildHttpError as t };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { a as resolveMatrixAccountConfig } from "./account-config-
|
|
2
|
-
import { g as resolveDefaultMatrixAccountId, v as resolveMatrixAccountAsync } from "./setup-core-
|
|
3
|
-
import { i as normalizeMatrixUserId } from "./channel.setup-
|
|
1
|
+
import { a as resolveMatrixAccountConfig } from "./account-config-CVM2a28p.mjs";
|
|
2
|
+
import { g as resolveDefaultMatrixAccountId, v as resolveMatrixAccountAsync } from "./setup-core-C56b-HVD.mjs";
|
|
3
|
+
import { i as normalizeMatrixUserId } from "./channel.setup-DbtdaDqc.mjs";
|
|
4
4
|
import { doesApprovalRequestSelectChannelAccountAsync } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
5
5
|
import { createChannelApprovalAuth, resolveApprovalApprovers } from "openclaw/plugin-sdk/approval-auth-runtime";
|
|
6
6
|
import { createChannelExecApprovalProfileAsync, getExecApprovalReplyMetadata, isChannelExecApprovalClientEnabledFromConfig, isChannelExecApprovalTargetRecipient, matchesApprovalRequestFilters } from "openclaw/plugin-sdk/approval-client-runtime";
|
|
7
|
-
|
|
7
|
+
// extensions/matrix/src/approval-ids.ts
|
|
8
8
|
function normalizeMatrixApproverId(value) {
|
|
9
9
|
return normalizeMatrixUserId(String(value)) || void 0;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
//#region extensions/matrix/src/approval-auth.ts
|
|
11
|
+
// extensions/matrix/src/approval-auth.ts
|
|
13
12
|
const matrixApproval = createChannelApprovalAuth({
|
|
14
13
|
channelLabel: "Matrix",
|
|
15
14
|
resolveInputs: ({ cfg, accountId }) => {
|
|
@@ -22,8 +21,7 @@ const matrixApproval = createChannelApprovalAuth({
|
|
|
22
21
|
});
|
|
23
22
|
const getMatrixApprovalAuthApprovers = matrixApproval.resolveApprovers;
|
|
24
23
|
const matrixApprovalAuth = matrixApproval.approvalAuth;
|
|
25
|
-
|
|
26
|
-
//#region extensions/matrix/src/exec-approvals.ts
|
|
24
|
+
// extensions/matrix/src/exec-approvals.ts
|
|
27
25
|
function normalizeMatrixExecApproverId(value) {
|
|
28
26
|
const normalized = normalizeMatrixApproverId(value);
|
|
29
27
|
return normalized === "*" ? void 0 : normalized;
|
|
@@ -143,5 +141,4 @@ async function shouldSuppressLocalMatrixExecApprovalPrompt(params) {
|
|
|
143
141
|
request
|
|
144
142
|
});
|
|
145
143
|
}
|
|
146
|
-
//#endregion
|
|
147
144
|
export { isMatrixExecApprovalAuthorizedSender as a, shouldSuppressLocalMatrixExecApprovalPrompt as c, normalizeMatrixApproverId as d, isMatrixApprovalClientEnabled as i, getMatrixApprovalAuthApprovers as l, getMatrixExecApprovalApprovers as n, resolveMatrixExecApprovalTarget as o, isMatrixAnyApprovalClientEnabled as r, shouldHandleMatrixApprovalRequest as s, getMatrixApprovalApprovers as t, matrixApprovalAuth as u };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as getMatrixRuntime } from "./runtime-
|
|
2
|
-
import { t as claimCurrentTokenStorageState } from "./storage-
|
|
3
|
-
import { a as readPersistedStoreFromStore, r as openMatrixSyncCacheStoreOptions, s as writeMatrixSyncCacheStateToStore, t as deleteMatrixSyncCacheStateFromStore } from "./sync-cache-state-
|
|
4
|
-
import { n as emitMatrixLog, t as LogService } from "./logger-
|
|
1
|
+
import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
|
|
2
|
+
import { t as claimCurrentTokenStorageState } from "./storage-CCarF_gm.mjs";
|
|
3
|
+
import { a as readPersistedStoreFromStore, r as openMatrixSyncCacheStoreOptions, s as writeMatrixSyncCacheStateToStore, t as deleteMatrixSyncCacheStateFromStore } from "./sync-cache-state-BMvqW4Ii.mjs";
|
|
4
|
+
import { n as emitMatrixLog, t as LogService } from "./logger-B9TwnY6C.mjs";
|
|
5
5
|
import { materializeErrorStack } from "openclaw/plugin-sdk/error-runtime";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
import { MemoryStore, SyncAccumulator } from "matrix-js-sdk/lib/matrix.js";
|
|
8
8
|
import { createAsyncLock } from "openclaw/plugin-sdk/async-lock-runtime";
|
|
9
|
-
|
|
9
|
+
// extensions/matrix/src/matrix/client/file-sync-store.ts
|
|
10
10
|
const PERSIST_DEBOUNCE_MS = 250;
|
|
11
11
|
function syncDataToSyncResponse(syncData) {
|
|
12
12
|
return {
|
|
@@ -253,5 +253,4 @@ var SqliteBackedMatrixSyncStore = class SqliteBackedMatrixSyncStore extends Memo
|
|
|
253
253
|
throw new Error("Matrix sync cache SQLite store is unavailable; cannot persist sync state", { cause: this.storeUnavailableError });
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
|
-
//#endregion
|
|
257
256
|
export { SqliteBackedMatrixSyncStore };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __exportAll } from "./runtime-doctor-migrations-
|
|
2
|
-
import { t as buildHttpError } from "./event-helpers-
|
|
1
|
+
import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
|
|
2
|
+
import { t as buildHttpError } from "./event-helpers-DDUjVVf7.mjs";
|
|
3
3
|
import { PlatformMessageNotDispatchedError } from "openclaw/plugin-sdk/error-runtime";
|
|
4
4
|
import { parseMediaContentLength } from "openclaw/plugin-sdk/media-runtime";
|
|
5
5
|
import { buildTimeoutAbortSignal } from "openclaw/plugin-sdk/extension-shared";
|
|
@@ -7,7 +7,7 @@ import { captureChannelReadAuthority, captureEffectAuthority } from "openclaw/pl
|
|
|
7
7
|
import { readResponseWithLimit } from "openclaw/plugin-sdk/response-limit-runtime";
|
|
8
8
|
import { fetchWithRuntimeDispatcherOrMockedGlobal } from "openclaw/plugin-sdk/runtime-fetch";
|
|
9
9
|
import { closeDispatcher, createPinnedDispatcher, resolvePinnedHostnameWithPolicy } from "openclaw/plugin-sdk/ssrf-dispatcher";
|
|
10
|
-
|
|
10
|
+
// extensions/matrix/src/matrix/media-errors.ts
|
|
11
11
|
const MATRIX_MEDIA_SIZE_LIMIT_ERROR_MESSAGE = "Matrix media exceeds configured size limit";
|
|
12
12
|
var MatrixMediaSizeLimitError = class extends Error {
|
|
13
13
|
constructor(message = MATRIX_MEDIA_SIZE_LIMIT_ERROR_MESSAGE, options) {
|
|
@@ -21,8 +21,7 @@ function isMatrixMediaSizeLimitError(err) {
|
|
|
21
21
|
if (!(err instanceof Error) || err.cause === void 0) return false;
|
|
22
22
|
return isMatrixMediaSizeLimitError(err.cause);
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
//#region extensions/matrix/src/matrix/sdk/transport.ts
|
|
24
|
+
// extensions/matrix/src/matrix/sdk/transport.ts
|
|
26
25
|
var MatrixSdkAuthorityError = class extends Error {
|
|
27
26
|
constructor(cause) {
|
|
28
27
|
super(cause instanceof Error ? cause.message : "Matrix request authority expired", { cause });
|
|
@@ -283,8 +282,7 @@ async function performMatrixRequest(params) {
|
|
|
283
282
|
buffer
|
|
284
283
|
}));
|
|
285
284
|
}
|
|
286
|
-
|
|
287
|
-
//#region extensions/matrix/src/matrix/sdk/http-client.ts
|
|
285
|
+
// extensions/matrix/src/matrix/sdk/http-client.ts
|
|
288
286
|
var http_client_exports = /* @__PURE__ */ __exportAll({ MatrixAuthedHttpClient: () => MatrixAuthedHttpClient });
|
|
289
287
|
var MatrixAuthedHttpClient = class {
|
|
290
288
|
constructor(params) {
|
|
@@ -321,5 +319,4 @@ var MatrixAuthedHttpClient = class {
|
|
|
321
319
|
return buffer;
|
|
322
320
|
}
|
|
323
321
|
};
|
|
324
|
-
//#endregion
|
|
325
322
|
export { isMatrixMediaSizeLimitError as a, MatrixMediaSizeLimitError as i, http_client_exports as n, createMatrixGuardedFetch as r, MatrixAuthedHttpClient as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as getMatrixRuntime } from "./runtime-
|
|
2
|
-
import { n as RETIRED_MATRIX_STATE_REMEDIATION } from "./retired-state-
|
|
3
|
-
import { i as readMatrixIdbSnapshotJson, l as writeMatrixIdbSnapshotJson, r as pruneMatrixIdbSnapshotChunks } from "./crypto-state-store-
|
|
4
|
-
import { t as LogService } from "./logger-
|
|
5
|
-
import { n as MATRIX_IDB_SNAPSHOT_LOCK_OPTIONS } from "./idb-persistence-lock-
|
|
1
|
+
import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
|
|
2
|
+
import { n as RETIRED_MATRIX_STATE_REMEDIATION } from "./retired-state-BsxdpJNk.mjs";
|
|
3
|
+
import { i as readMatrixIdbSnapshotJson, l as writeMatrixIdbSnapshotJson, r as pruneMatrixIdbSnapshotChunks } from "./crypto-state-store-CzAmeC_Z.mjs";
|
|
4
|
+
import { t as LogService } from "./logger-B9TwnY6C.mjs";
|
|
5
|
+
import { n as MATRIX_IDB_SNAPSHOT_LOCK_OPTIONS } from "./idb-persistence-lock-CH2K6d_3.mjs";
|
|
6
6
|
import { toErrorObject } from "openclaw/plugin-sdk/error-runtime";
|
|
7
7
|
import { asOptionalObjectRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
8
8
|
import path from "node:path";
|
|
@@ -10,7 +10,7 @@ import fs from "node:fs";
|
|
|
10
10
|
import { withFileLock } from "openclaw/plugin-sdk/file-lock";
|
|
11
11
|
import { IDBFactory, indexedDB } from "fake-indexeddb";
|
|
12
12
|
import { isStringArray } from "openclaw/plugin-sdk/collection-input-runtime";
|
|
13
|
-
|
|
13
|
+
// extensions/matrix/src/matrix/sdk/idb-persistence.ts
|
|
14
14
|
const LEGACY_SNAPSHOT_DIAGNOSTIC = {
|
|
15
15
|
code: "matrix-idb-snapshot-requires-doctor",
|
|
16
16
|
message: "Matrix IndexedDB snapshot exists outside the current SQLite state",
|
|
@@ -236,5 +236,4 @@ function throwLegacySnapshotMigrationRequired() {
|
|
|
236
236
|
LogService.warn("IdbPersistence", LEGACY_SNAPSHOT_DIAGNOSTIC);
|
|
237
237
|
throw new MatrixIdbSnapshotMigrationRequiredError();
|
|
238
238
|
}
|
|
239
|
-
//#endregion
|
|
240
239
|
export { persistIdbToDisk, resolveDefaultIdbSnapshotPath, restoreIdbFromDisk, validateMatrixIdbSnapshotJson };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// extensions/matrix/src/matrix/sdk/idb-persistence-lock.ts
|
|
2
2
|
const MATRIX_IDB_PERSIST_INTERVAL_MS = 6e4;
|
|
3
3
|
const MATRIX_IDB_SNAPSHOT_LOCK_OPTIONS = {
|
|
4
4
|
retries: {
|
|
@@ -10,5 +10,4 @@ const MATRIX_IDB_SNAPSHOT_LOCK_OPTIONS = {
|
|
|
10
10
|
},
|
|
11
11
|
stale: 3e5
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { MATRIX_IDB_SNAPSHOT_LOCK_OPTIONS as n, MATRIX_IDB_PERSIST_INTERVAL_MS as t };
|
package/dist/.setup/{joined-room-encryption-C0gHa2DG.mjs → joined-room-encryption-9sJK1kM-.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as LogService } from "./logger-
|
|
1
|
+
import { t as LogService } from "./logger-B9TwnY6C.mjs";
|
|
2
2
|
import { ConnectionError, HTTPError, Method } from "matrix-js-sdk/lib/http-api/index.js";
|
|
3
3
|
import { EventType, MatrixError, MatrixEvent } from "matrix-js-sdk/lib/matrix.js";
|
|
4
4
|
import { isStringArray } from "openclaw/plugin-sdk/collection-input-runtime";
|
|
5
5
|
import { RustCrypto } from "matrix-js-sdk/lib/rust-crypto/rust-crypto.js";
|
|
6
|
-
|
|
6
|
+
// extensions/matrix/src/matrix/sdk/joined-room-encryption.ts
|
|
7
7
|
const ROOM_CONCURRENCY = 4;
|
|
8
8
|
async function reconcileJoinedRoomEncryption(client, signal, assertCurrent) {
|
|
9
9
|
const crypto = client.getCrypto();
|
|
@@ -64,5 +64,4 @@ async function reconcileJoinedRoomEncryption(client, signal, assertCurrent) {
|
|
|
64
64
|
checkActive();
|
|
65
65
|
for (const result of results) if (result.status === "rejected") throw result.reason;
|
|
66
66
|
}
|
|
67
|
-
//#endregion
|
|
68
67
|
export { reconcileJoinedRoomEncryption };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as getMatrixRuntime } from "./runtime-
|
|
1
|
+
import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
|
|
2
2
|
import { format } from "node:util";
|
|
3
3
|
import { redactSensitiveText } from "openclaw/plugin-sdk/security-runtime";
|
|
4
|
-
|
|
4
|
+
// extensions/matrix/src/matrix/sdk/logger.ts
|
|
5
5
|
function noop() {}
|
|
6
6
|
let forceConsoleLogging = false;
|
|
7
7
|
let serviceQuiet = false;
|
|
@@ -40,5 +40,4 @@ const LogService = {
|
|
|
40
40
|
info: emitServiceLog.bind(null, "info"),
|
|
41
41
|
warn: emitServiceLog.bind(null, "warn")
|
|
42
42
|
};
|
|
43
|
-
//#endregion
|
|
44
43
|
export { setMatrixLogServiceQuiet as a, setMatrixConsoleLogging as i, emitMatrixLog as n, noop as r, LogService as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __exportAll } from "./runtime-doctor-migrations-
|
|
2
|
-
import { a as setMatrixLogServiceQuiet, n as emitMatrixLog } from "./logger-
|
|
1
|
+
import { n as __exportAll } from "./runtime-doctor-migrations-CSvRANPN.mjs";
|
|
2
|
+
import { a as setMatrixLogServiceQuiet, n as emitMatrixLog } from "./logger-B9TwnY6C.mjs";
|
|
3
3
|
import { logger } from "matrix-js-sdk/lib/logger.js";
|
|
4
|
-
|
|
4
|
+
// extensions/matrix/src/matrix/client/logging.ts
|
|
5
5
|
var logging_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
createMatrixJsSdkClientLogger: () => createMatrixJsSdkClientLogger,
|
|
7
7
|
ensureMatrixSdkLoggingConfigured: () => ensureMatrixSdkLoggingConfigured,
|
|
@@ -73,5 +73,4 @@ function createMatrixJsSdkClientLogger(prefix = "matrix") {
|
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
//#endregion
|
|
77
76
|
export { logging_exports as n, setMatrixSdkLogMode as r, createMatrixJsSdkClientLogger as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as MATRIX_REACTION_EVENT_TYPE } from "./send-currentness-
|
|
2
|
-
import { _ as formatPollResultsAsText, b as parsePollStart, d as resolveMatrixReplacementContent, h as buildPollResultsSummary, t as editMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollEventType, x as resolvePollReferenceEventId, y as isPollStartType } from "./send-
|
|
3
|
-
import { n as isMatrixNotFoundError } from "./errors-
|
|
4
|
-
import { r as withResolvedRoomAction } from "./client-
|
|
1
|
+
import { a as MATRIX_REACTION_EVENT_TYPE } from "./send-currentness-D1x6YP9O.mjs";
|
|
2
|
+
import { _ as formatPollResultsAsText, b as parsePollStart, d as resolveMatrixReplacementContent, h as buildPollResultsSummary, t as editMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollEventType, x as resolvePollReferenceEventId, y as isPollStartType } from "./send-DNqlA143.mjs";
|
|
3
|
+
import { n as isMatrixNotFoundError } from "./errors-CL3YJV8U.mjs";
|
|
4
|
+
import { r as withResolvedRoomAction } from "./client-DVAwx3tH.mjs";
|
|
5
5
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
6
6
|
import { asNullableObjectRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
import { HTTPError } from "matrix-js-sdk/lib/http-api/index.js";
|
|
8
|
-
|
|
8
|
+
// extensions/matrix/src/matrix/poll-summary.ts
|
|
9
9
|
function resolveMatrixPollRootEventId(event) {
|
|
10
10
|
if (isPollStartType(event.type)) {
|
|
11
11
|
const eventId = event.event_id?.trim();
|
|
@@ -59,21 +59,18 @@ async function fetchMatrixPollMessageSummary(client, roomId, event) {
|
|
|
59
59
|
timestamp: snapshot.triggerEvent.origin_server_ts || snapshot.rootEvent.origin_server_ts
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
//#region extensions/matrix/src/matrix/actions/limits.ts
|
|
62
|
+
// extensions/matrix/src/matrix/actions/limits.ts
|
|
64
63
|
function resolveMatrixActionLimit(raw, fallback) {
|
|
65
64
|
return Math.max(1, Math.floor(raw !== void 0 && Number.isFinite(raw) ? raw : fallback));
|
|
66
65
|
}
|
|
67
|
-
|
|
68
|
-
//#region extensions/matrix/src/matrix/actions/types.ts
|
|
66
|
+
// extensions/matrix/src/matrix/actions/types.ts
|
|
69
67
|
const EventType = {
|
|
70
68
|
RoomMessage: "m.room.message",
|
|
71
69
|
RoomPinnedEvents: "m.room.pinned_events",
|
|
72
70
|
RoomTopic: "m.room.topic",
|
|
73
71
|
Reaction: MATRIX_REACTION_EVENT_TYPE
|
|
74
72
|
};
|
|
75
|
-
|
|
76
|
-
//#region extensions/matrix/src/matrix/actions/summary.ts
|
|
73
|
+
// extensions/matrix/src/matrix/actions/summary.ts
|
|
77
74
|
function parseMatrixRawEvent(value) {
|
|
78
75
|
const event = asNullableObjectRecord(value);
|
|
79
76
|
const content = asNullableObjectRecord(event?.content);
|
|
@@ -145,8 +142,7 @@ async function fetchEventSummary(client, roomId, eventId) {
|
|
|
145
142
|
return null;
|
|
146
143
|
}
|
|
147
144
|
}
|
|
148
|
-
|
|
149
|
-
//#region extensions/matrix/src/matrix/actions/messages.ts
|
|
145
|
+
// extensions/matrix/src/matrix/actions/messages.ts
|
|
150
146
|
const MATRIX_THREAD_RELATIONS_START_CURSOR_PREFIX = "openclaw.matrix.thread-relations-start:";
|
|
151
147
|
const MATRIX_READ_CURSOR_HINT = "Matrix read before/after take a pagination token from a previous read's nextBatch or prevBatch, not an event id; use messageId to read one event.";
|
|
152
148
|
function resolveMatrixReplacementTarget(event) {
|
|
@@ -307,5 +303,4 @@ async function isMatrixPollRootThreaded(params) {
|
|
|
307
303
|
const rootEvent = await params.client.getEvent(params.resolvedRoom, params.pollRootId).catch(() => null);
|
|
308
304
|
return rootEvent ? isMatrixThreadEvent(rootEvent) : false;
|
|
309
305
|
}
|
|
310
|
-
//#endregion
|
|
311
306
|
export { fetchEventSummary as a, resolveMatrixActionLimit as c, readMatrixMessages as i, fetchMatrixPollSnapshot as l, editMatrixMessage as n, readPinnedEvents as o, readMatrixMessage as r, EventType as s, deleteMatrixMessage as t };
|