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

Function defaultConfig

packages/agent-core/test/logging/logger.test.ts:27–36  ·  view source on GitHub ↗
(level: 'info' | 'debug' | 'warn' | 'error' | 'off' = 'info')

Source from the content-addressed store, hash-verified

25});
26
27function defaultConfig(level: 'info' | 'debug' | 'warn' | 'error' | 'off' = 'info') {
28 return {
29 level,
30 globalLogPath: resolveGlobalLogPath(homeDir),
31 globalMaxBytes: 1_000_000,
32 globalFiles: 3,
33 sessionMaxBytes: 500_000,
34 sessionFiles: 2,
35 } as const;
36}
37
38async function readGlobal(): Promise<string> {
39 return readGlobalAt(homeDir);

Callers 1

logger.test.tsFile · 0.85

Calls 1

resolveGlobalLogPathFunction · 0.90

Tested by

no test coverage detected