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:
@@ -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 }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user