openmoat 0.28.0

Policy checks for AI coding agents: decides allow, defer, review or deny for each tool call the hook of Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot CLI and seven more agents reports, configures Claude Code's, Codex's and Cursor's own OS sandboxes from the same policy, and keeps a local audit log.
//! The `doctor` and `status` lines for the proxy's user service.

use crate::home::Home;

/// `moat doctor` and `moat status` lines for the proxy's user service
/// ([`crate::commands::service::lines::lines`]). Silent on platforms without a
/// service story (Windows): `moat proxy install` refuses there, so there is
/// nothing to report under `moat doctor`.
#[cfg(any(target_os = "macos", target_os = "linux"))]
pub fn service_lines(home: &Home) -> Vec<(bool, String)> {
    use crate::commands::service::{PROXY, lines};
    lines::lines(home, &PROXY, "service")
}

/// Windows: `moat doctor` and `moat status` have no service line.
#[cfg(not(any(target_os = "macos", target_os = "linux")))]
pub fn service_lines(_home: &Home) -> Vec<(bool, String)> {
    Vec::new()
}