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

Function readConfigFile

packages/agent-core/src/config/toml.ts:65–71  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

63}
64
65export function readConfigFile(filePath: string): KimiConfig {
66 if (!existsSync(filePath)) {
67 return getDefaultConfig();
68 }
69 const text = readFileSync(filePath, 'utf-8');
70 return parseConfigString(text, filePath);
71}
72
73/**
74 * Strict read for write paths (read-merge-write must never use a salvaged

Callers 9

config.test.tsFile · 0.90
loginMethod · 0.90
logoutMethod · 0.90
env-model.test.tsFile · 0.90
configs.test.tsFile · 0.90
constructorMethod · 0.90
resolveManagedAuthMethod · 0.90
readConfigFileForUpdateFunction · 0.85
loadRuntimeConfigFunction · 0.85

Calls 2

getDefaultConfigFunction · 0.90
parseConfigStringFunction · 0.85

Tested by

no test coverage detected