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

Function readServerTelemetryConfig

apps/kimi-code/src/cli/telemetry.ts:115–127  ·  view source on GitHub ↗
(
  configPath: string,
)

Source from the content-addressed store, hash-verified

113}
114
115function readServerTelemetryConfig(
116 configPath: string,
117): Pick<KimiConfig, 'telemetry' | 'defaultModel'> {
118 try {
119 const { config, fileError } = loadRuntimeConfigSafe(configPath);
120 // A broken config fails the server on its own inside KimiCore; for
121 // telemetry just degrade to "enabled, no model" so we never block startup.
122 if (fileError !== undefined) return {};
123 return config;
124 } catch {
125 return {};
126 }
127}

Callers 1

Calls 1

loadRuntimeConfigSafeFunction · 0.85

Tested by

no test coverage detected