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

Function exec

packages/computerd/src/cli/computerd.ts:533–536  ·  view source on GitHub ↗
(command, options)

Source from the content-addressed store, hash-verified

531 // they reach the wire. RunnerLike expects only stdout, stderr, and exit.
532 const rpcRunner: RunnerLike = {
533 exec(command, options) {
534 const handle = runner.exec(command, options);
535 return { id: handle.id, events: dropHeartbeats(handle.events) };
536 },
537 get(id, options) {
538 const handle = runner.get(id, options);
539 return { id: handle.id, events: dropHeartbeats(handle.events) };

Callers

nothing calls this directly

Calls 2

dropHeartbeatsFunction · 0.85
execMethod · 0.65

Tested by

no test coverage detected