MCPcopy Create free account
hub / github.com/VPSDance/ai-proxy-rules / fresh

Function fresh

scripts/sync/build.ts:236–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234
235 const cacheKey = `html-extract:${source.url}#${source.selector}`;
236 const fresh = async () => extractHtml(await defaultFetcher(source.url), source.url, source.selector);
237
238 return cache ? cache.cached(cacheKey, fresh) : fresh();
239}

Callers 2

cachedMethod · 0.85
loadSourceTextFunction · 0.85

Calls 2

extractHtmlFunction · 0.85
defaultFetcherFunction · 0.85

Tested by

no test coverage detected