MCPcopy Create free account
hub / github.com/getagentseal/codeburn / readCachedCodexResults

Function readCachedCodexResults

src/codex-cache.ts:61–71  ·  view source on GitHub ↗
(
  filePath: string,
)

Source from the content-addressed store, hash-verified

59}
60
61export async function readCachedCodexResults(
62 filePath: string,
63): Promise<ParsedProviderCall[] | null> {
64 try {
65 const s = await stat(filePath)
66 const cache = await loadCache()
67 const entry = getEntry(cache, filePath, { mtimeMs: s.mtimeMs, sizeBytes: s.size })
68 return entry?.calls ?? null
69 } catch {}
70 return null
71}
72
73export async function getCachedCodexProject(
74 filePath: string,

Callers 1

parseFunction · 0.85

Calls 2

getEntryFunction · 0.85
loadCacheFunction · 0.70

Tested by

no test coverage detected