( files: Record<string, string | null>, )
| 32 | } |
| 33 | |
| 34 | export function countTokensForFiles( |
| 35 | files: Record<string, string | null>, |
| 36 | ): Record<string, number> { |
| 37 | const tokenCounts: Record<string, number> = {} |
| 38 | for (const [filePath, content] of Object.entries(files)) { |
| 39 | tokenCounts[filePath] = content ? countTokens(content) : 0 |
| 40 | } |
| 41 | return tokenCounts |
| 42 | } |
nothing calls this directly
no test coverage detected