MCPcopy Create free account
hub / github.com/cloudflare/computer / #backend

Method #backend

packages/computer/src/runtime/runtime.ts:163–171  ·  view source on GitHub ↗
(requested: string | undefined)

Source from the content-addressed store, hash-verified

161 }
162
163 #backend(requested: string | undefined): string {
164 const backend = this.#options.resolveBackendId(requested);
165 if (!backend) {
166 throw new Error(
167 "Workspace has no execution backend configured. Pass `backends` to the Workspace constructor.",
168 );
169 }
170 return backend;
171 }
172}
173
174function wrapCommandHandle<E extends ExecEncoding>(

Callers 4

execMethod · 0.95
getExecMethod · 0.95
killExecMethod · 0.95
disposeExecMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected