pub fn redact_binary(value: &Value, store: &ArtifactStore) -> (Value, usize)Expand description
Replace every binary-ish string in value with an artifact-ref object and
return (redacted, artifact_count). No preview is emitted (budget 0), so
this is safe to run before a preview/truncation step (e.g. browser compact
mode) — the raw payload is archived, not truncated away.