codetether-agent 4.7.0-a-002.4

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum GateMode {
    Off,
    Warn,
    Strict,
}

pub(crate) fn current() -> GateMode {
    match std::env::var("CODETETHER_SCOPE_GATE")
        .unwrap_or_else(|_| "warn".to_string())
        .to_ascii_lowercase()
        .as_str()
    {
        "off" => GateMode::Off,
        "strict" => GateMode::Strict,
        _ => GateMode::Warn,
    }
}