本模块由三层协作构成:channels 子包提供 BaseChannel 抽象、MessageBus 异步总线、pairing DM 授权与 registry 自动发现;manager.py 在启动时扫描内置渠道与 entry_point 插件,按配置实例化并维护 channels 字典,负责 inbound→Agent Loop→outbound 的消息编排;每个具体平台(telegram/discord/slack/weixin 等)仅实现 BaseChannel 并通过 bus 入出站消息。channelsui 作为独立子包为 websocket 渠道提供 WebUI 所需的 gateway_services(WorkspaceScope/TokenIssuer/MediaService/TranscriptService)、HTTP 工具、MCP/CLI mention 归一化及 fork-chat、转录等能力的回退实现;manager._build_channel_kwargs 在构造 websocket 渠道时注入 build_gateway_services,从而把 channels 与 channelsui 解耦地连接起来。