(filePath: string)
| 461 | // ============================================================================ |
| 462 | |
| 463 | function getLanguageFromPath(filePath: string): string | null { |
| 464 | const ext = extname(filePath).toLowerCase() |
| 465 | return EXTENSION_TO_LANGUAGE[ext] || null |
| 466 | } |
| 467 | |
| 468 | export function extractToolStats(log: LogOption): { |
| 469 | toolCounts: Record<string, number> |