( filePath: string, )
| 71 | } |
| 72 | |
| 73 | export 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 | |
| 85 | export async function fingerprintFile( |
| 86 | filePath: string, |
no test coverage detected