Changeset 0.37.18 (#230)

Co-authored-by: gobha <jasafpro@gmail.com>
Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
2026-03-24 19:55:14 +00:00
committed by xcaliber
parent 96a4f16bc5
commit 3a4afea7f2
34 changed files with 1534 additions and 1290 deletions

View File

@@ -454,10 +454,11 @@ Content-Type: multipart/form-data
Field: `file`. Sets `origin: "user_upload"`. Returns the file object.
**Create (tool output):** Tool-generated files are created internally
by the tool execution loop. There is no public REST endpoint for
tool output creation — the completion handler writes files directly
via the store layer.
**Create (tool output):** When `workspace_write` or `workspace_patch`
tools succeed during a completion, the handler auto-records a file
reference with `origin: "tool_output"` linked to the assistant message
(v0.37.18). No public endpoint — created internally by the completion
handler via the store layer.
**List by channel:**

View File

@@ -16,6 +16,7 @@ owning team/project/channel).
```
GET /workspaces → { "data": [...] }
POST /workspaces ← { "name", "owner_type", "owner_id" }
GET /workspaces/default → workspace object (v0.37.18)
GET /workspaces/:id → workspace object
PATCH /workspaces/:id ← partial update
DELETE /workspaces/:id
@@ -25,6 +26,15 @@ DELETE /workspaces/:id
workspaces plus those owned by the user's teams. All `:id` endpoints
verify the caller can access the workspace's owner entity.
#### `GET /workspaces/default` (v0.37.18)
Returns the current user's personal workspace, creating it on first
access. The workspace is named "My Files" and owned by the current user.
Idempotent — safe to call on every page load.
**Response:** 200 with workspace object (same shape as `GET /workspaces/:id`).
Includes `file_count` and `total_bytes` stats.
Workspace object:
```json