( client: AgentDeviceClient, name: CommandName, input: unknown, )
| 99 | } |
| 100 | |
| 101 | async function runCommand( |
| 102 | client: AgentDeviceClient, |
| 103 | name: CommandName, |
| 104 | input: unknown, |
| 105 | ): Promise<unknown> { |
| 106 | const commandSurface = await import('../commands/command-surface.ts'); |
| 107 | return await commandSurface.runCommand(client, name, input); |
| 108 | } |
| 109 | |
| 110 | function readMcpToolConfig(input: unknown): McpToolConfig { |
| 111 | if (!input || typeof input !== 'object' || Array.isArray(input)) { |
no outgoing calls
no test coverage detected