( filePath: string, event: TaskOutputEvent, )
| 110 | // Intentional — see file header. |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | /** Truncate long tool results before storing them in the .output file. */ |
| 115 | export function previewToolResult(content: string, max = 2000): string { |
| 116 | if (content.length <= max) return content; |
| 117 | return `${content.slice(0, max)}\n... [truncated ${content.length - max} chars]`; |
| 118 | } |
nothing calls this directly
no outgoing calls
no test coverage detected