mirror of https://github.com/openclaw/openclaw.git
9 lines
362 B
TypeScript
9 lines
362 B
TypeScript
import { createChannelRegistryLoader } from "./registry-loader.js";
|
|
import type { ChannelId, ChannelPlugin } from "./types.js";
|
|
|
|
const loadPluginFromRegistry = createChannelRegistryLoader<ChannelPlugin>((entry) => entry.plugin);
|
|
|
|
export async function loadChannelPlugin(id: ChannelId): Promise<ChannelPlugin | undefined> {
|
|
return loadPluginFromRegistry(id);
|
|
}
|