fix: restore rebased full gate

This commit is contained in:
Peter Steinberger
2026-03-18 04:24:18 +00:00
parent b5d2123156
commit 861fcb1575
11 changed files with 57 additions and 51 deletions

View File

@@ -0,0 +1,4 @@
export {
resolveBlueBubblesGroupRequireMention,
resolveBlueBubblesGroupToolPolicy,
} from "./src/group-policy.js";

View File

@@ -3,7 +3,7 @@ import {
resolveChannelGroupToolsPolicy,
type GroupToolPolicyConfig,
} from "openclaw/plugin-sdk/channel-policy";
import type { OpenClawConfig } from "./runtime-api.js";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
type BlueBubblesGroupContext = {
cfg: OpenClawConfig;

View File

@@ -1,6 +1,8 @@
export {
buildComputedAccountStatusSnapshot,
buildTokenChannelStatusSummary,
listDiscordDirectoryGroupsFromConfig,
listDiscordDirectoryPeersFromConfig,
PAIRING_APPROVED_MESSAGE,
projectCredentialSnapshotFields,
resolveConfiguredFromCredentialStatuses,
@@ -12,6 +14,7 @@ export {
readNumberParam,
readStringArrayParam,
readStringParam,
resolvePollMaxSelections,
type ActionGate,
type ChannelPlugin,
type OpenClawConfig,
@@ -19,9 +22,11 @@ export {
export { DiscordConfigSchema } from "openclaw/plugin-sdk/discord-core";
export { readBooleanParam } from "openclaw/plugin-sdk/boolean-param";
export {
listDiscordDirectoryGroupsFromConfig,
listDiscordDirectoryPeersFromConfig,
} from "./directory-config.js";
assertMediaNotDataUrl,
parseAvailableTags,
readReactionParams,
withNormalizedTimestamp,
} from "openclaw/plugin-sdk/discord-core";
export {
createHybridChannelConfigAdapter,
createScopedChannelConfigAdapter,
@@ -41,13 +46,6 @@ export type {
ChannelMessageActionName,
} from "openclaw/plugin-sdk/channel-runtime";
export type { DiscordConfig } from "openclaw/plugin-sdk/discord";
export {
assertMediaNotDataUrl,
parseAvailableTags,
readReactionParams,
resolvePollMaxSelections,
withNormalizedTimestamp,
} from "openclaw/plugin-sdk/discord-core";
export type { DiscordAccountConfig, DiscordActionConfig } from "openclaw/plugin-sdk/discord";
export {
hasConfiguredSecretInput,

View File

@@ -84,7 +84,11 @@ import {
import { runWithReconnect } from "./reconnect.js";
import { deliverMattermostReplyPayload } from "./reply-delivery.js";
import { sendMessageMattermost } from "./send.js";
import { cleanupSlashCommands } from "./slash-commands.js";
import {
cleanupSlashCommands,
isSlashCommandsEnabled,
resolveSlashCommandConfig,
} from "./slash-commands.js";
import { deactivateSlashCommands, getSlashCommandState } from "./slash-state.js";
export {
@@ -269,6 +273,7 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {}
const botUserId = botUser.id;
const botUsername = botUser.username?.trim() || undefined;
runtime.log?.(`mattermost connected as ${botUsername ? `@${botUsername}` : botUserId}`);
const slashEnabled = isSlashCommandsEnabled(resolveSlashCommandConfig(account.config.commands));
await registerMattermostMonitorSlashCommands({
client,