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

Function fs

packages/computer/src/git/index.ts:369–372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

367 }: WorkspaceGitClientOptions): GitClient {
368 let fsPromise: Promise<IsomorphicGitFSClient> | undefined;
369 const fs = () => {
370 if (!fsPromise) fsPromise = adapter(ws.provider());
371 return fsPromise;
372 };
373 const cache: Record<string, unknown> = {};
374
375 // Memoised module loaders. Each holds the promise returned by

Callers 15

cloneFunction · 0.70
diffFunction · 0.70
diffSummaryFunction · 0.70
initFunction · 0.70
statusFunction · 0.70
addFunction · 0.70
rmFunction · 0.70
commitFunction · 0.70
logFunction · 0.70
showFunction · 0.70
revParseFunction · 0.70
repoRootFunction · 0.70

Calls 1

providerMethod · 0.65

Tested by

no test coverage detected