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

Method runtime

packages/computer/src/workspace.ts:438–449  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

436 }
437
438 get runtime(): WorkspaceRuntime {
439 if (!this.#runtime) {
440 this.#runtime = new WorkspaceRuntime({
441 commandBackendIds: new Set(this.#backendsById.keys()),
442 callableBackendIds: this.#callableBackendIds,
443 shell: () => this.#routedShell(),
444 moduleHandle: (id) => this.#moduleHandleFor(id),
445 resolveBackendId: (id) => this.#resolveBackendId(id) ?? "",
446 });
447 }
448 return this.#runtime;
449 }
450
451 /**
452 * Underlying dofs `SQLiteWorkspaceProvider` over the local store.

Callers

nothing calls this directly

Calls 3

#routedShellMethod · 0.95
#moduleHandleForMethod · 0.95
#resolveBackendIdMethod · 0.95

Tested by

no test coverage detected