mars-agents 0.6.2

Agent package manager for .agents/ directories
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::collections::HashSet;

pub mod opencode;
pub mod opencode_cache;
pub mod pi;
pub mod pi_cache;

pub use opencode::{OpenCodeProbeResult, probe, probe_with_timeout};
pub use pi::{PiProbeResult, probe as probe_pi, probe_with_timeout as probe_pi_with_timeout};

/// Determine whether an OpenCode probe should be attempted.
/// Returns false if offline or opencode is not installed.
pub fn should_probe_opencode(installed: &HashSet<String>, is_offline: bool) -> bool {
    !is_offline && installed.contains("opencode")
}