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

Function capture

packages/agent-core/test/tools/agent.test.ts:42–44  ·  view source on GitHub ↗
(level: CapturedLogEntry['level'])

Source from the content-addressed store, hash-verified

40 const entries: CapturedLogEntry[] = [];
41 const capture =
42 (level: CapturedLogEntry['level']) => (message: string, payload?: LogPayload) => {
43 entries.push({ level, message, payload });
44 };
45 const logger: Logger = {
46 error: capture('error'),
47 warn: capture('warn'),

Callers 1

captureLogsFunction · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected