Functions

f
dir(cwd?: string): string

Returns the per-cwd subdirectory that holds the daemon's info file, lockfile, and any future per-daemon state.

f
info(cwd?: string): string

Returns the per-cwd sidecar JSON path that mirrors the daemon's socket. Lets daemon status introspect daemon identity (pid, node version, uptime) without an IPC roundtrip, and serves as the cross-platform "is a daemon present?" sentinel since Windows named pipes are not visible on the regular filesystem.

f
socket(
cwd?: string,
platform?: NodeJS.Platform
): string

Returns the per-cwd path the daemon listens on. Platform-specific:

Usage

import * as mod from "lib/commands/daemon/paths.ts";