// The glyph column of a tool row's head. Recognition is narrow on purpose: an // unrecognised or absent `ToolKind` gets the generic bullet, never a blank // column and never a mark that stands for the wrong kind of work. import type { AcpToolKind } from "../../types.js"; /** Glyph shown in a tool row's head, by `ToolKind`. */ const KIND_GLYPH: Record = { read: "≡", edit: "±", delete: "✕", move: "→", search: "⌕", execute: "$", think: "…", fetch: "⇣", switch_mode: "⇄", }; export function toolGlyph(kind: string | undefined): string { return (kind && KIND_GLYPH[kind]) || "•"; } export interface ToolIconProps { kind: AcpToolKind | string | undefined; className?: string; } export function ToolIcon({ kind, className = "st-tool-glyph" }: ToolIconProps) { return ( ); }