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
//! Environment variable override for delegation feature flag.

use std::env;

/// Read `CODETETHER_DELEGATION_ENABLED` env var override.
pub fn env_enabled_override() -> Option<bool> {
    let raw = env::var("CODETETHER_DELEGATION_ENABLED").ok()?;
    match raw.trim().to_ascii_lowercase().as_str() {
        "1" | "true" | "yes" | "on" => Some(true),
        "0" | "false" | "no" | "off" => Some(false),
        _ => None,
    }
}