interface DaemonInfo

Sidecar JSON file written next to the socket; lets daemon status show details without an IPC roundtrip.

const info: DaemonInfo = {
  pid: 4242, socketPath: '/tmp/qunitx-daemon-ab12cd34ef56.sock',
  cwd: '/proj', nodeVersion: 'v24.14.0', startedAt: 1_760_000_000_000,
};
info.pid; // 4242 — polled with `process.kill(pid, 0)` after `daemon stop`

Properties

pid: number

OS process id of the running daemon.

socketPath: string

Absolute path to the daemon's listening Unix socket.

cwd: string

Working directory the daemon was started in (matches its socket-path hash).

Daemon's process.version at startup.

startedAt: number

Epoch ms when the daemon began listening.

Usage

import { type DaemonInfo } from "lib/commands/daemon/protocol.ts";