| |
| |
| |
| |
| |
| const TOOL_ICONS: Record<string, string> = { |
| bash: "β‘", execute_command: "β‘", terminal: "β‘", run_command: "β‘", |
| write_file: "π", create_file: "π", file_write: "π", |
| str_replace_editor: "βοΈ", edit_file: "βοΈ", |
| read_file: "π", file_read: "π", |
| web_search: "π", search: "π", |
| browser: "π", web_fetch: "π", |
| memory: "π§ ", remember: "π§ ", |
| compress: "ποΈ", summarize: "ποΈ", |
| delegate: "π₯", spawn_agent: "π₯", subagent: "π₯", |
| skill_view: "π", skill_run: "π", |
| python: "π", |
| |
| Read: "π", Write: "π", Edit: "βοΈ", MultiEdit: "βοΈ", NotebookEdit: "βοΈ", |
| Bash: "β‘", BashOutput: "β‘", KillShell: "β‘", |
| Glob: "π", Grep: "π", WebSearch: "π", WebFetch: "π", |
| Task: "π₯", TodoWrite: "π", ExitPlanMode: "π", |
| }; |
|
|
| export const DEFAULT_TOOL_ICON = "π§"; |
|
|
| |
| export function toolIcon(name?: string | null): string { |
| return (name && TOOL_ICONS[name]) || DEFAULT_TOOL_ICON; |
| } |
|
|