MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / redact

Function redact

packages/agent-core/src/logging/logger.ts:418–421  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

416export const log: Logger = new LoggerImpl({});
417
418export function redact<T>(value: T): T {
419 if (value === null || typeof value !== 'object') return value;
420 return redactCtx({ value: value as unknown })['value'] as T;
421}
422
423/** @internal — vitest only. */
424export async function __resetRootLoggerForTest(): Promise<void> {

Callers 1

logger.test.tsFile · 0.90

Calls 1

redactCtxFunction · 0.90

Tested by

no test coverage detected