redactText
redactText(
text,secrets):string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/redactSecrets.ts:238
Redact a STRING: substitute every known literal secret value (technique 1, longest-first), then apply the provider key/auth patterns (technique 2). Never throws — on any error it returns the fully-withheld marker (fail safe: redact MORE, never emit the raw text). Applying it twice is safe (re-redacting already-redacted text is a no-op).
Parameters
Section titled “Parameters”string
secrets
Section titled “secrets”readonly string[]
Returns
Section titled “Returns”string