(input: {
readonly homeDir?: string | undefined;
readonly configPath?: string | undefined;
})
| 7 | } |
| 8 | |
| 9 | export function resolveConfigPath(input: { |
| 10 | readonly homeDir?: string | undefined; |
| 11 | readonly configPath?: string | undefined; |
| 12 | }): string { |
| 13 | return input.configPath ?? join(resolveKimiHome(input.homeDir), 'config.toml'); |
| 14 | } |
| 15 | |
| 16 | export function ensureKimiHome(homeDir: string): void { |
| 17 | mkdirSync(homeDir, { recursive: true, mode: 0o700 }); |
no test coverage detected