MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / fetchImpl

Function fetchImpl

graph-ui/src/llm/sidecar.test.ts:68–75  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

66function recordingFetch(answer: (url: string) => Response | Error): { fetch: FetchLike; urls: string[] } {
67 const urls: string[] = [];
68 const fetchImpl: FetchLike = async (url) => {
69 urls.push(url);
70 const result = answer(url);
71 if (result instanceof Error) {
72 throw result;
73 }
74 return result;
75 };
76 return { fetch: fetchImpl, urls };
77}
78

Callers 1

probeSidecarFunction · 0.85

Calls 2

answerFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected