| 38 | interface KimiConfigClientRpc {} |
| 39 | |
| 40 | class KimiConfigCoreRpcImpl implements KimiConfigCoreRpc { |
| 41 | resolveConfigPath(input: ResolveKimiConfigPathInput): string { |
| 42 | return resolveConfigPath(input); |
| 43 | } |
| 44 | |
| 45 | validateConfigToml(input: ValidateKimiConfigTomlInput): void { |
| 46 | try { |
| 47 | parseConfigString(input.text, input.filePath); |
| 48 | } catch (error) { |
| 49 | const validationIssues = extractValidationIssues(error); |
| 50 | if (validationIssues !== undefined) { |
| 51 | throw toConfigValidationError(error, validationIssues); |
| 52 | } |
| 53 | throw error; |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | export class KimiConfigRpcClient implements KimiConfigRpc { |
| 59 | private readonly ready: Promise<RPCMethods<KimiConfigCoreRpc>>; |
nothing calls this directly
no outgoing calls
no test coverage detected