(name: string)
| 106 | * Folder"), matching the legacy client humanizer so labels never render blank. |
| 107 | */ |
| 108 | export function humanizeToolName(name: string): string { |
| 109 | const words = stripVersionSuffix(name).split('_').filter(Boolean) |
| 110 | if (words.length === 0) return name |
| 111 | return words.map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(' ') |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Resolve a tool-call display title from its name and arguments. Argument-aware |
no test coverage detected