(p: ToolProps<typeof TaskTool>)
| 364 | } |
| 365 | |
| 366 | function runTask(p: ToolProps<typeof TaskTool>): ToolInline { |
| 367 | const kind = Locale.titlecase(p.input.subagent_type || "unknown") |
| 368 | const desc = p.input.description |
| 369 | const icon = p.frame.status === "error" ? "✗" : p.frame.status === "running" ? "•" : "✓" |
| 370 | return { |
| 371 | icon, |
| 372 | title: desc || `${kind} Task`, |
| 373 | description: desc ? `${kind} Agent` : undefined, |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | function runTodo(p: ToolProps<typeof TodoWriteTool>): ToolInline { |
| 378 | return { |