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

Method getWorkspace

packages/computer/src/proxy.ts:166–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 // name is intentionally private-looking so user code reaches for
165 // `getWorkspace(stub)` instead of calling it directly.
166 async getWorkspace(): Promise<unknown> {
167 const stub = this.#hostStub<{ __getWorkspaceStub(): Promise<unknown> }>();
168 return stub.__getWorkspaceStub();
169 }
170
171 // Optional Artifacts CLI hook used by the worker-backend shell.
172 // Returning a target mirrors getWorkspace(): the dynamic Worker

Callers

nothing calls this directly

Calls 2

#hostStubMethod · 0.95
__getWorkspaceStubMethod · 0.65

Tested by

no test coverage detected