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

Method #routedShell

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

Source from the content-addressed store, hash-verified

940 // call (default, or the one named through ExecOptions.backend)
941 // and forwards to that backend's WorkspaceShell.
942 #routedShell(): WorkspaceShell {
943 const router = new WorkspaceShellRouter(
944 this.#defaultCommandBackendId ?? "",
945 (id) => this.#shellFor(id),
946 (id) => this.#resolveCommandBackendId(id) ?? "",
947 (id, handle, error) => this.#onShellError(id, handle, error),
948 );
949 return router as unknown as WorkspaceShell;
950 }
951
952 // Invalidate the cached handle for `id` when a shell-routed RPC
953 // fails with a known transport error. Compares the caller's

Callers 1

runtimeMethod · 0.95

Calls 3

#shellForMethod · 0.95
#onShellErrorMethod · 0.95

Tested by

no test coverage detected