Move channel configuration into the existing credentials.json5 under a `channels` section, matching OpenClaw's single-config-file approach. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
724 B
TypeScript
25 lines
724 B
TypeScript
/**
|
|
* Channel system bootstrap and exports.
|
|
*/
|
|
|
|
export { ChannelManager } from "./manager.js";
|
|
export { registerChannel, getChannel, listChannels } from "./registry.js";
|
|
export { loadChannelsConfig } from "./config.js";
|
|
export type {
|
|
ChannelPlugin,
|
|
ChannelMessage,
|
|
DeliveryContext,
|
|
ChannelAccountState,
|
|
ChannelsConfig,
|
|
} from "./types.js";
|
|
|
|
// Built-in channel plugins
|
|
import { registerChannel } from "./registry.js";
|
|
import { telegramChannel } from "./plugins/telegram.js";
|
|
|
|
/** Register all built-in channel plugins. Call once at startup. */
|
|
export function initChannels(): void {
|
|
registerChannel(telegramChannel);
|
|
// Future: registerChannel(discordChannel);
|
|
// Future: registerChannel(feishuChannel);
|
|
}
|