pub fn redact_secrets(input: String) -> StringExpand description
Redact secrets and sensitive keys from a string.
This is a best-effort operation using well-known regex patterns.
Redacted values are replaced with [REDACTED_SECRET].
ยงExamples
use vtcode_commons::sanitizer::redact_secrets;
let input = "Found key: sk-test1234567890abcdefghij".to_string();
let output = redact_secrets(input);
assert_eq!(output, "Found key: [REDACTED_SECRET]");