(cache: ResultCache, filePath: string, fp: FileFingerprint)
| 50 | } |
| 51 | |
| 52 | function getEntry(cache: ResultCache, filePath: string, fp: FileFingerprint): FileEntry | null { |
| 53 | if (!Object.hasOwn(cache.files, filePath)) return null |
| 54 | const entry = cache.files[filePath] |
| 55 | if (entry && entry.mtimeMs === fp.mtimeMs && entry.sizeBytes === fp.sizeBytes) { |
| 56 | return entry |
| 57 | } |
| 58 | return null |
| 59 | } |
| 60 | |
| 61 | export async function readCachedCodexResults( |
| 62 | filePath: string, |
no outgoing calls
no test coverage detected