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

Function exec

packages/computer/src/client.test.ts:56–61  ·  view source on GitHub ↗
(command: string, options?: Record<string, unknown>)

Source from the content-addressed store, hash-verified

54 disposedHandles: () => disposedHandles,
55 runtime: {
56 exec(command: string, options?: Record<string, unknown>) {
57 calls.push({ command, options });
58 return Promise.resolve(
59 makeHandle(options?.id as string | undefined, options?.backend as string | undefined),
60 );
61 },
62 getExec(id: string, options?: Record<string, unknown>) {
63 calls.push({ command: `get:${id}`, options });
64 return Promise.resolve(makeHandle(id, options?.backend as string | undefined));

Callers

nothing calls this directly

Calls 3

makeHandleFunction · 0.85
resolveMethod · 0.80
pushMethod · 0.65

Tested by

no test coverage detected