@openclaw/matrix 2026.5.27 → 2026.5.28-beta.2
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-D2nZfRw6.js → approval-handler.runtime-pR4jcWts.js} +7 -37
- package/dist/{approval-ids-DzBw_AG3.js → approval-ids-BsGUOwIc.js} +1 -1
- package/dist/{approval-reaction-auth-BvK3dXMH.js → approval-reaction-auth-CstZA90i.js} +2 -2
- package/dist/{channel-BLuA_9If.js → channel-EfS9AcXo.js} +15 -15
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-CCAsyp75.js → channel.runtime-BSL4fCB_.js} +7 -7
- package/dist/{cli-Bo50M7l4.js → cli-CYLqmzNw.js} +15 -14
- package/dist/{cli-metadata-CqUHNx_0.js → cli-metadata-TxtMWnLo.js} +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/{client-QO7vDxm0.js → client-D6nL0ymL.js} +2 -2
- package/dist/{client-BgsOzckO.js → client-DxQ7tWJq.js} +2 -2
- package/dist/{client-bootstrap-DK9i3KZ5.js → client-bootstrap-BtddaQGi.js} +1 -1
- package/dist/{config-schema-DuSRVdwT.js → config-schema-CRsTmqKY.js} +1 -1
- package/dist/contract-api.js +3 -3
- package/dist/{create-client-hdBEoEIm.js → create-client-D5Ie4y1a.js} +2 -2
- package/dist/{crypto-runtime-BcQzS9DV.js → crypto-runtime-CpQeK8kh.js} +4 -4
- package/dist/{deps-CAdiytPJ.js → deps-BVWGd2XS.js} +12 -2
- package/dist/{directory-live-2-Vb6nss.js → directory-live-kLKfwyDt.js} +2 -2
- package/dist/{doctor-qLh9PyE4.js → doctor-CENc9ks0.js} +1 -1
- package/dist/{draft-stream-BBVqdEbn.js → draft-stream-D7KMDYlS.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{legacy-crypto-inspector-BRdo-WqV.js → legacy-crypto-inspector-tJOj25VL.js} +1 -1
- package/dist/{logging-BR-gcAjp.js → logging-BD9Wmviv.js} +2 -9
- package/dist/{matrix-migration.runtime-BhJb4ZII.js → matrix-migration.runtime-CZOep_JX.js} +1 -1
- package/dist/{media-text-C6q1S0AJ.js → media-text-ybU6tiB2.js} +1 -1
- package/dist/{messages-D-VxmWkC.js → messages-CHjewhaA.js} +5 -5
- package/dist/{monitor-DO1yiHWm.js → monitor-DjfcOAje.js} +25 -26
- package/dist/plugin-entry.handlers.runtime.js +1 -1
- package/dist/probe.runtime-BjFSknLp.js +3 -0
- package/dist/{profile-update-B_LpeC8E.js → profile-update-B4HzVfDS.js} +2 -2
- package/dist/{reaction-events-BefH3-Gu.js → reaction-events-gK5X5uu5.js} +1 -1
- package/dist/recovery-key-store-B3-wYrMU.js +294 -0
- package/dist/{resolve-targets-BPhBqXyj.js → resolve-targets-DaTQqtPq.js} +1 -1
- package/dist/{resolver.runtime-BOS3foyc.js → resolver.runtime-Dj10Iq3r.js} +1 -1
- package/dist/{runtime-api-B-jlPE4A.js → runtime-api-CsF7Kokd.js} +2 -2
- package/dist/runtime-api.js +1 -1
- package/dist/runtime-heavy-api.js +1 -1
- package/dist/{sdk-BKBZkPKt.js → sdk-DTo3Hzko.js} +14 -304
- package/dist/{send-DivaFHb1.js → send-DX-aOjPW.js} +1 -1
- package/dist/{setup-bootstrap-ClcP-tDQ.js → setup-bootstrap-D9XeWu6O.js} +2 -2
- package/dist/{setup-core-s8s_Qudu.js → setup-core-BU4BO6DB.js} +7 -2
- package/dist/setup-plugin-api.js +3 -3
- package/dist/{setup-surface-BOt10HNf.js → setup-surface-BIFSsw6q.js} +5 -5
- package/dist/{shared-3K27tl8e.js → shared-CZ622gSf.js} +113 -5
- package/dist/{thread-bindings-CLjJrThw.js → thread-bindings-DjC1mhh_.js} +1 -1
- package/dist/{tool-actions.runtime-Vky1krcK.js → tool-actions.runtime-D4A9O27R.js} +20 -21
- package/dist/{verification-Dar6QON4.js → verification-CUSz9cFP.js} +1 -1
- package/node_modules/linkify-it/build/index.cjs.js +99 -94
- package/node_modules/linkify-it/index.mjs +99 -94
- package/node_modules/linkify-it/package.json +11 -1
- package/node_modules/markdown-it/README.md +13 -17
- package/node_modules/markdown-it/dist/index.cjs.js +111 -31
- package/node_modules/markdown-it/dist/markdown-it.js +117 -31
- package/node_modules/markdown-it/dist/markdown-it.min.js +2 -2
- package/node_modules/markdown-it/lib/common/utils.mjs +30 -1
- package/node_modules/markdown-it/lib/index.mjs +1 -1
- package/node_modules/markdown-it/lib/rules_block/heading.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_block/html_block.mjs +12 -1
- package/node_modules/markdown-it/lib/rules_block/lheading.mjs +4 -1
- package/node_modules/markdown-it/lib/rules_block/paragraph.mjs +3 -1
- package/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +37 -21
- package/node_modules/markdown-it/lib/rules_inline/entity.mjs +2 -2
- package/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +37 -6
- package/node_modules/markdown-it/package.json +14 -3
- package/node_modules/matrix-js-sdk/CHANGELOG.md +7 -0
- package/node_modules/matrix-js-sdk/package.json +1 -1
- package/npm-shrinkwrap.json +35 -15
- package/package.json +6 -6
- package/dist/probe.runtime-9S17Q3Mo.js +0 -3
- package/dist/startup-abort-Bs0Up_Qx.js +0 -109
- package/dist/test-api.js +0 -4
package/dist/api.js
CHANGED
|
@@ -2,10 +2,10 @@ import { d as setMatrixThreadBindingIdleTimeoutBySessionKey, n as getMatrixThrea
|
|
|
2
2
|
import { a as resolveMatrixDefaultOrOnlyAccountId, i as resolveMatrixChannelConfig, n as requiresExplicitMatrixDefaultAccount, r as resolveConfiguredMatrixAccountIds, t as findMatrixAccountEntry } from "./account-selection-C3arLOhC.js";
|
|
3
3
|
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./env-vars-KzaYveuy.js";
|
|
4
4
|
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-BV2Z7bns.js";
|
|
5
|
-
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-
|
|
6
|
-
import { t as matrixPlugin } from "./channel-
|
|
7
|
-
import { n as matrixOnboardingAdapter } from "./setup-surface-
|
|
8
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
5
|
+
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-BU4BO6DB.js";
|
|
6
|
+
import { t as matrixPlugin } from "./channel-EfS9AcXo.js";
|
|
7
|
+
import { n as matrixOnboardingAdapter } from "./setup-surface-BIFSsw6q.js";
|
|
8
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-DjC1mhh_.js";
|
|
9
9
|
//#region extensions/matrix/api.ts
|
|
10
10
|
const matrixSessionBindingAdapterChannels = ["matrix"];
|
|
11
11
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as resolveMatrixTargetIdentity } from "./target-ids-B-5aQxwn.js";
|
|
2
|
-
import { g as resolveMatrixAccount } from "./setup-core-
|
|
3
|
-
import { _ as shouldHandleMatrixApprovalRequest, g as isMatrixAnyApprovalClientEnabled } from "./channel-
|
|
4
|
-
import { a as sendMessageMatrix, i as reactMatrixMessage, p as repairMatrixDirectRooms, s as sendSingleTextMessageMatrix } from "./send-
|
|
2
|
+
import { g as resolveMatrixAccount } from "./setup-core-BU4BO6DB.js";
|
|
3
|
+
import { _ as shouldHandleMatrixApprovalRequest, g as isMatrixAnyApprovalClientEnabled } from "./channel-EfS9AcXo.js";
|
|
4
|
+
import { a as sendMessageMatrix, i as reactMatrixMessage, p as repairMatrixDirectRooms, s as sendSingleTextMessageMatrix } from "./send-DX-aOjPW.js";
|
|
5
5
|
import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-BRGQgOu2.js";
|
|
6
|
-
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-
|
|
6
|
+
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-CHjewhaA.js";
|
|
7
7
|
import { normalizeUniqueStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
8
8
|
import { listMessageReceiptPlatformIds, resolveMessageReceiptPrimaryId } from "openclaw/plugin-sdk/channel-outbound";
|
|
9
9
|
import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
@@ -96,8 +96,7 @@ function buildMatrixApprovalMetadata(params) {
|
|
|
96
96
|
metadata: params.view.metadata,
|
|
97
97
|
allowedDecisions: Array.from(params.allowedDecisions),
|
|
98
98
|
actions: params.view.actions.map((action) => ({
|
|
99
|
-
|
|
100
|
-
...action.kind === "decision" ? { decision: action.decision } : {},
|
|
99
|
+
decision: action.decision,
|
|
101
100
|
label: action.label,
|
|
102
101
|
style: action.style,
|
|
103
102
|
command: action.command
|
|
@@ -126,36 +125,8 @@ function buildMatrixApprovalMetadata(params) {
|
|
|
126
125
|
...params.view.sessionKey != null ? { sessionKey: params.view.sessionKey } : {}
|
|
127
126
|
};
|
|
128
127
|
}
|
|
129
|
-
function listDecisionActions(view) {
|
|
130
|
-
return view.actions.flatMap((action) => action.kind === "decision" ? [action.decision] : []);
|
|
131
|
-
}
|
|
132
|
-
function listPluginApprovalActionDescriptors(view) {
|
|
133
|
-
if (view.approvalKind !== "plugin") return;
|
|
134
|
-
const actions = [];
|
|
135
|
-
for (const action of view.actions) {
|
|
136
|
-
if (action.kind !== "command" && action.kind !== "decision" || !action.command.trim() || !action.label.trim()) continue;
|
|
137
|
-
if (action.kind === "command") {
|
|
138
|
-
actions.push({
|
|
139
|
-
kind: "command",
|
|
140
|
-
label: action.label,
|
|
141
|
-
style: action.style,
|
|
142
|
-
command: action.command
|
|
143
|
-
});
|
|
144
|
-
continue;
|
|
145
|
-
}
|
|
146
|
-
actions.push({
|
|
147
|
-
kind: "decision",
|
|
148
|
-
label: action.label,
|
|
149
|
-
style: action.style,
|
|
150
|
-
command: action.command,
|
|
151
|
-
decision: action.decision
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
return actions.length > 0 ? actions : void 0;
|
|
155
|
-
}
|
|
156
128
|
function buildPendingApprovalContent(params) {
|
|
157
|
-
const allowedDecisions =
|
|
158
|
-
const pluginActions = listPluginApprovalActionDescriptors(params.view);
|
|
129
|
+
const allowedDecisions = params.view.actions.map((action) => action.decision);
|
|
159
130
|
const payload = params.view.approvalKind === "plugin" ? buildPluginApprovalPendingReplyPayload({
|
|
160
131
|
request: {
|
|
161
132
|
id: params.view.approvalId,
|
|
@@ -165,8 +136,7 @@ function buildPendingApprovalContent(params) {
|
|
|
165
136
|
severity: params.view.severity,
|
|
166
137
|
toolName: params.view.toolName ?? void 0,
|
|
167
138
|
pluginId: params.view.pluginId ?? void 0,
|
|
168
|
-
agentId: params.view.agentId ?? void 0
|
|
169
|
-
actions: pluginActions
|
|
139
|
+
agentId: params.view.agentId ?? void 0
|
|
170
140
|
},
|
|
171
141
|
createdAtMs: 0,
|
|
172
142
|
expiresAtMs: params.view.expiresAtMs
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as normalizeMatrixUserId } from "./config-schema-
|
|
1
|
+
import { a as normalizeMatrixUserId } from "./config-schema-CRsTmqKY.js";
|
|
2
2
|
//#region extensions/matrix/src/approval-ids.ts
|
|
3
3
|
function normalizeMatrixApproverId(value) {
|
|
4
4
|
return normalizeMatrixUserId(String(value)) || void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as resolveMatrixAccount } from "./setup-core-
|
|
2
|
-
import { t as normalizeMatrixApproverId } from "./approval-ids-
|
|
1
|
+
import { g as resolveMatrixAccount } from "./setup-core-BU4BO6DB.js";
|
|
2
|
+
import { t as normalizeMatrixApproverId } from "./approval-ids-BsGUOwIc.js";
|
|
3
3
|
import { resolveApprovalApprovers } from "openclaw/plugin-sdk/approval-auth-runtime";
|
|
4
4
|
//#region extensions/matrix/src/approval-reaction-auth.ts
|
|
5
5
|
function normalizeMatrixExecApproverId(value) {
|
|
@@ -2,13 +2,13 @@ import { a as resolveMatrixTargetIdentity, i as resolveMatrixDirectUserId, n as
|
|
|
2
2
|
import { d as setMatrixThreadBindingIdleTimeoutBySessionKey, p as setMatrixThreadBindingMaxAgeBySessionKey } from "./thread-bindings-shared-CKnY4LSd.js";
|
|
3
3
|
import { n as requiresExplicitMatrixDefaultAccount } from "./account-selection-C3arLOhC.js";
|
|
4
4
|
import { c as resolveMatrixAccountConfig } from "./config-paths-ZBCMwSos.js";
|
|
5
|
-
import { d as resolveSingleAccountPromotionTarget, f as singleAccountKeysToMove, g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, n as matrixSetupAdapter, p as listMatrixAccountIds, t as createMatrixSetupWizardProxy, u as namedAccountPromotionKeys } from "./setup-core-
|
|
6
|
-
import { a as normalizeMatrixUserId, n as DEFAULT_ACCOUNT_ID$2, r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-
|
|
7
|
-
import { t as normalizeMatrixApproverId } from "./approval-ids-
|
|
5
|
+
import { d as resolveSingleAccountPromotionTarget, f as singleAccountKeysToMove, g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, n as matrixSetupAdapter, p as listMatrixAccountIds, t as createMatrixSetupWizardProxy, u as namedAccountPromotionKeys } from "./setup-core-BU4BO6DB.js";
|
|
6
|
+
import { a as normalizeMatrixUserId, n as DEFAULT_ACCOUNT_ID$2, r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-CRsTmqKY.js";
|
|
7
|
+
import { t as normalizeMatrixApproverId } from "./approval-ids-BsGUOwIc.js";
|
|
8
8
|
import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
9
9
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-D9oKDvsJ.js";
|
|
10
10
|
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DTgQyQxc.js";
|
|
11
|
-
import { i as autoPrepareLegacyMatrixCrypto, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus } from "./matrix-migration.runtime-
|
|
11
|
+
import { i as autoPrepareLegacyMatrixCrypto, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus } from "./matrix-migration.runtime-CZOep_JX.js";
|
|
12
12
|
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-YcCrSjbE.js";
|
|
13
13
|
import { n as resolveMatrixInboundConversation } from "./thread-binding-api-DRbBZlhS.js";
|
|
14
14
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
@@ -23,7 +23,7 @@ import { createChannelDirectoryAdapter, createResolvedDirectoryEntriesLister, cr
|
|
|
23
23
|
import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
|
|
24
24
|
import { buildProbeChannelStatusSummary, collectStatusIssuesFromLastError, createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
|
|
25
25
|
import { chunkTextForOutbound } from "openclaw/plugin-sdk/text-chunking";
|
|
26
|
-
import { ToolAuthorizationError, createActionGate,
|
|
26
|
+
import { ToolAuthorizationError, createActionGate, readPositiveIntegerParam, readStringParam } from "openclaw/plugin-sdk/channel-actions";
|
|
27
27
|
import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
|
|
28
28
|
import { Type } from "typebox";
|
|
29
29
|
import { createApproverRestrictedNativeApprovalCapability, createChannelApprovalCapability, splitChannelApprovalCapability } from "openclaw/plugin-sdk/approval-delivery-runtime";
|
|
@@ -129,7 +129,7 @@ const matrixMessageActions = {
|
|
|
129
129
|
return extractToolSend(args, "sendMessage");
|
|
130
130
|
},
|
|
131
131
|
handleAction: async (ctx) => {
|
|
132
|
-
const { handleMatrixAction } = await import("./tool-actions.runtime-
|
|
132
|
+
const { handleMatrixAction } = await import("./tool-actions.runtime-D4A9O27R.js");
|
|
133
133
|
const { action, params, cfg, accountId, mediaLocalRoots } = ctx;
|
|
134
134
|
const dispatch = async (actionParams) => await handleMatrixAction({
|
|
135
135
|
...actionParams,
|
|
@@ -174,7 +174,7 @@ const matrixMessageActions = {
|
|
|
174
174
|
}
|
|
175
175
|
if (action === "reactions") {
|
|
176
176
|
const messageId = readStringParam(params, "messageId", { required: true });
|
|
177
|
-
const limit =
|
|
177
|
+
const limit = readPositiveIntegerParam(params, "limit", { message: "limit must be a positive integer." });
|
|
178
178
|
return await dispatch({
|
|
179
179
|
action: "reactions",
|
|
180
180
|
roomId: resolveRoomId(),
|
|
@@ -183,7 +183,7 @@ const matrixMessageActions = {
|
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
if (action === "read") {
|
|
186
|
-
const limit =
|
|
186
|
+
const limit = readPositiveIntegerParam(params, "limit", { message: "limit must be a positive integer." });
|
|
187
187
|
return await dispatch({
|
|
188
188
|
action: "readMessages",
|
|
189
189
|
roomId: resolveRoomId(),
|
|
@@ -593,7 +593,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
|
|
|
593
593
|
accountId,
|
|
594
594
|
request
|
|
595
595
|
}),
|
|
596
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
596
|
+
load: async () => (await import("./approval-handler.runtime-pR4jcWts.js")).matrixApprovalNativeRuntime
|
|
597
597
|
})
|
|
598
598
|
});
|
|
599
599
|
const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
|
|
@@ -755,7 +755,7 @@ function resolveMatrixGroupToolPolicy(params) {
|
|
|
755
755
|
}
|
|
756
756
|
//#endregion
|
|
757
757
|
//#region extensions/matrix/src/resolver.ts
|
|
758
|
-
const loadMatrixChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./resolver.runtime-
|
|
758
|
+
const loadMatrixChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./resolver.runtime-Dj10Iq3r.js"), "matrixResolverRuntime");
|
|
759
759
|
const matrixResolverAdapter = { resolveTargets: async ({ cfg, accountId, inputs, kind, runtime }) => (await loadMatrixChannelRuntime$1()).resolveMatrixTargets({
|
|
760
760
|
cfg,
|
|
761
761
|
accountId,
|
|
@@ -944,8 +944,8 @@ async function runMatrixStartupMaintenance(params) {
|
|
|
944
944
|
//#endregion
|
|
945
945
|
//#region extensions/matrix/src/channel.ts
|
|
946
946
|
let matrixStartupLock = Promise.resolve();
|
|
947
|
-
const loadMatrixSetupWizard = createLazyRuntimeNamedExport(() => import("./setup-surface-
|
|
948
|
-
const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
947
|
+
const loadMatrixSetupWizard = createLazyRuntimeNamedExport(() => import("./setup-surface-BIFSsw6q.js").then((n) => n.t), "matrixSetupWizard");
|
|
948
|
+
const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-BSL4fCB_.js"), "matrixChannelRuntime");
|
|
949
949
|
const meta = {
|
|
950
950
|
id: "matrix",
|
|
951
951
|
label: "Matrix",
|
|
@@ -970,12 +970,12 @@ const matrixDoctor = {
|
|
|
970
970
|
warnOnEmptyGroupSenderAllowlist: true,
|
|
971
971
|
legacyConfigRules,
|
|
972
972
|
normalizeCompatibilityConfig,
|
|
973
|
-
runConfigSequence: async ({ cfg, env, shouldRepair }) => await (await import("./doctor-
|
|
973
|
+
runConfigSequence: async ({ cfg, env, shouldRepair }) => await (await import("./doctor-CENc9ks0.js")).runMatrixDoctorSequence({
|
|
974
974
|
cfg,
|
|
975
975
|
env,
|
|
976
976
|
shouldRepair
|
|
977
977
|
}),
|
|
978
|
-
cleanStaleConfig: async ({ cfg }) => await (await import("./doctor-
|
|
978
|
+
cleanStaleConfig: async ({ cfg }) => await (await import("./doctor-CENc9ks0.js")).cleanStaleMatrixPluginConfig(cfg)
|
|
979
979
|
};
|
|
980
980
|
const listMatrixDirectoryPeersFromConfig = createResolvedDirectoryEntriesLister({
|
|
981
981
|
kind: "user",
|
|
@@ -1316,7 +1316,7 @@ const matrixPlugin = createChatChannelPlugin({
|
|
|
1316
1316
|
await previousLock;
|
|
1317
1317
|
let monitorMatrixProvider;
|
|
1318
1318
|
try {
|
|
1319
|
-
monitorMatrixProvider = (await import("./monitor-
|
|
1319
|
+
monitorMatrixProvider = (await import("./monitor-DjfcOAje.js")).monitorMatrixProvider;
|
|
1320
1320
|
} finally {
|
|
1321
1321
|
releaseLock();
|
|
1322
1322
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as matrixPlugin } from "./channel-
|
|
1
|
+
import { t as matrixPlugin } from "./channel-EfS9AcXo.js";
|
|
2
2
|
export { matrixPlugin };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as sendMessageMatrix, c as sendTypingMatrix, o as sendPollMatrix } from "./send-
|
|
1
|
+
import { a as sendMessageMatrix, c as sendTypingMatrix, o as sendPollMatrix } from "./send-DX-aOjPW.js";
|
|
2
2
|
import { t as isBunRuntime } from "./runtime-BefyhPWv.js";
|
|
3
|
-
import {
|
|
4
|
-
import "./client-
|
|
5
|
-
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-
|
|
6
|
-
import { f as resolveOutboundSendDep, n as chunkTextForOutbound } from "./runtime-api-
|
|
7
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
3
|
+
import { g as resolveMatrixAuth } from "./shared-CZ622gSf.js";
|
|
4
|
+
import "./client-D6nL0ymL.js";
|
|
5
|
+
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-kLKfwyDt.js";
|
|
6
|
+
import { f as resolveOutboundSendDep, n as chunkTextForOutbound } from "./runtime-api-CsF7Kokd.js";
|
|
7
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-DaTQqtPq.js";
|
|
8
8
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
9
9
|
import { createReplyToFanout } from "openclaw/plugin-sdk/channel-outbound";
|
|
10
10
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
@@ -13,7 +13,7 @@ import { resolvePayloadMediaUrls } from "openclaw/plugin-sdk/reply-payload";
|
|
|
13
13
|
//#region extensions/matrix/src/matrix/probe.ts
|
|
14
14
|
let matrixProbeRuntimeDepsPromise;
|
|
15
15
|
async function loadMatrixProbeRuntimeDeps() {
|
|
16
|
-
matrixProbeRuntimeDepsPromise ??= import("./probe.runtime-
|
|
16
|
+
matrixProbeRuntimeDepsPromise ??= import("./probe.runtime-BjFSknLp.js").then((runtimeModule) => ({ createMatrixClient: runtimeModule.createMatrixClient }));
|
|
17
17
|
return await matrixProbeRuntimeDepsPromise;
|
|
18
18
|
}
|
|
19
19
|
async function probeMatrix(params) {
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { c as resolveMatrixAccountConfig } from "./config-paths-ZBCMwSos.js";
|
|
2
2
|
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
3
|
-
import { c as resolveMatrixConfigPath, g as resolveMatrixAccount, l as updateMatrixAccountConfig, n as matrixSetupAdapter } from "./setup-core-
|
|
3
|
+
import { c as resolveMatrixConfigPath, g as resolveMatrixAccount, l as updateMatrixAccountConfig, n as matrixSetupAdapter } from "./setup-core-BU4BO6DB.js";
|
|
4
4
|
import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import "./client-QO7vDxm0.js";
|
|
10
|
-
import { i as formatZonedTimestamp } from "./runtime-api-B-jlPE4A.js";
|
|
5
|
+
import { n as withResolvedActionClient } from "./client-DxQ7tWJq.js";
|
|
6
|
+
import { _ as resolveMatrixAuthContext } from "./shared-CZ622gSf.js";
|
|
7
|
+
import "./client-D6nL0ymL.js";
|
|
8
|
+
import { i as formatZonedTimestamp } from "./runtime-api-CsF7Kokd.js";
|
|
11
9
|
import { isOpenClawManagedMatrixDevice, summarizeMatrixDeviceHealth } from "./device-health-D4LBxuPq.js";
|
|
12
|
-
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-
|
|
13
|
-
import { a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, g as runMatrixSelfVerification, h as restoreMatrixRoomKeyBackup, l as getMatrixVerificationSas, m as resetMatrixRoomKeyBackup, n as bootstrapMatrixVerification, p as requestMatrixVerification, r as cancelMatrixVerification, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-
|
|
10
|
+
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-B4HzVfDS.js";
|
|
11
|
+
import { a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, g as runMatrixSelfVerification, h as restoreMatrixRoomKeyBackup, l as getMatrixVerificationSas, m as resetMatrixRoomKeyBackup, n as bootstrapMatrixVerification, p as requestMatrixVerification, r as cancelMatrixVerification, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-CUSz9cFP.js";
|
|
12
|
+
import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-Dm_YMVFT.js";
|
|
13
|
+
import { setMatrixSdkConsoleLogging, setMatrixSdkLogMode } from "./logging-BD9Wmviv.js";
|
|
14
14
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
15
|
+
import { parseStrictInteger } from "openclaw/plugin-sdk/number-runtime";
|
|
15
16
|
//#region extensions/matrix/src/matrix/actions/devices.ts
|
|
16
17
|
async function listMatrixOwnDevices(opts = {}) {
|
|
17
18
|
return await withResolvedActionClient(opts, async (client) => await client.listOwnDevices());
|
|
@@ -37,11 +38,11 @@ let matrixCliExitScheduled = false;
|
|
|
37
38
|
let matrixActionClientModulePromise;
|
|
38
39
|
let matrixDirectManagementModulePromise;
|
|
39
40
|
function loadMatrixActionClientModule() {
|
|
40
|
-
matrixActionClientModulePromise ??= import("./client-
|
|
41
|
+
matrixActionClientModulePromise ??= import("./client-DxQ7tWJq.js").then((n) => n.t);
|
|
41
42
|
return matrixActionClientModulePromise;
|
|
42
43
|
}
|
|
43
44
|
function loadMatrixDirectManagementModule() {
|
|
44
|
-
matrixDirectManagementModulePromise ??= import("./send-
|
|
45
|
+
matrixDirectManagementModulePromise ??= import("./send-DX-aOjPW.js").then((n) => n.d);
|
|
45
46
|
return matrixDirectManagementModulePromise;
|
|
46
47
|
}
|
|
47
48
|
function scheduleMatrixCliExit() {
|
|
@@ -155,8 +156,8 @@ function parseOptionalInt(value, fieldName) {
|
|
|
155
156
|
const trimmed = value?.trim();
|
|
156
157
|
if (!trimmed) return;
|
|
157
158
|
if (!/^-?\d+$/.test(trimmed)) throw new Error(`${fieldName} must be an integer`);
|
|
158
|
-
const parsed =
|
|
159
|
-
if (
|
|
159
|
+
const parsed = parseStrictInteger(trimmed);
|
|
160
|
+
if (parsed === void 0) throw new Error(`${fieldName} must be an integer`);
|
|
160
161
|
return parsed;
|
|
161
162
|
}
|
|
162
163
|
async function addMatrixAccount(params) {
|
|
@@ -208,7 +209,7 @@ async function addMatrixAccount(params) {
|
|
|
208
209
|
backupVersion: null
|
|
209
210
|
};
|
|
210
211
|
if (accountConfig.encryption === true) {
|
|
211
|
-
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-
|
|
212
|
+
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-D9XeWu6O.js");
|
|
212
213
|
verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
|
|
213
214
|
previousCfg: cfg,
|
|
214
215
|
cfg: updated,
|
|
@@ -2,7 +2,7 @@ import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
|
2
2
|
//#region extensions/matrix/src/cli-metadata.ts
|
|
3
3
|
function registerMatrixCliMetadata(api) {
|
|
4
4
|
api.registerCli(async ({ program }) => {
|
|
5
|
-
const { registerMatrixCli } = await import("./cli-
|
|
5
|
+
const { registerMatrixCli } = await import("./cli-CYLqmzNw.js");
|
|
6
6
|
registerMatrixCli({ program });
|
|
7
7
|
}, { descriptors: [{
|
|
8
8
|
name: "matrix",
|
package/dist/cli-metadata.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as registerMatrixCliMetadata, t as cli_metadata_default } from "./cli-metadata-
|
|
1
|
+
import { n as registerMatrixCliMetadata, t as cli_metadata_default } from "./cli-metadata-TxtMWnLo.js";
|
|
2
2
|
export { cli_metadata_default as default, registerMatrixCliMetadata };
|
|
@@ -3,8 +3,8 @@ import { t as getMatrixScopedEnvVarNames } from "./env-vars-KzaYveuy.js";
|
|
|
3
3
|
import { i as resolveScopedMatrixEnvConfig, r as resolveMatrixEnvAuthReadiness, t as hasReadyMatrixEnvAuth } from "./env-auth-DIzOApj0.js";
|
|
4
4
|
import { n as validateMatrixHomeserverUrl, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-GRHde6lq.js";
|
|
5
5
|
import { t as isBunRuntime } from "./runtime-BefyhPWv.js";
|
|
6
|
-
import {
|
|
7
|
-
import { t as createMatrixClient } from "./create-client-
|
|
6
|
+
import { _ as resolveMatrixAuthContext, g as resolveMatrixAuth, h as backfillMatrixAuthDeviceIdAfterStartup, i as resolveSharedMatrixClient, n as releaseSharedClientInstance, o as stopSharedClientForAccount, r as removeSharedClientInstance, s as stopSharedClientInstance, t as acquireSharedMatrixClient, v as resolveMatrixConfigForAccount } from "./shared-CZ622gSf.js";
|
|
7
|
+
import { t as createMatrixClient } from "./create-client-D5Ie4y1a.js";
|
|
8
8
|
//#region extensions/matrix/src/matrix/client.ts
|
|
9
9
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
10
10
|
acquireSharedMatrixClient: () => acquireSharedMatrixClient,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { u as resolveMatrixRoomId } from "./send-
|
|
3
|
-
import { n as withResolvedRuntimeMatrixClient } from "./client-bootstrap-
|
|
2
|
+
import { u as resolveMatrixRoomId } from "./send-DX-aOjPW.js";
|
|
3
|
+
import { n as withResolvedRuntimeMatrixClient } from "./client-bootstrap-BtddaQGi.js";
|
|
4
4
|
//#region extensions/matrix/src/matrix/actions/client.ts
|
|
5
5
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
withResolvedActionClient: () => withResolvedActionClient,
|
|
@@ -10,7 +10,7 @@ var client_bootstrap_exports = /* @__PURE__ */ __exportAll({
|
|
|
10
10
|
});
|
|
11
11
|
let matrixSharedClientRuntimeDepsPromise;
|
|
12
12
|
async function loadMatrixSharedClientRuntimeDeps() {
|
|
13
|
-
matrixSharedClientRuntimeDepsPromise ??= Promise.all([import("./client-
|
|
13
|
+
matrixSharedClientRuntimeDepsPromise ??= Promise.all([import("./client-D6nL0ymL.js").then((n) => n.t), import("./shared-CZ622gSf.js").then((n) => n.a)]).then(([clientModule, sharedModule]) => ({
|
|
14
14
|
acquireSharedMatrixClient: clientModule.acquireSharedMatrixClient,
|
|
15
15
|
resolveMatrixAuthContext: clientModule.resolveMatrixAuthContext,
|
|
16
16
|
releaseSharedClientInstance: sharedModule.releaseSharedClientInstance
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as resolveMatrixAccountConfig } from "./config-paths-ZBCMwSos.js";
|
|
2
|
-
import { g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, p as listMatrixAccountIds } from "./setup-core-
|
|
2
|
+
import { g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, p as listMatrixAccountIds } from "./setup-core-BU4BO6DB.js";
|
|
3
3
|
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1 } from "openclaw/plugin-sdk/account-id";
|
|
4
4
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
package/dist/contract-api.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { s as resetMatrixThreadBindingsForTests } from "./thread-bindings-shared-CKnY4LSd.js";
|
|
2
2
|
import { r as setMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
3
|
-
import { d as resolveSingleAccountPromotionTarget, f as singleAccountKeysToMove, n as matrixSetupAdapter, u as namedAccountPromotionKeys } from "./setup-core-
|
|
3
|
+
import { d as resolveSingleAccountPromotionTarget, f as singleAccountKeysToMove, n as matrixSetupAdapter, u as namedAccountPromotionKeys } from "./setup-core-BU4BO6DB.js";
|
|
4
4
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-D9oKDvsJ.js";
|
|
5
5
|
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DTgQyQxc.js";
|
|
6
|
-
import { n as matrixOnboardingAdapter } from "./setup-surface-
|
|
7
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
6
|
+
import { n as matrixOnboardingAdapter } from "./setup-surface-BIFSsw6q.js";
|
|
7
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-DjC1mhh_.js";
|
|
8
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-8H4AJuhK.js";
|
|
2
2
|
import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-GRHde6lq.js";
|
|
3
3
|
import { a as resolveMatrixStoragePaths, n as maybeMigrateLegacyStorage, o as writeStorageMeta } from "./storage-onzulLbU.js";
|
|
4
|
-
import "./shared-
|
|
4
|
+
import "./shared-CZ622gSf.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-DTo3Hzko.js"), import("./logging-BD9Wmviv.js")]).then(([sdkModule, loggingModule]) => ({
|
|
13
13
|
MatrixClient: sdkModule.MatrixClient,
|
|
14
14
|
ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
|
|
15
15
|
}));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
2
|
-
import { t as ensureMatrixCryptoRuntime } from "./deps-
|
|
3
|
-
import {
|
|
4
|
-
import { i as MATRIX_IDB_SNAPSHOT_LOCK_OPTIONS,
|
|
2
|
+
import { t as ensureMatrixCryptoRuntime } from "./deps-BVWGd2XS.js";
|
|
3
|
+
import { f as LogService, p as noop } from "./shared-CZ622gSf.js";
|
|
4
|
+
import { i as MATRIX_IDB_SNAPSHOT_LOCK_OPTIONS, n as isRepairableSecretStorageAccessError } from "./recovery-key-store-B3-wYrMU.js";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
import path from "node:path";
|
|
7
|
+
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
7
8
|
import { MatrixEventEvent } from "matrix-js-sdk/lib/matrix.js";
|
|
8
9
|
import { VerificationMethod } from "matrix-js-sdk/lib/types.js";
|
|
9
|
-
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
10
10
|
import "fake-indexeddb/auto";
|
|
11
11
|
import { CryptoEvent } from "matrix-js-sdk/lib/crypto-api/CryptoEvent.js";
|
|
12
12
|
import { DecryptionFailureCode } from "matrix-js-sdk/lib/crypto-api/index.js";
|
|
@@ -10,6 +10,7 @@ const REQUIRED_MATRIX_PACKAGES = [
|
|
|
10
10
|
"@matrix-org/matrix-sdk-crypto-wasm"
|
|
11
11
|
];
|
|
12
12
|
const MIN_MATRIX_CRYPTO_NATIVE_BINDING_BYTES = 1e6;
|
|
13
|
+
const MATRIX_COMMAND_OUTPUT_TAIL_BYTES = 64 * 1024;
|
|
13
14
|
function resolveMissingMatrixPackages(resolveFn) {
|
|
14
15
|
const resolve = resolveFn ?? defaultResolveFn;
|
|
15
16
|
return REQUIRED_MATRIX_PACKAGES.filter((pkg) => {
|
|
@@ -28,6 +29,15 @@ function buildMatrixDepsMissingMessage(missing) {
|
|
|
28
29
|
return [`Matrix plugin dependencies are missing: ${missing.join(", ")}.`, "Repair this plugin with `openclaw plugins update matrix` or run `openclaw doctor --fix`."].join(" ");
|
|
29
30
|
}
|
|
30
31
|
let defaultMatrixCryptoRuntimeEnsurePromise = null;
|
|
32
|
+
function appendBoundedOutputTail(current, chunk) {
|
|
33
|
+
const chunkBuffer = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
34
|
+
if (chunkBuffer.byteLength >= 65536) return chunkBuffer.subarray(chunkBuffer.byteLength - MATRIX_COMMAND_OUTPUT_TAIL_BYTES).toString("utf8");
|
|
35
|
+
const currentBuffer = Buffer.from(current);
|
|
36
|
+
if (currentBuffer.byteLength + chunkBuffer.byteLength <= 65536) return `${current}${chunkBuffer.toString("utf8")}`;
|
|
37
|
+
const currentTailBytes = MATRIX_COMMAND_OUTPUT_TAIL_BYTES - chunkBuffer.byteLength;
|
|
38
|
+
const currentTail = currentBuffer.subarray(currentBuffer.byteLength - currentTailBytes);
|
|
39
|
+
return Buffer.concat([currentTail, chunkBuffer], MATRIX_COMMAND_OUTPUT_TAIL_BYTES).toString("utf8");
|
|
40
|
+
}
|
|
31
41
|
async function runFixedCommandWithTimeout(params) {
|
|
32
42
|
return await new Promise((resolve) => {
|
|
33
43
|
const [command, ...args] = params.argv;
|
|
@@ -67,10 +77,10 @@ async function runFixedCommandWithTimeout(params) {
|
|
|
67
77
|
};
|
|
68
78
|
process.once("exit", killChildOnExit);
|
|
69
79
|
proc.stdout?.on("data", (chunk) => {
|
|
70
|
-
stdout
|
|
80
|
+
stdout = appendBoundedOutputTail(stdout, chunk);
|
|
71
81
|
});
|
|
72
82
|
proc.stderr?.on("data", (chunk) => {
|
|
73
|
-
stderr
|
|
83
|
+
stderr = appendBoundedOutputTail(stderr, chunk);
|
|
74
84
|
});
|
|
75
85
|
timer = setTimeout(() => {
|
|
76
86
|
proc.kill("SIGKILL");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
2
|
import { n as normalizeMatrixMessagingTarget, t as isMatrixQualifiedUserId } from "./target-ids-B-5aQxwn.js";
|
|
3
|
+
import { g as resolveMatrixAuth } from "./shared-CZ622gSf.js";
|
|
4
|
+
import "./client-D6nL0ymL.js";
|
|
3
5
|
import { t as MatrixAuthedHttpClient } from "./http-client-DJNugFzO.js";
|
|
4
|
-
import { l as resolveMatrixAuth } from "./shared-3K27tl8e.js";
|
|
5
|
-
import "./client-QO7vDxm0.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,6 +1,6 @@
|
|
|
1
1
|
import { t as isRecord } from "./record-shared-CvzjvHRn.js";
|
|
2
2
|
import "./doctor-contract-D9oKDvsJ.js";
|
|
3
|
-
import { i as autoPrepareLegacyMatrixCrypto, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus } from "./matrix-migration.runtime-
|
|
3
|
+
import { i as autoPrepareLegacyMatrixCrypto, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus } from "./matrix-migration.runtime-CZOep_JX.js";
|
|
4
4
|
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-YcCrSjbE.js";
|
|
5
5
|
import "openclaw/plugin-sdk/channel-contract";
|
|
6
6
|
import { detectPluginInstallPathIssue, formatPluginInstallPathIssue, removePluginFromConfig } from "openclaw/plugin-sdk/runtime-doctor";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as editMessageMatrix, r as prepareMatrixSingleText, s as sendSingleTextMessageMatrix, y as MsgType } from "./send-
|
|
1
|
+
import { n as editMessageMatrix, r as prepareMatrixSingleText, s as sendSingleTextMessageMatrix, y as MsgType } from "./send-DX-aOjPW.js";
|
|
2
2
|
import { createDraftStreamLoop } from "openclaw/plugin-sdk/channel-outbound";
|
|
3
3
|
//#region extensions/matrix/src/matrix/draft-stream.ts
|
|
4
4
|
const DEFAULT_THROTTLE_MS = 1e3;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as registerMatrixCliMetadata } from "./cli-metadata-
|
|
1
|
+
import { n as registerMatrixCliMetadata } from "./cli-metadata-TxtMWnLo.js";
|
|
2
2
|
import { t as registerMatrixSubagentHooks } from "./subagent-hooks-api-bedE4GYl.js";
|
|
3
3
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
4
4
|
//#region extensions/matrix/index.ts
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as ConsoleLogger, c as setMatrixConsoleLogging, o as LogService } from "./startup-abort-Bs0Up_Qx.js";
|
|
1
|
+
import { d as ConsoleLogger, f as LogService, m as setMatrixConsoleLogging } from "./shared-CZ622gSf.js";
|
|
3
2
|
import { logger } from "matrix-js-sdk/lib/logger.js";
|
|
4
3
|
//#region extensions/matrix/src/matrix/client/logging.ts
|
|
5
|
-
var logging_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
-
createMatrixJsSdkClientLogger: () => createMatrixJsSdkClientLogger,
|
|
7
|
-
ensureMatrixSdkLoggingConfigured: () => ensureMatrixSdkLoggingConfigured,
|
|
8
|
-
setMatrixSdkConsoleLogging: () => setMatrixSdkConsoleLogging,
|
|
9
|
-
setMatrixSdkLogMode: () => setMatrixSdkLogMode
|
|
10
|
-
});
|
|
11
4
|
let matrixSdkLoggingConfigured = false;
|
|
12
5
|
let matrixSdkLogMode = "default";
|
|
13
6
|
const matrixSdkBaseLogger = new ConsoleLogger();
|
|
@@ -96,4 +89,4 @@ function createMatrixJsSdkLoggerInstance(prefix) {
|
|
|
96
89
|
};
|
|
97
90
|
}
|
|
98
91
|
//#endregion
|
|
99
|
-
export {
|
|
92
|
+
export { createMatrixJsSdkClientLogger, ensureMatrixSdkLoggingConfigured, setMatrixSdkConsoleLogging, setMatrixSdkLogMode };
|
|
@@ -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-tJOj25VL.js")).inspectLegacyMatrixCryptoStore;
|
|
253
253
|
}
|
|
254
254
|
function detectLegacyBotSdkCryptoStore(cryptoRootDir) {
|
|
255
255
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-DX-aOjPW.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
//#region extensions/matrix/src/matrix/poll-summary.ts
|
|
4
4
|
function resolveMatrixPollRootEventId(event) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as isMatrixNotFoundError } from "./errors-C47hvAF8.js";
|
|
2
|
-
import { a as sendMessageMatrix, n as editMessageMatrix, w as isPollEventType } from "./send-
|
|
2
|
+
import { a as sendMessageMatrix, n as editMessageMatrix, w as isPollEventType } from "./send-DX-aOjPW.js";
|
|
3
3
|
import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-DkrQdBSZ.js";
|
|
4
|
-
import { a as resolveMatrixMessageBody, c as resolveMatrixPollRootEventId, i as resolveMatrixMessageAttachment, o as fetchMatrixPollMessageSummary } from "./media-text-
|
|
5
|
-
import { r as withResolvedRoomAction } from "./client-
|
|
4
|
+
import { a as resolveMatrixMessageBody, c as resolveMatrixPollRootEventId, i as resolveMatrixMessageAttachment, o as fetchMatrixPollMessageSummary } from "./media-text-ybU6tiB2.js";
|
|
5
|
+
import { r as withResolvedRoomAction } from "./client-DxQ7tWJq.js";
|
|
6
6
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
|
+
import { resolveIntegerOption } from "openclaw/plugin-sdk/number-runtime";
|
|
7
8
|
//#region extensions/matrix/src/matrix/actions/limits.ts
|
|
8
9
|
function resolveMatrixActionLimit(raw, fallback) {
|
|
9
|
-
|
|
10
|
-
return Math.max(1, Math.floor(raw));
|
|
10
|
+
return resolveIntegerOption(raw, fallback, { min: 1 });
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region extensions/matrix/src/matrix/actions/types.ts
|