(id?: string)
| 578 | const estTokens = Math.ceil(charCount / 3.5); |
| 579 | const ctxWindow = 32_768; // conservative; actual model may have more |
| 580 | const pct = Math.round((estTokens / ctxWindow) * 100); |
| 581 | const filled = Math.min(40, Math.floor(pct / 2.5)); |
| 582 | const bar = '█'.repeat(filled) + '░'.repeat(Math.max(0, 40 - filled)); |
| 583 | const roleStats = new Map<string, { count: number; chars: number }>(); |
no test coverage detected