( strippedTools: ReadonlyArray<unknown>, names: string[], )
| 185 | } |
| 186 | |
| 187 | function computePerToolHashes( |
| 188 | strippedTools: ReadonlyArray<unknown>, |
| 189 | names: string[], |
| 190 | ): Record<string, number> { |
| 191 | const hashes: Record<string, number> = {} |
| 192 | for (let i = 0; i < strippedTools.length; i++) { |
| 193 | hashes[names[i] ?? `__idx_${i}`] = computeHash(strippedTools[i]) |
| 194 | } |
| 195 | return hashes |
| 196 | } |
| 197 | |
| 198 | function getSystemCharCount(system: TextBlockParam[]): number { |
| 199 | let total = 0 |
no test coverage detected