Download src/channels/plugins/load.ts from Darochin/openskynet: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/Darochin/openskynet/resolve/main/src/channels/plugins/load.ts
- Command line
-
hf download hf://Darochin/openskynet/src/channels/plugins/load.ts
-
curl -L -o load.ts https://huggingface.co/Darochin/openskynet/resolve/main/src/channels/plugins/load.ts
362 Bytes
| 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); | |
| } | |