( deps: CommandToolExecutorDeps, config: AgentDeviceClientConfig, )
| 90 | export const commandToolExecutor = createCommandToolExecutor(); |
| 91 | |
| 92 | async function createClient( |
| 93 | deps: CommandToolExecutorDeps, |
| 94 | config: AgentDeviceClientConfig, |
| 95 | ): Promise<AgentDeviceClient> { |
| 96 | if (deps.createClient) return await deps.createClient(config); |
| 97 | const { createAgentDeviceClient } = await import('../client/client.ts'); |
| 98 | return createAgentDeviceClient(config); |
| 99 | } |
| 100 | |
| 101 | async function runCommand( |
| 102 | client: AgentDeviceClient, |
no test coverage detected