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

Class KimiConfigRpcClient

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

Source from the content-addressed store, hash-verified

56}
57
58export class KimiConfigRpcClient implements KimiConfigRpc {
59 private readonly ready: Promise<RPCMethods<KimiConfigCoreRpc>>;
60
61 constructor() {
62 const [coreRpc, clientRpc] = createRPC<KimiConfigCoreRpc, KimiConfigClientRpc>();
63 void coreRpc(new KimiConfigCoreRpcImpl());
64 this.ready = clientRpc({});
65 }
66
67 async resolveConfigPath(input: ResolveKimiConfigPathInput = {}): Promise<string> {
68 const rpc = await this.ready;
69 return rpc.resolveConfigPath(input);
70 }
71
72 async validateConfigToml(input: ValidateKimiConfigTomlInput): Promise<void> {
73 const rpc = await this.ready;
74 await rpc.validateConfigToml(input);
75 }
76}
77
78export function createKimiConfigRpc(): KimiConfigRpc {
79 return new KimiConfigRpcClient();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected