新增大量渠道适配器相关的协议、策略、工具类与基础设施代码,包括: 1. 多协议定义:认证、消息、配置、网关等核心接口 2. 策略模块:上下文、群聊、去重、防抖等业务策略 3. 工具集:重试、去重、文本分块、消息格式化等SDK工具 4. 基础设施:外部进程管理、事件广播、熔断机制等 5. 账户与管道系统:账户管理、消息处理管道实现 6. 运行时服务:状态收集、维护任务、日志等后台服务
40 lines
1.7 KiB
Python
40 lines
1.7 KiB
Python
from yuxi.channels.protocols.actions import ActionContext, ChannelMessageActionProtocol
|
|
from yuxi.channels.protocols.auth import ChannelAuthProtocol
|
|
from yuxi.channels.protocols.commands import ChannelCommandProtocol
|
|
from yuxi.channels.protocols.config import ChannelConfigProtocol
|
|
from yuxi.channels.protocols.directory import ChannelDirectoryProtocol
|
|
from yuxi.channels.protocols.gateway import ChannelGatewayProtocol
|
|
from yuxi.channels.protocols.group import ChannelGroupProtocol
|
|
from yuxi.channels.protocols.heartbeat import ChannelHeartbeatProtocol
|
|
from yuxi.channels.protocols.lifecycle import ChannelLifecycleProtocol
|
|
from yuxi.channels.protocols.messaging import ChannelMessagingProtocol
|
|
from yuxi.channels.protocols.outbound import ChannelOutboundProtocol, OutboundContext
|
|
from yuxi.channels.protocols.pairing import ChannelPairingProtocol
|
|
from yuxi.channels.protocols.security import ChannelSecurityProtocol
|
|
from yuxi.channels.protocols.setup import ChannelSetupProtocol
|
|
from yuxi.channels.protocols.status import ChannelStatusProtocol
|
|
from yuxi.channels.protocols.streaming import ChannelStreamingProtocol
|
|
from yuxi.channels.protocols.threading import ChannelThreadingProtocol
|
|
|
|
__all__ = [
|
|
"ActionContext",
|
|
"ChannelAuthProtocol",
|
|
"ChannelCommandProtocol",
|
|
"ChannelConfigProtocol",
|
|
"ChannelDirectoryProtocol",
|
|
"ChannelGatewayProtocol",
|
|
"ChannelGroupProtocol",
|
|
"ChannelHeartbeatProtocol",
|
|
"ChannelLifecycleProtocol",
|
|
"ChannelMessageActionProtocol",
|
|
"ChannelMessagingProtocol",
|
|
"ChannelOutboundProtocol",
|
|
"ChannelPairingProtocol",
|
|
"ChannelSecurityProtocol",
|
|
"ChannelSetupProtocol",
|
|
"ChannelStatusProtocol",
|
|
"ChannelStreamingProtocol",
|
|
"ChannelThreadingProtocol",
|
|
"OutboundContext",
|
|
]
|