* Gets the description for a mode, prioritizing description > whenToUse > roleDefinition * and taking only the first line
(mode: ModeConfig)
| 11 | * and taking only the first line |
| 12 | */ |
| 13 | function getModeDescription(mode: ModeConfig): string { |
| 14 | return (mode.description || mode.whenToUse || mode.roleDefinition).split("\n")[0] |
| 15 | } |
| 16 | |
| 17 | export interface SearchResult { |
| 18 | path: string |
no outgoing calls
no test coverage detected