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.
This commit is contained in:
Florian Schmidt
2026-11-16 00:04:45 +01:00
parent d06f4336ae
commit 7cf1ef82ba
9 changed files with 408 additions and 1 deletions
+1
View File
@@ -15,6 +15,7 @@ export interface AppOptions {
export async function buildApp(options: AppOptions = {}): Promise<FastifyInstance> {
const app = Fastify({ logger: options.logger ?? false });
await app.register(websocket);
await app.register((await import("./terminal/index")).terminalPlugin);
app.get("/api/health", async () => ({ ok: true }));