wmdev 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -172,20 +172,9 @@ If your `.workmux.yaml` has `auto_name.model` configured, the create-worktree di
172
172
 
173
173
  ## Architecture
174
174
 
175
- ```
176
- Browser (localhost:5111)
177
-
178
- ├── REST API (/api/*) ──┐
179
- └── WebSocket (/ws/*) ──┤
180
-
181
- Backend (Bun HTTP server)
182
-
183
- ┌──────────────┼──────────────┐
184
- │ │ │
185
- workmux CLI tmux sessions Docker
186
- (worktree (terminal (sandbox
187
- lifecycle) access) containers)
188
- ```
175
+ <p align="center">
176
+ <img src="docs/architecture.svg" alt="Architecture diagram" />
177
+ </p>
189
178
 
190
179
  **Backend** — Bun/TypeScript HTTP + WebSocket server (`backend/src/server.ts`):
191
180
 
@@ -196,9 +185,9 @@ Browser (localhost:5111)
196
185
 
197
186
  ### Terminal streaming
198
187
 
199
- ```
200
- Browser (xterm.js) ←— WebSocket —→ Backend ←— stdin/stdout pipes —→ script (PTY) ←— tmux attach —→ tmux grouped session
201
- ```
188
+ <p align="center">
189
+ <img src="docs/terminal-streaming.svg" alt="Terminal streaming diagram" />
190
+ </p>
202
191
 
203
192
  When a worktree is selected, the frontend opens a WebSocket to `/ws/<worktree>`. The backend spawns a PTY via `script` and attaches to a **grouped tmux session** — a separate view into the same windows. This allows the dashboard and a real terminal to view the same worktree simultaneously.
204
193