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

Function parseTuiConfig

apps/kimi-code/src/tui/config.ts:117–124  ·  view source on GitHub ↗
(tomlText: string)

Source from the content-addressed store, hash-verified

115}
116
117export function parseTuiConfig(tomlText: string): TuiConfig {
118 if (tomlText.trim().length === 0) {
119 return DEFAULT_TUI_CONFIG;
120 }
121 const raw = parseToml(tomlText) as Record<string, unknown>;
122 const parsed = TuiConfigFileSchema.parse(raw);
123 return normalizeTuiConfig(parsed);
124}
125
126export async function saveTuiConfig(
127 config: TuiConfig,

Callers 3

config.test.tsFile · 0.90
makeTuiSpecFunction · 0.90
loadTuiConfigFunction · 0.85

Calls 1

normalizeTuiConfigFunction · 0.85

Tested by

no test coverage detected