@openclaw/matrix 2026.5.30-beta.1 → 2026.5.31-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.js +4 -4
- package/dist/{approval-handler.runtime-nfyxbtVZ.js → approval-handler.runtime-Dzh_2MS1.js} +4 -4
- package/dist/{approval-ids-vw7teE3M.js → approval-ids-CXPPSyAr.js} +1 -1
- package/dist/{approval-reaction-auth-kAazIsvu.js → approval-reaction-auth-m-11_ajL.js} +2 -2
- package/dist/{channel-DwJf74NH.js → channel-BwpVY2Ne.js} +9 -9
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-6ITv13UJ.js → channel.runtime-CUBxoFwA.js} +1 -1
- package/dist/{cli-BXd9cN_x.js → cli-CaF5tlL-.js} +7 -7
- package/dist/{cli-metadata-CkMUnkMl.js → cli-metadata-gFTG9oJL.js} +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/{client-CpSI5BON.js → client-D-t6CdHz.js} +1 -1
- package/dist/{config-schema-Bx-Pb1Kw.js → config-schema-DfjBrYch.js} +19 -2
- package/dist/contract-api.js +3 -3
- package/dist/{doctor-D3wfD2UP.js → doctor-BKjr6uua.js} +0 -1
- package/dist/{draft-stream-DQN43iqS.js → draft-stream-eaBWrjVK.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{media-text-C8b9cJiE.js → media-text-C2Wor3Gj.js} +1 -1
- package/dist/{messages-DyU_49Ws.js → messages-D0sumPNx.js} +3 -3
- package/dist/{monitor-C-w1IkPI.js → monitor-gDaABWfA.js} +20 -17
- package/dist/plugin-entry.handlers.runtime.js +1 -1
- package/dist/{profile-update-DON3UoVK.js → profile-update-Defy1W90.js} +2 -2
- package/dist/{reaction-events-Cf-zAwa6.js → reaction-events-Bh2u-_9j.js} +1 -1
- package/dist/{send-CAmsWgZ2.js → send-DHj1E9ji.js} +3 -1
- package/dist/{setup-bootstrap-5ki8dOiM.js → setup-bootstrap-kTPKb7jR.js} +2 -2
- package/dist/{setup-core-X-qaIzVT.js → setup-core-DRg3cgB8.js} +1 -1
- package/dist/setup-plugin-api.js +3 -3
- package/dist/{setup-surface-D6gS45Pz.js → setup-surface-soZQLgfu.js} +2 -2
- package/dist/{startup-verification-DdSXlCLn.js → startup-verification-CWLSyFen.js} +1 -1
- package/dist/{thread-bindings-yt8HTZo0.js → thread-bindings-DehFUArg.js} +3 -2
- package/dist/{tool-actions.runtime-DOh3pfFu.js → tool-actions.runtime-CU79qJ3e.js} +6 -6
- package/dist/{verification-BkvujZrn.js → verification-BJfjKMr8.js} +1 -1
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/.node-version +1 -1
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/CHANGELOG.md +32 -1
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/README.md +3 -3
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/index.d.ts +195 -15
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/index.js +6 -1
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/package.json +3 -3
- package/node_modules/typebox/build/type/script/mapping.d.mts +5 -2
- package/node_modules/typebox/build/type/script/mapping.mjs +15 -8
- package/node_modules/typebox/build/type/script/parser.d.mts +3 -1
- package/node_modules/typebox/build/type/script/parser.mjs +2 -1
- package/node_modules/typebox/package.json +29 -29
- package/npm-shrinkwrap.json +15 -15
- package/openclaw.plugin.json +46 -0
- package/package.json +6 -6
package/dist/api.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as resolveMatrixDefaultOrOnlyAccountId, i as resolveMatrixChannelConfig, n as requiresExplicitMatrixDefaultAccount, r as resolveConfiguredMatrixAccountIds, t as findMatrixAccountEntry } from "./account-selection-DEMtY2cn.js";
|
|
2
2
|
import { n as listMatrixEnvAccountIds, r as resolveMatrixEnvAccountToken, t as getMatrixScopedEnvVarNames } from "./env-vars-KzaYveuy.js";
|
|
3
3
|
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-BWo_ZEMC.js";
|
|
4
|
-
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-
|
|
5
|
-
import { t as matrixPlugin } from "./channel-
|
|
4
|
+
import { n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-DRg3cgB8.js";
|
|
5
|
+
import { t as matrixPlugin } from "./channel-BwpVY2Ne.js";
|
|
6
6
|
import { d as setMatrixThreadBindingIdleTimeoutBySessionKey, n as getMatrixThreadBindingManager, p as setMatrixThreadBindingMaxAgeBySessionKey, s as resetMatrixThreadBindingsForTests } from "./thread-bindings-shared-CKnY4LSd.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-soZQLgfu.js";
|
|
8
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-DehFUArg.js";
|
|
9
9
|
//#region extensions/matrix/api.ts
|
|
10
10
|
const matrixSessionBindingAdapterChannels = ["matrix"];
|
|
11
11
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as resolveMatrixAccount } from "./setup-core-
|
|
2
|
-
import { _ as shouldHandleMatrixApprovalRequest, g as isMatrixAnyApprovalClientEnabled } from "./channel-
|
|
1
|
+
import { g as resolveMatrixAccount } from "./setup-core-DRg3cgB8.js";
|
|
2
|
+
import { _ as shouldHandleMatrixApprovalRequest, g as isMatrixAnyApprovalClientEnabled } from "./channel-BwpVY2Ne.js";
|
|
3
3
|
import { a as resolveMatrixTargetIdentity } from "./target-ids-B-5aQxwn.js";
|
|
4
|
-
import { a as sendMessageMatrix, i as reactMatrixMessage, p as repairMatrixDirectRooms, s as sendSingleTextMessageMatrix } from "./send-
|
|
4
|
+
import { a as sendMessageMatrix, i as reactMatrixMessage, p as repairMatrixDirectRooms, s as sendSingleTextMessageMatrix } from "./send-DHj1E9ji.js";
|
|
5
5
|
import { a as unregisterMatrixApprovalReactionTarget, n as listMatrixApprovalReactionBindings, r as registerMatrixApprovalReactionTarget, t as buildMatrixApprovalReactionHint } from "./approval-reactions-BRGQgOu2.js";
|
|
6
|
-
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-
|
|
6
|
+
import { n as editMatrixMessage, t as deleteMatrixMessage } from "./messages-D0sumPNx.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 "./config-schema-
|
|
1
|
+
import { a as normalizeMatrixUserId } from "./config-schema-DfjBrYch.js";
|
|
2
2
|
//#region extensions/matrix/src/approval-ids.ts
|
|
3
3
|
function normalizeMatrixApproverId(value) {
|
|
4
4
|
return normalizeMatrixUserId(String(value)) || void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as resolveMatrixAccount } from "./setup-core-
|
|
2
|
-
import { t as normalizeMatrixApproverId } from "./approval-ids-
|
|
1
|
+
import { g as resolveMatrixAccount } from "./setup-core-DRg3cgB8.js";
|
|
2
|
+
import { t as normalizeMatrixApproverId } from "./approval-ids-CXPPSyAr.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 { n as requiresExplicitMatrixDefaultAccount } from "./account-selection-DEMtY2cn.js";
|
|
2
2
|
import { c as resolveMatrixAccountConfig } from "./config-paths-ZBCMwSos.js";
|
|
3
|
-
import { d as resolveSingleAccountPromotionTarget, f as singleAccountKeysToMove, g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, n as matrixSetupAdapter, p as listMatrixAccountIds, t as createMatrixSetupWizardProxy, u as namedAccountPromotionKeys } from "./setup-core-
|
|
4
|
-
import { a as normalizeMatrixUserId, n as DEFAULT_ACCOUNT_ID$2, r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-
|
|
5
|
-
import { t as normalizeMatrixApproverId } from "./approval-ids-
|
|
3
|
+
import { d as resolveSingleAccountPromotionTarget, f as singleAccountKeysToMove, g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, n as matrixSetupAdapter, p as listMatrixAccountIds, t as createMatrixSetupWizardProxy, u as namedAccountPromotionKeys } from "./setup-core-DRg3cgB8.js";
|
|
4
|
+
import { a as normalizeMatrixUserId, n as DEFAULT_ACCOUNT_ID$2, r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-DfjBrYch.js";
|
|
5
|
+
import { t as normalizeMatrixApproverId } from "./approval-ids-CXPPSyAr.js";
|
|
6
6
|
import { a as resolveMatrixTargetIdentity, i as resolveMatrixDirectUserId, n as normalizeMatrixMessagingTarget, r as normalizeMatrixResolvableTarget } from "./target-ids-B-5aQxwn.js";
|
|
7
7
|
import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
8
8
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-D9oKDvsJ.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-CU79qJ3e.js");
|
|
133
133
|
const { action, params, cfg, accountId, mediaLocalRoots } = ctx;
|
|
134
134
|
const dispatch = async (actionParams) => await handleMatrixAction({
|
|
135
135
|
...actionParams,
|
|
@@ -593,7 +593,7 @@ const matrixNativeApprovalCapability = createApproverRestrictedNativeApprovalCap
|
|
|
593
593
|
accountId,
|
|
594
594
|
request
|
|
595
595
|
}),
|
|
596
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
596
|
+
load: async () => (await import("./approval-handler.runtime-Dzh_2MS1.js")).matrixApprovalNativeRuntime
|
|
597
597
|
})
|
|
598
598
|
});
|
|
599
599
|
const splitMatrixApprovalCapability = splitChannelApprovalCapability(matrixNativeApprovalCapability);
|
|
@@ -944,11 +944,11 @@ async function runMatrixStartupMaintenance(params) {
|
|
|
944
944
|
//#endregion
|
|
945
945
|
//#region extensions/matrix/src/channel.ts
|
|
946
946
|
let matrixStartupLock = Promise.resolve();
|
|
947
|
-
const loadMatrixSetupWizard = createLazyRuntimeNamedExport(() => import("./setup-surface-
|
|
948
|
-
const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
947
|
+
const loadMatrixSetupWizard = createLazyRuntimeNamedExport(() => import("./setup-surface-soZQLgfu.js").then((n) => n.t), "matrixSetupWizard");
|
|
948
|
+
const loadMatrixChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-CUBxoFwA.js"), "matrixChannelRuntime");
|
|
949
949
|
let matrixDoctorModulePromise = null;
|
|
950
950
|
const loadMatrixDoctorModule = async () => {
|
|
951
|
-
matrixDoctorModulePromise ??= import("./doctor-
|
|
951
|
+
matrixDoctorModulePromise ??= import("./doctor-BKjr6uua.js");
|
|
952
952
|
return await matrixDoctorModulePromise;
|
|
953
953
|
};
|
|
954
954
|
const meta = {
|
|
@@ -1321,7 +1321,7 @@ const matrixPlugin = createChatChannelPlugin({
|
|
|
1321
1321
|
await previousLock;
|
|
1322
1322
|
let monitorMatrixProvider;
|
|
1323
1323
|
try {
|
|
1324
|
-
monitorMatrixProvider = (await import("./monitor-
|
|
1324
|
+
monitorMatrixProvider = (await import("./monitor-gDaABWfA.js")).monitorMatrixProvider;
|
|
1325
1325
|
} finally {
|
|
1326
1326
|
releaseLock();
|
|
1327
1327
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as matrixPlugin } from "./channel-
|
|
1
|
+
import { t as matrixPlugin } from "./channel-BwpVY2Ne.js";
|
|
2
2
|
export { matrixPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
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-DHj1E9ji.js";
|
|
2
2
|
import { t as isBunRuntime } from "./runtime-BefyhPWv.js";
|
|
3
3
|
import { g as resolveMatrixAuth } from "./shared-DjJds8e0.js";
|
|
4
4
|
import "./client-spaouc7I.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { c as resolveMatrixAccountConfig } from "./config-paths-ZBCMwSos.js";
|
|
2
2
|
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
3
|
-
import { c as resolveMatrixConfigPath, g as resolveMatrixAccount, l as updateMatrixAccountConfig, n as matrixSetupAdapter } from "./setup-core-
|
|
3
|
+
import { c as resolveMatrixConfigPath, g as resolveMatrixAccount, l as updateMatrixAccountConfig, n as matrixSetupAdapter } from "./setup-core-DRg3cgB8.js";
|
|
4
4
|
import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
5
|
-
import { n as withResolvedActionClient } from "./client-
|
|
5
|
+
import { n as withResolvedActionClient } from "./client-D-t6CdHz.js";
|
|
6
6
|
import { _ as resolveMatrixAuthContext } from "./shared-DjJds8e0.js";
|
|
7
7
|
import "./client-spaouc7I.js";
|
|
8
8
|
import { i as formatZonedTimestamp } from "./runtime-api-CsBoesCU.js";
|
|
9
9
|
import { isOpenClawManagedMatrixDevice, summarizeMatrixDeviceHealth } from "./device-health-D4LBxuPq.js";
|
|
10
|
-
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-
|
|
11
|
-
import { a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, g as runMatrixSelfVerification, h as restoreMatrixRoomKeyBackup, l as getMatrixVerificationSas, m as resetMatrixRoomKeyBackup, n as bootstrapMatrixVerification, p as requestMatrixVerification, r as cancelMatrixVerification, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-
|
|
10
|
+
import { n as updateMatrixOwnProfile, t as applyMatrixProfileUpdate } from "./profile-update-Defy1W90.js";
|
|
11
|
+
import { a as confirmMatrixVerificationSas, b as verifyMatrixRecoveryKey, c as getMatrixRoomKeyBackupStatus, d as listMatrixVerifications, f as mismatchMatrixVerificationSas, g as runMatrixSelfVerification, h as restoreMatrixRoomKeyBackup, l as getMatrixVerificationSas, m as resetMatrixRoomKeyBackup, n as bootstrapMatrixVerification, p as requestMatrixVerification, r as cancelMatrixVerification, t as acceptMatrixVerification, u as getMatrixVerificationStatus, v as startMatrixVerification } from "./verification-BJfjKMr8.js";
|
|
12
12
|
import { t as resolveMatrixRoomKeyBackupIssue } from "./backup-health-Dm_YMVFT.js";
|
|
13
13
|
import { setMatrixSdkConsoleLogging, setMatrixSdkLogMode } from "./logging-C7wjdKK5.js";
|
|
14
14
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
@@ -38,11 +38,11 @@ let matrixCliExitScheduled = false;
|
|
|
38
38
|
let matrixActionClientModulePromise;
|
|
39
39
|
let matrixDirectManagementModulePromise;
|
|
40
40
|
function loadMatrixActionClientModule() {
|
|
41
|
-
matrixActionClientModulePromise ??= import("./client-
|
|
41
|
+
matrixActionClientModulePromise ??= import("./client-D-t6CdHz.js").then((n) => n.t);
|
|
42
42
|
return matrixActionClientModulePromise;
|
|
43
43
|
}
|
|
44
44
|
function loadMatrixDirectManagementModule() {
|
|
45
|
-
matrixDirectManagementModulePromise ??= import("./send-
|
|
45
|
+
matrixDirectManagementModulePromise ??= import("./send-DHj1E9ji.js").then((n) => n.d);
|
|
46
46
|
return matrixDirectManagementModulePromise;
|
|
47
47
|
}
|
|
48
48
|
function scheduleMatrixCliExit() {
|
|
@@ -210,7 +210,7 @@ async function addMatrixAccount(params) {
|
|
|
210
210
|
backupVersion: null
|
|
211
211
|
};
|
|
212
212
|
if (accountConfig.encryption === true) {
|
|
213
|
-
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-
|
|
213
|
+
const { maybeBootstrapNewEncryptedMatrixAccount } = await import("./setup-bootstrap-kTPKb7jR.js");
|
|
214
214
|
verificationBootstrap = await maybeBootstrapNewEncryptedMatrixAccount({
|
|
215
215
|
previousCfg: cfg,
|
|
216
216
|
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-CaF5tlL-.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-gFTG9oJL.js";
|
|
2
2
|
export { cli_metadata_default as default, registerMatrixCliMetadata };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { u as resolveMatrixRoomId } from "./send-
|
|
2
|
+
import { u as resolveMatrixRoomId } from "./send-DHj1E9ji.js";
|
|
3
3
|
import { n as withResolvedRuntimeMatrixClient } from "./client-bootstrap-DOlQb7Jx.js";
|
|
4
4
|
//#region extensions/matrix/src/matrix/actions/client.ts
|
|
5
5
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c as resolveMatrixAccountConfig } from "./config-paths-ZBCMwSos.js";
|
|
2
|
-
import { g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, p as listMatrixAccountIds } from "./setup-core-
|
|
2
|
+
import { g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, p as listMatrixAccountIds } from "./setup-core-DRg3cgB8.js";
|
|
3
3
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
4
4
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1 } from "openclaw/plugin-sdk/account-id";
|
|
6
6
|
import { resolveAllowlistMatchByCandidates } from "openclaw/plugin-sdk/allow-from";
|
|
7
7
|
import { normalizeStringEntries as normalizeStringEntries$1 } from "openclaw/plugin-sdk/string-normalization-runtime";
|
|
8
8
|
import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-primitives";
|
|
9
|
-
import { AllowFromListSchema, ContextVisibilityModeSchema, GroupPolicySchema, MarkdownConfigSchema, ToolPolicySchema, buildNestedDmConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
|
|
9
|
+
import { AllowFromListSchema, ContextVisibilityModeSchema, GroupPolicySchema, MarkdownConfigSchema, MentionPatternsPolicySchema, ToolPolicySchema, buildNestedDmConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
|
|
10
10
|
import { buildSecretInputSchema } from "openclaw/plugin-sdk/secret-input";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
//#region extensions/matrix/src/matrix/monitor/allowlist.ts
|
|
@@ -102,6 +102,22 @@ const matrixConfigAdapter = createScopedChannelConfigAdapter({
|
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region extensions/matrix/src/config-ui-hints.ts
|
|
104
104
|
const matrixChannelConfigUiHints = {
|
|
105
|
+
mentionPatterns: {
|
|
106
|
+
label: "Matrix Mention Pattern Policy",
|
|
107
|
+
help: "Scopes configured groupChat mentionPatterns to selected Matrix room IDs. Native Matrix mention evidence still triggers even when regex patterns are denied."
|
|
108
|
+
},
|
|
109
|
+
"mentionPatterns.mode": {
|
|
110
|
+
label: "Matrix Mention Pattern Mode",
|
|
111
|
+
help: "\"allow\" enables configured regex mention patterns unless denyIn matches; \"deny\" disables them unless allowIn matches."
|
|
112
|
+
},
|
|
113
|
+
"mentionPatterns.allowIn": {
|
|
114
|
+
label: "Matrix Mention Pattern Allowlist",
|
|
115
|
+
help: "Matrix room IDs where configured regex mention patterns are enabled when mode is deny."
|
|
116
|
+
},
|
|
117
|
+
"mentionPatterns.denyIn": {
|
|
118
|
+
label: "Matrix Mention Pattern Denylist",
|
|
119
|
+
help: "Matrix room IDs where configured regex mention patterns are disabled. Native mention evidence still triggers."
|
|
120
|
+
},
|
|
105
121
|
allowBots: {
|
|
106
122
|
label: "Matrix Allow Bot Messages",
|
|
107
123
|
help: "Allow messages from other configured Matrix bot accounts to trigger replies (default: false). Set \"mentions\" to require a visible room mention."
|
|
@@ -243,6 +259,7 @@ const MatrixChannelConfigSchema = buildChannelConfigSchema(z.object({
|
|
|
243
259
|
allowBots: z.union([z.boolean(), z.literal("mentions")]).optional(),
|
|
244
260
|
botLoopProtection: botLoopProtectionSchema,
|
|
245
261
|
groupPolicy: GroupPolicySchema.optional(),
|
|
262
|
+
mentionPatterns: MentionPatternsPolicySchema.optional(),
|
|
246
263
|
contextVisibility: ContextVisibilityModeSchema.optional(),
|
|
247
264
|
blockStreaming: z.boolean().optional(),
|
|
248
265
|
streaming: z.union([
|
package/dist/contract-api.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as setMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
2
|
-
import { d as resolveSingleAccountPromotionTarget, f as singleAccountKeysToMove, n as matrixSetupAdapter, u as namedAccountPromotionKeys } from "./setup-core-
|
|
2
|
+
import { d as resolveSingleAccountPromotionTarget, f as singleAccountKeysToMove, n as matrixSetupAdapter, u as namedAccountPromotionKeys } from "./setup-core-DRg3cgB8.js";
|
|
3
3
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-D9oKDvsJ.js";
|
|
4
4
|
import { s as resetMatrixThreadBindingsForTests } from "./thread-bindings-shared-CKnY4LSd.js";
|
|
5
5
|
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DTgQyQxc.js";
|
|
6
|
-
import { n as matrixOnboardingAdapter } from "./setup-surface-
|
|
7
|
-
import { t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
6
|
+
import { n as matrixOnboardingAdapter } from "./setup-surface-soZQLgfu.js";
|
|
7
|
+
import { t as createMatrixThreadBindingManager } from "./thread-bindings-DehFUArg.js";
|
|
8
8
|
export { collectRuntimeConfigAssignments, createMatrixThreadBindingManager, legacyConfigRules, matrixSetupAdapter, matrixOnboardingAdapter as matrixSetupWizard, namedAccountPromotionKeys, normalizeCompatibilityConfig, resetMatrixThreadBindingsForTests, resolveSingleAccountPromotionTarget, secretTargetRegistryEntries, setMatrixRuntime, singleAccountKeysToMove };
|
|
@@ -2,7 +2,6 @@ import { t as isRecord } from "./record-shared-CvzjvHRn.js";
|
|
|
2
2
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-D9oKDvsJ.js";
|
|
3
3
|
import { i as autoPrepareLegacyMatrixCrypto, o as autoMigrateLegacyMatrixState, r as resolveMatrixMigrationStatus } from "./matrix-migration.runtime-RzIEp7RP.js";
|
|
4
4
|
import { t as maybeCreateMatrixMigrationSnapshot } from "./migration-snapshot-backup-YcCrSjbE.js";
|
|
5
|
-
import "openclaw/plugin-sdk/channel-contract";
|
|
6
5
|
import { detectPluginInstallPathIssue, formatPluginInstallPathIssue, removePluginFromConfig } from "openclaw/plugin-sdk/runtime-doctor";
|
|
7
6
|
//#region extensions/matrix/src/doctor.ts
|
|
8
7
|
function hasConfiguredMatrixChannel(cfg) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as editMessageMatrix, r as prepareMatrixSingleText, s as sendSingleTextMessageMatrix, y as MsgType } from "./send-
|
|
1
|
+
import { n as editMessageMatrix, r as prepareMatrixSingleText, s as sendSingleTextMessageMatrix, y as MsgType } from "./send-DHj1E9ji.js";
|
|
2
2
|
import { createDraftStreamLoop } from "openclaw/plugin-sdk/channel-outbound";
|
|
3
3
|
//#region extensions/matrix/src/matrix/draft-stream.ts
|
|
4
4
|
const DEFAULT_THROTTLE_MS = 1e3;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as registerMatrixCliMetadata } from "./cli-metadata-
|
|
1
|
+
import { n as registerMatrixCliMetadata } from "./cli-metadata-gFTG9oJL.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 { C as formatPollResultsAsText, D as parsePollStartContent, O as resolvePollReferenceEventId, S as formatPollAsText, T as isPollStartType, w as isPollEventType, x as buildPollResultsSummary } from "./send-
|
|
1
|
+
import { C as formatPollResultsAsText, D as parsePollStartContent, O as resolvePollReferenceEventId, S as formatPollAsText, T as isPollStartType, w as isPollEventType, x as buildPollResultsSummary } from "./send-DHj1E9ji.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-C47hvAF8.js";
|
|
2
|
-
import { a as sendMessageMatrix, n as editMessageMatrix, w as isPollEventType } from "./send-
|
|
2
|
+
import { a as sendMessageMatrix, n as editMessageMatrix, w as isPollEventType } from "./send-DHj1E9ji.js";
|
|
3
3
|
import { n as MATRIX_REACTION_EVENT_TYPE } from "./reaction-common-DkrQdBSZ.js";
|
|
4
|
-
import { a as resolveMatrixMessageBody, c as resolveMatrixPollRootEventId, i as resolveMatrixMessageAttachment, o as fetchMatrixPollMessageSummary } from "./media-text-
|
|
5
|
-
import { r as withResolvedRoomAction } from "./client-
|
|
4
|
+
import { a as resolveMatrixMessageBody, c as resolveMatrixPollRootEventId, i as resolveMatrixMessageAttachment, o as fetchMatrixPollMessageSummary } from "./media-text-C2Wor3Gj.js";
|
|
5
|
+
import { r as withResolvedRoomAction } from "./client-D-t6CdHz.js";
|
|
6
6
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
import { resolveIntegerOption } from "openclaw/plugin-sdk/number-runtime";
|
|
8
8
|
//#region extensions/matrix/src/matrix/actions/limits.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { c as resolveMatrixAccountConfig, s as resolveMatrixAccountAllowlistConfig } from "./config-paths-ZBCMwSos.js";
|
|
2
2
|
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
3
|
-
import { m as resolveConfiguredMatrixBotUserIds } from "./setup-core-
|
|
4
|
-
import { a as buildAllowlistResolutionSummary, c as createTypingCallbacks, d as logInboundDrop, f as logTypingFailure, h as toLocationContext, i as addAllowlistUserEntriesFromConfigEntry, l as formatLocationText, m as summarizeMapping, n as resolveMatrixStoredSessionMeta, o as canonicalizeAllowlistWithResolvedIds, p as patchAllowlistUsersInConfigEntries, r as resolveMatrixRoomConfig, s as createReplyPrefixOptions, u as getAgentScopedMediaLocalRoots } from "./channel-
|
|
5
|
-
import { a as normalizeMatrixUserId, i as normalizeMatrixAllowList, o as resolveMatrixAllowListMatch } from "./config-schema-
|
|
3
|
+
import { m as resolveConfiguredMatrixBotUserIds } from "./setup-core-DRg3cgB8.js";
|
|
4
|
+
import { a as buildAllowlistResolutionSummary, c as createTypingCallbacks, d as logInboundDrop, f as logTypingFailure, h as toLocationContext, i as addAllowlistUserEntriesFromConfigEntry, l as formatLocationText, m as summarizeMapping, n as resolveMatrixStoredSessionMeta, o as canonicalizeAllowlistWithResolvedIds, p as patchAllowlistUsersInConfigEntries, r as resolveMatrixRoomConfig, s as createReplyPrefixOptions, u as getAgentScopedMediaLocalRoots } from "./channel-BwpVY2Ne.js";
|
|
5
|
+
import { a as normalizeMatrixUserId, i as normalizeMatrixAllowList, o as resolveMatrixAllowListMatch } from "./config-schema-DfjBrYch.js";
|
|
6
6
|
import { t as isMatrixQualifiedUserId } from "./target-ids-B-5aQxwn.js";
|
|
7
7
|
import { r as isMatrixNotFoundError, t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
8
8
|
import { a as resolveMatrixStateFilePath } from "./storage-Ds-2Iur5.js";
|
|
9
|
-
import { D as parsePollStartContent, S as formatPollAsText, T as isPollStartType, _ as readJoinedMatrixMembers, a as sendMessageMatrix, f as promoteMatrixDirectRoomCandidate, g as isStrictDirectMembership, h as hasDirectMatrixMemberFlag, t as chunkMatrixText, v as MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY, w as isPollEventType } from "./send-
|
|
10
|
-
import { n as resolveMatrixSqliteStateEnv, t as createMatrixThreadBindingManager } from "./thread-bindings-
|
|
11
|
-
import { a as resolveMatrixMessageBody, i as resolveMatrixMessageAttachment, n as formatMatrixMediaUnavailableText, r as formatMatrixMessageText, s as fetchMatrixPollSnapshot, t as formatMatrixMediaTooLargeText } from "./media-text-
|
|
9
|
+
import { D as parsePollStartContent, S as formatPollAsText, T as isPollStartType, _ as readJoinedMatrixMembers, a as sendMessageMatrix, f as promoteMatrixDirectRoomCandidate, g as isStrictDirectMembership, h as hasDirectMatrixMemberFlag, t as chunkMatrixText, v as MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY, w as isPollEventType } from "./send-DHj1E9ji.js";
|
|
10
|
+
import { n as resolveMatrixSqliteStateEnv, t as createMatrixThreadBindingManager } from "./thread-bindings-DehFUArg.js";
|
|
11
|
+
import { a as resolveMatrixMessageBody, i as resolveMatrixMessageAttachment, n as formatMatrixMediaUnavailableText, r as formatMatrixMessageText, s as fetchMatrixPollSnapshot, t as formatMatrixMediaTooLargeText } from "./media-text-C2Wor3Gj.js";
|
|
12
12
|
import { n as setActiveMatrixClient } from "./active-client-DXvz2gCo.js";
|
|
13
13
|
import { t as isBunRuntime } from "./runtime-BefyhPWv.js";
|
|
14
14
|
import { _ as resolveMatrixAuthContext, f as LogService, g as resolveMatrixAuth, h as backfillMatrixAuthDeviceIdAfterStartup, i as resolveSharedMatrixClient, l as isMatrixStartupAbortError, n as releaseSharedClientInstance, u as throwIfMatrixStartupAborted } from "./shared-DjJds8e0.js";
|
|
@@ -811,7 +811,7 @@ const SAS_NOTICE_RETRY_DELAY_MS = 750;
|
|
|
811
811
|
const VERIFICATION_EVENT_STARTUP_GRACE_MS = 3e4;
|
|
812
812
|
let matrixDirectRoomDepsPromise;
|
|
813
813
|
async function loadMatrixDirectRoomDeps() {
|
|
814
|
-
matrixDirectRoomDepsPromise ??= Promise.all([import("./send-
|
|
814
|
+
matrixDirectRoomDepsPromise ??= Promise.all([import("./send-DHj1E9ji.js").then((n) => n.d), import("./send-DHj1E9ji.js").then((n) => n.m)]).then(([directManagementModule, directRoomModule]) => ({
|
|
815
815
|
inspectMatrixDirectRooms: directManagementModule.inspectMatrixDirectRooms,
|
|
816
816
|
isStrictDirectRoom: directRoomModule.isStrictDirectRoom
|
|
817
817
|
}));
|
|
@@ -2019,7 +2019,7 @@ let sessionBindingRuntimePromise;
|
|
|
2019
2019
|
let matrixReactionEventsPromise;
|
|
2020
2020
|
let matrixDraftStreamPromise;
|
|
2021
2021
|
function loadMatrixSendModule() {
|
|
2022
|
-
matrixSendModulePromise ??= import("./send-
|
|
2022
|
+
matrixSendModulePromise ??= import("./send-DHj1E9ji.js").then((n) => n.l);
|
|
2023
2023
|
return matrixSendModulePromise;
|
|
2024
2024
|
}
|
|
2025
2025
|
function loadAcpBindingRuntime() {
|
|
@@ -2031,11 +2031,11 @@ function loadSessionBindingRuntime() {
|
|
|
2031
2031
|
return sessionBindingRuntimePromise;
|
|
2032
2032
|
}
|
|
2033
2033
|
function loadMatrixReactionEvents() {
|
|
2034
|
-
matrixReactionEventsPromise ??= import("./reaction-events-
|
|
2034
|
+
matrixReactionEventsPromise ??= import("./reaction-events-Bh2u-_9j.js");
|
|
2035
2035
|
return matrixReactionEventsPromise;
|
|
2036
2036
|
}
|
|
2037
2037
|
function loadMatrixDraftStream() {
|
|
2038
|
-
matrixDraftStreamPromise ??= import("./draft-stream-
|
|
2038
|
+
matrixDraftStreamPromise ??= import("./draft-stream-eaBWrjVK.js");
|
|
2039
2039
|
return matrixDraftStreamPromise;
|
|
2040
2040
|
}
|
|
2041
2041
|
async function matrixTextWouldActivateMentions(client, text) {
|
|
@@ -2278,7 +2278,7 @@ function createMatrixRoomMessageHandler(params) {
|
|
|
2278
2278
|
if (typeof eventTs === "number" && eventTs < startupMs - startupGraceMs) return;
|
|
2279
2279
|
if (typeof eventTs !== "number" && typeof eventAge === "number" && eventAge > startupGraceMs) return;
|
|
2280
2280
|
}
|
|
2281
|
-
|
|
2281
|
+
const content = event.content;
|
|
2282
2282
|
if (eventType === EventType.RoomMessage && isMatrixVerificationRoomMessage({
|
|
2283
2283
|
msgtype: content.msgtype,
|
|
2284
2284
|
body: content.body
|
|
@@ -2531,7 +2531,11 @@ function createMatrixRoomMessageHandler(params) {
|
|
|
2531
2531
|
resolveAgentRoute: core.channel.routing.resolveAgentRoute
|
|
2532
2532
|
});
|
|
2533
2533
|
const hasExplicitSessionBinding = _configuredBinding !== null || _runtimeBindingId !== null;
|
|
2534
|
-
const agentMentionRegexes = core.channel.mentions.buildMentionRegexes(cfg, _route.agentId
|
|
2534
|
+
const agentMentionRegexes = core.channel.mentions.buildMentionRegexes(cfg, _route.agentId, {
|
|
2535
|
+
provider: "matrix",
|
|
2536
|
+
conversationId: roomId,
|
|
2537
|
+
providerPolicy: accountConfig?.mentionPatterns
|
|
2538
|
+
});
|
|
2535
2539
|
const selfDisplayName = content.formatted_body ? await getMemberDisplayName(roomId, selfUserId).catch(() => void 0) : void 0;
|
|
2536
2540
|
const { wasMentioned, hasExplicitMention } = resolveMentions({
|
|
2537
2541
|
content,
|
|
@@ -3788,11 +3792,11 @@ function createMatrixRoomInfoResolver(client) {
|
|
|
3788
3792
|
let matrixStartupMaintenanceDepsPromise;
|
|
3789
3793
|
async function loadMatrixStartupMaintenanceDeps() {
|
|
3790
3794
|
matrixStartupMaintenanceDepsPromise ??= Promise.all([
|
|
3791
|
-
import("./setup-core-
|
|
3795
|
+
import("./setup-core-DRg3cgB8.js").then((n) => n.s),
|
|
3792
3796
|
import("./device-health-D4LBxuPq.js"),
|
|
3793
|
-
import("./setup-core-
|
|
3797
|
+
import("./setup-core-DRg3cgB8.js").then((n) => n.a),
|
|
3794
3798
|
import("./legacy-crypto-restore--9Wu5rsx.js"),
|
|
3795
|
-
import("./startup-verification-
|
|
3799
|
+
import("./startup-verification-CWLSyFen.js")
|
|
3796
3800
|
]).then(([configUpdateModule, deviceHealthModule, profileModule, legacyCryptoRestoreModule, startupVerificationModule]) => ({
|
|
3797
3801
|
updateMatrixAccountConfig: configUpdateModule.updateMatrixAccountConfig,
|
|
3798
3802
|
summarizeMatrixDeviceHealth: deviceHealthModule.summarizeMatrixDeviceHealth,
|
|
@@ -4020,8 +4024,7 @@ function createMatrixMonitorSyncLifecycle(params) {
|
|
|
4020
4024
|
function createMatrixMonitorTaskRunner(params) {
|
|
4021
4025
|
const inFlight = /* @__PURE__ */ new Set();
|
|
4022
4026
|
const runDetachedTask = (label, task) => {
|
|
4023
|
-
|
|
4024
|
-
trackedTask = Promise.resolve().then(task).catch((error) => {
|
|
4027
|
+
const trackedTask = Promise.resolve().then(task).catch((error) => {
|
|
4025
4028
|
const message = String(error);
|
|
4026
4029
|
params.logVerboseMessage(`matrix: ${label} failed (${message})`);
|
|
4027
4030
|
params.logger.warn("matrix background task failed", {
|
|
@@ -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-BJfjKMr8.js").then((n) => n.y);
|
|
7
7
|
return matrixVerificationRuntimePromise;
|
|
8
8
|
}
|
|
9
9
|
function sendError(respond, err) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
2
|
-
import { c as resolveMatrixConfigPath, l as updateMatrixAccountConfig, o as syncMatrixOwnProfile } from "./setup-core-
|
|
3
|
-
import { n as withResolvedActionClient } from "./client-
|
|
2
|
+
import { c as resolveMatrixConfigPath, l as updateMatrixAccountConfig, o as syncMatrixOwnProfile } from "./setup-core-DRg3cgB8.js";
|
|
3
|
+
import { n as withResolvedActionClient } from "./client-D-t6CdHz.js";
|
|
4
4
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
5
5
|
//#region extensions/matrix/src/matrix/actions/profile.ts
|
|
6
6
|
async function updateMatrixOwnProfile(opts = {}) {
|
|
@@ -7,7 +7,7 @@ import { getSessionBindingService } from "openclaw/plugin-sdk/session-binding-ru
|
|
|
7
7
|
let approvalReactionAuthPromise;
|
|
8
8
|
let execApprovalResolverPromise;
|
|
9
9
|
function loadApprovalReactionAuth() {
|
|
10
|
-
approvalReactionAuthPromise ??= import("./approval-reaction-auth-
|
|
10
|
+
approvalReactionAuthPromise ??= import("./approval-reaction-auth-m-11_ajL.js");
|
|
11
11
|
return approvalReactionAuthPromise;
|
|
12
12
|
}
|
|
13
13
|
function loadExecApprovalResolver() {
|
|
@@ -333,7 +333,9 @@ function restoreEscapedMentionsInBlockTokens(tokens) {
|
|
|
333
333
|
function isMentionStartBoundary(charBefore) {
|
|
334
334
|
return !charBefore || !/[A-Za-z0-9_]/.test(charBefore);
|
|
335
335
|
}
|
|
336
|
-
function trimMentionSuffix(
|
|
336
|
+
function trimMentionSuffix(rawInput, endInput) {
|
|
337
|
+
let raw = rawInput;
|
|
338
|
+
let end = endInput;
|
|
337
339
|
while (raw.length > 1 && TRIMMABLE_MENTION_SUFFIX.test(raw.at(-1) ?? "")) {
|
|
338
340
|
if (raw.at(-1) === "]" && /\[[0-9A-Fa-f:.]+\](?::\d+)?$/i.test(raw)) break;
|
|
339
341
|
raw = raw.slice(0, -1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as hasExplicitMatrixAccountConfig, c as resolveMatrixAccountConfig } from "./config-paths-ZBCMwSos.js";
|
|
2
|
-
import "./setup-core-
|
|
2
|
+
import "./setup-core-DRg3cgB8.js";
|
|
3
3
|
import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
4
|
-
import { n as bootstrapMatrixVerification } from "./verification-
|
|
4
|
+
import { n as bootstrapMatrixVerification } from "./verification-BJfjKMr8.js";
|
|
5
5
|
//#region extensions/matrix/src/setup-bootstrap.ts
|
|
6
6
|
async function maybeBootstrapNewEncryptedMatrixAccount(params) {
|
|
7
7
|
const accountConfig = resolveMatrixAccountConfig({
|
|
@@ -669,7 +669,7 @@ const matrixSetupAdapter = {
|
|
|
669
669
|
input
|
|
670
670
|
}),
|
|
671
671
|
afterAccountConfigWritten: async ({ previousCfg, cfg, accountId, runtime }) => {
|
|
672
|
-
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-
|
|
672
|
+
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-kTPKb7jR.js");
|
|
673
673
|
await runMatrixSetupBootstrapAfterConfigWrite({
|
|
674
674
|
previousCfg,
|
|
675
675
|
cfg,
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as resolveMatrixAccount, n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-
|
|
2
|
-
import { r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-
|
|
1
|
+
import { g as resolveMatrixAccount, n as matrixSetupAdapter, t as createMatrixSetupWizardProxy } from "./setup-core-DRg3cgB8.js";
|
|
2
|
+
import { r as matrixConfigAdapter, t as MatrixChannelConfigSchema } from "./config-schema-DfjBrYch.js";
|
|
3
3
|
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
4
4
|
const matrixSetupPlugin = {
|
|
5
5
|
id: "matrix",
|
|
@@ -13,7 +13,7 @@ const matrixSetupPlugin = {
|
|
|
13
13
|
order: 70,
|
|
14
14
|
quickstartAllowFrom: true
|
|
15
15
|
},
|
|
16
|
-
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./setup-surface-
|
|
16
|
+
setupWizard: createMatrixSetupWizardProxy(async () => ({ matrixSetupWizard: (await import("./setup-surface-soZQLgfu.js").then((n) => n.t)).matrixSetupWizard })),
|
|
17
17
|
setup: matrixSetupAdapter,
|
|
18
18
|
capabilities: {
|
|
19
19
|
chatTypes: [
|
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
|
2
2
|
import { n as requiresExplicitMatrixDefaultAccount } from "./account-selection-DEMtY2cn.js";
|
|
3
3
|
import { c as resolveMatrixAccountConfig, t as resolveMatrixConfigFieldPath } from "./config-paths-ZBCMwSos.js";
|
|
4
4
|
import { r as resolveMatrixEnvAuthReadiness } from "./env-auth-DIzOApj0.js";
|
|
5
|
-
import { g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, i as moveSingleMatrixAccountConfigToNamedAccount, l as updateMatrixAccountConfig, p as listMatrixAccountIds, r as resolveMatrixSetupDmAllowFrom } from "./setup-core-
|
|
5
|
+
import { g as resolveMatrixAccount, h as resolveDefaultMatrixAccountId, i as moveSingleMatrixAccountConfigToNamedAccount, l as updateMatrixAccountConfig, p as listMatrixAccountIds, r as resolveMatrixSetupDmAllowFrom } from "./setup-core-DRg3cgB8.js";
|
|
6
6
|
import { n as validateMatrixHomeserverUrl, r as isPrivateOrLoopbackHost, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-GRHde6lq.js";
|
|
7
7
|
import { n as ensureMatrixSdkInstalled, r as isMatrixSdkAvailable } from "./deps-BVWGd2XS.js";
|
|
8
8
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -507,7 +507,7 @@ const matrixOnboardingAdapter = {
|
|
|
507
507
|
});
|
|
508
508
|
},
|
|
509
509
|
afterConfigWritten: async ({ previousCfg, cfg, accountId, runtime }) => {
|
|
510
|
-
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-
|
|
510
|
+
const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./setup-bootstrap-kTPKb7jR.js");
|
|
511
511
|
await runMatrixSetupBootstrapAfterConfigWrite({
|
|
512
512
|
previousCfg,
|
|
513
513
|
cfg,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
2
2
|
import { t as formatMatrixErrorMessage } from "./errors-C47hvAF8.js";
|
|
3
3
|
import { o as resolveMatrixStoragePaths, r as recordCurrentStorageMetaDeviceId } from "./storage-Ds-2Iur5.js";
|
|
4
|
-
import { n as resolveMatrixSqliteStateEnv } from "./thread-bindings-
|
|
4
|
+
import { n as resolveMatrixSqliteStateEnv } from "./thread-bindings-DehFUArg.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { createHash } from "node:crypto";
|
|
7
7
|
import { timestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
|
|
2
2
|
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-CKnY4LSd.js";
|
|
3
3
|
import { a as resolveMatrixStateFilePath, t as claimCurrentTokenStorageState } from "./storage-Ds-2Iur5.js";
|
|
4
|
-
import { a as sendMessageMatrix } from "./send-
|
|
4
|
+
import { a as sendMessageMatrix } from "./send-DHj1E9ji.js";
|
|
5
5
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
@@ -112,7 +112,8 @@ async function loadBindingsFromPluginState(params) {
|
|
|
112
112
|
return loaded;
|
|
113
113
|
}
|
|
114
114
|
function toPluginJsonValue(value) {
|
|
115
|
-
|
|
115
|
+
const serialized = JSON.stringify(value);
|
|
116
|
+
return JSON.parse(serialized);
|
|
116
117
|
}
|
|
117
118
|
async function persistBindingsSnapshot(params) {
|
|
118
119
|
const store = createThreadBindingStore(params);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c as resolveMatrixAccountConfig } from "./config-paths-ZBCMwSos.js";
|
|
2
|
-
import "./setup-core-
|
|
3
|
-
import { E as parsePollStart, T as isPollStartType, b as buildPollResponseContent, i as reactMatrixMessage, u as resolveMatrixRoomId } from "./send-
|
|
2
|
+
import "./setup-core-DRg3cgB8.js";
|
|
3
|
+
import { E as parsePollStart, T as isPollStartType, b as buildPollResponseContent, i as reactMatrixMessage, u as resolveMatrixRoomId } from "./send-DHj1E9ji.js";
|
|
4
4
|
import { i as buildMatrixReactionRelationsPath, o as selectOwnMatrixReactionEventIds, s as summarizeMatrixReactionEvents } from "./reaction-common-DkrQdBSZ.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-D-t6CdHz.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-D0sumPNx.js";
|
|
7
7
|
import { a as jsonResult, c as readStringArrayParam, l as readStringParam, o as readPositiveIntegerParam, r as createActionGate, s as readReactionParams } from "./runtime-api-CsBoesCU.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-Defy1W90.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-BJfjKMr8.js";
|
|
10
10
|
import { normalizeOptionalLowercaseString, uniqueStrings, uniqueValues } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
11
11
|
//#region extensions/matrix/src/matrix/actions/polls.ts
|
|
12
12
|
function normalizeOptionIndexes(indexes) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-
|
|
2
|
+
import { i as withStartedActionClient, n as withResolvedActionClient } from "./client-D-t6CdHz.js";
|
|
3
3
|
import { n as formatMatrixEncryptionUnavailableError } from "./encryption-guidance-aEUzD940.js";
|
|
4
4
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
24
|