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.
1.6 KiB
Architecture
-
[2026-11-15] Custom app instead of marimo/Atuin/Runme. Need: literal, copyable shell + SSH run + checks + params + dynamic downloads + Claude Code CLI next to the notebook. No existing tool covers all; marimo hid commands behind Python.
-
[2026-11-15] TypeScript monorepo (core / server / web). One language; node-pty + xterm.js is the proven path for the embedded Claude terminal.
-
[2026-11-15] AI = real
claudeCLI in a tmux-backed terminal panel. Uses the user's subscription legitimately; marimo's ACP panel was deprecated and API-key chat is not wanted. -
[2026-11-15] Workspace (notebooks, hosts.yaml) is a separate git repo from the app code; the app ships a
CLAUDE.mdformat guide into it. -
[2026-11-16] buildApp wiring: auth registered first and on by default (
auth:falseonly in tests); one EventsHub feeds /api/events from runs and the notebook watcher (watchNotebooks); terminal cwd = config.workspaceDir. -
[2026-11-16] Secrets on SSH: exported via
export NAME=<shellQuote>lines on stdin before the script (sshd AcceptEnv unreliable); redacted from streamed output, captures and audit. -
[2026-11-16] Deploy: Node 22 from the official nodejs.org tarball verified against SHASUMS256; node-pty 1.1.0 has no Linux prebuilds, so the installer adds build-essential + python3.
-
[2026-11-16] Notebook management (#9): a shared mutation queue serializes saves/create/move/duplicate/delete. Exclusive hard-link publication prevents target replacement; saves use temp+rename. The recursive watcher updates lists; deleted open drafts are retained. Frontmatter helpers use YAML document nodes.