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

Function writeTuiConfig

apps/kimi-code/test/tui/commands/reload.test.ts:118–124  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

116});
117
118async function writeTuiConfig(text: string): Promise<void> {
119 const dir = join(tmpdir(), `kimi-tui-reload-${Date.now()}-${Math.random().toString(36).slice(2)}`);
120 tempDirs.push(dir);
121 await mkdir(dir, { recursive: true });
122 process.env['KIMI_CODE_HOME'] = dir;
123 await writeFile(join(dir, 'tui.toml'), text, 'utf-8');
124}
125
126function makeHost({
127 session,

Callers 1

reload.test.tsFile · 0.85

Calls 5

nowMethod · 0.65
toStringMethod · 0.65
mkdirFunction · 0.50
writeFileFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected