@openclaw/matrix 2026.5.14-beta.1 → 2026.5.16-beta.1
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/api.js +4 -4
- package/dist/{approval-handler.runtime-DcgDdi8L.js → approval-handler.runtime--UYE3D2j.js} +5 -6
- package/dist/{approval-ids-DoC2z7tR.js → approval-ids-D6IQvvRE.js} +1 -1
- package/dist/{approval-reaction-auth-BY5VFY-q.js → approval-reaction-auth-99PRu7rF.js} +2 -2
- package/dist/{channel-eRrwLDE9.js → channel-CwN56Pko.js} +285 -26
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-CsQesLGI.js → channel.runtime-9qwvlUwp.js} +8 -8
- package/dist/{cli-DAMPUa3J.js → cli-BeWdjXLV.js} +15 -17
- package/dist/{cli-metadata-Bt5SrlLo.js → cli-metadata-B2_76YSe.js} +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/{client-DrmLRQnw.js → client-D6fFVbNM.js} +2 -2
- package/dist/{client-bootstrap-Ba68NvZB.js → client-bootstrap-DBwUKgC3.js} +3 -3
- package/dist/{client-DBDvsx0D.js → client-oci1tD6-.js} +4 -5
- package/dist/{account-config-LVxGiX7e.js → config-paths-msaDGRh6.js} +18 -1
- package/dist/{config-schema-DOKrNEs_.js → config-schema-BPCzSyjT.js} +70 -4
- package/dist/contract-api.js +5 -6
- package/dist/{create-client-ChlpNpAA.js → create-client-BahCtURn.js} +4 -4
- package/dist/{credentials-DV6fWXhC.js → credentials-DK0lK9cZ.js} +1 -1
- package/dist/{credentials-write.runtime-zniTq-Gr.js → credentials-write.runtime-DhPvBU-C.js} +1 -1
- package/dist/{crypto-runtime-BevaUxax.js → crypto-runtime-B-SPS5mv.js} +5 -5
- package/dist/{directory-live-Btsr0yok.js → directory-live-BCfx1C0G.js} +3 -3
- package/dist/{doctor-qL-bgDwE.js → doctor-KuNYX5N3.js} +3 -3
- package/dist/doctor-contract-api.js +1 -1
- package/dist/{draft-stream-B-hyLmMw.js → draft-stream-BayHVmtO.js} +1 -2
- package/dist/{encryption-guidance-BPi3A_m3.js → encryption-guidance-1QoIvd-g.js} +1 -1
- package/dist/{http-client-C7AeVJay.js → http-client-DS3UoC_p.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/{legacy-crypto-inspector-C4VpBdDV.js → legacy-crypto-inspector-_gWJGVQ_.js} +1 -1
- package/dist/{legacy-crypto-restore-Biw-w2ng.js → legacy-crypto-restore-B9eF1gob.js} +1 -1
- package/dist/{logging-DZHSPP5N.js → logging-bJ8EEe1G.js} +1 -1
- package/dist/{matrix-migration.runtime-CDasos7a.js → matrix-migration.runtime-Cf_wX9mk.js} +3 -3
- package/dist/{media-text-BLL8-Dr3.js → media-text-4h4YwCGC.js} +1 -1
- package/dist/{messages-BJi_jdEA.js → messages-BKTEUSwJ.js} +5 -5
- package/dist/{migration-snapshot.runtime-CKHE3xF9.js → migration-snapshot.runtime-C7yiKWS7.js} +1 -1
- package/dist/{monitor-COvHRaUQ.js → monitor-DPJO3wS1.js} +35 -35
- package/dist/plugin-entry.handlers.runtime.js +2 -2
- package/dist/probe.runtime-zExLz3Ek.js +3 -0
- package/dist/{profile-update-DK5rfmA-.js → profile-update-BAAflurI.js} +2 -3
- package/dist/{reaction-events-Cfvkp-A-.js → reaction-events-Dimh8FUE.js} +6 -6
- package/dist/{resolve-targets-ZSM4KKln.js → resolve-targets-DPqngj4V.js} +1 -1
- package/dist/{resolver.runtime-m_D8JSm3.js → resolver.runtime-C0RDK0VW.js} +1 -1
- package/dist/{route-D6rg-iXN.js → route-R-ajT21_.js} +1 -1
- package/dist/{runtime-api-DTKcXOhp.js → runtime-api-C-QeChQj.js} +1 -1
- package/dist/runtime-api.js +1 -1
- package/dist/runtime-heavy-api.js +2 -2
- package/dist/{sdk-BLBGvKEe.js → sdk-BwfNtBhM.js} +301 -13
- package/dist/secret-contract-api.js +1 -1
- package/dist/{send-D651usmb.js → send-CdoJ1pZY.js} +323 -6
- package/dist/{setup-bootstrap-DT2Gj9hX.js → setup-bootstrap-krQU60Az.js} +4 -4
- package/dist/setup-core-CgOV8zmh.js +675 -0
- package/dist/setup-plugin-api.js +3 -4
- package/dist/{setup-surface-KzA9__US.js → setup-surface-BgUaEySF.js} +7 -10
- package/dist/{config-xD5Y8nFT.js → shared-BlXw87Kp.js} +199 -9
- package/dist/{logger-CnZRVrux.js → startup-abort-br7BZHJQ.js} +32 -1
- package/dist/{startup-verification-Demyp0bP.js → startup-verification-CTfhD7V_.js} +2 -2
- package/dist/{storage-tC3ujLiW.js → storage-HI1nL3im.js} +1 -1
- package/dist/{subagent-hooks-DQbyqq9V.js → subagent-hooks-api-BgQgDwAS.js} +22 -1
- package/dist/subagent-hooks-api.js +1 -22
- package/dist/test-api.js +2 -2
- package/dist/thread-binding-api.js +1 -1
- package/dist/{thread-bindings-DHUszTA0.js → thread-bindings-8AyQOYDT.js} +2 -2
- package/dist/{tool-actions.runtime-Bn8bvkQN.js → tool-actions.runtime-BuCnleVD.js} +9 -9
- package/dist/{verification-BJT2k9TI.js → verification-DvC37Z_y.js} +2 -2
- package/package.json +6 -6
- package/dist/accounts--0L_EuMK.js +0 -130
- package/dist/allowlist-sTzpCn5d.js +0 -68
- package/dist/config-paths-nsVaysCu.js +0 -19
- package/dist/config-update-BBkpLB9o.js +0 -143
- package/dist/direct-management--Y8ypgLv.js +0 -251
- package/dist/direct-room-XkutHjES.js +0 -76
- package/dist/exec-approvals-to3d_jMv.js +0 -196
- package/dist/probe.runtime-sh9piX22.js +0 -3
- package/dist/profile-BlHu0wDX.js +0 -111
- package/dist/recovery-key-store-BTJ6jz5v.js +0 -294
- package/dist/session-store-metadata-DQXjgNLt.js +0 -77
- package/dist/setup-core-C-uKN68n.js +0 -116
- package/dist/setup-dm-policy-0_kFUfW4.js +0 -195
- package/dist/shared-DarXfhzC.js +0 -195
- package/dist/startup-abort-56edvmbM.js +0 -32
- /package/dist/{active-client-uhlxdhEy.js → active-client-DUi-lumi.js} +0 -0
- /package/dist/{approval-reactions-o2_tuH8D.js → approval-reactions-Cwd1PMCC.js} +0 -0
- /package/dist/{async-lock-uQfhfQIY.js → async-lock-SsmtFXtt.js} +0 -0
- /package/dist/{backup-health-Cabu_WQC.js → backup-health-3BHbHxyd.js} +0 -0
- /package/dist/{config-secret-input.runtime-DiKFehsE.js → config-secret-input.runtime-nbLCnJq7.js} +0 -0
- /package/dist/{crypto-node.runtime-pihzdpY7.js → crypto-node.runtime-D9qxgRPa.js} +0 -0
- /package/dist/{deps-DR0MIYrW.js → deps-LqqGWPWt.js} +0 -0
- /package/dist/{device-health-UVYpbA_W.js → device-health-Di9MUzFj.js} +0 -0
- /package/dist/{doctor-contract-D4-64QuJ.js → doctor-contract-s4gUPmRN.js} +0 -0
- /package/dist/{errors-CTcpEDq-.js → errors-BpHgvm2o.js} +0 -0
- /package/dist/{exec-approval-resolver-Bza9Dhlm.js → exec-approval-resolver-C8faS0XB.js} +0 -0
- /package/dist/{migration-snapshot-backup-DaCHTp8C.js → migration-snapshot-backup-BWTIFXgQ.js} +0 -0
- /package/dist/{reaction-common-ejrL19w-.js → reaction-common-B-QgNfEs.js} +0 -0
- /package/dist/{runtime-C6X4h_SJ.js → runtime-lwTSy9Yt.js} +0 -0
- /package/dist/{secret-contract-DcrJWCQI.js → secret-contract-e4SdhUtT.js} +0 -0
- /package/dist/{sync-state-C_beeevA.js → sync-state-Bx0gPaGA.js} +0 -0
- /package/dist/{thread-binding-api-Cq_E-E1K.js → thread-binding-api-Bx55B6hm.js} +0 -0
- /package/dist/{timeout-abort-signal-CtaIaP1v.js → timeout-abort-signal-sT0wAxVn.js} +0 -0
- /package/dist/{url-validation-DiK9j7jz.js → url-validation-CBZBxN3F.js} +0 -0
|
@@ -1,12 +1,78 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as normalizeMatrixAllowList } from "./allowlist-sTzpCn5d.js";
|
|
1
|
+
import { c as resolveMatrixAccountConfig } from "./config-paths-msaDGRh6.js";
|
|
2
|
+
import { g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, p as listMatrixAccountIds } from "./setup-core-CgOV8zmh.js";
|
|
4
3
|
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1 } from "openclaw/plugin-sdk/account-id";
|
|
4
|
+
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
6
|
+
import { resolveAllowlistMatchByCandidates } from "openclaw/plugin-sdk/allow-from";
|
|
7
|
+
import { normalizeStringEntries } from "openclaw/plugin-sdk/string-normalization-runtime";
|
|
6
8
|
import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-primitives";
|
|
7
9
|
import { AllowFromListSchema, ContextVisibilityModeSchema, GroupPolicySchema, MarkdownConfigSchema, ToolPolicySchema, buildNestedDmConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
|
|
8
10
|
import { buildSecretInputSchema } from "openclaw/plugin-sdk/secret-input";
|
|
9
11
|
import { z } from "zod";
|
|
12
|
+
//#region extensions/matrix/src/matrix/monitor/allowlist.ts
|
|
13
|
+
function normalizeAllowList(list) {
|
|
14
|
+
return normalizeStringEntries(list);
|
|
15
|
+
}
|
|
16
|
+
function normalizeMatrixUser(raw) {
|
|
17
|
+
const value = (raw ?? "").trim();
|
|
18
|
+
if (!value) return "";
|
|
19
|
+
if (!value.startsWith("@") || !value.includes(":")) return normalizeLowercaseStringOrEmpty(value);
|
|
20
|
+
const withoutAt = value.slice(1);
|
|
21
|
+
const splitIndex = withoutAt.indexOf(":");
|
|
22
|
+
if (splitIndex === -1) return normalizeLowercaseStringOrEmpty(value);
|
|
23
|
+
const localpart = normalizeLowercaseStringOrEmpty(withoutAt.slice(0, splitIndex));
|
|
24
|
+
const server = normalizeLowercaseStringOrEmpty(withoutAt.slice(splitIndex + 1));
|
|
25
|
+
if (!server) return normalizeLowercaseStringOrEmpty(value);
|
|
26
|
+
return `@${localpart}:${server}`;
|
|
27
|
+
}
|
|
28
|
+
function normalizeMatrixUserId(raw) {
|
|
29
|
+
const trimmed = (raw ?? "").trim();
|
|
30
|
+
if (!trimmed) return "";
|
|
31
|
+
const lowered = normalizeLowercaseStringOrEmpty(trimmed);
|
|
32
|
+
if (lowered.startsWith("matrix:")) return normalizeMatrixUser(trimmed.slice(7));
|
|
33
|
+
if (lowered.startsWith("user:")) return normalizeMatrixUser(trimmed.slice(5));
|
|
34
|
+
return normalizeMatrixUser(trimmed);
|
|
35
|
+
}
|
|
36
|
+
function normalizeMatrixAllowListEntry(raw) {
|
|
37
|
+
const trimmed = raw.trim();
|
|
38
|
+
if (!trimmed) return "";
|
|
39
|
+
if (trimmed === "*") return trimmed;
|
|
40
|
+
const lowered = normalizeLowercaseStringOrEmpty(trimmed);
|
|
41
|
+
if (lowered.startsWith("matrix:")) return `matrix:${normalizeMatrixUser(trimmed.slice(7))}`;
|
|
42
|
+
if (lowered.startsWith("user:")) return `user:${normalizeMatrixUser(trimmed.slice(5))}`;
|
|
43
|
+
return normalizeMatrixUser(trimmed);
|
|
44
|
+
}
|
|
45
|
+
function normalizeMatrixAllowList(list) {
|
|
46
|
+
return normalizeAllowList(list).map((entry) => normalizeMatrixAllowListEntry(entry));
|
|
47
|
+
}
|
|
48
|
+
function resolveMatrixAllowListMatch(params) {
|
|
49
|
+
const allowList = params.allowList;
|
|
50
|
+
if (allowList.length === 0) return { allowed: false };
|
|
51
|
+
if (allowList.includes("*")) return {
|
|
52
|
+
allowed: true,
|
|
53
|
+
matchKey: "*",
|
|
54
|
+
matchSource: "wildcard"
|
|
55
|
+
};
|
|
56
|
+
const userId = normalizeMatrixUser(params.userId);
|
|
57
|
+
return resolveAllowlistMatchByCandidates({
|
|
58
|
+
allowList,
|
|
59
|
+
candidates: [
|
|
60
|
+
{
|
|
61
|
+
value: userId,
|
|
62
|
+
source: "id"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
value: userId ? `matrix:${userId}` : "",
|
|
66
|
+
source: "prefixed-id"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
value: userId ? `user:${userId}` : "",
|
|
70
|
+
source: "prefixed-user"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
10
76
|
//#region extensions/matrix/src/config-adapter.ts
|
|
11
77
|
const matrixConfigAdapter = createScopedChannelConfigAdapter({
|
|
12
78
|
sectionKey: "matrix",
|
|
@@ -234,4 +300,4 @@ const MatrixChannelConfigSchema = buildChannelConfigSchema(z.object({
|
|
|
234
300
|
actions: matrixActionSchema
|
|
235
301
|
}), { uiHints: matrixChannelConfigUiHints });
|
|
236
302
|
//#endregion
|
|
237
|
-
export { DEFAULT_ACCOUNT_ID$1 as n, matrixConfigAdapter as r, MatrixChannelConfigSchema as t };
|
|
303
|
+
export { normalizeMatrixUserId as a, normalizeMatrixAllowList as i, DEFAULT_ACCOUNT_ID$1 as n, resolveMatrixAllowListMatch as o, matrixConfigAdapter as r, MatrixChannelConfigSchema as t };
|
package/dist/contract-api.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { s as resetMatrixThreadBindingsForTests } from "./thread-bindings-shared-DK-d-oYX.js";
|
|
2
2
|
import { r as setMatrixRuntime } from "./runtime-Dog86njy.js";
|
|
3
|
-
import { n as
|
|
4
|
-
import { n as
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import {
|
|
8
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-DHUszTA0.js";
|
|
3
|
+
import { d as resolveSingleAccountPromotionTarget, f as singleAccountKeysToMove, n as matrixSetupAdapter, u as namedAccountPromotionKeys } from "./setup-core-CgOV8zmh.js";
|
|
4
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-s4gUPmRN.js";
|
|
5
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-e4SdhUtT.js";
|
|
6
|
+
import { n as matrixOnboardingAdapter } from "./setup-surface-BgUaEySF.js";
|
|
7
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-8AyQOYDT.js";
|
|
9
8
|
export { collectRuntimeConfigAssignments, createMatrixThreadBindingManager, legacyConfigRules, matrixSetupAdapter, matrixOnboardingAdapter as matrixSetupWizard, namedAccountPromotionKeys, normalizeCompatibilityConfig, resetMatrixThreadBindingsForTests, resolveSingleAccountPromotionTarget, secretTargetRegistryEntries, setMatrixRuntime, singleAccountKeysToMove };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
|
-
import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-
|
|
3
|
-
import { a as resolveMatrixStoragePaths, n as maybeMigrateLegacyStorage, o as writeStorageMeta } from "./storage-
|
|
4
|
-
import "./
|
|
2
|
+
import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-CBZBxN3F.js";
|
|
3
|
+
import { a as resolveMatrixStoragePaths, n as maybeMigrateLegacyStorage, o as writeStorageMeta } from "./storage-HI1nL3im.js";
|
|
4
|
+
import "./shared-BlXw87Kp.js";
|
|
5
5
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import { ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
@@ -9,7 +9,7 @@ import { ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sd
|
|
|
9
9
|
var create_client_exports = /* @__PURE__ */ __exportAll({ createMatrixClient: () => createMatrixClient });
|
|
10
10
|
let matrixCreateClientRuntimeDepsPromise;
|
|
11
11
|
async function loadMatrixCreateClientRuntimeDeps() {
|
|
12
|
-
matrixCreateClientRuntimeDepsPromise ??= Promise.all([import("./sdk-
|
|
12
|
+
matrixCreateClientRuntimeDepsPromise ??= Promise.all([import("./sdk-BwfNtBhM.js").then((n) => n.n), import("./logging-bJ8EEe1G.js").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
|
|
13
13
|
MatrixClient: sdkModule.MatrixClient,
|
|
14
14
|
ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
|
|
15
15
|
}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as resolveMatrixCredentialsDir, i as loadMatrixCredentials, n as credentialsMatchConfig, o as resolveMatrixCredentialsPath, t as clearMatrixCredentials } from "./credentials-read-cmHgousK.js";
|
|
2
|
-
import { t as createAsyncLock } from "./async-lock-
|
|
2
|
+
import { t as createAsyncLock } from "./async-lock-SsmtFXtt.js";
|
|
3
3
|
import { writeJsonFileAtomically } from "openclaw/plugin-sdk/json-store";
|
|
4
4
|
//#region extensions/matrix/src/matrix/credentials.ts
|
|
5
5
|
const credentialWriteLocks = /* @__PURE__ */ new Map();
|
package/dist/{credentials-write.runtime-zniTq-Gr.js → credentials-write.runtime-DhPvBU-C.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region extensions/matrix/src/matrix/credentials-write.runtime.ts
|
|
2
2
|
let matrixCredentialsRuntimePromise;
|
|
3
3
|
function loadMatrixCredentialsRuntime() {
|
|
4
|
-
matrixCredentialsRuntimePromise ??= import("./credentials-
|
|
4
|
+
matrixCredentialsRuntimePromise ??= import("./credentials-DK0lK9cZ.js");
|
|
5
5
|
return matrixCredentialsRuntimePromise;
|
|
6
6
|
}
|
|
7
7
|
async function saveMatrixCredentials(...args) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as formatMatrixErrorMessage } from "./errors-
|
|
2
|
-
import { t as ensureMatrixCryptoRuntime } from "./deps-
|
|
3
|
-
import {
|
|
4
|
-
import { i as MATRIX_IDB_SNAPSHOT_LOCK_OPTIONS,
|
|
1
|
+
import { t as formatMatrixErrorMessage } from "./errors-BpHgvm2o.js";
|
|
2
|
+
import { t as ensureMatrixCryptoRuntime } from "./deps-LqqGWPWt.js";
|
|
3
|
+
import { o as LogService, s as noop } from "./startup-abort-br7BZHJQ.js";
|
|
4
|
+
import { i as MATRIX_IDB_SNAPSHOT_LOCK_OPTIONS, r as isRepairableSecretStorageAccessError } from "./sdk-BwfNtBhM.js";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { MatrixEventEvent } from "matrix-js-sdk/lib/matrix.js";
|
|
@@ -290,7 +290,7 @@ var MatrixCryptoBootstrapper = class {
|
|
|
290
290
|
//#region extensions/matrix/src/matrix/sdk/crypto-facade.ts
|
|
291
291
|
let matrixCryptoNodeRuntimePromise = null;
|
|
292
292
|
async function loadMatrixCryptoNodeRuntime() {
|
|
293
|
-
matrixCryptoNodeRuntimePromise ??= import("./crypto-node.runtime-
|
|
293
|
+
matrixCryptoNodeRuntimePromise ??= import("./crypto-node.runtime-D9qxgRPa.js").catch((error) => {
|
|
294
294
|
matrixCryptoNodeRuntimePromise = null;
|
|
295
295
|
throw error;
|
|
296
296
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
2
|
import { n as normalizeMatrixMessagingTarget, t as isMatrixQualifiedUserId } from "./target-ids-80nQ2gql.js";
|
|
3
|
-
import { t as MatrixAuthedHttpClient } from "./http-client-
|
|
4
|
-
import {
|
|
5
|
-
import "./client-
|
|
3
|
+
import { t as MatrixAuthedHttpClient } from "./http-client-DS3UoC_p.js";
|
|
4
|
+
import { l as resolveMatrixAuth } from "./shared-BlXw87Kp.js";
|
|
5
|
+
import "./client-oci1tD6-.js";
|
|
6
6
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
//#region extensions/matrix/src/directory-live.ts
|
|
8
8
|
var directory_live_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as isRecord } from "./record-shared-CHWJCTWf.js";
|
|
2
|
-
import "./doctor-contract-
|
|
3
|
-
import { i as autoPrepareLegacyMatrixCrypto, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus } from "./matrix-migration.runtime-
|
|
4
|
-
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-
|
|
2
|
+
import "./doctor-contract-s4gUPmRN.js";
|
|
3
|
+
import { i as autoPrepareLegacyMatrixCrypto, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus } from "./matrix-migration.runtime-Cf_wX9mk.js";
|
|
4
|
+
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-BWTIFXgQ.js";
|
|
5
5
|
import { detectPluginInstallPathIssue, formatPluginInstallPathIssue, removePluginFromConfig } from "openclaw/plugin-sdk/runtime-doctor";
|
|
6
6
|
//#region extensions/matrix/src/doctor.ts
|
|
7
7
|
function hasConfiguredMatrixChannel(cfg) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-
|
|
1
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-s4gUPmRN.js";
|
|
2
2
|
export { legacyConfigRules, normalizeCompatibilityConfig };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as editMessageMatrix, r as prepareMatrixSingleText, s as sendSingleTextMessageMatrix } from "./send-
|
|
2
|
-
import { l as MsgType } from "./direct-management--Y8ypgLv.js";
|
|
1
|
+
import { n as editMessageMatrix, r as prepareMatrixSingleText, s as sendSingleTextMessageMatrix, y as MsgType } from "./send-CdoJ1pZY.js";
|
|
3
2
|
import { createDraftStreamLoop } from "openclaw/plugin-sdk/channel-lifecycle";
|
|
4
3
|
//#region extensions/matrix/src/matrix/draft-stream.ts
|
|
5
4
|
const DEFAULT_THROTTLE_MS = 1e3;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as resolveMatrixDefaultOrOnlyAccountId } from "./account-selection-BWwIruri.js";
|
|
2
|
-
import { t as resolveMatrixConfigFieldPath } from "./config-paths-
|
|
2
|
+
import { t as resolveMatrixConfigFieldPath } from "./config-paths-msaDGRh6.js";
|
|
3
3
|
import { normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
|
|
4
4
|
//#region extensions/matrix/src/matrix/encryption-guidance.ts
|
|
5
5
|
function resolveMatrixEncryptionConfigPath(cfg, accountId) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as buildTimeoutAbortSignal } from "./timeout-abort-signal-
|
|
1
|
+
import { t as buildTimeoutAbortSignal } from "./timeout-abort-signal-sT0wAxVn.js";
|
|
2
2
|
import { readResponseWithLimit } from "openclaw/plugin-sdk/response-limit-runtime";
|
|
3
3
|
import { fetchWithRuntimeDispatcherOrMockedGlobal } from "openclaw/plugin-sdk/runtime-fetch";
|
|
4
4
|
import { closeDispatcher, createPinnedDispatcher, resolvePinnedHostnameWithPolicy } from "openclaw/plugin-sdk/ssrf-dispatcher";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as registerMatrixCliMetadata } from "./cli-metadata-
|
|
2
|
-
import { registerMatrixSubagentHooks } from "./subagent-hooks-api.js";
|
|
1
|
+
import { n as registerMatrixCliMetadata } from "./cli-metadata-B2_76YSe.js";
|
|
2
|
+
import { t as registerMatrixSubagentHooks } from "./subagent-hooks-api-BgQgDwAS.js";
|
|
3
3
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
4
4
|
//#region extensions/matrix/index.ts
|
|
5
5
|
let matrixHandlersRuntimePromise = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-Dog86njy.js";
|
|
2
|
-
import { a as resolveMatrixStoragePaths } from "./storage-
|
|
2
|
+
import { a as resolveMatrixStoragePaths } from "./storage-HI1nL3im.js";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { readJsonFileWithFallback, writeJsonFileAtomically } from "openclaw/plugin-sdk/json-store";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as ConsoleLogger, c as setMatrixConsoleLogging, o as LogService } from "./startup-abort-br7BZHJQ.js";
|
|
3
3
|
import { logger } from "matrix-js-sdk/lib/logger.js";
|
|
4
4
|
//#region extensions/matrix/src/matrix/client/logging.ts
|
|
5
5
|
var logging_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as resolveMatrixDefaultOrOnlyAccountId, i as resolveMatrixChannelConfig, n as requiresExplicitMatrixDefaultAccount, o as resolveMatrixAccountStringValues, r as resolveConfiguredMatrixAccountIds, t as findMatrixAccountEntry } from "./account-selection-BWwIruri.js";
|
|
2
2
|
import { i as resolveScopedMatrixEnvConfig, n as resolveGlobalMatrixEnvConfig } from "./env-auth-BJqGI8M6.js";
|
|
3
3
|
import { a as resolveMatrixCredentialsPath, n as resolveMatrixAccountStorageRoot, s as resolveMatrixLegacyFlatStoragePaths } from "./storage-paths-BJLdnCjV.js";
|
|
4
|
-
import { t as formatMatrixErrorMessage } from "./errors-
|
|
5
|
-
import "./migration-snapshot-backup-
|
|
4
|
+
import { t as formatMatrixErrorMessage } from "./errors-BpHgvm2o.js";
|
|
5
|
+
import "./migration-snapshot-backup-BWTIFXgQ.js";
|
|
6
6
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
7
7
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
8
8
|
import fs from "node:fs";
|
|
@@ -249,7 +249,7 @@ function isMatrixLegacyCryptoInspectorAvailable() {
|
|
|
249
249
|
//#region extensions/matrix/src/legacy-crypto.ts
|
|
250
250
|
const MATRIX_LEGACY_CRYPTO_INSPECTOR_UNAVAILABLE_MESSAGE = "Legacy Matrix encrypted state was detected, but the Matrix crypto inspector is unavailable.";
|
|
251
251
|
async function loadMatrixLegacyCryptoInspector() {
|
|
252
|
-
return (await import("./legacy-crypto-inspector-
|
|
252
|
+
return (await import("./legacy-crypto-inspector-_gWJGVQ_.js")).inspectLegacyMatrixCryptoStore;
|
|
253
253
|
}
|
|
254
254
|
function detectLegacyBotSdkCryptoStore(cryptoRootDir) {
|
|
255
255
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as formatPollResultsAsText, D as parsePollStartContent, O as resolvePollReferenceEventId, S as formatPollAsText, T as isPollStartType, w as isPollEventType, x as buildPollResultsSummary } from "./send-CdoJ1pZY.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
//#region extensions/matrix/src/matrix/poll-summary.ts
|
|
4
4
|
function resolveMatrixPollRootEventId(event) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as isMatrixNotFoundError } from "./errors-
|
|
2
|
-
import { a as sendMessageMatrix,
|
|
3
|
-
import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-
|
|
4
|
-
import { a as resolveMatrixMessageBody, c as resolveMatrixPollRootEventId, i as resolveMatrixMessageAttachment, o as fetchMatrixPollMessageSummary } from "./media-text-
|
|
5
|
-
import { r as withResolvedRoomAction } from "./client-
|
|
1
|
+
import { r as isMatrixNotFoundError } from "./errors-BpHgvm2o.js";
|
|
2
|
+
import { a as sendMessageMatrix, n as editMessageMatrix, w as isPollEventType } from "./send-CdoJ1pZY.js";
|
|
3
|
+
import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-B-QgNfEs.js";
|
|
4
|
+
import { a as resolveMatrixMessageBody, c as resolveMatrixPollRootEventId, i as resolveMatrixMessageAttachment, o as fetchMatrixPollMessageSummary } from "./media-text-4h4YwCGC.js";
|
|
5
|
+
import { r as withResolvedRoomAction } from "./client-D6fFVbNM.js";
|
|
6
6
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
//#region extensions/matrix/src/matrix/actions/limits.ts
|
|
8
8
|
function resolveMatrixActionLimit(raw, fallback) {
|
package/dist/{migration-snapshot.runtime-CKHE3xF9.js → migration-snapshot.runtime-C7yiKWS7.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-
|
|
1
|
+
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-BWTIFXgQ.js";
|
|
2
2
|
export { maybeCreateMatrixMigrationSnapshot };
|
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
import { t as isMatrixQualifiedUserId } from "./target-ids-80nQ2gql.js";
|
|
2
|
-
import {
|
|
2
|
+
import { c as resolveMatrixAccountConfig, s as resolveMatrixAccountAllowlistConfig } from "./config-paths-msaDGRh6.js";
|
|
3
3
|
import { t as getMatrixRuntime } from "./runtime-Dog86njy.js";
|
|
4
|
-
import {
|
|
5
|
-
import { n as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { i as resolveMatrixStateFilePath } from "./storage-
|
|
9
|
-
import { a as sendMessageMatrix,
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { n as
|
|
15
|
-
import { i as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
import { t as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import "./
|
|
24
|
-
import { d as resolveDefaultGroupPolicy, h as warnMissingProviderGroupPolicyFallbackOnce, m as resolveThreadBindingMaxAgeMsForChannel, p as resolveThreadBindingIdleTimeoutMsForChannel, t as GROUP_POLICY_BLOCKED_LABEL, u as resolveAllowlistProviderRuntimeGroupPolicy } from "./runtime-api-DTKcXOhp.js";
|
|
25
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-ZSM4KKln.js";
|
|
26
|
-
import { t as formatMatrixEncryptedEventDisabledWarning } from "./encryption-guidance-BPi3A_m3.js";
|
|
27
|
-
import { a as EventType, i as resolveMatrixThreadRouting, n as resolveMatrixReplyToEventId, o as RelationType, r as resolveMatrixThreadRootId, t as resolveMatrixInboundRoute } from "./route-D6rg-iXN.js";
|
|
4
|
+
import { m as resolveConfiguredMatrixBotUserIds } from "./setup-core-CgOV8zmh.js";
|
|
5
|
+
import { a as buildAllowlistResolutionSummary, c as createTypingCallbacks, d as logInboundDrop, f as logTypingFailure, h as toLocationContext, i as addAllowlistUserEntriesFromConfigEntry, l as formatLocationText, m as summarizeMapping, n as resolveMatrixStoredSessionMeta, o as canonicalizeAllowlistWithResolvedIds, p as patchAllowlistUsersInConfigEntries, r as resolveMatrixRoomConfig, s as createReplyPrefixOptions, u as getAgentScopedMediaLocalRoots } from "./channel-CwN56Pko.js";
|
|
6
|
+
import { a as normalizeMatrixUserId, i as normalizeMatrixAllowList, o as resolveMatrixAllowListMatch } from "./config-schema-BPCzSyjT.js";
|
|
7
|
+
import { r as isMatrixNotFoundError, t as formatMatrixErrorMessage } from "./errors-BpHgvm2o.js";
|
|
8
|
+
import { i as resolveMatrixStateFilePath } from "./storage-HI1nL3im.js";
|
|
9
|
+
import { D as parsePollStartContent, S as formatPollAsText, T as isPollStartType, _ as readJoinedMatrixMembers, a as sendMessageMatrix, f as promoteMatrixDirectRoomCandidate, g as isStrictDirectMembership, h as hasDirectMatrixMemberFlag, t as chunkMatrixText, v as MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY, w as isPollEventType } from "./send-CdoJ1pZY.js";
|
|
10
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-8AyQOYDT.js";
|
|
11
|
+
import { t as createAsyncLock } from "./async-lock-SsmtFXtt.js";
|
|
12
|
+
import { i as throwIfMatrixStartupAborted, o as LogService, r as isMatrixStartupAbortError } from "./startup-abort-br7BZHJQ.js";
|
|
13
|
+
import { i as isMatrixMediaSizeLimitError, r as MatrixMediaSizeLimitError } from "./http-client-DS3UoC_p.js";
|
|
14
|
+
import { n as isMatrixReadySyncState, r as isMatrixTerminalSyncState, t as isMatrixDisconnectedSyncState } from "./sync-state-Bx0gPaGA.js";
|
|
15
|
+
import { a as resolveMatrixMessageBody, i as resolveMatrixMessageAttachment, n as formatMatrixMediaUnavailableText, r as formatMatrixMessageText, s as fetchMatrixPollSnapshot, t as formatMatrixMediaTooLargeText } from "./media-text-4h4YwCGC.js";
|
|
16
|
+
import { n as setActiveMatrixClient } from "./active-client-DUi-lumi.js";
|
|
17
|
+
import { t as isBunRuntime } from "./runtime-lwTSy9Yt.js";
|
|
18
|
+
import { c as backfillMatrixAuthDeviceIdAfterStartup, i as resolveSharedMatrixClient, l as resolveMatrixAuth, n as releaseSharedClientInstance, u as resolveMatrixAuthContext } from "./shared-BlXw87Kp.js";
|
|
19
|
+
import "./client-oci1tD6-.js";
|
|
20
|
+
import { d as resolveDefaultGroupPolicy, h as warnMissingProviderGroupPolicyFallbackOnce, m as resolveThreadBindingMaxAgeMsForChannel, p as resolveThreadBindingIdleTimeoutMsForChannel, t as GROUP_POLICY_BLOCKED_LABEL, u as resolveAllowlistProviderRuntimeGroupPolicy } from "./runtime-api-C-QeChQj.js";
|
|
21
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-DPqngj4V.js";
|
|
22
|
+
import { t as formatMatrixEncryptedEventDisabledWarning } from "./encryption-guidance-1QoIvd-g.js";
|
|
23
|
+
import { a as EventType, i as resolveMatrixThreadRouting, n as resolveMatrixReplyToEventId, o as RelationType, r as resolveMatrixThreadRootId, t as resolveMatrixInboundRoute } from "./route-R-ajT21_.js";
|
|
28
24
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
29
25
|
import { createPreviewMessageReceipt, defineFinalizableLivePreviewAdapter, deliverWithFinalizableLivePreviewAdapter } from "openclaw/plugin-sdk/channel-message";
|
|
30
26
|
import { CHANNEL_APPROVAL_NATIVE_RUNTIME_CONTEXT_CAPABILITY } from "openclaw/plugin-sdk/approval-handler-adapter-runtime";
|
|
@@ -40,6 +36,7 @@ import { createChannelIngressResolver, defineStableChannelIngressIdentity } from
|
|
|
40
36
|
import { buildChannelProgressDraftLineForEntry, createChannelProgressDraftGate, formatChannelProgressDraftLine, formatChannelProgressDraftLineForEntry, formatChannelProgressDraftText, isChannelProgressDraftWorkToolName, mergeChannelProgressDraftLine, normalizeChannelProgressDraftLineIdentity, resolveChannelProgressDraftMaxLines } from "openclaw/plugin-sdk/channel-streaming";
|
|
41
37
|
import { evaluateSupplementalContextVisibility, resolveChannelContextVisibilityMode } from "openclaw/plugin-sdk/context-visibility-runtime";
|
|
42
38
|
import { mergePairLoopGuardConfig } from "openclaw/plugin-sdk/pair-loop-guard-runtime";
|
|
39
|
+
import { buildInboundHistoryFromEntries } from "openclaw/plugin-sdk/reply-history";
|
|
43
40
|
import { resolvePinnedMainDmOwnerFromAllowlist } from "openclaw/plugin-sdk/security-runtime";
|
|
44
41
|
import { escapeRegExp } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
45
42
|
import { createConnectedChannelStatusPatch, createTransportActivityStatusPatch } from "openclaw/plugin-sdk/gateway-runtime";
|
|
@@ -800,7 +797,7 @@ const SAS_NOTICE_RETRY_DELAY_MS = 750;
|
|
|
800
797
|
const VERIFICATION_EVENT_STARTUP_GRACE_MS = 3e4;
|
|
801
798
|
let matrixDirectRoomDepsPromise;
|
|
802
799
|
async function loadMatrixDirectRoomDeps() {
|
|
803
|
-
matrixDirectRoomDepsPromise ??= Promise.all([import("./
|
|
800
|
+
matrixDirectRoomDepsPromise ??= Promise.all([import("./send-CdoJ1pZY.js").then((n) => n.d), import("./send-CdoJ1pZY.js").then((n) => n.m)]).then(([directManagementModule, directRoomModule]) => ({
|
|
804
801
|
inspectMatrixDirectRooms: directManagementModule.inspectMatrixDirectRooms,
|
|
805
802
|
isStrictDirectRoom: directRoomModule.isStrictDirectRoom
|
|
806
803
|
}));
|
|
@@ -2009,7 +2006,7 @@ let sessionBindingRuntimePromise;
|
|
|
2009
2006
|
let matrixReactionEventsPromise;
|
|
2010
2007
|
let matrixDraftStreamPromise;
|
|
2011
2008
|
function loadMatrixSendModule() {
|
|
2012
|
-
matrixSendModulePromise ??= import("./send-
|
|
2009
|
+
matrixSendModulePromise ??= import("./send-CdoJ1pZY.js").then((n) => n.l);
|
|
2013
2010
|
return matrixSendModulePromise;
|
|
2014
2011
|
}
|
|
2015
2012
|
function loadAcpBindingRuntime() {
|
|
@@ -2021,11 +2018,11 @@ function loadSessionBindingRuntime() {
|
|
|
2021
2018
|
return sessionBindingRuntimePromise;
|
|
2022
2019
|
}
|
|
2023
2020
|
function loadMatrixReactionEvents() {
|
|
2024
|
-
matrixReactionEventsPromise ??= import("./reaction-events-
|
|
2021
|
+
matrixReactionEventsPromise ??= import("./reaction-events-Dimh8FUE.js");
|
|
2025
2022
|
return matrixReactionEventsPromise;
|
|
2026
2023
|
}
|
|
2027
2024
|
function loadMatrixDraftStream() {
|
|
2028
|
-
matrixDraftStreamPromise ??= import("./draft-stream-
|
|
2025
|
+
matrixDraftStreamPromise ??= import("./draft-stream-BayHVmtO.js");
|
|
2029
2026
|
return matrixDraftStreamPromise;
|
|
2030
2027
|
}
|
|
2031
2028
|
const MAX_TRACKED_PAIRING_REPLY_SENDERS = 512;
|
|
@@ -2667,7 +2664,10 @@ function createMatrixRoomMessageHandler(params) {
|
|
|
2667
2664
|
shouldBypassMention,
|
|
2668
2665
|
canDetectMention,
|
|
2669
2666
|
commandAuthorized,
|
|
2670
|
-
inboundHistory: preparedTrigger
|
|
2667
|
+
inboundHistory: preparedTrigger ? buildInboundHistoryFromEntries({
|
|
2668
|
+
entries: preparedTrigger.history,
|
|
2669
|
+
limit: historyLimit
|
|
2670
|
+
}) : void 0,
|
|
2671
2671
|
senderName,
|
|
2672
2672
|
bodyText,
|
|
2673
2673
|
commandBodyText,
|
|
@@ -3692,11 +3692,11 @@ function createMatrixRoomInfoResolver(client) {
|
|
|
3692
3692
|
let matrixStartupMaintenanceDepsPromise;
|
|
3693
3693
|
async function loadMatrixStartupMaintenanceDeps() {
|
|
3694
3694
|
matrixStartupMaintenanceDepsPromise ??= Promise.all([
|
|
3695
|
-
import("./
|
|
3696
|
-
import("./device-health-
|
|
3697
|
-
import("./
|
|
3698
|
-
import("./legacy-crypto-restore-
|
|
3699
|
-
import("./startup-verification-
|
|
3695
|
+
import("./setup-core-CgOV8zmh.js").then((n) => n.s),
|
|
3696
|
+
import("./device-health-Di9MUzFj.js"),
|
|
3697
|
+
import("./setup-core-CgOV8zmh.js").then((n) => n.a),
|
|
3698
|
+
import("./legacy-crypto-restore-B9eF1gob.js"),
|
|
3699
|
+
import("./startup-verification-CTfhD7V_.js")
|
|
3700
3700
|
]).then(([configUpdateModule, deviceHealthModule, profileModule, legacyCryptoRestoreModule, startupVerificationModule]) => ({
|
|
3701
3701
|
updateMatrixAccountConfig: configUpdateModule.updateMatrixAccountConfig,
|
|
3702
3702
|
summarizeMatrixDeviceHealth: deviceHealthModule.summarizeMatrixDeviceHealth,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as formatMatrixErrorMessage } from "./errors-
|
|
1
|
+
import { t as formatMatrixErrorMessage } from "./errors-BpHgvm2o.js";
|
|
2
2
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
//#region extensions/matrix/src/plugin-entry.runtime.ts
|
|
4
4
|
let matrixVerificationRuntimePromise;
|
|
5
5
|
function loadMatrixVerificationRuntime() {
|
|
6
|
-
matrixVerificationRuntimePromise ??= import("./verification-
|
|
6
|
+
matrixVerificationRuntimePromise ??= import("./verification-DvC37Z_y.js").then((n) => n.y);
|
|
7
7
|
return matrixVerificationRuntimePromise;
|
|
8
8
|
}
|
|
9
9
|
function sendError(respond, err) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-Dog86njy.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as withResolvedActionClient } from "./client-DrmLRQnw.js";
|
|
2
|
+
import { c as resolveMatrixConfigPath, l as updateMatrixAccountConfig, o as syncMatrixOwnProfile } from "./setup-core-CgOV8zmh.js";
|
|
3
|
+
import { n as withResolvedActionClient } from "./client-D6fFVbNM.js";
|
|
5
4
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
6
5
|
//#region extensions/matrix/src/matrix/actions/profile.ts
|
|
7
6
|
async function updateMatrixOwnProfile(opts = {}) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as extractMatrixReactionAnnotation } from "./reaction-common-
|
|
3
|
-
import { a as unregisterMatrixApprovalReactionTarget, i as resolveMatrixApprovalReactionTargetWithPersistence } from "./approval-reactions-
|
|
4
|
-
import { i as resolveMatrixThreadRouting, r as resolveMatrixThreadRootId, t as resolveMatrixInboundRoute } from "./route-
|
|
1
|
+
import { c as resolveMatrixAccountConfig } from "./config-paths-msaDGRh6.js";
|
|
2
|
+
import { a as extractMatrixReactionAnnotation } from "./reaction-common-B-QgNfEs.js";
|
|
3
|
+
import { a as unregisterMatrixApprovalReactionTarget, i as resolveMatrixApprovalReactionTargetWithPersistence } from "./approval-reactions-Cwd1PMCC.js";
|
|
4
|
+
import { i as resolveMatrixThreadRouting, r as resolveMatrixThreadRootId, t as resolveMatrixInboundRoute } from "./route-R-ajT21_.js";
|
|
5
5
|
import { getSessionBindingService } from "openclaw/plugin-sdk/session-binding-runtime";
|
|
6
6
|
//#region extensions/matrix/src/matrix/monitor/reaction-events.ts
|
|
7
7
|
let approvalReactionAuthPromise;
|
|
8
8
|
let execApprovalResolverPromise;
|
|
9
9
|
function loadApprovalReactionAuth() {
|
|
10
|
-
approvalReactionAuthPromise ??= import("./approval-reaction-auth-
|
|
10
|
+
approvalReactionAuthPromise ??= import("./approval-reaction-auth-99PRu7rF.js");
|
|
11
11
|
return approvalReactionAuthPromise;
|
|
12
12
|
}
|
|
13
13
|
function loadExecApprovalResolver() {
|
|
14
|
-
execApprovalResolverPromise ??= import("./exec-approval-resolver-
|
|
14
|
+
execApprovalResolverPromise ??= import("./exec-approval-resolver-C8faS0XB.js");
|
|
15
15
|
return execApprovalResolverPromise;
|
|
16
16
|
}
|
|
17
17
|
function resolveMatrixReactionNotificationMode(params) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
2
|
import { n as normalizeMatrixMessagingTarget, t as isMatrixQualifiedUserId } from "./target-ids-80nQ2gql.js";
|
|
3
|
-
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-
|
|
3
|
+
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-BCfx1C0G.js";
|
|
4
4
|
import { normalizeOptionalLowercaseString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
//#region extensions/matrix/src/resolve-targets.ts
|
|
6
6
|
var resolve_targets_exports = /* @__PURE__ */ __exportAll({ resolveMatrixTargets: () => resolveMatrixTargets });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
1
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-DPqngj4V.js";
|
|
2
2
|
//#region extensions/matrix/src/resolver.runtime.ts
|
|
3
3
|
const matrixResolverRuntime = { resolveMatrixTargets };
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-
|
|
1
|
+
import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-B-QgNfEs.js";
|
|
2
2
|
import { buildAgentSessionKey, deriveLastRoutePolicy, resolveAgentIdFromSessionKey, resolveThreadSessionKeys } from "openclaw/plugin-sdk/routing";
|
|
3
3
|
import { resolveConfiguredAcpBindingRecord } from "openclaw/plugin-sdk/acp-binding-resolve-runtime";
|
|
4
4
|
import { getSessionBindingService } from "openclaw/plugin-sdk/session-binding-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./timeout-abort-signal-
|
|
1
|
+
import "./timeout-abort-signal-sT0wAxVn.js";
|
|
2
2
|
import "openclaw/plugin-sdk/account-id";
|
|
3
3
|
import { resolveThreadBindingIdleTimeoutMsForChannel, resolveThreadBindingMaxAgeMsForChannel } from "openclaw/plugin-sdk/conversation-runtime";
|
|
4
4
|
import "openclaw/plugin-sdk/channel-message";
|
package/dist/runtime-api.js
CHANGED
|
@@ -3,7 +3,7 @@ import { a as resolveMatrixDefaultOrOnlyAccountId, i as resolveMatrixChannelConf
|
|
|
3
3
|
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./env-vars-C7uQCTKn.js";
|
|
4
4
|
import { r as setMatrixRuntime } from "./runtime-Dog86njy.js";
|
|
5
5
|
import { a as resolveMatrixCredentialsPath, c as resolveMatrixLegacyFlatStoreRoot, i as resolveMatrixCredentialsFilename, l as sanitizeMatrixPathSegment, n as resolveMatrixAccountStorageRoot, o as resolveMatrixHomeserverKey, r as resolveMatrixCredentialsDir, s as resolveMatrixLegacyFlatStoragePaths, t as hashMatrixAccessToken } from "./storage-paths-BJLdnCjV.js";
|
|
6
|
-
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-
|
|
6
|
+
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-LqqGWPWt.js";
|
|
7
7
|
import { assertHttpUrlTargetsPrivateNetwork, closeDispatcher, createPinnedDispatcher, resolvePinnedHostnameWithPolicy, ssrfPolicyFromAllowPrivateNetwork, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
8
8
|
import { writeJsonFileAtomically } from "openclaw/plugin-sdk/json-store";
|
|
9
9
|
import { formatZonedTimestamp } from "openclaw/plugin-sdk/time-runtime";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as detectLegacyMatrixCrypto, i as autoPrepareLegacyMatrixCrypto, n as hasPendingMatrixMigration, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus, s as detectLegacyMatrixState, t as hasActionableMatrixMigration } from "./matrix-migration.runtime-
|
|
2
|
-
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-
|
|
1
|
+
import { a as detectLegacyMatrixCrypto, i as autoPrepareLegacyMatrixCrypto, n as hasPendingMatrixMigration, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus, s as detectLegacyMatrixState, t as hasActionableMatrixMigration } from "./matrix-migration.runtime-Cf_wX9mk.js";
|
|
2
|
+
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-BWTIFXgQ.js";
|
|
3
3
|
export { autoMigrateLegacyMatrixState, autoPrepareLegacyMatrixCrypto, detectLegacyMatrixCrypto, detectLegacyMatrixState, hasActionableMatrixMigration, hasPendingMatrixMigration, maybeCreateMatrixMigrationSnapshot, resolveMatrixMigrationStatus };
|