(type: string)
| 458 | * Get icon for resource type (returns SVG icon name) |
| 459 | */ |
| 460 | export function getResourceIcon(type: string): string { |
| 461 | const icons: Record<string, string> = { |
| 462 | agent: "robot", |
| 463 | instruction: "document", |
| 464 | skill: "lightning", |
| 465 | hook: "hook", |
| 466 | workflow: "workflow", |
| 467 | plugin: "plug", |
| 468 | }; |
| 469 | return icons[type] || "document"; |
| 470 | } |
| 471 | |
| 472 | // Icon definitions with fill/stroke type info |
| 473 | const iconDefs: Record<string, { path: string; fill?: boolean }> = { |
no outgoing calls
no test coverage detected