(modeSlug: string, customModes?: ModeConfig[])
| 218 | |
| 219 | // Helper function to safely get role definition |
| 220 | export function getRoleDefinition(modeSlug: string, customModes?: ModeConfig[]): string { |
| 221 | const mode = getModeBySlug(modeSlug, customModes) |
| 222 | if (!mode) { |
| 223 | console.warn(`No mode found for slug: ${modeSlug}`) |
| 224 | return "" |
| 225 | } |
| 226 | return mode.roleDefinition |
| 227 | } |
| 228 | |
| 229 | // Helper function to safely get description |
| 230 | export function getDescription(modeSlug: string, customModes?: ModeConfig[]): string { |
no test coverage detected