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 +6 -17
- package/backend/dist/server.js +8657 -0
- package/bin/wmdev.js +1 -1
- package/package.json +4 -5
- package/backend/src/config.ts +0 -103
- package/backend/src/docker.ts +0 -432
- package/backend/src/env.ts +0 -95
- package/backend/src/http.ts +0 -10
- package/backend/src/lib/log.ts +0 -14
- package/backend/src/pr.ts +0 -333
- package/backend/src/rpc-secret.ts +0 -21
- package/backend/src/rpc.ts +0 -96
- package/backend/src/server.ts +0 -471
- package/backend/src/terminal.ts +0 -310
- package/backend/src/workmux.ts +0 -474
- package/backend/tsconfig.json +0 -15
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
|
-
|
|
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
|
-
|
|
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
|
|