docs: replace ASCII art with Mermaid diagram

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-01-21 15:11:52 +01:00
co-authored by Claude Opus 4.5
parent 5f90a612b1
commit 469e737eef
+35 -31
View File
@@ -204,37 +204,41 @@ claudeman web
## Architecture
```
CLAUDEMAN
┌────────────────────────────────────────────────────────┐
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌────────────┐ │
│ │ Web UI │ │ REST API │ │ SSE │ │
│ │ xterm.js │◄──│ Fastify │──►│ Events │ │
│ └─────────────┘ └──────┬──────┘ └────────────┘ │
│ │ │
│ ▼ │
│ ┌────────────────────────────────────────────────┐ │
│ │ Session Manager │ │
│ │ │ │
│ │ ┌──────────┐ ┌──────────┐ ┌─────────────┐ │ │
│ │ │ Session │ │ Session │ │ Respawn │ │ │
│ │ │ (PTY) │ │ (PTY) │ │ Controller │ │ │
│ │ └────┬─────┘ └────┬─────┘ └─────────────┘ │ │
│ └───────┼─────────────┼────────────────────────┬┘ │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ ┌────────────────────────────────────────────────┐ │
│ │ GNU Screen Manager │ │
│ │ (Persistence) │ │
│ └────────────────────┬───────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌────────────────────────────────────────────────┐ │
│ │ Claude CLI │ │
│ └────────────────────────────────────────────────┘ │
│ │
└────────────────────────────────────────────────────────┘
```mermaid
flowchart TB
subgraph Claudeman["🖥️ CLAUDEMAN"]
subgraph Frontend["Frontend Layer"]
UI["Web UI<br/><small>xterm.js</small>"]
API["REST API<br/><small>Fastify</small>"]
SSE["SSE Events<br/><small>/api/events</small>"]
end
subgraph Core["Core Layer"]
SM["Session Manager"]
S1["Session (PTY)"]
S2["Session (PTY)"]
RC["Respawn Controller"]
end
subgraph Persistence["Persistence Layer"]
SCR["GNU Screen Manager"]
end
subgraph External["External"]
CLI["Claude CLI"]
end
end
UI <--> API
API <--> SSE
API --> SM
SM --> S1
SM --> S2
SM --> RC
S1 --> SCR
S2 --> SCR
RC --> SCR
SCR --> CLI
```
---