(input: SetSessionPlanModeRpcInput)
| 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); |
nothing calls this directly
no test coverage detected