()
| 422 | |
| 423 | /** @internal — vitest only. */ |
| 424 | export async function __resetRootLoggerForTest(): Promise<void> { |
| 425 | const globalAny = globalThis as Record<symbol, unknown>; |
| 426 | const existing = globalAny[ROOT_SYMBOL]; |
| 427 | if (existing instanceof RootLoggerImpl) { |
| 428 | await existing.__shutdownForTest(); |
| 429 | } |
| 430 | globalAny[ROOT_SYMBOL] = undefined; |
| 431 | } |
| 432 | |
| 433 | export function resolveGlobalLogPath(homeDir: string): string { |
| 434 | return join(homeDir, 'logs', 'kimi-code.log'); |
no test coverage detected