(question?: string)
| 57 | } |
| 58 | |
| 59 | function buildTitle(question?: string): string { |
| 60 | const trimmed = question?.trim() |
| 61 | if (!trimmed) return 'CLI Chat' |
| 62 | return trimmed.length > 50 ? `${trimmed.slice(0, 50)}...` : trimmed |
| 63 | } |
| 64 | |
| 65 | function createAgentStreamError(error: unknown): Error { |
| 66 | if (error instanceof Error) return error |
no outgoing calls
no test coverage detected