@@ -4,24 +4,8 @@ import {
44 buildAccountScopedDmSecurityPolicy ,
55 collectAllowlistProviderRestrictSendersWarnings ,
66} from "openclaw/plugin-sdk/channel-policy" ;
7- import {
8- createLegacyMessageToolDiscoveryMethods ,
9- createMessageToolButtonsSchema ,
10- } from "openclaw/plugin-sdk/channel-runtime" ;
7+ import { createMessageToolButtonsSchema } from "openclaw/plugin-sdk/channel-runtime" ;
118import type { ChannelMessageToolDiscovery } from "openclaw/plugin-sdk/channel-runtime" ;
12- import {
13- buildComputedAccountStatusSnapshot ,
14- buildChannelConfigSchema ,
15- createAccountStatusSink ,
16- DEFAULT_ACCOUNT_ID ,
17- deleteAccountFromConfigSection ,
18- resolveAllowlistProviderRuntimeGroupPolicy ,
19- resolveDefaultGroupPolicy ,
20- setAccountEnabledInConfigSection ,
21- type ChannelMessageActionAdapter ,
22- type ChannelMessageActionName ,
23- type ChannelPlugin ,
24- } from "./runtime-api.js" ;
259import { buildPassiveProbedChannelStatusSummary } from "../../shared/channel-status-summary.js" ;
2610import { MattermostConfigSchema } from "./config-schema.js" ;
2711import { resolveMattermostGroupRequireMention } from "./group-mentions.js" ;
@@ -42,6 +26,19 @@ import { addMattermostReaction, removeMattermostReaction } from "./mattermost/re
4226import { sendMessageMattermost } from "./mattermost/send.js" ;
4327import { resolveMattermostOpaqueTarget } from "./mattermost/target-resolution.js" ;
4428import { looksLikeMattermostTargetId , normalizeMattermostMessagingTarget } from "./normalize.js" ;
29+ import {
30+ buildComputedAccountStatusSnapshot ,
31+ buildChannelConfigSchema ,
32+ createAccountStatusSink ,
33+ DEFAULT_ACCOUNT_ID ,
34+ deleteAccountFromConfigSection ,
35+ resolveAllowlistProviderRuntimeGroupPolicy ,
36+ resolveDefaultGroupPolicy ,
37+ setAccountEnabledInConfigSection ,
38+ type ChannelMessageActionAdapter ,
39+ type ChannelMessageActionName ,
40+ type ChannelPlugin ,
41+ } from "./runtime-api.js" ;
4542import { getMattermostRuntime } from "./runtime.js" ;
4643import { mattermostSetupAdapter } from "./setup-core.js" ;
4744import { mattermostSetupWizard } from "./setup-surface.js" ;
@@ -88,7 +85,6 @@ function describeMattermostMessageTool({
8885
8986const mattermostMessageActions : ChannelMessageActionAdapter = {
9087 describeMessageTool : describeMattermostMessageTool ,
91- ...createLegacyMessageToolDiscoveryMethods ( describeMattermostMessageTool ) ,
9288 supportsAction : ( { action } ) => {
9389 return action === "send" || action === "react" ;
9490 } ,
0 commit comments