From 40fd13480d46f17ec1745ccacea780964554f9d7 Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 19 Jan 2026 06:40:18 +0100 Subject: [PATCH] docs: add missing API endpoints to CLAUDE.md Document three endpoints that were in the code but missing from docs: - GET /api/sessions/:id/output - POST /api/sessions/:id/run - POST /api/run Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 291815d8..18168bf6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -211,6 +211,7 @@ REST API served by Fastify at `src/web/server.ts`. All endpoints are under `/api - `GET /api/sessions` - List all sessions - `POST /api/sessions` - Create session `{ workingDir, mode?, name? }` - `GET /api/sessions/:id` - Get session details (includes bufferStats) +- `GET /api/sessions/:id/output` - Get text output buffer - `DELETE /api/sessions/:id` - Kill and remove session - `DELETE /api/sessions` - Kill all sessions - `PUT /api/sessions/:id/name` - Rename session `{ name }` @@ -218,6 +219,7 @@ REST API served by Fastify at `src/web/server.ts`. All endpoints are under `/api - `POST /api/sessions/:id/shell` - Start shell terminal (no Claude) - `POST /api/sessions/:id/input` - Send input to session `{ input }` - `POST /api/sessions/:id/resize` - Resize terminal `{ cols, rows }` +- `POST /api/sessions/:id/run` - Run one-shot prompt `{ prompt }` - `GET /api/sessions/:id/terminal` - Get terminal buffer **Respawn Controller:** @@ -252,6 +254,7 @@ REST API served by Fastify at `src/web/server.ts`. All endpoints are under `/api - `GET /api/status` - Full state snapshot - `GET /api/settings` - Get app settings - `PUT /api/settings` - Update settings +- `POST /api/run` - Quick run prompt without creating persistent session `{ prompt, workingDir? }` ## E2E Testing with agent-browser