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

Method constructor

packages/computer/src/stub.ts:595–604  ·  view source on GitHub ↗
(ws: Workspace)

Source from the content-addressed store, hash-verified

593 readonly #useThink: boolean;
594
595 constructor(ws: Workspace) {
596 super();
597 this.#fs = new WorkspaceFilesystemStub(ws);
598 this.#runtime = new WorkspaceRuntimeStub(ws);
599 this.#git = new WorkspaceGitStub(ws);
600 this.#assets = ws.assets === undefined ? undefined : new WorkspaceAssetsStub(ws);
601 this.#artifacts = new WorkspaceArtifactsStub(ws.artifacts);
602 this.#useThink = ws.useThink;
603 trackStub(this);
604 }
605
606 // Cascade disposal to the sub-stubs. Workers-RPC exposes them as
607 // getters off this object, so the caller can't reach them as

Callers

nothing calls this directly

Calls 1

trackStubFunction · 0.90

Tested by

no test coverage detected