function serve
serve(): Promise<void>

Daemon process entry point. Owns one persistent Chrome and one Unix socket; serves run requests serially. Shuts down on SIGTERM/SIGINT, idle timeout, package.json mutation, node version mismatch, or an explicit shutdown request.

import type * as Server from './server.ts';

// Defined, not invoked: binds the per-cwd socket and launches a persistent Chrome.
async function daemonEntry(start: typeof Server.serve) {
  await start(); // never resolves — the daemon exits via shutdown()
}

Return Type

Promise<void>

Usage

import { serve } from "lib/commands/daemon/server.ts";