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:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user