docs(mind): record bundle import and deploy update decisions
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user