( filePath: string, )
| 59 | } |
| 60 | |
| 61 | export 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 | |
| 73 | export async function getCachedCodexProject( |
| 74 | filePath: string, |