//! OpenAI-compatible HTTP proxy router.
//!
//! The proxy runs alongside the IPC Unix-socket server inside the
//! daemon process, exposing a single loopback TCP listener that
//! agent clients (OpenCode, Pi, anything OpenAI-shaped) can attach
//! to. Unit 1 only stands up the listener; subsequent units layer
//! `/v1/models`, body-model resolution, forwarding, auto-start +
//! fallback, and the status surface on top.
//!
//! Plan: docs/plans/2026-05-21-001-feat-proxy-router-plan.md
//!
//! Scope reminder (plan §Scope Boundaries): loopback-only,
//! same-UID, no auth, no TLS, no LAN binding, no MCP, no HTTP/2.

pub(crate) mod coalesce;
pub mod eviction;
pub(crate) mod failure_tracker;
pub(crate) mod forward;
pub(crate) mod launch;
pub(crate) mod mru;
pub(crate) mod ollama_compat;
pub(crate) mod openai;
pub(crate) mod route;
pub(crate) mod router;
pub mod server;
pub mod state;

pub use server::{serve, ProxyStatus, StatusCell};
pub use state::ProxyState;
