Show HTML pages in a task view beside the transcript

This commit is contained in:
Ian Gulliver
2026-10-21 17:52:04 -07:00
parent af9c750298
commit 585c8ba5f8
16 changed files with 600 additions and 102 deletions
+21
View File
@@ -798,6 +798,27 @@ paths:
"404": { $ref: "#/components/responses/Error" }
"409": { $ref: "#/components/responses/Error" }
/api/tasks/{taskId}/raw:
parameters:
- { name: taskId, in: path, required: true, schema: { type: string } }
get:
operationId: getTaskRaw
description: >
A regular file in the task's worktree, whole, with a content type chosen by its extension: an HTML page in the
app's Page view and the stylesheets, scripts and images it loads. The response carries a sandbox
Content-Security-Policy, so a page opened from this address directly can't act on the API as its viewer.
A path that leaves the worktree, through .. or a symlink, is refused.
parameters:
- { name: path, in: query, required: true, schema: { type: string }, description: "Slash-separated, relative to the worktree root." }
responses:
"200":
description: The file's bytes.
content:
"*/*": { schema: { type: string, format: binary } }
"400": { $ref: "#/components/responses/Error" }
"404": { $ref: "#/components/responses/Error" }
"409": { $ref: "#/components/responses/Error" }
/api/terminals:
get:
operationId: listTerminals