Files
openclaw/src/plugin-sdk/config-contracts.ts
Patrick Star 9c1adf4e51 feat: scope group mention patterns by channel
Provider-scoped configured regex mention patterns for Discord, Matrix, Slack, Telegram, and WhatsApp.

Native platform mentions keep their existing behavior, and unsupported channels do not opt into the new regex policy path. The new policy supports per-channel allow/deny routing through mentionPatterns.mode with allowIn and denyIn so group auto-reply regexes can be limited without broad global blast radius.

Refs #70864.
Supersedes #87200.
Thanks @patrick-slimelab.
2026-05-31 10:34:56 +01:00

59 lines
1.4 KiB
TypeScript

// Focused public config shape types used by bundled and third-party plugins.
export type { ChannelGroupPolicy } from "../config/group-policy.js";
export type { SessionScope } from "../config/sessions/types.js";
export type {
AccessGroupsConfig,
AuthConfig,
BlockStreamingCoalesceConfig,
BrowserConfig,
BrowserProfileConfig,
ChannelBotLoopProtectionConfig,
ContextVisibilityMode,
DiscordAccountConfig,
DiscordActionConfig,
DiscordAutoPresenceConfig,
DiscordConfig,
DiscordExecApprovalConfig,
DiscordGuildChannelConfig,
DiscordGuildEntry,
DiscordIntentsConfig,
DiscordSlashCommandConfig,
DmConfig,
DmPolicy,
GoogleChatAccountConfig,
GoogleChatConfig,
GroupPolicy,
GroupToolPolicyBySenderConfig,
GroupToolPolicyConfig,
MarkdownConfig,
MarkdownTableMode,
MentionPatternsPolicyConfig,
MSTeamsChannelConfig,
MSTeamsCloudName,
MSTeamsConfig,
MSTeamsReplyStyle,
MSTeamsTeamConfig,
OpenClawConfig,
ReplyToMode,
ResolvedTtsPersona,
SignalReactionNotificationMode,
SlackAccountConfig,
SlackChannelConfig,
SlackReactionNotificationMode,
SlackSlashCommandConfig,
TelegramAccountConfig,
TelegramActionConfig,
TelegramDirectConfig,
TelegramDmThreadReplies,
TelegramExecApprovalConfig,
TelegramGroupConfig,
TelegramInlineButtonsScope,
TelegramNetworkConfig,
TelegramTopicConfig,
TtsAutoMode,
TtsConfig,
TtsModelOverrideConfig,
TtsProvider,
} from "../config/types.js";