pub fn sanitize_progress_tool_label(
value: &str,
truncated: &mut bool,
) -> Option<String>Expand description
Collapses a provider tool name into a small class label (Read, Write,
Shell, …). Returns None for an empty name; sets truncated whenever
the label differs from the trimmed input, so a reader can tell a
generalised label from a verbatim one.