MCPcopy Create free account
hub / github.com/cloudflare/computer / exec

Method exec

packages/rpc/src/server.ts:239–257  ·  view source on GitHub ↗
(input: {
    command: string;
    cwd?: string;
    id?: string;
    timeoutMs?: number;
    env?: Record<string, string>;
    stdin?: Uint8Array;
  })

Source from the content-addressed store, hash-verified

237 }
238
239 async exec(input: {
240 command: string;
241 cwd?: string;
242 id?: string;
243 timeoutMs?: number;
244 env?: Record<string, string>;
245 stdin?: Uint8Array;
246 }): Promise<{
247 id: string;
248 events: ReadableStream<ExecEvent>;
249 }> {
250 return this.runner.exec(input.command, {
251 id: input.id,
252 cwd: input.cwd,
253 timeoutMs: input.timeoutMs,
254 env: input.env,
255 stdin: input.stdin,
256 });
257 }
258
259 async getExec(input: { id: string; after?: number | "tail" }): Promise<{
260 id: string;

Callers

nothing calls this directly

Calls 1

execMethod · 0.65

Tested by

no test coverage detected