//! Background daemon: TCP-based IPC server and client.
//!
//! The daemon runs a [`Node`] in the background and exposes it over a local
//! TCP socket. CLI commands talk to it via [`DaemonClient`], which sends a
//! single [`protocol::Request`] (newline-terminated JSON) and reads back a
//! stream of [`protocol::Event`]s.
//!
//! [`Node`]: crate::core::Node
//! [`DaemonClient`]: client::DaemonClient
/// Maximum byte length of a single IPC request or response line
/// in the wire protocol.
pub const MAX_LINE_BYTES: usize = 512 * 1024;