//! Background daemon: process lifecycle, output capture, and reverse proxy.
//!
//! Each session runs a single daemon process that listens on a Unix domain
//! socket. The daemon manages child processes ([`process_manager`]),
//! captures their stdout/stderr to log files ([`log_writer`]), evaluates
//! wait conditions ([`wait_engine`]), and optionally runs a subdomain-based
//! reverse proxy ([`proxy`]).
//!
//! The daemon is spawned automatically by the CLI on first use (see
//! [`spawn`]) and exits when a `Shutdown` request is received.