import { ChannelPluginRegistry } from '../../channels/index.js';
export function registerChannelAgentTools(registry, channelRegistry) {
    if (!channelRegistry)
        return 0;
    let registered = 0;
    for (const tool of channelRegistry.listAgentTools()) {
        if (registry.has(tool.definition.name))
            continue;
        registry.register(tool);
        registered += 1;
    }
    return registered;
}
