@openclaw/matrix 2026.10.10-beta.5 → 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-6u08WKWh.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-CqkLHNdp.mjs → channel-CNjJyBS_.mjs} +29 -43
- package/dist/.setup/{channel.runtime-BfZdvlho.mjs → channel.runtime-DaGbm27q.mjs} +8 -10
- package/dist/.setup/{channel.setup-ClA7V_Ba.mjs → channel.setup-IjRB0ymg.mjs} +7 -11
- package/dist/.setup/{cli-BLgMlO3I.mjs → cli-CuEJNM3c.mjs} +28 -39
- package/dist/.setup/{cli-metadata-COWLWR3E.mjs → cli-metadata-rWmD_rzx.mjs} +3 -5
- package/dist/.setup/{client-C4Gibhzl.mjs → client-7eyTX0cu.mjs} +19 -25
- package/dist/.setup/{client-C7pZ6gAl.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-K6Lu-JEI.mjs → draft-stream-dmhBHufd.mjs} +3 -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-DtNw0e04.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-O6G0-_xr.mjs → messages-BiHM0DM3.mjs} +9 -14
- package/dist/.setup/{monitor-BSEZMFyq.mjs → monitor-CPwDgRFY.mjs} +85 -94
- package/dist/.setup/{onboarding-DQLF7huY.mjs → onboarding-DiVtpjNu.mjs} +10 -11
- package/dist/.setup/{outbound-C0bqZr89.mjs → outbound-DwP97VpQ.mjs} +3 -4
- package/dist/.setup/{profile-update-BbfEg9Fx.mjs → profile-update-DnNA9mEa.mjs} +6 -8
- package/dist/.setup/{reaction-events-51DOeO0I.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-DAJKw-I8.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-CFx1h7xE.mjs → send-C1qeMQAy.mjs} +24 -40
- package/dist/.setup/{send-currentness-C2rMVVIQ.mjs → send-currentness-CAUVR-f3.mjs} +2 -4
- package/dist/.setup/{setup-bootstrap-DANlsW-o.mjs → setup-bootstrap-DDhwWvDs.mjs} +4 -5
- package/dist/.setup/{setup-core-EQceJMZZ.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-C0gv7BEN.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-DGYRJDEV.mjs → tool-actions-CdKa0DC4.mjs} +18 -23
- package/dist/.setup/{url-validation-CF6pG6eE.mjs → url-validation-C77p4qT9.mjs} +1 -2
- package/dist/.setup/{verification-DUxuApWC.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-f8mWghxf.mjs +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as MsgType } from "./direct-management-
|
|
2
|
-
import { a as sendSingleTextMessageMatrix, f as prepareMatrixSingleText, t as editMessageMatrix } from "./send-
|
|
1
|
+
import { _ as MsgType } from "./direct-management-DDaWVbQI.mjs";
|
|
2
|
+
import { a as sendSingleTextMessageMatrix, f as prepareMatrixSingleText, t as editMessageMatrix } from "./send-C1qeMQAy.mjs";
|
|
3
3
|
import { createFinalizableDraftLifecycle } from "openclaw/plugin-sdk/channel-outbound";
|
|
4
|
-
|
|
4
|
+
// extensions/matrix/src/matrix/draft-stream.ts
|
|
5
5
|
const DEFAULT_THROTTLE_MS = 1e3;
|
|
6
6
|
function createMatrixDraftStream(params) {
|
|
7
7
|
const { roomId, client, cfg, threadId, accountId, log } = params;
|
|
@@ -149,5 +149,4 @@ function createMatrixDraftStream(params) {
|
|
|
149
149
|
mustDeliverFinalNormally: () => sendFailed || finalizeInPlaceBlocked
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
//#endregion
|
|
153
152
|
export { createMatrixDraftStream };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as resolveMatrixDefaultOrOnlyAccountId } from "./account-selection-
|
|
2
|
-
import { t as resolveMatrixConfigFieldPath } from "./config-paths-
|
|
1
|
+
import { s as resolveMatrixDefaultOrOnlyAccountId } from "./account-selection-Co94mKNj.mjs";
|
|
2
|
+
import { t as resolveMatrixConfigFieldPath } from "./config-paths-DBpHxDyc.mjs";
|
|
3
3
|
import { normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
|
|
4
|
-
|
|
4
|
+
// extensions/matrix/src/matrix/encryption-guidance.ts
|
|
5
5
|
function resolveMatrixEncryptionConfigPath(cfg, accountId) {
|
|
6
6
|
const effectiveAccountId = normalizeOptionalAccountId(accountId) ?? resolveMatrixDefaultOrOnlyAccountId(cfg);
|
|
7
7
|
return resolveMatrixConfigFieldPath(cfg, effectiveAccountId, "encryption");
|
|
@@ -12,5 +12,4 @@ function formatMatrixEncryptionUnavailableError(cfg, accountId) {
|
|
|
12
12
|
function formatMatrixEncryptedEventDisabledWarning(cfg, accountId) {
|
|
13
13
|
return `matrix: encrypted event received without encryption enabled; set ${resolveMatrixEncryptionConfigPath(cfg, accountId)}=true and verify the device to decrypt`;
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { formatMatrixEncryptionUnavailableError as n, formatMatrixEncryptedEventDisabledWarning as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
|
|
2
|
-
|
|
2
|
+
// extensions/matrix/src/env-vars.ts
|
|
3
3
|
const MATRIX_SCOPED_ENV_SUFFIXES = [
|
|
4
4
|
"HOMESERVER",
|
|
5
5
|
"USER_ID",
|
|
@@ -46,5 +46,4 @@ function listMatrixEnvAccountIds(env = process.env) {
|
|
|
46
46
|
}
|
|
47
47
|
return Array.from(ids).toSorted((a, b) => a.localeCompare(b));
|
|
48
48
|
}
|
|
49
|
-
//#endregion
|
|
50
49
|
export { listMatrixEnvAccountIds as n, resolveMatrixEnvAccountToken as r, getMatrixScopedEnvVarNames as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
2
2
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
|
-
|
|
3
|
+
// extensions/matrix/src/matrix/errors.ts
|
|
4
4
|
function formatMatrixErrorReason(err) {
|
|
5
5
|
return normalizeLowercaseStringOrEmpty(formatErrorMessage(err));
|
|
6
6
|
}
|
|
@@ -10,5 +10,4 @@ function isMatrixNotFoundError(err) {
|
|
|
10
10
|
const message = formatMatrixErrorReason(err);
|
|
11
11
|
return message.includes("m_not_found") || message.includes("[404]") || message.includes("not found");
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { isMatrixNotFoundError as n, formatMatrixErrorReason as t };
|
|
@@ -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-D2r4BivQ.mjs";
|
|
3
|
+
import { i as normalizeMatrixUserId } from "./channel.setup-IjRB0ymg.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;
|
|
@@ -153,5 +151,4 @@ async function shouldSuppressLocalMatrixExecApprovalPrompt(params) {
|
|
|
153
151
|
request
|
|
154
152
|
});
|
|
155
153
|
}
|
|
156
|
-
//#endregion
|
|
157
154
|
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,10 +1,10 @@
|
|
|
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 { t as LogService } from "./logger-
|
|
1
|
+
import { t as getMatrixRuntime } from "./runtime-Ck8TjD7L.mjs";
|
|
2
|
+
import { t as claimCurrentTokenStorageState } from "./storage-CxN4jqKI.mjs";
|
|
3
|
+
import { a as readPersistedStoreFromStore, r as openMatrixSyncCacheStoreOptions, s as writeMatrixSyncCacheStateToStore, t as deleteMatrixSyncCacheStateFromStore } from "./sync-cache-state-qYrd2EEh.mjs";
|
|
4
|
+
import { t as LogService } from "./logger-BX5kXvh1.mjs";
|
|
5
5
|
import { MemoryStore, SyncAccumulator } from "matrix-js-sdk/lib/matrix.js";
|
|
6
6
|
import { createAsyncLock } from "openclaw/plugin-sdk/async-lock-runtime";
|
|
7
|
-
|
|
7
|
+
// extensions/matrix/src/matrix/client/file-sync-store.ts
|
|
8
8
|
const PERSIST_DEBOUNCE_MS = 250;
|
|
9
9
|
function syncDataToSyncResponse(syncData) {
|
|
10
10
|
return {
|
|
@@ -180,5 +180,4 @@ var SqliteBackedMatrixSyncStore = class SqliteBackedMatrixSyncStore extends Memo
|
|
|
180
180
|
throw new Error("Matrix sync cache SQLite store is unavailable; cannot persist sync state", { cause: this.storeUnavailableError });
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
|
-
//#endregion
|
|
184
183
|
export { SqliteBackedMatrixSyncStore };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as buildHttpError } from "./event-helpers-
|
|
1
|
+
import { t as buildHttpError } from "./event-helpers-DDUjVVf7.mjs";
|
|
2
2
|
import { PlatformMessageNotDispatchedError } from "openclaw/plugin-sdk/error-runtime";
|
|
3
3
|
import { parseMediaContentLength } from "openclaw/plugin-sdk/media-runtime";
|
|
4
4
|
import { buildTimeoutAbortSignal } from "openclaw/plugin-sdk/extension-shared";
|
|
@@ -6,7 +6,7 @@ import { captureChannelReadAuthority, captureEffectAuthority } from "openclaw/pl
|
|
|
6
6
|
import { readResponseWithLimit } from "openclaw/plugin-sdk/response-limit-runtime";
|
|
7
7
|
import { fetchWithRuntimeDispatcherOrMockedGlobal } from "openclaw/plugin-sdk/runtime-fetch";
|
|
8
8
|
import { closeDispatcher, createPinnedDispatcher, resolvePinnedHostnameWithPolicy } from "openclaw/plugin-sdk/ssrf-dispatcher";
|
|
9
|
-
|
|
9
|
+
// extensions/matrix/src/matrix/media-errors.ts
|
|
10
10
|
const MATRIX_MEDIA_SIZE_LIMIT_ERROR_MESSAGE = "Matrix media exceeds configured size limit";
|
|
11
11
|
var MatrixMediaSizeLimitError = class extends Error {
|
|
12
12
|
constructor(message = MATRIX_MEDIA_SIZE_LIMIT_ERROR_MESSAGE, options) {
|
|
@@ -20,8 +20,7 @@ function isMatrixMediaSizeLimitError(err) {
|
|
|
20
20
|
if (!(err instanceof Error) || err.cause === void 0) return false;
|
|
21
21
|
return isMatrixMediaSizeLimitError(err.cause);
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
//#region extensions/matrix/src/matrix/sdk/transport.ts
|
|
23
|
+
// extensions/matrix/src/matrix/sdk/transport.ts
|
|
25
24
|
var MatrixSdkAuthorityError = class extends Error {
|
|
26
25
|
constructor(cause) {
|
|
27
26
|
super(cause instanceof Error ? cause.message : "Matrix request authority expired", { cause });
|
|
@@ -296,8 +295,7 @@ async function performMatrixRequest(params) {
|
|
|
296
295
|
buffer
|
|
297
296
|
}));
|
|
298
297
|
}
|
|
299
|
-
|
|
300
|
-
//#region extensions/matrix/src/matrix/sdk/http-client.ts
|
|
298
|
+
// extensions/matrix/src/matrix/sdk/http-client.ts
|
|
301
299
|
var MatrixAuthedHttpClient = class {
|
|
302
300
|
constructor(params) {
|
|
303
301
|
this.params = { ...params };
|
|
@@ -333,5 +331,4 @@ var MatrixAuthedHttpClient = class {
|
|
|
333
331
|
return buffer;
|
|
334
332
|
}
|
|
335
333
|
};
|
|
336
|
-
//#endregion
|
|
337
334
|
export { isMatrixMediaSizeLimitError as i, createMatrixGuardedFetch as n, MatrixMediaSizeLimitError as r, MatrixAuthedHttpClient as t };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as getMatrixRuntime } from "./runtime-
|
|
2
|
-
import { n as RETIRED_MATRIX_STATE_REMEDIATION } from "./retired-state-
|
|
3
|
-
import { c as writeMatrixIdbSnapshotJson, r as readMatrixIdbSnapshotJson } 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-vIr2IB90.mjs";
|
|
3
|
+
import { c as writeMatrixIdbSnapshotJson, r as readMatrixIdbSnapshotJson } from "./crypto-state-store-CM57gchf.mjs";
|
|
4
|
+
import { t as LogService } from "./logger-BX5kXvh1.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";
|
|
9
9
|
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
|
+
// extensions/matrix/src/matrix/sdk/idb-persistence.ts
|
|
13
13
|
const LEGACY_SNAPSHOT_DIAGNOSTIC = {
|
|
14
14
|
code: "matrix-idb-snapshot-requires-doctor",
|
|
15
15
|
message: "Matrix IndexedDB snapshot exists outside the current SQLite state",
|
|
@@ -229,5 +229,4 @@ function throwLegacySnapshotMigrationRequired() {
|
|
|
229
229
|
LogService.warn("IdbPersistence", LEGACY_SNAPSHOT_DIAGNOSTIC);
|
|
230
230
|
throw new MatrixIdbSnapshotMigrationRequiredError();
|
|
231
231
|
}
|
|
232
|
-
//#endregion
|
|
233
232
|
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 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as LogService } from "./logger-
|
|
1
|
+
import { t as LogService } from "./logger-BX5kXvh1.mjs";
|
|
2
2
|
import { createChannelReplayGuard, resolvePersistentDedupePluginStateNamespace } from "openclaw/plugin-sdk/persistent-dedupe";
|
|
3
|
-
|
|
3
|
+
// extensions/matrix/src/matrix/monitor/inbound-dedupe.ts
|
|
4
4
|
const MATRIX_INBOUND_DEDUPE_PLUGIN_ID = "matrix";
|
|
5
5
|
const MATRIX_INBOUND_DEDUPE_NAMESPACE_PREFIX = "matrix.inbound-dedupe";
|
|
6
6
|
const MATRIX_INBOUND_DEDUPE_NAMESPACE = "global";
|
|
@@ -44,5 +44,4 @@ function createMatrixInboundEventDeduper(params) {
|
|
|
44
44
|
namespace: () => MATRIX_INBOUND_DEDUPE_NAMESPACE
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
//#endregion
|
|
48
47
|
export { MATRIX_INBOUND_DEDUPE_STATE_MAX_ENTRIES, MATRIX_INBOUND_DEDUPE_TTL_MS, buildMatrixInboundDedupeEventKey, createMatrixInboundEventDeduper, resolveMatrixInboundDedupeStateNamespace };
|
package/dist/.setup/{joined-room-encryption-BAD70N5n.mjs → joined-room-encryption-Dl7Sb9FF.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as LogService } from "./logger-
|
|
1
|
+
import { t as LogService } from "./logger-BX5kXvh1.mjs";
|
|
2
2
|
import { EventType, MatrixError, MatrixEvent } from "matrix-js-sdk/lib/matrix.js";
|
|
3
3
|
import { ConnectionError, HTTPError, Method } from "matrix-js-sdk/lib/http-api/index.js";
|
|
4
4
|
import { RustCrypto } from "matrix-js-sdk/lib/rust-crypto/rust-crypto.js";
|
|
5
|
-
|
|
5
|
+
// extensions/matrix/src/matrix/sdk/joined-room-encryption.ts
|
|
6
6
|
const ROOM_CONCURRENCY = 4;
|
|
7
7
|
async function reconcileJoinedRoomEncryption(client, signal, assertCurrent) {
|
|
8
8
|
const crypto = client.getCrypto();
|
|
@@ -63,5 +63,4 @@ async function reconcileJoinedRoomEncryption(client, signal, assertCurrent) {
|
|
|
63
63
|
checkActive();
|
|
64
64
|
for (const result of results) if (result.status === "rejected") throw result.reason;
|
|
65
65
|
}
|
|
66
|
-
//#endregion
|
|
67
66
|
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 { i as __exportAll } from "./doctor-contract-
|
|
2
|
-
import { a as setMatrixLogServiceQuiet, n as emitMatrixLog } from "./logger-
|
|
1
|
+
import { i as __exportAll } from "./doctor-contract-DybEjJcd.mjs";
|
|
2
|
+
import { a as setMatrixLogServiceQuiet, n as emitMatrixLog } from "./logger-BX5kXvh1.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,
|
|
@@ -67,5 +67,4 @@ function createMatrixJsSdkClientLogger(prefix = "matrix") {
|
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
//#endregion
|
|
71
70
|
export { logging_exports as n, setMatrixSdkLogMode as r, createMatrixJsSdkClientLogger as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as MATRIX_REACTION_EVENT_TYPE } from "./send-currentness-
|
|
2
|
-
import { _ as isPollEventType, b as resolvePollReferenceEventId, d as resolveMatrixReplacementContent, g as formatPollResultsAsText, m as buildPollResultsSummary, t as editMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollStartType, y as parsePollStart } from "./send-
|
|
3
|
-
import { r as withResolvedRoomAction } from "./client-
|
|
4
|
-
import { n as isMatrixNotFoundError } from "./errors-
|
|
1
|
+
import { a as MATRIX_REACTION_EVENT_TYPE } from "./send-currentness-CAUVR-f3.mjs";
|
|
2
|
+
import { _ as isPollEventType, b as resolvePollReferenceEventId, d as resolveMatrixReplacementContent, g as formatPollResultsAsText, m as buildPollResultsSummary, t as editMessageMatrix, u as resolveMatrixMessageAttachment, v as isPollStartType, y as parsePollStart } from "./send-C1qeMQAy.mjs";
|
|
3
|
+
import { r as withResolvedRoomAction } from "./client-CV0MkCZG.mjs";
|
|
4
|
+
import { n as isMatrixNotFoundError } from "./errors-CL3YJV8U.mjs";
|
|
5
5
|
import { asNullableObjectRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
|
-
|
|
6
|
+
// extensions/matrix/src/matrix/poll-summary.ts
|
|
7
7
|
function resolveMatrixPollRootEventId(event) {
|
|
8
8
|
if (isPollStartType(event.type)) {
|
|
9
9
|
const eventId = event.event_id?.trim();
|
|
@@ -57,21 +57,18 @@ async function fetchMatrixPollMessageSummary(client, roomId, event) {
|
|
|
57
57
|
timestamp: snapshot.triggerEvent.origin_server_ts || snapshot.rootEvent.origin_server_ts
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
//#region extensions/matrix/src/matrix/actions/limits.ts
|
|
60
|
+
// extensions/matrix/src/matrix/actions/limits.ts
|
|
62
61
|
function resolveMatrixActionLimit(raw, fallback) {
|
|
63
62
|
return Math.max(1, Math.floor(raw !== void 0 && Number.isFinite(raw) ? raw : fallback));
|
|
64
63
|
}
|
|
65
|
-
|
|
66
|
-
//#region extensions/matrix/src/matrix/actions/types.ts
|
|
64
|
+
// extensions/matrix/src/matrix/actions/types.ts
|
|
67
65
|
const EventType = {
|
|
68
66
|
RoomMessage: "m.room.message",
|
|
69
67
|
RoomPinnedEvents: "m.room.pinned_events",
|
|
70
68
|
RoomTopic: "m.room.topic",
|
|
71
69
|
Reaction: MATRIX_REACTION_EVENT_TYPE
|
|
72
70
|
};
|
|
73
|
-
|
|
74
|
-
//#region extensions/matrix/src/matrix/actions/summary.ts
|
|
71
|
+
// extensions/matrix/src/matrix/actions/summary.ts
|
|
75
72
|
function parseMatrixRawEvent(value) {
|
|
76
73
|
const event = asNullableObjectRecord(value);
|
|
77
74
|
const content = asNullableObjectRecord(event?.content);
|
|
@@ -143,8 +140,7 @@ async function fetchEventSummary(client, roomId, eventId) {
|
|
|
143
140
|
return null;
|
|
144
141
|
}
|
|
145
142
|
}
|
|
146
|
-
|
|
147
|
-
//#region extensions/matrix/src/matrix/actions/messages.ts
|
|
143
|
+
// extensions/matrix/src/matrix/actions/messages.ts
|
|
148
144
|
const MATRIX_THREAD_RELATIONS_START_CURSOR_PREFIX = "openclaw.matrix.thread-relations-start:";
|
|
149
145
|
function resolveMatrixReplacementTarget(event) {
|
|
150
146
|
const relation = event.content["m.relates_to"];
|
|
@@ -290,5 +286,4 @@ async function isMatrixPollRootThreaded(params) {
|
|
|
290
286
|
const hydratedRoot = (await params.client.hydrateEvents(params.resolvedRoom, [rootEvent]))[0];
|
|
291
287
|
return hydratedRoot ? isMatrixThreadEvent(hydratedRoot) : false;
|
|
292
288
|
}
|
|
293
|
-
//#endregion
|
|
294
289
|
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 };
|