mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-09-30 12:39:42 +02:00
docs: replace ASCII art with Mermaid diagram
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user