/** Shared tool icon mapping — single source of truth for HUD + socket layers. */
export function toolIcon(tool: string): string {
    if (!tool) return '⚡';
    const t = tool.toLowerCase();
    if (t === 'read')   return '📖';
    if (t === 'write')  return '✏️';
    if (t === 'edit')   return '🔧';
    if (t === 'append') return '📝';
    if (t === 'exec')   return '⚡';
    if (t === 'web_search' || t === 'web_fetch') return '🌐';
    if (t === 'memory_search' || t === 'memory_get') return '🧠';
    if (t === 'browser') return '🖥️';
    if (t.includes('message')) return '💬';
    if (t.includes('session')) return '🔗';
    return '⚙️';
}
