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 ## Architecture
``` ```mermaid
CLAUDEMAN flowchart TB
┌────────────────────────────────────────────────────────┐ subgraph Claudeman["🖥️ CLAUDEMAN"]
│ │ subgraph Frontend["Frontend Layer"]
│ ┌─────────────┐ ┌─────────────┐ ┌────────────┐ │ UI["Web UI<br/><small>xterm.js</small>"]
│ │ Web UI │ │ REST API │ │ SSE │ │ API["REST API<br/><small>Fastify</small>"]
│ │ xterm.js │◄──│ Fastify │──►│ Events │ │ SSE["SSE Events<br/><small>/api/events</small>"]
│ └─────────────┘ └──────┬──────┘ └────────────┘ │ end
│ │ │
│ ▼ │ subgraph Core["Core Layer"]
│ ┌────────────────────────────────────────────────┐ │ SM["Session Manager"]
│ │ Session Manager │ │ S1["Session (PTY)"]
│ │ │ │ S2["Session (PTY)"]
│ │ ┌──────────┐ ┌──────────┐ ┌─────────────┐ │ │ RC["Respawn Controller"]
│ │ │ Session │ │ Session │ │ Respawn │ │ │ end
│ │ │ (PTY) │ │ (PTY) │ │ Controller │ │ │
│ │ └────┬─────┘ └────┬─────┘ └─────────────┘ │ │ subgraph Persistence["Persistence Layer"]
│ └───────┼─────────────┼────────────────────────┬┘ │ SCR["GNU Screen Manager"]
│ │ │ │ │ end
│ ▼ ▼ ▼ │
│ ┌────────────────────────────────────────────────┐ │ subgraph External["External"]
│ │ GNU Screen Manager │ │ CLI["Claude CLI"]
│ │ (Persistence) │ │ end
│ └────────────────────┬───────────────────────────┘ │ end
│ │ │
│ ▼ │ UI <--> API
│ ┌────────────────────────────────────────────────┐ │ API <--> SSE
│ │ Claude CLI │ │ API --> SM
│ └────────────────────────────────────────────────┘ │ SM --> S1
│ │ SM --> S2
└────────────────────────────────────────────────────────┘ SM --> RC
S1 --> SCR
S2 --> SCR
RC --> SCR
SCR --> CLI
``` ```
--- ---