f
ensureRunning(): Promise<boolean>
Ensures a daemon is reachable for the current cwd. Returns true if one was already running or was successfully spawned; false on spawn timeout. Silent — intended for the cli.ts auto-spawn path where the spawn is incidental to the run.
f
run(): Promise<number>
Dispatches qunitx daemon <subcommand>. _serve runs the in-process daemon loop
(spawned by start); all other subcommands are client operations. No subcommand
(or --help / -h / help) prints usage and exits 0; an unknown subcommand
prints usage to stderr and exits 1.
Usage
import * as mod from "lib/commands/daemon/index.ts";