mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-08 08:29: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
|
## 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
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user