(text: string, max: number)
| 47 | } |
| 48 | |
| 49 | function truncate(text: string, max: number): string { |
| 50 | return text.length > max ? text.slice(0, max - 1) + "…" : text; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Picks the usage window that currently constrains the agent and formats it as |