* Seed ` /config.toml` BEFORE server boot. Path layout matches * `resolveConfigPath({homeDir})` exactly so KimiCore + AuthSummaryService * load the same file.
(toml: string)
| 113 | * load the same file. |
| 114 | */ |
| 115 | function seedConfig(toml: string): void { |
| 116 | writeFileSync(join(bridgeHome, 'config.toml'), toml, 'utf-8'); |
| 117 | } |
| 118 | |
| 119 | async function createSession(r: RunningServer): Promise<string> { |
| 120 | const res = await appOf(r).inject({ |