(value: string, max: number)
| 142 | const MAX_PREVIEW_CHARS = 30_000; |
| 143 | |
| 144 | const truncate = (value: string, max: number): string => |
| 145 | value.length > max |
| 146 | ? `${value.slice(0, max)}\n... [truncated ${value.length - max} chars]` |
| 147 | : value; |
| 148 | |
| 149 | const soleConnectedToolName = (toolPaths: readonly string[] | undefined): string | undefined => { |
| 150 | const names = [...new Set(toolPaths ?? [])]; |
no outgoing calls
no test coverage detected