(slug: string, modes: readonly ModeConfig[] | undefined)
| 99 | * Find a mode by its slug, don't fall back to built-in modes |
| 100 | */ |
| 101 | export function findModeBySlug(slug: string, modes: readonly ModeConfig[] | undefined): ModeConfig | undefined { |
| 102 | return modes?.find((mode) => mode.slug === slug) |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Get the mode selection based on the provided mode slug, prompt component, and custom modes. |
no outgoing calls
no test coverage detected