claude-code-driver / redactEvent
Function: redactEvent()
ts
function redactEvent<E>(e): E;Defined in: api/iterators.ts:152
A copy of e with credential-looking strings masked anywhere in its data (prompts, tool input, text, messages), for hosts that log events. Pattern-based, so best effort: it cannot know a secret that has no recognisable shape (SEC §8.2).
Type Parameters
| Type Parameter |
|---|
E extends SessionEvent |
Parameters
| Parameter | Type |
|---|---|
e | E |
Returns
E