(freshness: string)
| 31 | } |
| 32 | |
| 33 | export function freshnessText(freshness: string): string { |
| 34 | if (freshness === 'metadata_match') return 'File size and modification time match the index record. This is not a content-hash guarantee.'; |
| 35 | if (freshness === 'metadata_changed') return 'File size or modification time changed since indexing. Read the current source and reindex.'; |
| 36 | if (freshness === 'not_tracked') return 'No indexed file metadata exists for this path. It may be unindexed; pending work is not confirmed.'; |
| 37 | if (freshness === 'missing') return 'The requested file is missing on disk.'; |
| 38 | if (freshness === 'outside_project') return 'This path is outside the selected project.'; |
| 39 | return 'Freshness is unavailable. Missing evidence is not a clean result.'; |
| 40 | } |
| 41 | |
| 42 | export interface LocalDiagnosis { |
| 43 | project: string; |
no outgoing calls
no test coverage detected