MCPcopy Index your code
hub / github.com/callstack/agent-device / executeCommand

Function executeCommand

src/client/client.ts:94–105  ·  view source on GitHub ↗
(
    command: DaemonCommandName,
    options: InternalRequestOptions = {},
  )

Source from the content-addressed store, hash-verified

92 };
93
94 const executeCommand = async <T>(
95 command: DaemonCommandName,
96 options: InternalRequestOptions = {},
97 ): Promise<T> => {
98 const request = prepareDaemonCommandRequest(command, options);
99 return (await execute(
100 request.command,
101 request.positionals,
102 request.options,
103 request.metadataFlags,
104 )) as T;
105 };
106
107 const resolveRequestSession = (options: InternalRequestOptions = {}) =>
108 resolveSessionName(mergeClientOptions(config, options).session);

Callers 1

createAgentDeviceClientFunction · 0.85

Calls 2

executeFunction · 0.70

Tested by

no test coverage detected