Skip to content

Commit b22ffe7

Browse files
committed
style: beautify system architecture diagram with colors and subgraphs
1 parent 3313414 commit b22ffe7

1 file changed

Lines changed: 51 additions & 14 deletions

File tree

README.md

Lines changed: 51 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,57 @@ MathClaw 是一套面向初高中数学学习场景的多通道 AI 学习系统
5353

5454
```mermaid
5555
flowchart LR
56-
A["学生 / 老师 / 管理员"] --> B["多通道入口<br/>WeCom / QQ / Feishu / ..."]
57-
B --> C["mathclaw gateway"]
58-
C --> D["MathClaw AgentLoop"]
59-
60-
D --> E["LLM Providers<br/>DashScope / OpenAI / Anthropic / ..."]
61-
D --> F["Tools<br/>Web · Filesystem · Shell · Cron · MCP"]
62-
D --> G["Sessions<br/>JSONL 会话历史"]
63-
D --> H["Memory Runtime<br/>日报 · 周报 · 双图谱"]
64-
D --> I["Heartbeat / Cron"]
65-
66-
H --> J["学习计划页"]
67-
H --> K["知识图谱页"]
68-
I --> L["心跳与自动发送页"]
69-
C --> M["MathClaw Console"]
56+
classDef user fill:#6C63FF,stroke:#5a54d9,color:#fff,stroke-width:2px
57+
classDef gateway fill:#00BFA6,stroke:#00a890,color:#fff,stroke-width:2px
58+
classDef core fill:#3776AB,stroke:#2d6290,color:#fff,stroke-width:2px
59+
classDef tool fill:#F4845F,stroke:#d9734f,color:#fff,stroke-width:2px
60+
classDef store fill:#7209B7,stroke:#6008a0,color:#fff,stroke-width:2px
61+
classDef output fill:#2EA44F,stroke:#278a42,color:#fff,stroke-width:2px
62+
63+
subgraph Users["👤 用户"]
64+
A(["学生 / 老师 / 管理员"]):::user
65+
end
66+
67+
subgraph Channel["📡 通道层"]
68+
B["多通道入口<br/>WeCom / QQ / Feishu / ..."]:::gateway
69+
C["MathClaw Gateway"]:::gateway
70+
M["MathClaw Console"]:::gateway
71+
end
72+
73+
subgraph Core["⚙️ 核心引擎"]
74+
D(["MathClaw AgentLoop"]):::core
75+
E["LLM Providers<br/>DashScope / OpenAI / Anthropic / ..."]:::core
76+
F["Tools<br/>Web · Filesystem · Shell · Cron · MCP"]:::tool
77+
end
78+
79+
subgraph Memory["💾 记忆与调度"]
80+
G[("Sessions<br/>JSONL 会话历史")]:::store
81+
H["Memory Runtime<br/>日报 · 周报 · 双图谱"]:::store
82+
I["Heartbeat / Cron"]:::store
83+
end
84+
85+
subgraph Output["📊 前端呈现"]
86+
J["学习计划页"]:::output
87+
K["知识图谱页"]:::output
88+
L["心跳与自动发送页"]:::output
89+
end
90+
91+
A --> B --> C --> D
92+
C --> M
93+
D --> E
94+
D --> F
95+
D --> G
96+
D --> H
97+
D --> I
98+
H --> J
99+
H --> K
100+
I --> L
101+
102+
style Users fill:#6c63ff16,stroke:#6C63FF,stroke-width:2px,color:#333
103+
style Channel fill:#00bfa616,stroke:#00BFA6,stroke-width:2px,color:#333
104+
style Core fill:#3776ab16,stroke:#3776AB,stroke-width:2px,color:#333
105+
style Memory fill:#7209b716,stroke:#7209B7,stroke-width:2px,color:#333
106+
style Output fill:#2ea44f16,stroke:#2EA44F,stroke-width:2px,color:#333
70107
```
71108

72109
## 📁 仓库结构

0 commit comments

Comments
 (0)