From 5e923b9c3018e21894141a78884062f7f4a17449 Mon Sep 17 00:00:00 2001 From: Florian Schmidt Date: Mon, 16 Nov 2026 10:58:28 +0100 Subject: [PATCH] docs(mind): record bundle import and deploy update decisions --- .agents/mind/architecture.md | 1 + .agents/mind/gotchas.md | 1 + .agents/mind/index.md | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.agents/mind/architecture.md b/.agents/mind/architecture.md index ed8383c..d375ca0 100644 --- a/.agents/mind/architecture.md +++ b/.agents/mind/architecture.md @@ -11,5 +11,6 @@ - [2026-11-16] **Settings (#10):** browser setup consumes private setup-token; cookies are bound to the password hash, and sign-out-all atomically rotates the persisted secret. Browser auth mutations serialize and close active WebSockets. - [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. - [2026-11-16] **Host credentials (#7):** write-only AES-256-GCM files under dataDir, host-name AAD; shared SSH connect selects per-host password/key. ssh2 1.17.0 has no client user-certificate pairing API. Hosts plugin owns management routes and preserves inventory comments/version checks. +- [2026-11-16] **Deploy/update:** host one-liner `bootstrap.sh` (temp dir, nothing left on host); `install.sh` is install-or-update; root-owned `shellbook-update` fetches the installer over HTTPS because root must never run code from the service-user-writable `/opt/shellbook`. ## Archive diff --git a/.agents/mind/gotchas.md b/.agents/mind/gotchas.md index 1f4f08b..10681ed 100644 --- a/.agents/mind/gotchas.md +++ b/.agents/mind/gotchas.md @@ -14,5 +14,6 @@ - [2026-11-16] **Path conventions:** web/API notebook paths are relative to `notebooks/`; chat protocol paths are workspace-relative (`notebooks/...`). Convert at the ChatPanel boundary. - [2026-11-16] **Watcher timing tests:** full parallel test run on Windows delays fs events >100 ms; keep watcher test debounce/quiet windows generous. - [2026-11-16] **HTTP errors:** server httpError messages (4xx/502/503) are user-facing and shown by the web client; 500 messages are not. Keep 4xx/502 messages free of secrets. +- [2026-11-16] **CJS named imports in the bundle:** `import { utils } from "ssh2"` passes Vitest but crashes `node dist/main.js`; import CommonJS packages via default export. `test/bundle.test.ts` starts the real bundle. ## Archive diff --git a/.agents/mind/index.md b/.agents/mind/index.md index 1edfd34..d4e8bd2 100644 --- a/.agents/mind/index.md +++ b/.agents/mind/index.md @@ -15,7 +15,7 @@ - Everything doable from the web UI; files are storage, not the only way in. ## Table of Contents -- `architecture.md` — 8 entries — why custom app, stack, AI integration, workspace split +- `architecture.md` — 12 entries — why custom app, stack, AI integration, workspace split, deploy/update - `attempts.md` — 4 entries — marimo + marimo-pair trial and why it was dropped - `open.md` — 2 entries — open design questions (sudo password, chat history) -- `gotchas.md` — 11 entries — integration foot-guns (CRLF, host-key events, tmux/systemd, env names, pct exec PATH, TUN, chat paths, watcher timing) +- `gotchas.md` — 12 entries — integration foot-guns (CRLF, host-key events, tmux/systemd, env names, pct exec PATH, TUN, chat paths, watcher timing)