docs: update project mind after parallel milestone merge
This commit is contained in:
@@ -4,5 +4,8 @@
|
|||||||
- [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] **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 `claude` CLI 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] **AI = real `claude` CLI 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.md` format guide into it.
|
- [2026-11-15] **Workspace (notebooks, hosts.yaml) is a separate git repo** from the app code; the app ships a `CLAUDE.md` format guide into it.
|
||||||
|
- [2026-11-16] **buildApp wiring:** auth registered first and on by default (`auth:false` only 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.
|
||||||
|
|
||||||
## Archive
|
## Archive
|
||||||
|
|||||||
@@ -2,5 +2,6 @@
|
|||||||
|
|
||||||
- [2026-11-15] **Approach:** marimo in LXC 501 + Fabric/asyncssh helpers, Claude via marimo's ACP agent panel. **Outcome:** ACP panel superseded by marimo pair; sidebar chat is API-key only. **Now:** dropped.
|
- [2026-11-15] **Approach:** marimo in LXC 501 + Fabric/asyncssh helpers, Claude via marimo's ACP agent panel. **Outcome:** ACP panel superseded by marimo pair; sidebar chat is API-key only. **Now:** dropped.
|
||||||
- [2026-11-15] **Approach:** marimo pair (Claude Code CLI in terminal) writing Python notebooks. **Outcome:** worked technically, but notebooks became Python wrappers; commands not readable/copyable, chat only in bottom terminal. **Now:** custom app (ShellBook) with shell-first format.
|
- [2026-11-15] **Approach:** marimo pair (Claude Code CLI in terminal) writing Python notebooks. **Outcome:** worked technically, but notebooks became Python wrappers; commands not readable/copyable, chat only in bottom terminal. **Now:** custom app (ShellBook) with shell-first format.
|
||||||
|
- [2026-11-16] **Approach:** 5 parallel Codex agents in worktrees (core/server/web/terminal/auth) against fixed contracts, orchestrator merges. **Outcome:** worked; conflicts only in app.ts, server package.json, lockfile (regenerate with pnpm install). Integration bugs surfaced only across branches (event order, env var names, auth vs. other tests). **Now:** keep contracts-first + integration test after merge.
|
||||||
|
|
||||||
## Archive
|
## Archive
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
# Gotchas
|
||||||
|
|
||||||
|
- [2026-11-16] **CRLF notebooks:** step scripts must be LF-normalized in the parser, or bash sees `cmd␍`. Covered by a core test.
|
||||||
|
- [2026-11-16] **Host key flow:** server emits `run.hostKeyUnknown` then `run.finished` (exit -1) for the aborted attempt; the web reducer must keep the prompt open (`status: hostKey`).
|
||||||
|
- [2026-11-16] **tmux under systemd:** default KillMode=control-group kills the tmux server on restart; unit uses `KillMode=process` so Claude sessions survive (spec §6).
|
||||||
|
- [2026-11-16] **Env names:** single data dir variable is `SHELLBOOK_DATA_DIR` (server config, auth, CLI, installer). SSH key: `SHELLBOOK_SSH_KEY`.
|
||||||
|
|
||||||
|
## Archive
|
||||||
@@ -2,8 +2,9 @@
|
|||||||
> Always-loaded. Everything else is on-demand. Update TOC when files change.
|
> Always-loaded. Everything else is on-demand. Update TOC when files change.
|
||||||
|
|
||||||
## Current Focus
|
## Current Focus
|
||||||
- [2026-11-15] Spec draft `docs/spec.md` v0.1 — awaiting review of the notebook format (§3).
|
- [2026-11-16] M0 core, M1 web viewer, M2 server exec, M4 server terminal/watcher, M5 auth/deploy merged on main (parallel agents).
|
||||||
- [2026-11-15] Next: M0 — monorepo skeleton + `packages/core` parser/params/shellQuote with tests.
|
- [2026-11-16] Round 2 in progress: M3 server (sensitive one-shot artifacts, retention, e2e SSH-key flow) + web xterm panel / M3 web.
|
||||||
|
- [2026-11-16] Open: first deploy to CT 501 behind Traefik (needs Proxmox access from the user).
|
||||||
|
|
||||||
## Invariants
|
## Invariants
|
||||||
- Displayed script == executed script (one substitution path).
|
- Displayed script == executed script (one substitution path).
|
||||||
@@ -14,6 +15,7 @@
|
|||||||
- Notebooks stay plain, readable Markdown.
|
- Notebooks stay plain, readable Markdown.
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
- `architecture.md` — 4 entries — why custom app, stack, AI integration, workspace split
|
- `architecture.md` — 7 entries — why custom app, stack, AI integration, workspace split
|
||||||
- `attempts.md` — 2 entries — marimo + marimo-pair trial and why it was dropped
|
- `attempts.md` — 2 entries — marimo + marimo-pair trial and why it was dropped
|
||||||
- `open.md` — 3 entries — open design questions
|
- `open.md` — 2 entries — open design questions
|
||||||
|
- `gotchas.md` — 4 entries — integration foot-guns (CRLF scripts, host-key event order, tmux vs systemd, env names)
|
||||||
|
|||||||
@@ -2,6 +2,5 @@
|
|||||||
|
|
||||||
- [2026-11-15] Optional chat-style UI (stream-json headless `claude`) in addition to the terminal? Would bill to the Agent SDK credit on subscriptions — decide after M4.
|
- [2026-11-15] Optional chat-style UI (stream-json headless `claude`) in addition to the terminal? Would bill to the Agent SDK credit on subscriptions — decide after M4.
|
||||||
- [2026-11-15] sudo with password (`type: secret` + `sudo -S`) or require NOPASSWD sudo only? Spec v0.1: `sudo -n` only.
|
- [2026-11-15] sudo with password (`type: secret` + `sudo -S`) or require NOPASSWD sudo only? Spec v0.1: `sudo -n` only.
|
||||||
- [2026-11-15] Node 22 on Debian 13: NodeSource repo vs. official tarball in the deploy script; node-pty prebuilds vs. build-essential.
|
|
||||||
|
|
||||||
## Archive
|
## Archive
|
||||||
|
|||||||
Reference in New Issue
Block a user