(text: string, maxWidth: number)
| 625 | * Truncate text to fit within maxWidth, adding ellipsis if needed. |
| 626 | */ |
| 627 | export function truncateWithEllipsis(text: string, maxWidth: number): string { |
| 628 | if (text.length <= maxWidth) return text |
| 629 | if (maxWidth <= 3) return text.slice(0, maxWidth) |
| 630 | return text.slice(0, maxWidth - 3) + '...' |
| 631 | } |
| 632 | |
| 633 | export interface MultiPromptProgress { |
| 634 | /** Total number of implementor agents */ |