mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-30 02:22:25 +00:00
refactor: dedupe channel plugin shared assembly
This commit is contained in:
@@ -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"
|
||||
>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user