refactor: dedupe channel plugin shared assembly

This commit is contained in:
Peter Steinberger
2026-03-17 20:13:45 -07:00
parent 3cc83cb81e
commit cd5c2f4cb2
11 changed files with 1923 additions and 1791 deletions

View File

@@ -3,6 +3,7 @@ import {
createScopedAccountConfigAccessors,
createScopedChannelConfigBase,
} from "openclaw/plugin-sdk/channel-config-helpers";
import { createChannelPluginBase } from "openclaw/plugin-sdk/core";
import {
formatDocsLink,
hasConfiguredSecretInput,
@@ -176,7 +177,7 @@ export function createSlackPluginBase(params: {
| "config"
| "setup"
> {
return {
return createChannelPluginBase({
id: SLACK_CHANNEL,
meta: {
...getChatChannelMeta(SLACK_CHANNEL),
@@ -220,5 +221,17 @@ export function createSlackPluginBase(params: {
...slackConfigAccessors,
},
setup: params.setup,
};
}) as Pick<
ChannelPlugin<ResolvedSlackAccount>,
| "id"
| "meta"
| "setupWizard"
| "capabilities"
| "agentPrompt"
| "streaming"
| "reload"
| "configSchema"
| "config"
| "setup"
>;
}