openmoat 0.22.1

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.
//! Elsewhere `openmoat run` has no sandbox, so no guard is in one.

use std::io;

/// Nothing to read of this process here.
#[derive(Debug, Clone, Copy)]
pub struct Probe;

impl Probe {
    /// This process.
    pub fn system() -> Self {
        Self
    }
}

pub(super) fn refused_by_sandbox(_: &io::Error, _: Probe) -> bool {
    false
}

/// A process in no sandbox, for the tests.
#[cfg(test)]
pub(super) fn unconfined() -> Probe {
    Probe
}