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

Function seedConfig

packages/server/test/auth.e2e.test.ts:115–117  ·  view source on GitHub ↗

* Seed ` /config.toml` BEFORE server boot. Path layout matches * `resolveConfigPath({homeDir})` exactly so KimiCore + AuthSummaryService * load the same file.

(toml: string)

Source from the content-addressed store, hash-verified

113 * load the same file.
114 */
115function seedConfig(toml: string): void {
116 writeFileSync(join(bridgeHome, 'config.toml'), toml, 'utf-8');
117}
118
119async function createSession(r: RunningServer): Promise<string> {
120 const res = await appOf(r).inject({

Callers 1

auth.e2e.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected