(filePath: string)
| 63 | } |
| 64 | |
| 65 | export function readConfigFile(filePath: string): KimiConfig { |
| 66 | if (!existsSync(filePath)) { |
| 67 | return getDefaultConfig(); |
| 68 | } |
| 69 | const text = readFileSync(filePath, 'utf-8'); |
| 70 | return parseConfigString(text, filePath); |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * Strict read for write paths (read-merge-write must never use a salvaged |
no test coverage detected