@openclaw/matrix 2026.5.10-beta.1 → 2026.5.10-beta.3
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-DWTQfd4m.js → approval-handler.runtime-DE2Egg6C.js} +2 -2
- package/dist/{channel-H_6lMgwf.js → channel-BLDnDlNh.js} +8 -8
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-BnO9f0pR.js → channel.runtime-CZJX7t-i.js} +6 -6
- package/dist/{cli-CYZ9yVcB.js → cli-713YQ4Cn.js} +8 -8
- package/dist/{cli-metadata-DPIHnoa6.js → cli-metadata-Dp6eBA-x.js} +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/{client-DkcXnm0X.js → client-CzwbYhJp.js} +2 -2
- package/dist/{client-bootstrap-Rb8oHvhH.js → client-bootstrap-CVht4US6.js} +1 -1
- package/dist/{client-_hckQNGW.js → client-wTkencoF.js} +3 -3
- package/dist/{config--5-S2Akv.js → config-DvF87-p1.js} +1 -1
- package/dist/{config-schema-nPLpEgHl.js → config-schema-BxhuVElv.js} +1 -1
- package/dist/contract-api.js +3 -3
- package/dist/{create-client-DCnqDaqd.js → create-client-BdH9j0mf.js} +2 -2
- package/dist/{crypto-runtime-ZI0zAtn3.js → crypto-runtime-CfDZ_OKm.js} +1 -1
- package/dist/{directory-live-DmOtMhyr.js → directory-live-3HvD1hHL.js} +2 -2
- package/dist/{draft-stream-BE2QevQQ.js → draft-stream-CfbJ1hZT.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{media-text-DU6nWZuj.js → media-text-COrb-tbz.js} +1 -1
- package/dist/{messages-BpihMh82.js → messages-DhSzWb05.js} +3 -3
- package/dist/{monitor-BaRCKyLd.js → monitor-Ft48sw1H.js} +10 -10
- package/dist/plugin-entry.handlers.runtime.js +1 -1
- package/dist/probe.runtime-UpDy6PRg.js +3 -0
- package/dist/{profile-update-DjeBNgIV.js → profile-update-VfHL5bGn.js} +1 -1
- package/dist/{resolve-targets-YtJnw1Tb.js → resolve-targets-BixFTna-.js} +1 -1
- package/dist/{resolver.runtime-D9piiGEl.js → resolver.runtime-CAkOq2mL.js} +1 -1
- package/dist/{sdk-B2vZA27-.js → sdk-CwxmHlgN.js} +1 -1
- package/dist/{send-Bo0DU1ca.js → send-CxbikeHx.js} +1 -1
- package/dist/{setup-bootstrap-ImenBsMt.js → setup-bootstrap-2bH7sf6H.js} +1 -1
- package/dist/{setup-core-CfZy05oW.js → setup-core-DtxS62ef.js} +1 -1
- package/dist/setup-plugin-api.js +3 -3
- package/dist/{setup-surface-CqT_o61M.js → setup-surface-BpIVJ14E.js} +3 -3
- package/dist/{shared-CpMoYKm1.js → shared-5Cs6nPW-.js} +2 -2
- package/dist/test-api.js +2 -2
- package/dist/{thread-bindings-B9mesxXk.js → thread-bindings-CbW2O2hP.js} +1 -1
- package/dist/{tool-actions.runtime-ThYhfHtZ.js → tool-actions.runtime-BlsvzKgH.js} +8 -8
- package/dist/{verification-CZ2rDeHL.js → verification-D6KOTfn2.js} +1 -1
- package/package.json +6 -5
- package/dist/probe.runtime-BvAzYAIe.js +0 -3
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-BWwIruri.js";
|
|
3
3
|
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./env-vars-C7uQCTKn.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-BJLdnCjV.js";
|
|
5
|
-
import { t as matrixPlugin } from "./channel-
|
|
6
|
-
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-
|
|
7
|
-
import { n as matrixOnboardingAdapter } from "./setup-surface-
|
|
8
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
5
|
+
import { t as matrixPlugin } from "./channel-BLDnDlNh.js";
|
|
6
|
+
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-DtxS62ef.js";
|
|
7
|
+
import { n as matrixOnboardingAdapter } from "./setup-surface-BpIVJ14E.js";
|
|
8
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-CbW2O2hP.js";
|
|
9
9
|
//#region extensions/matrix/api.ts
|
|
10
10
|
const matrixSessionBindingAdapterChannels = ["matrix"];
|
|
11
11
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as resolveMatrixTargetIdentity } from "./target-ids-80nQ2gql.js";
|
|
2
2
|
import { i as resolveMatrixAccount } from "./accounts-Bm90Rzvp.js";
|
|
3
3
|
import { c as shouldHandleMatrixApprovalRequest, r as isMatrixAnyApprovalClientEnabled } from "./exec-approvals-Crnh543m.js";
|
|
4
|
-
import { a as sendMessageMatrix, i as reactMatrixMessage, s as sendSingleTextMessageMatrix } from "./send-
|
|
4
|
+
import { a as sendMessageMatrix, i as reactMatrixMessage, s as sendSingleTextMessageMatrix } from "./send-CxbikeHx.js";
|
|
5
5
|
import { a as repairMatrixDirectRooms } from "./direct-management-DMMMgtTB.js";
|
|
6
6
|
import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-o2_tuH8D.js";
|
|
7
|
-
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-
|
|
7
|
+
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-DhSzWb05.js";
|
|
8
8
|
import { listMessageReceiptPlatformIds, resolveMessageReceiptPrimaryId } from "openclaw/plugin-sdk/channel-message";
|
|
9
9
|
import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
10
10
|
import { setTimeout } from "node:timers/promises";
|
|
@@ -7,12 +7,12 @@ import { n as normalizeMatrixUserId } from "./allowlist-sTzpCn5d.js";
|
|
|
7
7
|
import { t as normalizeMatrixApproverId } from "./approval-ids-DoC2z7tR.js";
|
|
8
8
|
import { a as isMatrixExecApprovalAuthorizedSender, c as shouldHandleMatrixApprovalRequest, d as matrixApprovalAuth, i as isMatrixApprovalClientEnabled, l as shouldSuppressLocalMatrixExecApprovalPrompt, n as getMatrixExecApprovalApprovers, o as isMatrixExecApprovalClientEnabled, r as isMatrixAnyApprovalClientEnabled, s as resolveMatrixExecApprovalTarget, t as getMatrixApprovalApprovers, u as getMatrixApprovalAuthApprovers } from "./exec-approvals-Crnh543m.js";
|
|
9
9
|
import { t as formatMatrixErrorMessage } from "./errors-CTcpEDq-.js";
|
|
10
|
-
import { n as DEFAULT_ACCOUNT_ID$2, r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-
|
|
10
|
+
import { n as DEFAULT_ACCOUNT_ID$2, r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-BxhuVElv.js";
|
|
11
11
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-D4-64QuJ.js";
|
|
12
12
|
import { n as resolveMatrixRoomConfig, t as resolveMatrixStoredSessionMeta } from "./session-store-metadata-DQXjgNLt.js";
|
|
13
13
|
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DcrJWCQI.js";
|
|
14
14
|
import { a as namedAccountPromotionKeys, o as resolveSingleAccountPromotionTarget, s as singleAccountKeysToMove } from "./setup-dm-policy-2-r1FrQh.js";
|
|
15
|
-
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-
|
|
15
|
+
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-DtxS62ef.js";
|
|
16
16
|
import { i as autoPrepareLegacyMatrixCrypto, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus } from "./matrix-migration.runtime-WY6ffcrf.js";
|
|
17
17
|
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-DaCHTp8C.js";
|
|
18
18
|
import { n as resolveMatrixInboundConversation } from "./thread-binding-api-Cq_E-E1K.js";
|
|
@@ -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-BlsvzKgH.js");
|
|
133
133
|
const { action, params, cfg, accountId, mediaLocalRoots } = ctx;
|
|
134
134
|
const dispatch = async (actionParams) => await handleMatrixAction({
|
|
135
135
|
...actionParams,
|
|
@@ -405,7 +405,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
|
|
|
405
405
|
accountId,
|
|
406
406
|
request
|
|
407
407
|
}),
|
|
408
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
408
|
+
load: async () => (await import("./approval-handler.runtime-DE2Egg6C.js")).matrixApprovalNativeRuntime
|
|
409
409
|
})
|
|
410
410
|
});
|
|
411
411
|
const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
|
|
@@ -543,7 +543,7 @@ function resolveMatrixGroupToolPolicy(params) {
|
|
|
543
543
|
}
|
|
544
544
|
//#endregion
|
|
545
545
|
//#region extensions/matrix/src/resolver.ts
|
|
546
|
-
const loadMatrixChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./resolver.runtime-
|
|
546
|
+
const loadMatrixChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./resolver.runtime-CAkOq2mL.js"), "matrixResolverRuntime");
|
|
547
547
|
const matrixResolverAdapter = { resolveTargets: async ({ cfg, accountId, inputs, kind, runtime }) => (await loadMatrixChannelRuntime$1()).resolveMatrixTargets({
|
|
548
548
|
cfg,
|
|
549
549
|
accountId,
|
|
@@ -688,8 +688,8 @@ async function runMatrixStartupMaintenance(params) {
|
|
|
688
688
|
//#endregion
|
|
689
689
|
//#region extensions/matrix/src/channel.ts
|
|
690
690
|
let matrixStartupLock = Promise.resolve();
|
|
691
|
-
const loadMatrixSetupWizard = createLazyRuntimeNamedExport(() => import("./setup-surface-
|
|
692
|
-
const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
691
|
+
const loadMatrixSetupWizard = createLazyRuntimeNamedExport(() => import("./setup-surface-BpIVJ14E.js").then((n) => n.t), "matrixSetupWizard");
|
|
692
|
+
const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-CZJX7t-i.js"), "matrixChannelRuntime");
|
|
693
693
|
const meta = {
|
|
694
694
|
id: "matrix",
|
|
695
695
|
label: "Matrix",
|
|
@@ -1054,7 +1054,7 @@ const matrixPlugin = createChatChannelPlugin({
|
|
|
1054
1054
|
await previousLock;
|
|
1055
1055
|
let monitorMatrixProvider;
|
|
1056
1056
|
try {
|
|
1057
|
-
monitorMatrixProvider = (await import("./monitor-
|
|
1057
|
+
monitorMatrixProvider = (await import("./monitor-Ft48sw1H.js")).monitorMatrixProvider;
|
|
1058
1058
|
} finally {
|
|
1059
1059
|
releaseLock();
|
|
1060
1060
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as matrixPlugin } from "./channel-
|
|
1
|
+
import { t as matrixPlugin } from "./channel-BLDnDlNh.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-CxbikeHx.js";
|
|
2
2
|
import { t as isBunRuntime } from "./runtime-C6X4h_SJ.js";
|
|
3
|
-
import { n as resolveMatrixAuth } from "./config
|
|
4
|
-
import "./client-
|
|
5
|
-
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-
|
|
3
|
+
import { n as resolveMatrixAuth } from "./config-DvF87-p1.js";
|
|
4
|
+
import "./client-wTkencoF.js";
|
|
5
|
+
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-3HvD1hHL.js";
|
|
6
6
|
import { f as resolveOutboundSendDep, n as chunkTextForOutbound } from "./runtime-api-DTKcXOhp.js";
|
|
7
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
7
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-BixFTna-.js";
|
|
8
8
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
9
9
|
import { createReplyToFanout } from "openclaw/plugin-sdk/outbound-runtime";
|
|
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-UpDy6PRg.js").then((runtimeModule) => ({ createMatrixClient: runtimeModule.createMatrixClient }));
|
|
17
17
|
return await matrixProbeRuntimeDepsPromise;
|
|
18
18
|
}
|
|
19
19
|
async function probeMatrix(params) {
|
|
@@ -3,16 +3,16 @@ import { t as getMatrixRuntime } from "./runtime-Dog86njy.js";
|
|
|
3
3
|
import { i as resolveMatrixAccount } from "./accounts-Bm90Rzvp.js";
|
|
4
4
|
import { t as formatMatrixErrorMessage } from "./errors-CTcpEDq-.js";
|
|
5
5
|
import { n as resolveMatrixConfigPath, r as updateMatrixAccountConfig } from "./config-update-wZX-HLMn.js";
|
|
6
|
-
import { n as matrixSetupAdapter } from "./setup-core-
|
|
6
|
+
import { n as matrixSetupAdapter } from "./setup-core-DtxS62ef.js";
|
|
7
7
|
import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-Cabu_WQC.js";
|
|
8
8
|
import { i as setMatrixSdkLogMode, r as setMatrixSdkConsoleLogging } from "./logging-DZHSPP5N.js";
|
|
9
|
-
import { n as withResolvedActionClient } from "./client-
|
|
10
|
-
import { r as resolveMatrixAuthContext } from "./config
|
|
11
|
-
import "./client-
|
|
9
|
+
import { n as withResolvedActionClient } from "./client-CzwbYhJp.js";
|
|
10
|
+
import { r as resolveMatrixAuthContext } from "./config-DvF87-p1.js";
|
|
11
|
+
import "./client-wTkencoF.js";
|
|
12
12
|
import { i as formatZonedTimestamp } from "./runtime-api-DTKcXOhp.js";
|
|
13
13
|
import { isOpenClawManagedMatrixDevice, summarizeMatrixDeviceHealth } from "./device-health-UVYpbA_W.js";
|
|
14
|
-
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-
|
|
15
|
-
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-
|
|
14
|
+
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-VfHL5bGn.js";
|
|
15
|
+
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-D6KOTfn2.js";
|
|
16
16
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
17
17
|
//#region extensions/matrix/src/matrix/actions/devices.ts
|
|
18
18
|
async function listMatrixOwnDevices(opts = {}) {
|
|
@@ -39,7 +39,7 @@ let matrixCliExitScheduled = false;
|
|
|
39
39
|
let matrixActionClientModulePromise;
|
|
40
40
|
let matrixDirectManagementModulePromise;
|
|
41
41
|
function loadMatrixActionClientModule() {
|
|
42
|
-
matrixActionClientModulePromise ??= import("./client-
|
|
42
|
+
matrixActionClientModulePromise ??= import("./client-CzwbYhJp.js").then((n) => n.t);
|
|
43
43
|
return matrixActionClientModulePromise;
|
|
44
44
|
}
|
|
45
45
|
function loadMatrixDirectManagementModule() {
|
|
@@ -209,7 +209,7 @@ async function addMatrixAccount(params) {
|
|
|
209
209
|
backupVersion: null
|
|
210
210
|
};
|
|
211
211
|
if (accountConfig.encryption === true) {
|
|
212
|
-
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-
|
|
212
|
+
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-2bH7sf6H.js");
|
|
213
213
|
verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
|
|
214
214
|
previousCfg: cfg,
|
|
215
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-713YQ4Cn.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-Dp6eBA-x.js";
|
|
2
2
|
export { cli_metadata_default as default, registerMatrixCliMetadata };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
|
-
import { u as resolveMatrixRoomId } from "./send-
|
|
3
|
-
import { n as withResolvedRuntimeMatrixClient } from "./client-bootstrap-
|
|
2
|
+
import { u as resolveMatrixRoomId } from "./send-CxbikeHx.js";
|
|
3
|
+
import { n as withResolvedRuntimeMatrixClient } from "./client-bootstrap-CVht4US6.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-wTkencoF.js").then((n) => n.t), import("./shared-5Cs6nPW-.js").then((n) => n.a)]).then(([clientModule, sharedModule]) => ({
|
|
14
14
|
acquireSharedMatrixClient: clientModule.acquireSharedMatrixClient,
|
|
15
15
|
resolveMatrixAuthContext: clientModule.resolveMatrixAuthContext,
|
|
16
16
|
releaseSharedClientInstance: sharedModule.releaseSharedClientInstance
|
|
@@ -3,9 +3,9 @@ import { t as getMatrixScopedEnvVarNames } from "./env-vars-C7uQCTKn.js";
|
|
|
3
3
|
import { i as resolveScopedMatrixEnvConfig, r as resolveMatrixEnvAuthReadiness, t as hasReadyMatrixEnvAuth } from "./env-auth-BJqGI8M6.js";
|
|
4
4
|
import { n as validateMatrixHomeserverUrl, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-DiK9j7jz.js";
|
|
5
5
|
import { t as isBunRuntime } from "./runtime-C6X4h_SJ.js";
|
|
6
|
-
import { i as resolveMatrixConfigForAccount, n as resolveMatrixAuth, r as resolveMatrixAuthContext, t as backfillMatrixAuthDeviceIdAfterStartup } from "./config
|
|
7
|
-
import { t as createMatrixClient } from "./create-client-
|
|
8
|
-
import { i as resolveSharedMatrixClient, n as releaseSharedClientInstance, o as stopSharedClientForAccount, r as removeSharedClientInstance, s as stopSharedClientInstance, t as acquireSharedMatrixClient } from "./shared-
|
|
6
|
+
import { i as resolveMatrixConfigForAccount, n as resolveMatrixAuth, r as resolveMatrixAuthContext, t as backfillMatrixAuthDeviceIdAfterStartup } from "./config-DvF87-p1.js";
|
|
7
|
+
import { t as createMatrixClient } from "./create-client-BdH9j0mf.js";
|
|
8
|
+
import { i as resolveSharedMatrixClient, n as releaseSharedClientInstance, o as stopSharedClientForAccount, r as removeSharedClientInstance, s as stopSharedClientInstance, t as acquireSharedMatrixClient } from "./shared-5Cs6nPW-.js";
|
|
9
9
|
//#region extensions/matrix/src/matrix/client.ts
|
|
10
10
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
11
11
|
acquireSharedMatrixClient: () => acquireSharedMatrixClient,
|
|
@@ -19,7 +19,7 @@ let matrixSecretInputDepsPromise;
|
|
|
19
19
|
let matrixAuthClientDepsForTest;
|
|
20
20
|
const MATRIX_AUTH_REQUEST_RETRY_RE = /\b(fetch failed|econnreset|econnrefused|enotfound|etimedout|ehostunreach|enetunreach|eai_again|und_err_|socket hang up|network|headers timeout|body timeout|connect timeout)\b/i;
|
|
21
21
|
async function loadMatrixAuthClientDeps() {
|
|
22
|
-
matrixAuthClientDepsPromise ??= Promise.all([import("./sdk-
|
|
22
|
+
matrixAuthClientDepsPromise ??= Promise.all([import("./sdk-CwxmHlgN.js").then((n) => n.n), import("./logging-DZHSPP5N.js").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
|
|
23
23
|
MatrixClient: sdkModule.MatrixClient,
|
|
24
24
|
ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
|
|
25
25
|
}));
|
|
@@ -6,7 +6,7 @@ import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "op
|
|
|
6
6
|
import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-primitives";
|
|
7
7
|
import { AllowFromListSchema, ContextVisibilityModeSchema, GroupPolicySchema, MarkdownConfigSchema, ToolPolicySchema, buildNestedDmConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
|
|
8
8
|
import { buildSecretInputSchema } from "openclaw/plugin-sdk/secret-input";
|
|
9
|
-
import { z } from "
|
|
9
|
+
import { z } from "zod";
|
|
10
10
|
//#region extensions/matrix/src/config-adapter.ts
|
|
11
11
|
const matrixConfigAdapter = createScopedChannelConfigAdapter({
|
|
12
12
|
sectionKey: "matrix",
|
package/dist/contract-api.js
CHANGED
|
@@ -3,7 +3,7 @@ import { r as setMatrixRuntime } from "./runtime-Dog86njy.js";
|
|
|
3
3
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-D4-64QuJ.js";
|
|
4
4
|
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DcrJWCQI.js";
|
|
5
5
|
import { a as namedAccountPromotionKeys, o as resolveSingleAccountPromotionTarget, s as singleAccountKeysToMove } from "./setup-dm-policy-2-r1FrQh.js";
|
|
6
|
-
import { n as matrixSetupAdapter } from "./setup-core-
|
|
7
|
-
import { n as matrixOnboardingAdapter } from "./setup-surface-
|
|
8
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
6
|
+
import { n as matrixSetupAdapter } from "./setup-core-DtxS62ef.js";
|
|
7
|
+
import { n as matrixOnboardingAdapter } from "./setup-surface-BpIVJ14E.js";
|
|
8
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-CbW2O2hP.js";
|
|
9
9
|
export { collectRuntimeConfigAssignments, createMatrixThreadBindingManager, legacyConfigRules, matrixSetupAdapter, matrixOnboardingAdapter as matrixSetupWizard, namedAccountPromotionKeys, normalizeCompatibilityConfig, resetMatrixThreadBindingsForTests, resolveSingleAccountPromotionTarget, secretTargetRegistryEntries, setMatrixRuntime, singleAccountKeysToMove };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
2
|
import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-DiK9j7jz.js";
|
|
3
3
|
import { a as resolveMatrixStoragePaths, n as maybeMigrateLegacyStorage, o as writeStorageMeta } from "./storage-tC3ujLiW.js";
|
|
4
|
-
import "./config
|
|
4
|
+
import "./config-DvF87-p1.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-CwxmHlgN.js").then((n) => n.n), import("./logging-DZHSPP5N.js").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
|
|
13
13
|
MatrixClient: sdkModule.MatrixClient,
|
|
14
14
|
ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
|
|
15
15
|
}));
|
|
@@ -837,7 +837,7 @@ var MatrixVerificationManager = class {
|
|
|
837
837
|
this.trackedVerificationVerifiers = /* @__PURE__ */ new WeakSet();
|
|
838
838
|
this.summaryListeners = /* @__PURE__ */ new Set();
|
|
839
839
|
}
|
|
840
|
-
readRequestValue(
|
|
840
|
+
readRequestValue(_request, reader, fallback) {
|
|
841
841
|
try {
|
|
842
842
|
return reader();
|
|
843
843
|
} catch {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
2
|
import { n as normalizeMatrixMessagingTarget, t as isMatrixQualifiedUserId } from "./target-ids-80nQ2gql.js";
|
|
3
3
|
import { t as MatrixAuthedHttpClient } from "./http-client-C7AeVJay.js";
|
|
4
|
-
import { n as resolveMatrixAuth } from "./config
|
|
5
|
-
import "./client-
|
|
4
|
+
import { n as resolveMatrixAuth } from "./config-DvF87-p1.js";
|
|
5
|
+
import "./client-wTkencoF.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,4 +1,4 @@
|
|
|
1
|
-
import { n as editMessageMatrix, r as prepareMatrixSingleText, s as sendSingleTextMessageMatrix } from "./send-
|
|
1
|
+
import { n as editMessageMatrix, r as prepareMatrixSingleText, s as sendSingleTextMessageMatrix } from "./send-CxbikeHx.js";
|
|
2
2
|
import { l as MsgType } from "./direct-management-DMMMgtTB.js";
|
|
3
3
|
import { createDraftStreamLoop } from "openclaw/plugin-sdk/channel-lifecycle";
|
|
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-Dp6eBA-x.js";
|
|
2
2
|
import { registerMatrixSubagentHooks } from "./subagent-hooks-api.js";
|
|
3
3
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
4
4
|
//#region extensions/matrix/index.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as buildPollResultsSummary, g as isPollStartType, h as isPollEventType, m as formatPollResultsAsText, p as formatPollAsText, v as parsePollStartContent, y as resolvePollReferenceEventId } from "./send-
|
|
1
|
+
import { f as buildPollResultsSummary, g as isPollStartType, h as isPollEventType, m as formatPollResultsAsText, p as formatPollAsText, v as parsePollStartContent, y as resolvePollReferenceEventId } from "./send-CxbikeHx.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
//#region extensions/matrix/src/matrix/poll-summary.ts
|
|
4
4
|
function resolveMatrixPollRootEventId(event) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as isMatrixNotFoundError } from "./errors-CTcpEDq-.js";
|
|
2
|
-
import { a as sendMessageMatrix, h as isPollEventType, n as editMessageMatrix } from "./send-
|
|
2
|
+
import { a as sendMessageMatrix, h as isPollEventType, n as editMessageMatrix } from "./send-CxbikeHx.js";
|
|
3
3
|
import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-ejrL19w-.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-COrb-tbz.js";
|
|
5
|
+
import { r as withResolvedRoomAction } from "./client-CzwbYhJp.js";
|
|
6
6
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
//#region extensions/matrix/src/matrix/actions/limits.ts
|
|
8
8
|
function resolveMatrixActionLimit(raw, fallback) {
|
|
@@ -6,23 +6,23 @@ import { n as normalizeMatrixUserId, r as resolveMatrixAllowListMatch, t as norm
|
|
|
6
6
|
import { r as isMatrixNotFoundError, t as formatMatrixErrorMessage } from "./errors-CTcpEDq-.js";
|
|
7
7
|
import { a as canonicalizeAllowlistWithResolvedIds, c as formatLocationText, d as logTypingFailure, f as patchAllowlistUsersInConfigEntries, i as buildAllowlistResolutionSummary, l as getAgentScopedMediaLocalRoots, m as toLocationContext, n as resolveMatrixRoomConfig, o as createReplyPrefixOptions, p as summarizeMapping, r as addAllowlistUserEntriesFromConfigEntry, s as createTypingCallbacks, t as resolveMatrixStoredSessionMeta, u as logInboundDrop } from "./session-store-metadata-DQXjgNLt.js";
|
|
8
8
|
import { i as resolveMatrixStateFilePath } from "./storage-tC3ujLiW.js";
|
|
9
|
-
import { a as sendMessageMatrix, g as isPollStartType, h as isPollEventType, p as formatPollAsText, t as chunkMatrixText, v as parsePollStartContent } from "./send-
|
|
9
|
+
import { a as sendMessageMatrix, g as isPollStartType, h as isPollEventType, p as formatPollAsText, t as chunkMatrixText, v as parsePollStartContent } from "./send-CxbikeHx.js";
|
|
10
10
|
import { i as promoteMatrixDirectRoomCandidate, s as MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY } from "./direct-management-DMMMgtTB.js";
|
|
11
11
|
import { i as isStrictDirectMembership, n as hasDirectMatrixMemberFlag, o as readJoinedMatrixMembers } from "./direct-room-XkutHjES.js";
|
|
12
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
12
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-CbW2O2hP.js";
|
|
13
13
|
import { t as createAsyncLock } from "./async-lock-uQfhfQIY.js";
|
|
14
14
|
import { n as LogService } from "./logger-CnZRVrux.js";
|
|
15
15
|
import { i as isMatrixMediaSizeLimitError, r as MatrixMediaSizeLimitError } from "./http-client-C7AeVJay.js";
|
|
16
16
|
import { i as throwIfMatrixStartupAborted, r as isMatrixStartupAbortError } from "./startup-abort-56edvmbM.js";
|
|
17
17
|
import { n as isMatrixReadySyncState, r as isMatrixTerminalSyncState, t as isMatrixDisconnectedSyncState } from "./sync-state-C_beeevA.js";
|
|
18
|
-
import { a as resolveMatrixMessageBody, i as resolveMatrixMessageAttachment, n as formatMatrixMediaUnavailableText, r as formatMatrixMessageText, s as fetchMatrixPollSnapshot, t as formatMatrixMediaTooLargeText } from "./media-text-
|
|
18
|
+
import { a as resolveMatrixMessageBody, i as resolveMatrixMessageAttachment, n as formatMatrixMediaUnavailableText, r as formatMatrixMessageText, s as fetchMatrixPollSnapshot, t as formatMatrixMediaTooLargeText } from "./media-text-COrb-tbz.js";
|
|
19
19
|
import { n as setActiveMatrixClient } from "./active-client-uhlxdhEy.js";
|
|
20
20
|
import { t as isBunRuntime } from "./runtime-C6X4h_SJ.js";
|
|
21
|
-
import { n as resolveMatrixAuth, r as resolveMatrixAuthContext, t as backfillMatrixAuthDeviceIdAfterStartup } from "./config
|
|
22
|
-
import { i as resolveSharedMatrixClient, n as releaseSharedClientInstance } from "./shared-
|
|
23
|
-
import "./client-
|
|
21
|
+
import { n as resolveMatrixAuth, r as resolveMatrixAuthContext, t as backfillMatrixAuthDeviceIdAfterStartup } from "./config-DvF87-p1.js";
|
|
22
|
+
import { i as resolveSharedMatrixClient, n as releaseSharedClientInstance } from "./shared-5Cs6nPW-.js";
|
|
23
|
+
import "./client-wTkencoF.js";
|
|
24
24
|
import { d as resolveDefaultGroupPolicy, h as warnMissingProviderGroupPolicyFallbackOnce, m as resolveThreadBindingMaxAgeMsForChannel, p as resolveThreadBindingIdleTimeoutMsForChannel, t as GROUP_POLICY_BLOCKED_LABEL, u as resolveAllowlistProviderRuntimeGroupPolicy } from "./runtime-api-DTKcXOhp.js";
|
|
25
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
25
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-BixFTna-.js";
|
|
26
26
|
import { t as formatMatrixEncryptedEventDisabledWarning } from "./encryption-guidance-BPi3A_m3.js";
|
|
27
27
|
import { a as EventType, i as resolveMatrixThreadRouting, n as resolveMatrixReplyToEventId, o as RelationType, r as resolveMatrixThreadRootId, t as resolveMatrixInboundRoute } from "./route-D6rg-iXN.js";
|
|
28
28
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -39,7 +39,7 @@ import { createChannelIngressResolver, defineStableChannelIngressIdentity } from
|
|
|
39
39
|
import { createChannelProgressDraftGate, formatChannelProgressDraftLine, formatChannelProgressDraftLineForEntry, formatChannelProgressDraftText, isChannelProgressDraftWorkToolName, resolveChannelProgressDraftMaxLines } from "openclaw/plugin-sdk/channel-streaming";
|
|
40
40
|
import { evaluateSupplementalContextVisibility, resolveChannelContextVisibilityMode } from "openclaw/plugin-sdk/context-visibility-runtime";
|
|
41
41
|
import { resolvePinnedMainDmOwnerFromAllowlist } from "openclaw/plugin-sdk/security-runtime";
|
|
42
|
-
import { escapeRegExp } from "openclaw/plugin-sdk/text-runtime";
|
|
42
|
+
import { escapeRegExp } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
43
43
|
import { createConnectedChannelStatusPatch, createTransportActivityStatusPatch } from "openclaw/plugin-sdk/gateway-runtime";
|
|
44
44
|
//#region extensions/matrix/src/matrix/monitor/auto-join.ts
|
|
45
45
|
function registerMatrixAutoJoin(params) {
|
|
@@ -1895,7 +1895,7 @@ let sessionBindingRuntimePromise;
|
|
|
1895
1895
|
let matrixReactionEventsPromise;
|
|
1896
1896
|
let matrixDraftStreamPromise;
|
|
1897
1897
|
function loadMatrixSendModule() {
|
|
1898
|
-
matrixSendModulePromise ??= import("./send-
|
|
1898
|
+
matrixSendModulePromise ??= import("./send-CxbikeHx.js").then((n) => n.l);
|
|
1899
1899
|
return matrixSendModulePromise;
|
|
1900
1900
|
}
|
|
1901
1901
|
function loadAcpBindingRuntime() {
|
|
@@ -1911,7 +1911,7 @@ function loadMatrixReactionEvents() {
|
|
|
1911
1911
|
return matrixReactionEventsPromise;
|
|
1912
1912
|
}
|
|
1913
1913
|
function loadMatrixDraftStream() {
|
|
1914
|
-
matrixDraftStreamPromise ??= import("./draft-stream-
|
|
1914
|
+
matrixDraftStreamPromise ??= import("./draft-stream-CfbJ1hZT.js");
|
|
1915
1915
|
return matrixDraftStreamPromise;
|
|
1916
1916
|
}
|
|
1917
1917
|
const MAX_TRACKED_PAIRING_REPLY_SENDERS = 512;
|
|
@@ -3,7 +3,7 @@ import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runti
|
|
|
3
3
|
//#region extensions/matrix/src/plugin-entry.runtime.ts
|
|
4
4
|
let matrixVerificationRuntimePromise;
|
|
5
5
|
function loadMatrixVerificationRuntime() {
|
|
6
|
-
matrixVerificationRuntimePromise ??= import("./verification-
|
|
6
|
+
matrixVerificationRuntimePromise ??= import("./verification-D6KOTfn2.js").then((n) => n.y);
|
|
7
7
|
return matrixVerificationRuntimePromise;
|
|
8
8
|
}
|
|
9
9
|
function sendError(respond, err) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-Dog86njy.js";
|
|
2
2
|
import { n as resolveMatrixConfigPath, r as updateMatrixAccountConfig } from "./config-update-wZX-HLMn.js";
|
|
3
3
|
import { r as syncMatrixOwnProfile } from "./profile-BlHu0wDX.js";
|
|
4
|
-
import { n as withResolvedActionClient } from "./client-
|
|
4
|
+
import { n as withResolvedActionClient } from "./client-CzwbYhJp.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 = {}) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
2
|
import { n as normalizeMatrixMessagingTarget, t as isMatrixQualifiedUserId } from "./target-ids-80nQ2gql.js";
|
|
3
|
-
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-
|
|
3
|
+
import { n as listMatrixDirectoryGroupsLive, r as listMatrixDirectoryPeersLive } from "./directory-live-3HvD1hHL.js";
|
|
4
4
|
import { normalizeOptionalLowercaseString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
//#region extensions/matrix/src/resolve-targets.ts
|
|
6
6
|
var resolve_targets_exports = /* @__PURE__ */ __exportAll({ resolveMatrixTargets: () => resolveMatrixTargets });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as resolveMatrixTargets } from "./resolve-targets-
|
|
1
|
+
import { t as resolveMatrixTargets } from "./resolve-targets-BixFTna-.js";
|
|
2
2
|
//#region extensions/matrix/src/resolver.runtime.ts
|
|
3
3
|
const matrixResolverRuntime = { resolveMatrixTargets };
|
|
4
4
|
//#endregion
|
|
@@ -290,7 +290,7 @@ function createMatrixExplicitBootstrapOptions(params) {
|
|
|
290
290
|
let loadedMatrixCryptoRuntime = null;
|
|
291
291
|
let matrixCryptoRuntimePromise = null;
|
|
292
292
|
async function loadMatrixCryptoRuntime() {
|
|
293
|
-
matrixCryptoRuntimePromise ??= import("./crypto-runtime-
|
|
293
|
+
matrixCryptoRuntimePromise ??= import("./crypto-runtime-CfDZ_OKm.js").then((runtime) => {
|
|
294
294
|
loadedMatrixCryptoRuntime = runtime;
|
|
295
295
|
return runtime;
|
|
296
296
|
});
|
|
@@ -230,7 +230,7 @@ function buildPollResponseContent(pollEventId, answerIds) {
|
|
|
230
230
|
//#region extensions/matrix/src/matrix/send/client.ts
|
|
231
231
|
let matrixSendClientRuntimePromise = null;
|
|
232
232
|
async function loadMatrixSendClientRuntime() {
|
|
233
|
-
matrixSendClientRuntimePromise ??= import("./client-bootstrap-
|
|
233
|
+
matrixSendClientRuntimePromise ??= import("./client-bootstrap-CVht4US6.js").then((n) => n.t);
|
|
234
234
|
return await matrixSendClientRuntimePromise;
|
|
235
235
|
}
|
|
236
236
|
function resolveMediaMaxBytes(accountId, cfg) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig, n as hasExplicitMatrixAccountConfig } from "./account-config-D2W-V1eQ.js";
|
|
2
2
|
import "./accounts-Bm90Rzvp.js";
|
|
3
3
|
import { t as formatMatrixErrorMessage } from "./errors-CTcpEDq-.js";
|
|
4
|
-
import { n as bootstrapMatrixVerification } from "./verification-
|
|
4
|
+
import { n as bootstrapMatrixVerification } from "./verification-D6KOTfn2.js";
|
|
5
5
|
//#region extensions/matrix/src/setup-bootstrap.ts
|
|
6
6
|
async function maybeBootstrapNewEncryptedMatrixAccount(params) {
|
|
7
7
|
const accountConfig = resolveMatrixAccountConfig({
|
|
@@ -103,7 +103,7 @@ const matrixSetupAdapter = {
|
|
|
103
103
|
input
|
|
104
104
|
}),
|
|
105
105
|
afterAccountConfigWritten: async ({ previousCfg, cfg, accountId, runtime }) => {
|
|
106
|
-
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-
|
|
106
|
+
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-2bH7sf6H.js");
|
|
107
107
|
await runMatrixSetupBootstrapAfterConfigWrite({
|
|
108
108
|
previousCfg,
|
|
109
109
|
cfg,
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as resolveMatrixAccount } from "./accounts-Bm90Rzvp.js";
|
|
2
|
-
import { r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-
|
|
3
|
-
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-
|
|
2
|
+
import { r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-BxhuVElv.js";
|
|
3
|
+
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-DtxS62ef.js";
|
|
4
4
|
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
5
5
|
const matrixSetupPlugin = {
|
|
6
6
|
id: "matrix",
|
|
@@ -14,7 +14,7 @@ const matrixSetupPlugin = {
|
|
|
14
14
|
order: 70,
|
|
15
15
|
quickstartAllowFrom: true
|
|
16
16
|
},
|
|
17
|
-
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./setup-surface-
|
|
17
|
+
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./setup-surface-BpIVJ14E.js").then((n) => n.t)).matrixSetupWizard })),
|
|
18
18
|
setup: matrixSetupAdapter,
|
|
19
19
|
capabilities: {
|
|
20
20
|
chatTypes: [
|
|
@@ -107,7 +107,7 @@ async function promptMatrixAllowFrom(params) {
|
|
|
107
107
|
pending.push(part);
|
|
108
108
|
}
|
|
109
109
|
if (pending.length > 0) {
|
|
110
|
-
const { resolveMatrixTargets } = await import("./resolve-targets-
|
|
110
|
+
const { resolveMatrixTargets } = await import("./resolve-targets-BixFTna-.js").then((n) => n.n);
|
|
111
111
|
const results = await resolveMatrixTargets({
|
|
112
112
|
cfg,
|
|
113
113
|
accountId,
|
|
@@ -235,7 +235,7 @@ async function configureMatrixAccessPrompts(params) {
|
|
|
235
235
|
resolvedIds.push(cleaned);
|
|
236
236
|
continue;
|
|
237
237
|
}
|
|
238
|
-
const { listMatrixDirectoryGroupsLive } = await import("./directory-live-
|
|
238
|
+
const { listMatrixDirectoryGroupsLive } = await import("./directory-live-3HvD1hHL.js").then((n) => n.t);
|
|
239
239
|
const matches = await listMatrixDirectoryGroupsLive({
|
|
240
240
|
cfg: next,
|
|
241
241
|
accountId: params.accountId,
|
|
@@ -510,7 +510,7 @@ const matrixOnboardingAdapter = {
|
|
|
510
510
|
});
|
|
511
511
|
},
|
|
512
512
|
afterConfigWritten: async ({ previousCfg, cfg, accountId, runtime }) => {
|
|
513
|
-
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-
|
|
513
|
+
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-2bH7sf6H.js");
|
|
514
514
|
await runMatrixSetupBootstrapAfterConfigWrite({
|
|
515
515
|
previousCfg,
|
|
516
516
|
cfg,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
2
|
import { n as LogService } from "./logger-CnZRVrux.js";
|
|
3
3
|
import { t as awaitMatrixStartupWithAbort } from "./startup-abort-56edvmbM.js";
|
|
4
|
-
import { n as resolveMatrixAuth, r as resolveMatrixAuthContext } from "./config
|
|
4
|
+
import { n as resolveMatrixAuth, r as resolveMatrixAuthContext } from "./config-DvF87-p1.js";
|
|
5
5
|
import { normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
|
|
6
6
|
//#region extensions/matrix/src/matrix/client/shared.ts
|
|
7
7
|
var shared_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -15,7 +15,7 @@ var shared_exports = /* @__PURE__ */ __exportAll({
|
|
|
15
15
|
});
|
|
16
16
|
let matrixCreateClientDepsPromise;
|
|
17
17
|
async function loadMatrixCreateClientDeps() {
|
|
18
|
-
matrixCreateClientDepsPromise ??= import("./create-client-
|
|
18
|
+
matrixCreateClientDepsPromise ??= import("./create-client-BdH9j0mf.js").then((n) => n.n).then((runtime) => ({ createMatrixClient: runtime.createMatrixClient }));
|
|
19
19
|
return await matrixCreateClientDepsPromise;
|
|
20
20
|
}
|
|
21
21
|
const sharedClientStates = /* @__PURE__ */ new Map();
|
package/dist/test-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { r as setMatrixRuntime } from "./runtime-Dog86njy.js";
|
|
2
|
-
import { t as matrixPlugin } from "./channel-
|
|
3
|
-
import { t as MatrixClient } from "./sdk-
|
|
2
|
+
import { t as matrixPlugin } from "./channel-BLDnDlNh.js";
|
|
3
|
+
import { t as MatrixClient } from "./sdk-CwxmHlgN.js";
|
|
4
4
|
export { MatrixClient, matrixPlugin, setMatrixRuntime };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as listBindingsForAccount, c as resolveBindingKey, f as setMatrixThreadBindingManagerEntry, h as toSessionBindingRecord, l as resolveEffectiveBindingExpiry, m as toMatrixBindingTargetKind, o as removeBindingRecord, r as getMatrixThreadBindingManagerEntry, t as deleteMatrixThreadBindingManagerEntry, u as setBindingRecord } from "./thread-bindings-shared-DK-d-oYX.js";
|
|
2
2
|
import { i as resolveMatrixStateFilePath, t as claimCurrentTokenStorageState } from "./storage-tC3ujLiW.js";
|
|
3
|
-
import { a as sendMessageMatrix } from "./send-
|
|
3
|
+
import { a as sendMessageMatrix } from "./send-CxbikeHx.js";
|
|
4
4
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { registerSessionBindingAdapter, resolveThreadBindingFarewellText, unregisterSessionBindingAdapter } from "openclaw/plugin-sdk/thread-bindings-session-runtime";
|
|
6
6
|
import path from "node:path";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as resolveMatrixAccountConfig } from "./account-config-D2W-V1eQ.js";
|
|
2
2
|
import "./accounts-Bm90Rzvp.js";
|
|
3
|
-
import { _ as parsePollStart, d as buildPollResponseContent, g as isPollStartType, i as reactMatrixMessage, u as resolveMatrixRoomId } from "./send-
|
|
3
|
+
import { _ as parsePollStart, d as buildPollResponseContent, g as isPollStartType, i as reactMatrixMessage, u as resolveMatrixRoomId } from "./send-CxbikeHx.js";
|
|
4
4
|
import { i as buildMatrixReactionRelationsPath, o as selectOwnMatrixReactionEventIds, s as summarizeMatrixReactionEvents } from "./reaction-common-ejrL19w-.js";
|
|
5
|
-
import { n as withResolvedActionClient, r as withResolvedRoomAction } from "./client-
|
|
6
|
-
import { a as fetchEventSummary, c as resolveMatrixActionLimit, i as sendMatrixMessage, n as editMatrixMessage, o as readPinnedEvents, r as readMatrixMessages, s as EventType, t as deleteMatrixMessage } from "./messages-
|
|
5
|
+
import { n as withResolvedActionClient, r as withResolvedRoomAction } from "./client-CzwbYhJp.js";
|
|
6
|
+
import { a as fetchEventSummary, c as resolveMatrixActionLimit, i as sendMatrixMessage, n as editMatrixMessage, o as readPinnedEvents, r as readMatrixMessages, s as EventType, t as deleteMatrixMessage } from "./messages-DhSzWb05.js";
|
|
7
7
|
import { a as jsonResult, c as readStringArrayParam, l as readStringParam, o as readNumberParam, r as createActionGate, s as readReactionParams } from "./runtime-api-DTKcXOhp.js";
|
|
8
|
-
import { t as applyMatrixProfileUpdate } from "./profile-update-
|
|
9
|
-
import { _ as scanMatrixVerificationQr, a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, h as restoreMatrixRoomKeyBackup, i as confirmMatrixVerificationReciprocateQr, l as getMatrixVerificationSas, n as bootstrapMatrixVerification, o as generateMatrixVerificationQr, p as requestMatrixVerification, r as cancelMatrixVerification, s as getMatrixEncryptionStatus, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-
|
|
8
|
+
import { t as applyMatrixProfileUpdate } from "./profile-update-VfHL5bGn.js";
|
|
9
|
+
import { _ as scanMatrixVerificationQr, a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, h as restoreMatrixRoomKeyBackup, i as confirmMatrixVerificationReciprocateQr, l as getMatrixVerificationSas, n as bootstrapMatrixVerification, o as generateMatrixVerificationQr, p as requestMatrixVerification, r as cancelMatrixVerification, s as getMatrixEncryptionStatus, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-D6KOTfn2.js";
|
|
10
10
|
import { normalizeOptionalLowercaseString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
11
11
|
//#region extensions/matrix/src/matrix/actions/polls.ts
|
|
12
12
|
function normalizeOptionIndexes(indexes) {
|
|
@@ -86,7 +86,7 @@ async function removeMatrixReactions(roomId, messageId, opts = {}) {
|
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region extensions/matrix/src/matrix/actions/pins.ts
|
|
89
|
-
async function updateMatrixPins(roomId,
|
|
89
|
+
async function updateMatrixPins(roomId, opts, update) {
|
|
90
90
|
return await withResolvedRoomAction(roomId, opts, async (client, resolvedRoom) => {
|
|
91
91
|
const next = update(await readPinnedEvents(client, resolvedRoom));
|
|
92
92
|
const payload = { pinned: next };
|
|
@@ -95,10 +95,10 @@ async function updateMatrixPins(roomId, messageId, opts, update) {
|
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
async function pinMatrixMessage(roomId, messageId, opts = {}) {
|
|
98
|
-
return await updateMatrixPins(roomId,
|
|
98
|
+
return await updateMatrixPins(roomId, opts, (current) => current.includes(messageId) ? current : [...current, messageId]);
|
|
99
99
|
}
|
|
100
100
|
async function unpinMatrixMessage(roomId, messageId, opts = {}) {
|
|
101
|
-
return await updateMatrixPins(roomId,
|
|
101
|
+
return await updateMatrixPins(roomId, opts, (current) => current.filter((id) => id !== messageId));
|
|
102
102
|
}
|
|
103
103
|
async function listMatrixPins(roomId, opts = {}) {
|
|
104
104
|
return await withResolvedRoomAction(roomId, opts, async (client, resolvedRoom) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
|
-
import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-
|
|
2
|
+
import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-CzwbYhJp.js";
|
|
3
3
|
import { n as formatMatrixEncryptionUnavailableError } from "./encryption-guidance-BPi3A_m3.js";
|
|
4
4
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/matrix",
|
|
3
|
-
"version": "2026.5.10-beta.
|
|
3
|
+
"version": "2026.5.10-beta.3",
|
|
4
4
|
"description": "OpenClaw Matrix channel plugin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,14 +14,15 @@
|
|
|
14
14
|
"markdown-it": "14.1.1",
|
|
15
15
|
"matrix-js-sdk": "41.5.0-rc.0",
|
|
16
16
|
"music-metadata": "^11.12.3",
|
|
17
|
-
"typebox": "1.1.38"
|
|
17
|
+
"typebox": "1.1.38",
|
|
18
|
+
"zod": "^4.4.3"
|
|
18
19
|
},
|
|
19
20
|
"devDependencies": {
|
|
20
21
|
"@openclaw/plugin-sdk": "workspace:*",
|
|
21
22
|
"openclaw": "workspace:*"
|
|
22
23
|
},
|
|
23
24
|
"peerDependencies": {
|
|
24
|
-
"openclaw": ">=2026.5.10-beta.
|
|
25
|
+
"openclaw": ">=2026.5.10-beta.3"
|
|
25
26
|
},
|
|
26
27
|
"peerDependenciesMeta": {
|
|
27
28
|
"openclaw": {
|
|
@@ -86,10 +87,10 @@
|
|
|
86
87
|
"allowInvalidConfigRecovery": true
|
|
87
88
|
},
|
|
88
89
|
"compat": {
|
|
89
|
-
"pluginApi": ">=2026.5.10-beta.
|
|
90
|
+
"pluginApi": ">=2026.5.10-beta.3"
|
|
90
91
|
},
|
|
91
92
|
"build": {
|
|
92
|
-
"openclawVersion": "2026.5.10-beta.
|
|
93
|
+
"openclawVersion": "2026.5.10-beta.3"
|
|
93
94
|
},
|
|
94
95
|
"release": {
|
|
95
96
|
"publishToClawHub": true,
|