(id: string)
| 433 | * workspace itself stays in the registry. Idempotent. |
| 434 | */ |
| 435 | export async function stopWorkspace(id: string): Promise<boolean> { |
| 436 | const res = await fetch(`/api/workspaces/${encodeURIComponent(id)}/stop`, { |
| 437 | method: 'POST', |
| 438 | }); |
| 439 | return res.ok; |
| 440 | } |
| 441 | |
| 442 | // ── git ────────────────────────────────────────────────────────────────────── |
| 443 |