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

Function exec

packages/computer/src/shell.test.ts:130–140  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

128
129 const shell: ShellRPC = {
130 async exec(input) {
131 calls.exec.push({
132 command: input.command,
133 id: input.id,
134 cwd: input.cwd,
135 timeoutMs: input.timeoutMs,
136 });
137 if (options.throwOnExec !== undefined) throw options.throwOnExec;
138 const id = input.id ?? mintedId;
139 return { id, events: makeStream(id) };
140 },
141 async getExec(input) {
142 calls.getExec.push({ id: input.id, after: input.after });
143 return { id: input.id, events: makeStream(input.id) };

Callers

nothing calls this directly

Calls 3

makeStreamFunction · 0.85
subscribeFunction · 0.85
pushMethod · 0.65

Tested by

no test coverage detected