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 {
buildAccountScopedDmSecurityPolicy,
collectAllowlistProviderRestrictSendersWarnings,
} from "openclaw/plugin-sdk/channel-policy";
import { createChannelPluginBase } from "openclaw/plugin-sdk/core";
import {
buildChannelConfigSchema,
DEFAULT_ACCOUNT_ID,
@@ -59,7 +60,7 @@ export function createSignalPluginBase(params: {
| "security"
| "setup"
> {
return {
return createChannelPluginBase({
id: SIGNAL_CHANNEL,
meta: {
...getChatChannelMeta(SIGNAL_CHANNEL),
@@ -129,5 +130,17 @@ export function createSignalPluginBase(params: {
}),
},
setup: params.setup,
};
}) as Pick<
ChannelPlugin<ResolvedSignalAccount>,
| "id"
| "meta"
| "setupWizard"
| "capabilities"
| "streaming"
| "reload"
| "configSchema"
| "config"
| "security"
| "setup"
>;
}