redactValue
redactValue(
value,secrets):unknown
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/redactSecrets.ts:264
Deep-redact an arbitrary value for serialization: mask the VALUES of secret-named fields
(technique 3 — structure preserved: the key stays, only its value becomes the marker) and run
redactText over every string leaf (techniques 1 + 2). Circular refs are broken; functions
and bigints are rendered the way safeStringify would, so the result is JSON-safe. Pure — never
mutates the input. apiKeyEnvironmentVariable is intentionally NOT masked (it is a var name).
Intended for the CONFIG artifact (where field-name masking is wanted). Non-config artifacts use
redactText over their stringified form instead (literal + pattern only), so a legitimate
token/secret-named field in tool output is not blanket-masked.
Parameters
Section titled “Parameters”unknown
secrets
Section titled “secrets”readonly string[]
Returns
Section titled “Returns”unknown