feat(notebooks): manage and author notebooks in the web UI (#9)

Add atomic, versioned notebook mutations, a searchable folder tree, and editor insertion forms. Validate notebook paths and symlink roots and retain drafts after external changes.

Add yaml as a direct web dependency, reusing the existing workspace library for comment-preserving frontmatter edits.
This commit is contained in:
Florian Schmidt
2026-11-16 10:16:43 +01:00
parent 4fe7e4e376
commit 911387264b
22 changed files with 1302 additions and 23 deletions
+11
View File
@@ -126,3 +126,14 @@ export type ServerEvent =
export type TerminalClientMessage =
| { type: "input"; data: string }
| { type: "resize"; cols: number; rows: number };
// ---- notebook management (#9) ------------------------------------------------
// Paths are relative to notebooks/. Mutations return 409 on stale versions or occupied targets.
// POST /api/notebooks
export interface CreateNotebookRequest { path: string; source: string }
// POST /api/notebooks/:path/rename or /duplicate
export interface MoveNotebookRequest { path: string; baseVersion: string }
// DELETE /api/notebooks/:path
export interface DeleteNotebookRequest { baseVersion: string }
export interface NotebookMutationResponse { path: string; version: string }
export interface DeleteNotebookResponse { deleted: boolean }