Commit Graph
66 Commits
Author SHA1 Message Date
Florian Schmidt cc68fe39b3 Merge branch 't3/build-web-runbook-ui'
# Conflicts:
#	pnpm-lock.yaml
2026-11-16 00:12:42 +01:00
Florian Schmidt 1dbea28b43 feat(core): flag sensitive artifacts in run.finished (#4)
Optional, additive protocol field so the web UI can mark one-shot downloads such as private keys.
2026-11-16 00:11:40 +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 ae4e2be528 Merge branch 't3/server-ssh-run-pipeline' 2026-11-16 00:08:10 +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 1f385b6538 feat(deploy): provision Debian 13 Proxmox containers (#6)
Add architecture-filtered template selection, safe CT reuse, TUN passthrough, a service-user installer, updates, and a Traefik example. Verify official Node 22 binaries with SHA-256 checksums and document deployment and credential setup.

Cover mixed amd64/arm64 template selection with five bash regression checks.
2026-11-16 00:07:23 +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 c993089f37 fix(core): normalize CRLF line endings in step scripts (#1)
Bash treats a trailing carriage return as part of the command, so notebooks saved with CRLF endings produced broken scripts.
2026-11-16 00:06:28 +01:00
Florian Schmidt eee6c0d4fb Merge branch 't3/implement-core-notebook-parser' 2026-11-16 00:05:45 +01:00
Florian Schmidt f0d5de691a feat(core): implement notebook parsing and safe parameter rendering (#1)
Parse YAML frontmatter, shell steps and conditional sections with source ranges and diagnostics. Resolve typed defaults and runtime values through one script substitution path, keeping secrets env-only and validating artifact metadata.

Add yaml for standards-compliant frontmatter parsing and bounded alias handling rather than implementing YAML locally. Cover the spec example and edge cases with 59 core tests, including 256 POSIX shell quoting round trips.
2026-11-16 00:05:27 +01:00
Florian Schmidt 91ac1df8a5 feat(templates): add starter runbook workspace (#5)
Document the notebook format and provide SSH-key, hardening-check, and package-install examples with inventory and credential exclusions.
2026-11-16 00:04:45 +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
Florian Schmidt a5fea2f82f docs: add specification, agent rules and project notes 2026-11-15 23:51:05 +01:00