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

Class KimiConfigCoreRpcImpl

packages/node-sdk/src/config-rpc.ts:40–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38interface KimiConfigClientRpc {}
39
40class 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
58export class KimiConfigRpcClient implements KimiConfigRpc {
59 private readonly ready: Promise<RPCMethods<KimiConfigCoreRpc>>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected