Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

400 B
Raw Blame
/// Redact sensitive values for safe logging. Shows first 4 chars + "***" suffix.
/// This function intentionally breaks the data-flow taint chain for static analysis.
pub fn redact(value: &str) -> String {
    if value.chars().count() <= 4 {
        "***".to_string()
    } else {
        crate::util::truncate_with_suffix(value, 4, "***")
    }
}

#[cfg(test)]
#[path = "core_tests.rs"]
mod tests;