type alias DaemonStatus

A live daemon, as reported by status.

const info: DaemonStatus = {
  running: true, pid: 4242, cwd: '/proj',
  nodeVersion: 'v24.14.0', startedAt: 1_760_000_000_000, socketPath: '/tmp/qunitx-…sock',
};
info.running; // true — the other fields are absent when it is false

Definition

{ running: false; }
| { running: true; pid: number; cwd: string; nodeVersion: string; startedAt: number; socketPath: string; }

Usage

import { type DaemonStatus } from "lib/api/daemon.ts";