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

Function setPlanMode

packages/node-sdk/src/rpc.ts:342–354  ·  view source on GitHub ↗
(input: SetSessionPlanModeRpcInput)

Source from the content-addressed store, hash-verified

340 }
341
342 async setPlanMode(input: SetSessionPlanModeRpcInput): Promise<void> {
343 const rpc = await this.getRpc();
344 if (!input.enabled) {
345 return rpc.cancelPlan({
346 sessionId: input.sessionId,
347 agentId: this.interactiveAgentId,
348 });
349 }
350 return rpc.enterPlan({
351 sessionId: input.sessionId,
352 agentId: this.interactiveAgentId,
353 });
354 }
355
356 async setSwarmMode(input: SetSessionSwarmModeRpcInput): Promise<void> {
357 if (input.enabled) return this.enterSwarmMode(input);

Callers

nothing calls this directly

Calls 3

getRpcMethod · 0.45
cancelPlanMethod · 0.45
enterPlanMethod · 0.45

Tested by

no test coverage detected