@openclaw/matrix 2026.9.3 → 2026.9.4
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-tJLn5JFB.js → approval-handler.runtime-6I3IpyeX.js} +3 -3
- package/dist/{approval-ids-DJZ9ZTuS.js → approval-ids-C4NdeXNz.js} +1 -1
- package/dist/{approval-reaction-auth-Cd0sKHFc.js → approval-reaction-auth-cbltZAUQ.js} +1 -1
- package/dist/{channel-BpYiqmx-.js → channel-Cg97H4c1.js} +10 -170
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-dfEvRdLQ.js → channel.runtime-Bhpfa1qc.js} +6 -6
- package/dist/{channel.setup-oxd8RsIr.js → channel.setup-DmS7m7aT.js} +2 -2
- package/dist/{cli-_49Vsqs4.js → cli-CLexRrQw.js} +8 -8
- package/dist/{cli-metadata-D19lmKmz.js → cli-metadata-zRyVmUOL.js} +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/{client-BXQCQDfY.js → client-C0nZFCTj.js} +2 -2
- package/dist/{client-COLiUdWe.js → client-CPcRv6ab.js} +2 -2
- package/dist/{client-bootstrap-CQwf9qrm.js → client-bootstrap-DLN-K8Xb.js} +1 -1
- package/dist/contract-api.js +2 -2
- package/dist/{crypto-runtime-BvunIYVn.js → crypto-runtime-DiyH4R3D.js} +2 -24
- package/dist/{directory-live-DABCxf8j.js → directory-live-B8-GAVcc.js} +1 -1
- package/dist/{draft-stream-DSwgyyBi.js → draft-stream--NdEtnZ8.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{messages-H4mi9Cap.js → messages-CpZfiQO0.js} +2 -2
- package/dist/{monitor-3Fw96uiE.js → monitor-BUek91SW.js} +13 -13
- package/dist/{outbound-UPI45TD_.js → outbound-D91JinYa.js} +1 -1
- package/dist/plugin-entry.handlers.runtime.js +1 -1
- package/dist/probe.runtime-DWdw74_H.js +2 -0
- package/dist/{profile-update-DWEg8Ylt.js → profile-update-vnhxwjEt.js} +1 -1
- package/dist/{reaction-events-D-iSW0iM.js → reaction-events-2WM2nJe_.js} +4 -4
- package/dist/{resolve-targets-BpnALDzR.js → resolve-targets-K8D0HWPX.js} +1 -1
- package/dist/{resolver.runtime-B83WkznZ.js → resolver.runtime-C88GwQCx.js} +1 -1
- package/dist/{room-info-CjnbX52D.js → room-info-BPVJkXnp.js} +3 -3
- package/dist/{sdk-CX9b0N8Q.js → sdk-B4By16Bt.js} +2 -2
- package/dist/{send-B9l1lKau.js → send-UWLIQ0bG.js} +17 -49
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/{setup-bootstrap-CSI1L1lm.js → setup-bootstrap-sVqkwtSY.js} +1 -1
- package/dist/{setup-core-DuTlyqRz.js → setup-core-8keb-Yre.js} +12 -27
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{setup-surface-fZing1WZ.js → setup-surface-bcluelBI.js} +6 -15
- package/dist/{thread-bindings-CRyf5on_.js → thread-bindings-Bwv87Gve.js} +1 -1
- package/dist/{tool-actions.runtime-D5-hTkDu.js → tool-actions.runtime-Bf98Juk6.js} +292 -253
- package/dist/{verification-B_aqtbx-.js → verification-BbG-VC9S.js} +1 -1
- package/openclaw.plugin.json +4 -0
- package/package.json +4 -4
- package/dist/probe.runtime-DdXTrrmo.js +0 -2
package/dist/api.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as resolveMatrixChannelConfig, i as resolveConfiguredMatrixAccountIds, n as findMatrixAccountEntry, o as resolveMatrixDefaultOrOnlyAccountId, r as requiresExplicitMatrixDefaultAccount } from "./account-selection-Bbtc483D.js";
|
|
2
2
|
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./env-vars-dGqak9dN.js";
|
|
3
3
|
import { a as resolveMatrixCredentialsFilename, i as resolveMatrixCredentialsDir, l as sanitizeMatrixPathSegment, o as resolveMatrixCredentialsPath, r as resolveMatrixAccountStorageRoot, s as resolveMatrixHomeserverKey, t as hashMatrixAccessToken } from "./storage-paths-DVCANXTc.js";
|
|
4
|
-
import { t as matrixPlugin } from "./channel-
|
|
5
|
-
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-
|
|
4
|
+
import { t as matrixPlugin } from "./channel-Cg97H4c1.js";
|
|
5
|
+
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-8keb-Yre.js";
|
|
6
6
|
import { f as setMatrixThreadBindingMaxAgeBySessionKey, n as getMatrixThreadBindingManager, u as setMatrixThreadBindingIdleTimeoutBySessionKey } from "./thread-bindings-shared-oNPiyMWY.js";
|
|
7
|
-
import { n as matrixOnboardingAdapter } from "./setup-surface-
|
|
8
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
7
|
+
import { n as matrixOnboardingAdapter } from "./setup-surface-bcluelBI.js";
|
|
8
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-Bwv87Gve.js";
|
|
9
9
|
export { createMatrixSetupWizardProxy, createMatrixThreadBindingManager, findMatrixAccountEntry, getMatrixScopedEnvVarNames, getMatrixThreadBindingManager, hashMatrixAccessToken, listMatrixEnvAccountIds, matrixOnboardingAdapter, matrixOnboardingAdapter as matrixSetupWizard, matrixPlugin, matrixSetupAdapter, requiresExplicitMatrixDefaultAccount, resolveConfiguredMatrixAccountIds, resolveMatrixAccountStorageRoot, resolveMatrixChannelConfig, resolveMatrixCredentialsDir, resolveMatrixCredentialsFilename, resolveMatrixCredentialsPath, resolveMatrixDefaultOrOnlyAccountId, resolveMatrixEnvAccountToken, resolveMatrixHomeserverKey, sanitizeMatrixPathSegment, setMatrixThreadBindingIdleTimeoutBySessionKey, setMatrixThreadBindingMaxAgeBySessionKey };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as resolveMatrixAccount } from "./accounts-GwSAk9vY.js";
|
|
2
|
-
import { v as isMatrixAnyApprovalClientEnabled, y as shouldHandleMatrixApprovalRequest } from "./channel-
|
|
2
|
+
import { v as isMatrixAnyApprovalClientEnabled, y as shouldHandleMatrixApprovalRequest } from "./channel-Cg97H4c1.js";
|
|
3
3
|
import { o as resolveMatrixTargetIdentity } from "./target-ids-Nwx7cMVE.js";
|
|
4
|
-
import { a as sendSingleTextMessageMatrix, j as repairMatrixDirectRooms, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-
|
|
4
|
+
import { a as sendSingleTextMessageMatrix, j as repairMatrixDirectRooms, n as reactMatrixMessage, r as sendMessageMatrix } from "./send-UWLIQ0bG.js";
|
|
5
5
|
import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-1fwEhoK9.js";
|
|
6
|
-
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-
|
|
6
|
+
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-CpZfiQO0.js";
|
|
7
7
|
import { listMessageReceiptPlatformIds, resolveMessageReceiptPrimaryId } from "openclaw/plugin-sdk/channel-outbound";
|
|
8
8
|
import { normalizeUniqueStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
9
9
|
import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as normalizeMatrixUserId } from "./channel.setup-
|
|
1
|
+
import { a as normalizeMatrixUserId } from "./channel.setup-DmS7m7aT.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
1
|
import { i as resolveMatrixAccount } from "./accounts-GwSAk9vY.js";
|
|
2
|
-
import { t as normalizeMatrixApproverId } from "./approval-ids-
|
|
2
|
+
import { t as normalizeMatrixApproverId } from "./approval-ids-C4NdeXNz.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) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as requiresExplicitMatrixDefaultAccount } from "./account-selection-Bbtc483D.js";
|
|
2
2
|
import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.js";
|
|
3
3
|
import { i as resolveMatrixAccount, r as resolveDefaultMatrixAccountId, t as listMatrixAccountIds } from "./accounts-GwSAk9vY.js";
|
|
4
|
-
import { a as normalizeMatrixUserId, r as DEFAULT_ACCOUNT_ID$2, t as matrixPluginBase } from "./channel.setup-
|
|
5
|
-
import { t as normalizeMatrixApproverId } from "./approval-ids-
|
|
4
|
+
import { a as normalizeMatrixUserId, r as DEFAULT_ACCOUNT_ID$2, t as matrixPluginBase } from "./channel.setup-DmS7m7aT.js";
|
|
5
|
+
import { t as normalizeMatrixApproverId } from "./approval-ids-C4NdeXNz.js";
|
|
6
6
|
import { a as resolveMatrixDirectUserId, i as normalizeMatrixResolvableTarget, n as isMatrixRoomId, o as resolveMatrixTargetIdentity, r as normalizeMatrixMessagingTarget, t as isMatrixQualifiedUserId } from "./target-ids-Nwx7cMVE.js";
|
|
7
7
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-HyWFZQVG.js";
|
|
8
8
|
import { f as setMatrixThreadBindingMaxAgeBySessionKey, u as setMatrixThreadBindingIdleTimeoutBySessionKey } from "./thread-bindings-shared-oNPiyMWY.js";
|
|
@@ -18,7 +18,7 @@ import { createChannelDirectoryAdapter, createResolvedDirectoryEntriesLister, cr
|
|
|
18
18
|
import { buildProbeChannelStatusSummary, collectStatusIssuesFromLastError, createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
|
|
19
19
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
20
20
|
import { chunkTextForOutbound, sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
21
|
-
import {
|
|
21
|
+
import { createActionGate } from "openclaw/plugin-sdk/channel-actions";
|
|
22
22
|
import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
|
|
23
23
|
import { Type } from "typebox";
|
|
24
24
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
@@ -148,169 +148,8 @@ const matrixMessageActions = {
|
|
|
148
148
|
return account && createActionGate(account.config.actions)("messages") ? payload : null;
|
|
149
149
|
},
|
|
150
150
|
handleAction: async (ctx) => {
|
|
151
|
-
const { handleMatrixAction } = await import("./tool-actions.runtime-
|
|
152
|
-
|
|
153
|
-
const dispatch = async (actionParams) => await handleMatrixAction({
|
|
154
|
-
...actionParams,
|
|
155
|
-
...accountId ? { accountId } : {}
|
|
156
|
-
}, cfg, {
|
|
157
|
-
...action === "send" && ctx.mediaAccess ? { mediaAccess: ctx.mediaAccess } : {},
|
|
158
|
-
mediaLocalRoots,
|
|
159
|
-
readContext: {
|
|
160
|
-
accountId,
|
|
161
|
-
requesterAccountId: ctx.requesterAccountId,
|
|
162
|
-
currentChannelId: ctx.toolContext?.currentChannelId,
|
|
163
|
-
currentChannelProvider: ctx.toolContext?.currentChannelProvider,
|
|
164
|
-
currentChatType: ctx.toolContext?.currentChatType,
|
|
165
|
-
conversationReadOrigin: ctx.conversationReadOrigin
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
const resolveRoomId = () => readStringParam(params, "roomId") ?? readStringParam(params, "channelId") ?? readStringParam(params, "to", { required: true });
|
|
169
|
-
if (action === "send") {
|
|
170
|
-
const to = readStringParam(params, "to", { required: true });
|
|
171
|
-
const mediaUrl = readStringParam(params, "media", { trim: false }) ?? readStringParam(params, "mediaUrl", { trim: false }) ?? readStringParam(params, "filePath", { trim: false }) ?? readStringParam(params, "path", { trim: false });
|
|
172
|
-
const content = readStringParam(params, "message", {
|
|
173
|
-
required: !mediaUrl,
|
|
174
|
-
allowEmpty: true,
|
|
175
|
-
trim: false
|
|
176
|
-
});
|
|
177
|
-
const replyTo = readStringParam(params, "replyTo");
|
|
178
|
-
const threadId = readStringParam(params, "threadId");
|
|
179
|
-
const audioAsVoice = typeof params.asVoice === "boolean" ? params.asVoice : typeof params.audioAsVoice === "boolean" ? params.audioAsVoice : void 0;
|
|
180
|
-
return await dispatch({
|
|
181
|
-
action: "sendMessage",
|
|
182
|
-
to,
|
|
183
|
-
content,
|
|
184
|
-
mediaUrl: mediaUrl ?? void 0,
|
|
185
|
-
replyToId: replyTo ?? void 0,
|
|
186
|
-
threadId: threadId ?? void 0,
|
|
187
|
-
audioAsVoice
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
if (action === "poll-vote") return await dispatch({
|
|
191
|
-
...params,
|
|
192
|
-
action: "pollVote"
|
|
193
|
-
});
|
|
194
|
-
if (action === "react") {
|
|
195
|
-
const messageId = readStringParam(params, "messageId", { required: true });
|
|
196
|
-
const emoji = readStringParam(params, "emoji", { allowEmpty: true });
|
|
197
|
-
const remove = typeof params.remove === "boolean" ? params.remove : void 0;
|
|
198
|
-
return await dispatch({
|
|
199
|
-
action: "react",
|
|
200
|
-
roomId: resolveRoomId(),
|
|
201
|
-
messageId,
|
|
202
|
-
emoji,
|
|
203
|
-
remove
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
if (action === "reactions") {
|
|
207
|
-
const messageId = readStringParam(params, "messageId", { required: true });
|
|
208
|
-
const limit = readPositiveIntegerParam(params, "limit", { message: "limit must be a positive integer." });
|
|
209
|
-
return await dispatch({
|
|
210
|
-
action: "reactions",
|
|
211
|
-
roomId: resolveRoomId(),
|
|
212
|
-
messageId,
|
|
213
|
-
limit
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
if (action === "emoji-list") {
|
|
217
|
-
const roomId = readStringParam(params, "roomId") ?? readStringParam(params, "channelId") ?? readStringParam(params, "to") ?? (ctx.toolContext?.currentChannelProvider === "matrix" ? ctx.toolContext.currentChannelId : void 0);
|
|
218
|
-
if (!roomId) throw new Error("Matrix emoji-list requires a roomId or current Matrix conversation.");
|
|
219
|
-
return await dispatch({
|
|
220
|
-
action: "emoji-list",
|
|
221
|
-
roomId,
|
|
222
|
-
limit: readPositiveIntegerParam(params, "limit", { message: "limit must be a positive integer." })
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
if (action === "read") {
|
|
226
|
-
const limit = readPositiveIntegerParam(params, "limit", { message: "limit must be a positive integer." });
|
|
227
|
-
return await dispatch({
|
|
228
|
-
action: "readMessages",
|
|
229
|
-
roomId: resolveRoomId(),
|
|
230
|
-
limit,
|
|
231
|
-
before: readStringParam(params, "before"),
|
|
232
|
-
after: readStringParam(params, "after"),
|
|
233
|
-
threadId: readStringParam(params, "threadId")
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
if (action === "edit") {
|
|
237
|
-
const messageId = readStringParam(params, "messageId", { required: true });
|
|
238
|
-
const content = readStringParam(params, "message", {
|
|
239
|
-
required: true,
|
|
240
|
-
trim: false
|
|
241
|
-
});
|
|
242
|
-
return await dispatch({
|
|
243
|
-
action: "editMessage",
|
|
244
|
-
roomId: resolveRoomId(),
|
|
245
|
-
messageId,
|
|
246
|
-
content
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
if (action === "delete") {
|
|
250
|
-
const messageId = readStringParam(params, "messageId", { required: true });
|
|
251
|
-
return await dispatch({
|
|
252
|
-
action: "deleteMessage",
|
|
253
|
-
roomId: resolveRoomId(),
|
|
254
|
-
messageId
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
if (action === "pin" || action === "unpin" || action === "list-pins") {
|
|
258
|
-
const messageId = action === "list-pins" ? void 0 : readStringParam(params, "messageId", { required: true });
|
|
259
|
-
return await dispatch({
|
|
260
|
-
action: action === "pin" ? "pinMessage" : action === "unpin" ? "unpinMessage" : "listPins",
|
|
261
|
-
roomId: resolveRoomId(),
|
|
262
|
-
messageId
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
if (action === "set-profile") {
|
|
266
|
-
if (ctx.senderIsOwner !== true) throw new ToolAuthorizationError("Matrix profile updates require owner access.");
|
|
267
|
-
const avatarPath = readStringParam(params, "avatarPath") ?? readStringParam(params, "path") ?? readStringParam(params, "filePath");
|
|
268
|
-
return await dispatch({
|
|
269
|
-
action: "setProfile",
|
|
270
|
-
displayName: readStringParam(params, "displayName") ?? readStringParam(params, "name"),
|
|
271
|
-
avatarUrl: readStringParam(params, "avatarUrl"),
|
|
272
|
-
avatarPath
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
if (action === "member-info") return await dispatch({
|
|
276
|
-
action: "memberInfo",
|
|
277
|
-
userId: readStringParam(params, "userId", { required: true }),
|
|
278
|
-
roomId: resolveRoomId()
|
|
279
|
-
});
|
|
280
|
-
if (action === "channel-info") return await dispatch({
|
|
281
|
-
action: "channelInfo",
|
|
282
|
-
roomId: resolveRoomId()
|
|
283
|
-
});
|
|
284
|
-
if (action === "permissions") {
|
|
285
|
-
if (ctx.senderIsOwner !== true) throw new ToolAuthorizationError("Matrix verification actions require owner access.");
|
|
286
|
-
const operation = normalizeLowercaseStringOrEmpty(readStringParam(params, "operation") ?? readStringParam(params, "mode") ?? "verification-list");
|
|
287
|
-
const operationToAction = {
|
|
288
|
-
"encryption-status": "encryptionStatus",
|
|
289
|
-
"verification-status": "verificationStatus",
|
|
290
|
-
"verification-bootstrap": "verificationBootstrap",
|
|
291
|
-
"verification-recovery-key": "verificationRecoveryKey",
|
|
292
|
-
"verification-backup-status": "verificationBackupStatus",
|
|
293
|
-
"verification-backup-restore": "verificationBackupRestore",
|
|
294
|
-
"verification-list": "verificationList",
|
|
295
|
-
"verification-request": "verificationRequest",
|
|
296
|
-
"verification-accept": "verificationAccept",
|
|
297
|
-
"verification-cancel": "verificationCancel",
|
|
298
|
-
"verification-start": "verificationStart",
|
|
299
|
-
"verification-generate-qr": "verificationGenerateQr",
|
|
300
|
-
"verification-scan-qr": "verificationScanQr",
|
|
301
|
-
"verification-sas": "verificationSas",
|
|
302
|
-
"verification-confirm": "verificationConfirm",
|
|
303
|
-
"verification-mismatch": "verificationMismatch",
|
|
304
|
-
"verification-confirm-qr": "verificationConfirmQr"
|
|
305
|
-
};
|
|
306
|
-
const resolvedAction = operationToAction[operation];
|
|
307
|
-
if (!resolvedAction) throw new Error(`Unsupported Matrix permissions operation: ${operation}. Supported values: ${Object.keys(operationToAction).join(", ")}`);
|
|
308
|
-
return await dispatch({
|
|
309
|
-
...params,
|
|
310
|
-
action: resolvedAction
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
throw new Error(`Action ${action} is not supported for provider matrix.`);
|
|
151
|
+
const { handleMatrixAction } = await import("./tool-actions.runtime-Bf98Juk6.js");
|
|
152
|
+
return await handleMatrixAction(ctx);
|
|
314
153
|
}
|
|
315
154
|
};
|
|
316
155
|
//#endregion
|
|
@@ -618,6 +457,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
|
|
|
618
457
|
resolveApproverDmTargets: resolveMatrixApproverDmTargets,
|
|
619
458
|
notifyOriginWhenDmOnly: true,
|
|
620
459
|
nativeRuntime: createLazyChannelApprovalNativeRuntimeAdapter({
|
|
460
|
+
capabilityBoundary: true,
|
|
621
461
|
eventKinds: [
|
|
622
462
|
"exec",
|
|
623
463
|
"plugin",
|
|
@@ -633,7 +473,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
|
|
|
633
473
|
approvalKind,
|
|
634
474
|
request
|
|
635
475
|
}),
|
|
636
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
476
|
+
load: async () => (await import("./approval-handler.runtime-6I3IpyeX.js")).matrixApprovalNativeRuntime
|
|
637
477
|
})
|
|
638
478
|
});
|
|
639
479
|
const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
|
|
@@ -1013,7 +853,7 @@ function resolveMatrixConversationRouteOwner(params) {
|
|
|
1013
853
|
}
|
|
1014
854
|
//#endregion
|
|
1015
855
|
//#region extensions/matrix/src/resolver.ts
|
|
1016
|
-
const loadMatrixChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./resolver.runtime-
|
|
856
|
+
const loadMatrixChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./resolver.runtime-C88GwQCx.js"), "matrixResolverRuntime");
|
|
1017
857
|
const matrixResolverAdapter = { resolveTargets: async ({ cfg, accountId, inputs, kind, runtime }) => (await loadMatrixChannelRuntime$1()).resolveMatrixTargets({
|
|
1018
858
|
cfg,
|
|
1019
859
|
accountId,
|
|
@@ -1142,7 +982,7 @@ function resolveMatrixOutboundSessionRoute(params) {
|
|
|
1142
982
|
//#endregion
|
|
1143
983
|
//#region extensions/matrix/src/channel.ts
|
|
1144
984
|
let matrixStartupLock = Promise.resolve();
|
|
1145
|
-
const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
985
|
+
const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bhpfa1qc.js"), "matrixChannelRuntime");
|
|
1146
986
|
const loadMatrixDoctorModule = createLazyRuntimeModule(() => import("./doctor-CJE8wO6y.js"));
|
|
1147
987
|
function buildMatrixTrafficStatusSummary(snapshot) {
|
|
1148
988
|
return {
|
|
@@ -1493,7 +1333,7 @@ const matrixPlugin = createChatChannelPlugin({
|
|
|
1493
1333
|
await previousLock;
|
|
1494
1334
|
let monitorMatrixProvider;
|
|
1495
1335
|
try {
|
|
1496
|
-
monitorMatrixProvider = (await import("./monitor-
|
|
1336
|
+
monitorMatrixProvider = (await import("./monitor-BUek91SW.js")).monitorMatrixProvider;
|
|
1497
1337
|
} finally {
|
|
1498
1338
|
releaseLock();
|
|
1499
1339
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as matrixPlugin } from "./channel-
|
|
1
|
+
import { t as matrixPlugin } from "./channel-Cg97H4c1.js";
|
|
2
2
|
export { matrixPlugin };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { D as reconcileMatrixUnknownSend, E as cleanupMatrixDeliveryPlans, o as sendTypingMatrix, r as sendMessageMatrix } from "./send-
|
|
2
|
-
import { l as resolveMatrixAuth } from "./client-
|
|
3
|
-
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-
|
|
4
|
-
import { t as matrixOutbound } from "./outbound-
|
|
5
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
1
|
+
import { D as reconcileMatrixUnknownSend, E as cleanupMatrixDeliveryPlans, o as sendTypingMatrix, r as sendMessageMatrix } from "./send-UWLIQ0bG.js";
|
|
2
|
+
import { l as resolveMatrixAuth } from "./client-CPcRv6ab.js";
|
|
3
|
+
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-B8-GAVcc.js";
|
|
4
|
+
import { t as matrixOutbound } from "./outbound-D91JinYa.js";
|
|
5
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-K8D0HWPX.js";
|
|
6
6
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
7
7
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
8
8
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
9
9
|
import { runChannelProbe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
10
10
|
//#region extensions/matrix/src/matrix/probe.ts
|
|
11
|
-
const loadMatrixProbeRuntimeDeps = createLazyRuntimeModule(() => import("./probe.runtime-
|
|
11
|
+
const loadMatrixProbeRuntimeDeps = createLazyRuntimeModule(() => import("./probe.runtime-DWdw74_H.js").then((runtimeModule) => ({ createMatrixClient: runtimeModule.createMatrixClient })));
|
|
12
12
|
async function probeMatrix(params) {
|
|
13
13
|
return await runChannelProbe(void 0, async () => {
|
|
14
14
|
const result = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.js";
|
|
2
2
|
import { i as resolveMatrixAccount, r as resolveDefaultMatrixAccountId, t as listMatrixAccountIds } from "./accounts-GwSAk9vY.js";
|
|
3
|
-
import { r as matrixSetupContract, t as createMatrixSetupWizardProxy } from "./setup-core-
|
|
3
|
+
import { r as matrixSetupContract, t as createMatrixSetupWizardProxy } from "./setup-core-8keb-Yre.js";
|
|
4
4
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
5
5
|
import { createChannelConfigUiHints } from "openclaw/plugin-sdk/channel-core";
|
|
6
6
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -314,7 +314,7 @@ const matrixPluginBase = {
|
|
|
314
314
|
order: 70,
|
|
315
315
|
quickstartAllowFrom: true
|
|
316
316
|
},
|
|
317
|
-
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./setup-surface-
|
|
317
|
+
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./setup-surface-bcluelBI.js").then((n) => n.t)).matrixSetupWizard })),
|
|
318
318
|
setupContract: matrixSetupContract,
|
|
319
319
|
capabilities: {
|
|
320
320
|
chatTypes: [
|
|
@@ -2,14 +2,14 @@ import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig }
|
|
|
2
2
|
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
3
3
|
import { i as resolveMatrixAccount } from "./accounts-GwSAk9vY.js";
|
|
4
4
|
import { n as resolveMatrixConfigPath, r as updateMatrixAccountConfig } from "./config-update-BnX26jCO.js";
|
|
5
|
-
import { n as matrixSetupAdapter } from "./setup-core-
|
|
6
|
-
import { n as withResolvedActionClient } from "./client-
|
|
7
|
-
import { u as resolveMatrixAuthContext } from "./client-
|
|
5
|
+
import { n as matrixSetupAdapter } from "./setup-core-8keb-Yre.js";
|
|
6
|
+
import { n as withResolvedActionClient } from "./client-C0nZFCTj.js";
|
|
7
|
+
import { u as resolveMatrixAuthContext } from "./client-CPcRv6ab.js";
|
|
8
8
|
import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-Dm_YMVFT.js";
|
|
9
9
|
import { i as setMatrixSdkLogMode, r as setMatrixSdkConsoleLogging } from "./logging-DRjvUOIh.js";
|
|
10
10
|
import { n as isOpenClawManagedMatrixDevice, r as summarizeMatrixDeviceHealth } from "./device-health-B4-YXtJR.js";
|
|
11
|
-
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-
|
|
12
|
-
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-
|
|
11
|
+
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-vnhxwjEt.js";
|
|
12
|
+
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-BbG-VC9S.js";
|
|
13
13
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
14
14
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
15
15
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
@@ -448,7 +448,7 @@ async function addMatrixAccount(params) {
|
|
|
448
448
|
backupVersion: null
|
|
449
449
|
};
|
|
450
450
|
if (accountConfig.encryption === true) {
|
|
451
|
-
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-
|
|
451
|
+
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-sVqkwtSY.js");
|
|
452
452
|
verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
|
|
453
453
|
previousCfg: cfg,
|
|
454
454
|
cfg: updated,
|
|
@@ -636,8 +636,8 @@ function registerMatrixDeviceCommands(root) {
|
|
|
636
636
|
}
|
|
637
637
|
//#endregion
|
|
638
638
|
//#region extensions/matrix/src/cli-direct.ts
|
|
639
|
-
const loadMatrixActionClientModule = createLazyRuntimeModule(() => import("./client-
|
|
640
|
-
const loadMatrixDirectManagementModule = createLazyRuntimeModule(() => import("./send-
|
|
639
|
+
const loadMatrixActionClientModule = createLazyRuntimeModule(() => import("./client-C0nZFCTj.js").then((n) => n.t));
|
|
640
|
+
const loadMatrixDirectManagementModule = createLazyRuntimeModule(() => import("./send-UWLIQ0bG.js").then((n) => n.k));
|
|
641
641
|
function printDirectRoomCandidate(room) {
|
|
642
642
|
const members = room.joinedMembers === null ? "unavailable" : room.joinedMembers.map((member) => formatMatrixCliText(member)).join(", ") || "none";
|
|
643
643
|
console.log(`- ${formatMatrixCliText(room.roomId)} [${room.source}] strict=${room.strict ? "yes" : "no"} joined=${members}`);
|
|
@@ -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-CLexRrQw.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-zRyVmUOL.js";
|
|
2
2
|
export { cli_metadata_default as default, registerMatrixCliMetadata };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { O as resolveMatrixRoomId } from "./send-
|
|
3
|
-
import { n as withResolvedRuntimeMatrixClient } from "./client-bootstrap-
|
|
2
|
+
import { O as resolveMatrixRoomId } from "./send-UWLIQ0bG.js";
|
|
3
|
+
import { n as withResolvedRuntimeMatrixClient } from "./client-bootstrap-DLN-K8Xb.js";
|
|
4
4
|
//#region extensions/matrix/src/matrix/actions/client.ts
|
|
5
5
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
withResolvedActionClient: () => withResolvedActionClient,
|
|
@@ -20,7 +20,7 @@ import { sleepWithAbort } from "openclaw/plugin-sdk/runtime-env";
|
|
|
20
20
|
import { createDeferred } from "openclaw/plugin-sdk/extension-shared";
|
|
21
21
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
22
22
|
//#region extensions/matrix/src/matrix/client/config.ts
|
|
23
|
-
const loadMatrixAuthClientDeps = createLazyRuntimeModule(() => Promise.all([import("./sdk-
|
|
23
|
+
const loadMatrixAuthClientDeps = createLazyRuntimeModule(() => Promise.all([import("./sdk-B4By16Bt.js").then((n) => n.t), import("./logging-DRjvUOIh.js").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
|
|
24
24
|
MatrixClient: sdkModule.MatrixClient,
|
|
25
25
|
ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
|
|
26
26
|
})));
|
|
@@ -416,7 +416,7 @@ async function backfillMatrixAuthDeviceIdAfterStartup(params) {
|
|
|
416
416
|
//#endregion
|
|
417
417
|
//#region extensions/matrix/src/matrix/client/create-client.ts
|
|
418
418
|
var create_client_exports = /* @__PURE__ */ __exportAll({ createMatrixClient: () => createMatrixClient });
|
|
419
|
-
const loadMatrixCreateClientRuntimeDeps = createLazyRuntimeModule(() => Promise.all([import("./sdk-
|
|
419
|
+
const loadMatrixCreateClientRuntimeDeps = createLazyRuntimeModule(() => Promise.all([import("./sdk-B4By16Bt.js").then((n) => n.t), import("./logging-DRjvUOIh.js").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
|
|
420
420
|
MatrixClient: sdkModule.MatrixClient,
|
|
421
421
|
ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
|
|
422
422
|
})));
|
|
@@ -6,7 +6,7 @@ var client_bootstrap_exports = /* @__PURE__ */ __exportAll({
|
|
|
6
6
|
resolveRuntimeMatrixClientWithReadiness: () => resolveRuntimeMatrixClientWithReadiness,
|
|
7
7
|
withResolvedRuntimeMatrixClient: () => withResolvedRuntimeMatrixClient
|
|
8
8
|
});
|
|
9
|
-
const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => import("./client-
|
|
9
|
+
const loadMatrixSharedClientRuntimeDeps = createLazyRuntimeModule(() => import("./client-CPcRv6ab.js").then((n) => n.t).then((clientModule) => ({
|
|
10
10
|
acquireSharedMatrixClient: clientModule.acquireSharedMatrixClient,
|
|
11
11
|
resolveMatrixAuthContext: clientModule.resolveMatrixAuthContext
|
|
12
12
|
})));
|
package/dist/contract-api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as singleAccountKeysToMove, n as matrixSetupAdapter, o as namedAccountPromotionKeys, s as resolveSingleAccountPromotionTarget } from "./setup-core-
|
|
2
|
-
import { n as matrixOnboardingAdapter } from "./setup-surface-
|
|
1
|
+
import { c as singleAccountKeysToMove, n as matrixSetupAdapter, o as namedAccountPromotionKeys, s as resolveSingleAccountPromotionTarget } from "./setup-core-8keb-Yre.js";
|
|
2
|
+
import { n as matrixOnboardingAdapter } from "./setup-surface-bcluelBI.js";
|
|
3
3
|
export { matrixSetupAdapter, matrixOnboardingAdapter as matrixSetupWizard, namedAccountPromotionKeys, resolveSingleAccountPromotionTarget, singleAccountKeysToMove };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as ensureMatrixCryptoRuntime } from "./deps-mtxF2mHI.js";
|
|
2
2
|
import { n as LogService, r as noop } from "./logger-B_71hN6W.js";
|
|
3
3
|
import { i as restoreIdbFromDisk, n as persistIdbToDisk } from "./idb-persistence-DBdwHSWg.js";
|
|
4
|
-
import { n as isRepairableSecretStorageAccessError } from "./sdk-
|
|
4
|
+
import { n as isRepairableSecretStorageAccessError } from "./sdk-B4By16Bt.js";
|
|
5
5
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
6
6
|
import { formatErrorMessage, toStringifiedError } from "openclaw/plugin-sdk/error-runtime";
|
|
7
7
|
import { resolveDateTimestampMs, resolveTimestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
|
|
@@ -178,35 +178,13 @@ var MatrixCryptoBootstrapper = class {
|
|
|
178
178
|
return false;
|
|
179
179
|
};
|
|
180
180
|
if (options.forceResetCrossSigning) {
|
|
181
|
-
|
|
181
|
+
try {
|
|
182
182
|
await crypto.bootstrapCrossSigning({
|
|
183
183
|
setupNewCrossSigning: true,
|
|
184
184
|
authUploadDeviceSigningKeys
|
|
185
185
|
});
|
|
186
|
-
};
|
|
187
|
-
try {
|
|
188
|
-
await resetCrossSigning();
|
|
189
186
|
await this.trustFreshOwnIdentity(crypto);
|
|
190
187
|
} catch (err) {
|
|
191
|
-
if (options.allowSecretStorageRecreateWithoutRecoveryKey && isRepairableSecretStorageAccessError(err)) {
|
|
192
|
-
LogService.warn("MatrixClientLite", "Forced cross-signing reset could not unlock secret storage; recreating secret storage and retrying.");
|
|
193
|
-
try {
|
|
194
|
-
await this.deps.recoveryKeyStore.bootstrapSecretStorageWithRecoveryKey(crypto, {
|
|
195
|
-
allowSecretStorageRecreateWithoutRecoveryKey: true,
|
|
196
|
-
forceNewSecretStorage: true
|
|
197
|
-
});
|
|
198
|
-
await resetCrossSigning();
|
|
199
|
-
await this.trustFreshOwnIdentity(crypto);
|
|
200
|
-
} catch (repairErr) {
|
|
201
|
-
LogService.warn("MatrixClientLite", "Forced cross-signing reset failed:", repairErr);
|
|
202
|
-
if (options.strict) throw toStringifiedError(repairErr);
|
|
203
|
-
return {
|
|
204
|
-
ready: false,
|
|
205
|
-
published: false
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
return await finalize();
|
|
209
|
-
}
|
|
210
188
|
LogService.warn("MatrixClientLite", "Forced cross-signing reset failed:", err);
|
|
211
189
|
if (options.strict) {
|
|
212
190
|
if (isRepairableSecretStorageAccessError(err)) throw new Error("Forced cross-signing reset cannot access secret storage; restore the Matrix recovery key before retrying", { cause: err });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
2
|
import { r as normalizeMatrixMessagingTarget, t as isMatrixQualifiedUserId } from "./target-ids-Nwx7cMVE.js";
|
|
3
|
-
import { l as resolveMatrixAuth } from "./client-
|
|
3
|
+
import { l as resolveMatrixAuth } from "./client-CPcRv6ab.js";
|
|
4
4
|
import { t as MatrixAuthedHttpClient } from "./http-client-BfPeF4CE.js";
|
|
5
5
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
//#region extensions/matrix/src/directory-live.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as sendSingleTextMessageMatrix, m as prepareMatrixSingleText, t as editMessageMatrix } from "./send-
|
|
1
|
+
import { a as sendSingleTextMessageMatrix, m as prepareMatrixSingleText, t as editMessageMatrix } from "./send-UWLIQ0bG.js";
|
|
2
2
|
import { i as MsgType } from "./types-DzSc7Sqm.js";
|
|
3
3
|
import { createFinalizableDraftStreamControlsForState } from "openclaw/plugin-sdk/channel-outbound";
|
|
4
4
|
//#region extensions/matrix/src/matrix/draft-stream.ts
|
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-zRyVmUOL.js";
|
|
2
2
|
import { registerMatrixSubagentHooks } from "./subagent-hooks-api.js";
|
|
3
3
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
4
4
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as isPollStartType, T as resolvePollReferenceEventId, b as formatPollResultsAsText, f as resolveMatrixMessageAttachment, p as resolveMatrixReplacementContent, r as sendMessageMatrix, t as editMessageMatrix, v as buildPollResultsSummary, w as parsePollStartContent, x as isPollEventType, y as formatPollAsText } from "./send-
|
|
1
|
+
import { S as isPollStartType, T as resolvePollReferenceEventId, b as formatPollResultsAsText, f as resolveMatrixMessageAttachment, p as resolveMatrixReplacementContent, r as sendMessageMatrix, t as editMessageMatrix, v as buildPollResultsSummary, w as parsePollStartContent, x as isPollEventType, y as formatPollAsText } from "./send-UWLIQ0bG.js";
|
|
2
2
|
import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-DkrQdBSZ.js";
|
|
3
|
-
import { r as withResolvedRoomAction } from "./client-
|
|
3
|
+
import { r as withResolvedRoomAction } from "./client-C0nZFCTj.js";
|
|
4
4
|
import { n as isMatrixNotFoundError } from "./errors-DKVS3_DO.js";
|
|
5
5
|
import { asNullableObjectRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
//#region extensions/matrix/src/matrix/poll-summary.ts
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig, i as resolveMatrixAccountAllowlistConfig } from "./account-config-CRsKoMqJ.js";
|
|
2
2
|
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
3
3
|
import { n as resolveConfiguredMatrixBotUserIds } from "./accounts-GwSAk9vY.js";
|
|
4
|
-
import { _ as toLocationContext, a as resolveMatrixRoomConfig, c as canonicalizeAllowlistWithResolvedIds, d as formatLocationText, f as getAgentScopedMediaLocalRoots, g as summarizeMapping, h as patchAllowlistUsersInConfigEntries, i as resolveMatrixThreadRouting, l as createReplyPrefixOptions, m as logTypingFailure, n as resolveMatrixStoredSessionMeta, o as addAllowlistUserEntriesFromConfigEntry, p as logInboundDrop, r as resolveMatrixInboundRoute, s as buildAllowlistResolutionSummary, u as createTypingCallbacks } from "./channel-
|
|
5
|
-
import { a as normalizeMatrixUserId, i as normalizeMatrixAllowList, o as resolveMatrixAllowListMatch } from "./channel.setup-
|
|
4
|
+
import { _ as toLocationContext, a as resolveMatrixRoomConfig, c as canonicalizeAllowlistWithResolvedIds, d as formatLocationText, f as getAgentScopedMediaLocalRoots, g as summarizeMapping, h as patchAllowlistUsersInConfigEntries, i as resolveMatrixThreadRouting, l as createReplyPrefixOptions, m as logTypingFailure, n as resolveMatrixStoredSessionMeta, o as addAllowlistUserEntriesFromConfigEntry, p as logInboundDrop, r as resolveMatrixInboundRoute, s as buildAllowlistResolutionSummary, u as createTypingCallbacks } from "./channel-Cg97H4c1.js";
|
|
5
|
+
import { a as normalizeMatrixUserId, i as normalizeMatrixAllowList, o as resolveMatrixAllowListMatch } from "./channel.setup-DmS7m7aT.js";
|
|
6
6
|
import { n as isMatrixRoomId, t as isMatrixQualifiedUserId } from "./target-ids-Nwx7cMVE.js";
|
|
7
|
-
import { A as promoteMatrixDirectRoomCandidate, S as isPollStartType, c as formatMatrixMediaTooLargeText, d as isLikelyBareFilename, g as resolveMatrixThreadRootId, h as resolveMatrixReplyToEventId, l as formatMatrixMediaUnavailableText, p as resolveMatrixReplacementContent, r as sendMessageMatrix, u as formatMatrixMessageText, w as parsePollStartContent, x as isPollEventType, y as formatPollAsText } from "./send-
|
|
7
|
+
import { A as promoteMatrixDirectRoomCandidate, S as isPollStartType, c as formatMatrixMediaTooLargeText, d as isLikelyBareFilename, g as resolveMatrixThreadRootId, h as resolveMatrixReplyToEventId, l as formatMatrixMediaUnavailableText, p as resolveMatrixReplacementContent, r as sendMessageMatrix, u as formatMatrixMessageText, w as parsePollStartContent, x as isPollEventType, y as formatPollAsText } from "./send-UWLIQ0bG.js";
|
|
8
8
|
import { i as isStrictDirectMembership, n as hasDirectMatrixMemberFlag, o as readJoinedMatrixMembers } from "./direct-room-RinHjtqX.js";
|
|
9
9
|
import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-DkrQdBSZ.js";
|
|
10
10
|
import { n as MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY } from "./types-DzSc7Sqm.js";
|
|
11
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
12
|
-
import { l as fetchMatrixPollSnapshot, r as readMatrixMessages } from "./messages-
|
|
13
|
-
import { a as throwIfMatrixStartupAborted, c as backfillMatrixAuthDeviceIdAfterStartup, i as isMatrixStartupAbortError, l as resolveMatrixAuth, n as acquireSharedMatrixClient, o as createMatrixMonitorTaskRunner, u as resolveMatrixAuthContext } from "./client-
|
|
11
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-Bwv87Gve.js";
|
|
12
|
+
import { l as fetchMatrixPollSnapshot, r as readMatrixMessages } from "./messages-CpZfiQO0.js";
|
|
13
|
+
import { a as throwIfMatrixStartupAborted, c as backfillMatrixAuthDeviceIdAfterStartup, i as isMatrixStartupAbortError, l as resolveMatrixAuth, n as acquireSharedMatrixClient, o as createMatrixMonitorTaskRunner, u as resolveMatrixAuthContext } from "./client-CPcRv6ab.js";
|
|
14
14
|
import { i as isMatrixMediaSizeLimitError, r as MatrixMediaSizeLimitError } from "./http-client-BfPeF4CE.js";
|
|
15
|
-
import { n as prepareMatrixReplyPayload, r as resolveMatrixExtraContent } from "./outbound-
|
|
16
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
15
|
+
import { n as prepareMatrixReplyPayload, r as resolveMatrixExtraContent } from "./outbound-D91JinYa.js";
|
|
16
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-K8D0HWPX.js";
|
|
17
17
|
import { t as formatMatrixEncryptedEventDisabledWarning } from "./encryption-guidance-mDyxJV9U.js";
|
|
18
18
|
import { createMatrixInboundEventDeduper } from "./inbound-dedupe-Ch33GU06.js";
|
|
19
19
|
import { a as isMatrixAccessTokenInvalidatedError, d as isMatrixDisconnectedSyncState, f as isMatrixReadySyncState, p as isMatrixTerminalSyncState } from "./client-support-DLj4vDeu.js";
|
|
20
|
-
import { i as setBoundedMap, r as getMatrixRoomInfo, t as createMatrixRoomInfoResolver } from "./room-info-
|
|
20
|
+
import { i as setBoundedMap, r as getMatrixRoomInfo, t as createMatrixRoomInfoResolver } from "./room-info-BPVJkXnp.js";
|
|
21
21
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
22
22
|
import { createChannelProgressDraftCompositor, createPreviewMessageReceipt, defineFinalizableLivePreviewAdapter, deliverWithFinalizableLivePreviewAdapter, resolveChannelStreamingBlockEnabled, waitUntilAbort } from "openclaw/plugin-sdk/channel-outbound";
|
|
23
23
|
import { normalizeLowercaseStringOrEmpty, normalizeNullableString, normalizeOptionalString, normalizeStringifiedEntries, readStringValue, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -837,7 +837,7 @@ const matrixVerificationConstants = {
|
|
|
837
837
|
const MAX_TRACKED_VERIFICATION_EVENTS = 1024;
|
|
838
838
|
const SAS_NOTICE_RETRY_DELAY_MS = 750;
|
|
839
839
|
const VERIFICATION_EVENT_STARTUP_GRACE_MS = 3e4;
|
|
840
|
-
const loadMatrixDirectRoomDeps = createLazyRuntimeModule(() => Promise.all([import("./send-
|
|
840
|
+
const loadMatrixDirectRoomDeps = createLazyRuntimeModule(() => Promise.all([import("./send-UWLIQ0bG.js").then((n) => n.k), import("./direct-room-RinHjtqX.js").then((n) => n.t)]).then(([directManagementModule, directRoomModule]) => ({
|
|
841
841
|
inspectMatrixDirectRooms: directManagementModule.inspectMatrixDirectRooms,
|
|
842
842
|
isStrictDirectRoom: directRoomModule.isStrictDirectRoom
|
|
843
843
|
})));
|
|
@@ -1655,11 +1655,11 @@ async function redactMatrixDraftEvent(client, roomId, draftEventId) {
|
|
|
1655
1655
|
function buildMatrixFinalizedPreviewContent() {
|
|
1656
1656
|
return { [MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY]: true };
|
|
1657
1657
|
}
|
|
1658
|
-
const loadMatrixSendModule = createLazyRuntimeModule(() => import("./send-
|
|
1658
|
+
const loadMatrixSendModule = createLazyRuntimeModule(() => import("./send-UWLIQ0bG.js").then((n) => n.s));
|
|
1659
1659
|
const loadAcpBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/acp-binding-runtime"));
|
|
1660
1660
|
const loadSessionBindingRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/session-binding-runtime"));
|
|
1661
|
-
const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-
|
|
1662
|
-
const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream
|
|
1661
|
+
const loadMatrixReactionEvents = createLazyRuntimeModule(() => import("./reaction-events-2WM2nJe_.js"));
|
|
1662
|
+
const loadMatrixDraftStream = createLazyRuntimeModule(() => import("./draft-stream--NdEtnZ8.js"));
|
|
1663
1663
|
async function matrixTextWouldActivateMentions(client, text) {
|
|
1664
1664
|
const { resolveMatrixMentionsForBody } = await loadMatrixSendModule();
|
|
1665
1665
|
const mentions = await resolveMatrixMentionsForBody({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as sendPollMatrix, r as sendMessageMatrix } from "./send-
|
|
1
|
+
import { i as sendPollMatrix, r as sendMessageMatrix } from "./send-UWLIQ0bG.js";
|
|
2
2
|
import { createMessageReceiptFromOutboundResults, createReplyToFanout, resolveOutboundSendDep } from "openclaw/plugin-sdk/channel-outbound";
|
|
3
3
|
import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { chunkTextForOutbound } from "openclaw/plugin-sdk/text-chunking";
|
|
@@ -2,7 +2,7 @@ import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
|
2
2
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
4
4
|
//#region extensions/matrix/src/plugin-entry.runtime.ts
|
|
5
|
-
const loadMatrixVerificationRuntime = createLazyRuntimeModule(() => import("./verification-
|
|
5
|
+
const loadMatrixVerificationRuntime = createLazyRuntimeModule(() => import("./verification-BbG-VC9S.js").then((n) => n.y));
|
|
6
6
|
function sendError(respond, err) {
|
|
7
7
|
respond(false, { error: formatErrorMessage(err) });
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
2
2
|
import { n as resolveMatrixConfigPath, r as updateMatrixAccountConfig } from "./config-update-BnX26jCO.js";
|
|
3
3
|
import { r as syncMatrixOwnProfile } from "./profile-vmjsmhh4.js";
|
|
4
|
-
import { n as withResolvedActionClient } from "./client-
|
|
4
|
+
import { n as withResolvedActionClient } from "./client-C0nZFCTj.js";
|
|
5
5
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
6
6
|
//#region extensions/matrix/src/matrix/actions/profile.ts
|
|
7
7
|
async function updateMatrixOwnProfile(opts = {}) {
|