- 新增 15 个 Mermaid 架构图解文件,涵盖系统核心组件 - 添加系统架构全景图,展示外部消息平台到 LLM 提供商的完整流程 - 新增网关层、通道管理、路由层、ACP 协议层、Agent 运行时等模块架构图 - 添加记忆系统、心跳系统、插件系统、安全架构等专项设计图 - 新增消息流转序列图和启动流程图 - 添加容器化部署架构和数据存储结构图 - 配置 Mermaid 图表样式,统一科技感视觉主题 - 添加完整的系统设计模式思维导图 - 新增 456 行深度架构分析文章,覆盖六大核心子系统
21 lines
733 B
Plaintext
21 lines
733 B
Plaintext
sequenceDiagram
|
|
participant Client as 客户端/CLI
|
|
participant GW as Gateway Server
|
|
participant Auth as 认证中间件
|
|
participant Proto as 协议处理器
|
|
participant CM as Channel Manager
|
|
participant RT as Route Resolver
|
|
|
|
Client->>GW: WebSocket 连接 (ws://localhost:18789)
|
|
GW->>Auth: 设备认证 (Ed25519 签名)
|
|
Auth-->>GW: 认证通过 + 设备 Token
|
|
GW->>Proto: Hello 握手 (PROTOCOL_VERSION)
|
|
Proto-->>Client: HelloOk (capabilities, scopes)
|
|
|
|
Note over Client,RT: 消息流
|
|
|
|
Client->>GW: RequestFrame: chat.send
|
|
GW->>Proto: AJV Schema 校验
|
|
Proto->>RT: 路由解析 (channel + peer → agent)
|
|
RT-->>GW: sessionKey + agentId
|
|
GW->>CM: 分发到对应通道 |