import { createChannelRegistryLoader } from "./registry-loader.js"; import type { ChannelId, ChannelPlugin } from "./types.js"; const loadPluginFromRegistry = createChannelRegistryLoader((entry) => entry.plugin); export async function loadChannelPlugin(id: ChannelId): Promise { return loadPluginFromRegistry(id); }