MCPcopy Create free account
hub / github.com/browserbase/skills / writeCache

Function writeCache

skills/autobrowse/scripts/codegen.mjs:252–255  ·  view source on GitHub ↗
(key, content)

Source from the content-addressed store, hash-verified

250 return fs.existsSync(p) ? fs.readFileSync(p, "utf-8") : null;
251}
252function writeCache(key, content) {
253 fs.mkdirSync(CACHE_DIR, { recursive: true });
254 fs.writeFileSync(path.join(CACHE_DIR, `${key}.txt`), content);
255}
256
257// ── LLM call ──────────────────────────────────────────────────────
258

Callers 1

generateOneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected