(modeSlug: string, customModes?: ModeConfig[])
| 248 | |
| 249 | // Helper function to safely get custom instructions |
| 250 | export function getCustomInstructions(modeSlug: string, customModes?: ModeConfig[]): string { |
| 251 | const mode = getModeBySlug(modeSlug, customModes) |
| 252 | if (!mode) { |
| 253 | console.warn(`No mode found for slug: ${modeSlug}`) |
| 254 | return "" |
| 255 | } |
| 256 | return mode.customInstructions ?? "" |
| 257 | } |
no test coverage detected