docs: replace ASCII architecture diagram with Mermaid

This commit is contained in:
Nicolas Varrot
2026-02-11 17:45:15 +00:00
parent 09ae82df6c
commit 02d2ab3bf7

View File

@@ -84,27 +84,20 @@ All configuration is optional — credentials are entered at runtime via the log
## 🏗 Architecture ## 🏗 Architecture
``` ```mermaid
┌─────────────────────────────────────────────────────┐ graph TD
PinchChat (Browser) subgraph Browser["🌐 PinchChat (Browser)"]
Login["LoginScreen<br/><i>credentials</i>"]
┌──────────┐ ┌───────────┐ ┌──────────────────┐ │ App["App.tsx<br/><i>router</i>"]
│ │ Login │→ │ App.tsx │→ │ Chat + Sidebar │ │ UI["Chat + Sidebar<br/><i>main UI</i>"]
Screen │ │ (router) │ │ (main UI) │ │ Hook["useGateway<br/><i>WebSocket state machine</i><br/>auth · sessions · messages"]
│ └──────────┘ └─────┬─────┘ └────────┬─────────┘ │
│ │ │ │ Login --> App --> UI
┌─────▼──────────────────▼─────┐ │ App & UI --> Hook
│ useGateway (hook) │ │ end
│ │ WebSocket state machine │ │
│ auth · sessions · messages │ │ Hook <-->|"WebSocket (JSON frames)"| Gateway["🔌 OpenClaw Gateway<br/><code>ws://host:18789</code>"]
└─────────────┬────────────────┘ │ Gateway <-->|API| LLM["🤖 LLM Provider<br/><i>Anthropic, OpenAI, etc.</i>"]
└──────────────────────────────┼───────────────────────┘
│ WebSocket (JSON frames)
┌─────────────────────┐
│ OpenClaw Gateway │
│ (ws://host:18789) │
└─────────────────────┘
``` ```
### Key Components ### Key Components