Commit Graph
23 Commits
Author SHA1 Message Date
Florian Schmidt 63458dd3e4 Merge branch 't3/claude-chat-panel'
# Conflicts:
#	.agents/mind/gotchas.md
#	packages/core/src/protocol.ts
2026-11-16 10:23:05 +01:00
Florian Schmidt df6698c67d Merge branch 't3/notebook-management-authoring'
# Conflicts:
#	.agents/mind/architecture.md
#	packages/core/src/protocol.ts
2026-11-16 10:19:57 +01:00
Florian Schmidt 2e907b75f2 fix(server): keep existing notebooks manageable and pruning inside notebooks/ (#9)
Reading, saving, renaming and deleting applied the create-time name rules
to existing files, so notebooks named outside those rules (umlauts,
brackets; written by git or Claude) were listed but returned 400. Name rules
now apply to new paths only; existing paths keep the traversal/symlink checks.

Empty-folder pruning compared a realpath against an unresolved root. With a
symlinked workspace path it walked past notebooks/ and removed the
notebooks folder itself. It now uses the resolved root and stops at it.
2026-11-16 10:19:02 +01:00
Florian Schmidt 0055001abf feat(web): add notebook chat panel (#8) 2026-11-16 10:17:20 +01:00
Florian Schmidt 911387264b 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.
2026-11-16 10:16:43 +01:00
Florian Schmidt 02a22bef40 feat(settings): add browser setup and administration (#10) 2026-11-16 10:15:04 +01:00
Florian Schmidt 2857bfe047 style(web): drop UTF-8 byte order marks from new sources (#5) 2026-11-16 00:22:23 +01:00
Florian Schmidt 620ac75668 Merge branch 't3/web-terminal-artifacts' 2026-11-16 00:21:44 +01:00
Florian Schmidt b224fff7f3 feat(web): handle one-shot sensitive artifact downloads (#4)
Track sensitive download state per run in the session reducer. Fetch each artifact once into a blob so expired or consumed downloads show HTTP 410 without a separate preflight request. Verify the SSH-key notebook, capture substitution, failure sections and public-key upload provenance through App. Document demo and real terminal workflows.
2026-11-16 00:21:24 +01:00
Florian Schmidt b50d49b790 fix(server): report failing scripts via run.finished only (#4)
A non-zero exit is a normal result (a failed check shows as a cross), not an execution error; publishing run.error showed an error banner for every failed check.
2026-11-16 00:21:17 +01:00
Florian Schmidt a6429e0527 feat(web): add xterm terminal panel (#5)
Use @xterm/xterm for terminal emulation and its official @xterm/addon-fit for container sizing. Lazy-load both on first open to keep them out of the main bundle. Preserve the mounted terminal on collapse and offer explicit reconnect; provide an echo transport for demos.
2026-11-16 00:21:17 +01:00
Florian Schmidt 08d5441cf2 refactor(web): use real core in demos and tests (#4, #5) 2026-11-16 00:21:03 +01:00
Florian Schmidt d10b2114df Merge branch 't3/sensitive-artifact-retention' 2026-11-16 00:19:48 +01:00
Florian Schmidt 7ba8aabb37 feat(server): add one-shot sensitive artifacts and retention (#4) 2026-11-16 00:19:26 +01:00
Florian Schmidt 4e79af3e24 fix(web): keep host key prompt open after the aborted run finishes (#2)
The server publishes run.finished (exit -1) right after run.hostKeyUnknown, which closed the confirmation dialog immediately.
2026-11-16 00:13:24 +01:00
Florian Schmidt cc68fe39b3 Merge branch 't3/build-web-runbook-ui'
# Conflicts:
#	pnpm-lock.yaml
2026-11-16 00:12:42 +01:00
Florian Schmidt b7051d2479 Merge branch 't3/implement-auth-deploy'
Integrate auth, config, watcher and terminal wiring in buildApp: auth guards every API route by default, notebook watcher events feed the /api/events hub, the terminal runs in the configured workspace, and SHELLBOOK_DATA_DIR is the single data directory variable. The systemd unit uses KillMode=process so tmux sessions survive service restarts.
2026-11-16 00:11:06 +01:00
Florian Schmidt b36299340b Merge branch 't3/server-terminal-watcher'
# Conflicts:
#	apps/server/package.json
#	apps/server/src/app.ts
#	pnpm-lock.yaml
2026-11-16 00:08:35 +01:00
Florian Schmidt 443bf944b8 feat(web): add shell-first runbook UI and mock demo (#2)
Add notebook parameters, literal highlighted scripts, copy helpers, streamed runs, host-key confirmation, artifacts, conditional notes, login and optimistic Markdown editing. Keep the temporary core renderer isolated to mock mode.

Use React and Vite for the UI, react-markdown for safe Markdown rendering, highlight.js for shell syntax, and CodeMirror 6 for Markdown editing. Add Testing Library, jsdom and Vitest for component and event-state coverage.

Validate pnpm install, root typecheck and test (29 web tests, 1 server test), plus normal and mock web builds. Core contracts remain unchanged; real backend execution awaits the parallel core/server implementations.
2026-11-16 00:08:30 +01:00
Florian Schmidt 6926526a56 feat(server): implement workspace and SSH run pipeline (#3)
Add strict host-key confirmation, FIFO execution, streamed events, audit records, captures and SFTP artifacts/uploads. Use ssh2 for SSH/SFTP, yaml for inventory parsing, and compile-time ssh2/ws declarations.
2026-11-16 00:07:42 +01:00
Florian Schmidt af331177ac feat(server): add persistent authentication and production build (#6)
Protect HTTP and WebSocket API routes with scrypt password login and signed persistent sessions. Restrict forwarded identity and HTTPS detection to configured proxies, and serve optional web assets with SPA fallback.

Add @fastify/static for Fastify-compatible static file handling and esbuild to bundle TypeScript core source while retaining native dependencies externally.
2026-11-16 00:07:18 +01:00
Florian Schmidt 7cf1ef82ba feat(server): add persistent terminal and notebook watcher (#5)
Use node-pty for native terminal support and chokidar for recursive cross-platform watching with atomic-save normalization. Validate terminal messages, detach clients safely, and expose debounced typed notebook events.
2026-11-16 00:04:45 +01:00
Florian Schmidt d06f4336ae chore: add pnpm monorepo skeleton with core contracts
Shared notebook model (types.ts), HTTP/WebSocket protocol (protocol.ts) and
core function signatures (stubs) so core, server and web can be built in
parallel. Minimal Fastify server with a health route and test.
2026-11-15 23:51:06 +01:00