MCPcopy Index your code
hub / github.com/getagentseal/codeburn / getCachedCodexProject

Function getCachedCodexProject

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

Source from the content-addressed store, hash-verified

71}
72
73export async function getCachedCodexProject(
74 filePath: string,
75): Promise<string | null> {
76 try {
77 const s = await stat(filePath)
78 const cache = await loadCache()
79 const entry = getEntry(cache, filePath, { mtimeMs: s.mtimeMs, sizeBytes: s.size })
80 return entry?.project ?? null
81 } catch {}
82 return null
83}
84
85export async function fingerprintFile(
86 filePath: string,

Callers 1

discoverSessionsInDirFunction · 0.85

Calls 2

getEntryFunction · 0.85
loadCacheFunction · 0.70

Tested by

no test coverage detected