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
+12
View File
@@ -143,6 +143,18 @@ only, then removed.
- Edit mode: raw Markdown in CodeMirror with live preview. Files changed on disk
(by Claude or git pull) reload live.
- Notebook management: searchable folder tree; create with name/folder/title and a
valid starter, rename/move, duplicate, and explicitly confirmed delete. Paths are
relative to `notebooks/`; folders are created as needed and pruned when empty.
- Editor toolbar inserts checks, runs, artifact downloads, uploads, captures and
after-step notes at the cursor. A parameter form edits YAML frontmatter through
a YAML document parser; format help explains syntax. Targets are local or host
parameters. Examples must be reviewed before execution.
- Mutations use optimistic versions; occupied destinations or stale versions return
409. Atomic file publication and recursive watcher events refresh all tabs. An
external rename/delete retains the old open draft with a notice and refreshes
the tree; users can select the new path. Unsaved navigation requires confirmation.
## 6. AI: Claude Code
- The right panel is a real terminal (xterm.js ↔ node-pty) running `claude` in the