mirror of https://github.com/openclaw/openclaw.git
Matrix: remove stale monitor mention regex param
This commit is contained in:
parent
e8b0d57eb6
commit
1ea85a5d0b
|
|
@ -26,7 +26,7 @@ type MatrixHandlerTestHarnessOptions = {
|
|||
roomsConfig?: Record<string, MatrixRoomConfig>;
|
||||
accountAllowBots?: boolean | "mentions";
|
||||
configuredBotUserIds?: Set<string>;
|
||||
mentionRegexes?: MatrixMonitorHandlerParams["mentionRegexes"];
|
||||
mentionRegexes?: RegExp[];
|
||||
groupPolicy?: "open" | "allowlist" | "disabled";
|
||||
replyToMode?: ReplyToMode;
|
||||
threadReplies?: "off" | "inbound" | "always";
|
||||
|
|
@ -207,7 +207,6 @@ export function createMatrixHandlerTestHarness(
|
|||
roomsConfig: options.roomsConfig,
|
||||
accountAllowBots: options.accountAllowBots,
|
||||
configuredBotUserIds: options.configuredBotUserIds,
|
||||
mentionRegexes: options.mentionRegexes ?? [],
|
||||
groupPolicy: options.groupPolicy ?? "open",
|
||||
replyToMode: options.replyToMode ?? "off",
|
||||
threadReplies: options.threadReplies ?? "inbound",
|
||||
|
|
|
|||
|
|
@ -818,6 +818,9 @@ describe("matrix monitor handler pairing account scope", () => {
|
|||
matchedBy: "binding.account",
|
||||
}),
|
||||
},
|
||||
mentions: {
|
||||
buildMentionRegexes: () => [],
|
||||
},
|
||||
session: {
|
||||
resolveStorePath: () => "/tmp/session-store",
|
||||
readSessionUpdatedAt: () => undefined,
|
||||
|
|
@ -881,7 +884,6 @@ describe("matrix monitor handler pairing account scope", () => {
|
|||
} as never,
|
||||
logVerboseMessage: () => {},
|
||||
allowFrom: [],
|
||||
mentionRegexes: [],
|
||||
groupPolicy: "open",
|
||||
replyToMode: "off",
|
||||
threadReplies: "inbound",
|
||||
|
|
|
|||
|
|
@ -66,7 +66,6 @@ export type MatrixMonitorHandlerParams = {
|
|||
roomsConfig?: Record<string, MatrixRoomConfig>;
|
||||
accountAllowBots?: boolean | "mentions";
|
||||
configuredBotUserIds?: ReadonlySet<string>;
|
||||
mentionRegexes: ReturnType<PluginRuntime["channel"]["mentions"]["buildMentionRegexes"]>;
|
||||
groupPolicy: "open" | "allowlist" | "disabled";
|
||||
replyToMode: ReplyToMode;
|
||||
threadReplies: "off" | "inbound" | "always";
|
||||
|
|
@ -159,7 +158,6 @@ export function createMatrixRoomMessageHandler(params: MatrixMonitorHandlerParam
|
|||
roomsConfig,
|
||||
accountAllowBots,
|
||||
configuredBotUserIds = new Set<string>(),
|
||||
mentionRegexes,
|
||||
groupPolicy,
|
||||
replyToMode,
|
||||
threadReplies,
|
||||
|
|
|
|||
|
|
@ -164,7 +164,6 @@ export async function monitorMatrixProvider(opts: MonitorMatrixOpts = {}): Promi
|
|||
}
|
||||
};
|
||||
|
||||
const mentionRegexes = core.channel.mentions.buildMentionRegexes(cfg);
|
||||
const defaultGroupPolicy = resolveDefaultGroupPolicy(cfg);
|
||||
const { groupPolicy: groupPolicyRaw, providerMissingFallbackApplied } =
|
||||
resolveAllowlistProviderRuntimeGroupPolicy({
|
||||
|
|
@ -225,7 +224,6 @@ export async function monitorMatrixProvider(opts: MonitorMatrixOpts = {}): Promi
|
|||
roomsConfig,
|
||||
accountAllowBots,
|
||||
configuredBotUserIds,
|
||||
mentionRegexes,
|
||||
groupPolicy,
|
||||
replyToMode,
|
||||
threadReplies,
|
||||
|
|
|
|||
Loading…
Reference in New Issue