(task: string)
| 86 | } |
| 87 | |
| 88 | function formatSessionTitle(task: string): string { |
| 89 | const compact = task.replace(/\s+/g, " ").trim() |
| 90 | |
| 91 | if (!compact) { |
| 92 | return "(untitled)" |
| 93 | } |
| 94 | |
| 95 | return compact.length <= 120 ? compact : `${compact.slice(0, 117)}...` |
| 96 | } |
| 97 | |
| 98 | function outputSessionsText(sessions: SessionLike[]): void { |
| 99 | for (const session of sessions) { |
no test coverage detected