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

Function loadRuntimeConfig

packages/agent-core/src/config/toml.ts:100–105  ·  view source on GitHub ↗
(
  filePath: string,
  env: Readonly<Record<string, string | undefined>> = process.env,
)

Source from the content-addressed store, hash-verified

98 * for write-back paths so the synthesized model is never persisted.
99 */
100export function loadRuntimeConfig(
101 filePath: string,
102 env: Readonly<Record<string, string | undefined>> = process.env,
103): KimiConfig {
104 return applyEnvModelConfig(readConfigFile(filePath), env);
105}
106
107export interface RuntimeConfigLoadResult {
108 readonly config: KimiConfig;

Callers 2

env-model.test.tsFile · 0.90
configs.test.tsFile · 0.90

Calls 2

applyEnvModelConfigFunction · 0.90
readConfigFileFunction · 0.85

Tested by

no test coverage detected