(s: string, max = SUMMARY_MAX)
| 183 | export function toolSummary(name: string, arg: string, full = false): string { |
| 184 | // Local clip that becomes a no-op (trim only) in `full` mode. |
| 185 | const c = (s: string, max = SUMMARY_MAX): string => (full ? s.trim() : clip(s, max)); |
| 186 | try { |
| 187 | const d = parseArg(arg); |
| 188 | // Empty argument (e.g. `{}`): keep it OUT of the collapsed header title, but |
no test coverage detected