( source: SettingSource | 'all' | 'built-in' | 'plugin', )
| 3 | import { getSettingSourceName } from 'src/utils/settings/constants.js' |
| 4 | |
| 5 | export function getAgentSourceDisplayName( |
| 6 | source: SettingSource | 'all' | 'built-in' | 'plugin', |
| 7 | ): string { |
| 8 | if (source === 'all') { |
| 9 | return 'Agents' |
| 10 | } |
| 11 | if (source === 'built-in') { |
| 12 | return 'Built-in agents' |
| 13 | } |
| 14 | if (source === 'plugin') { |
| 15 | return 'Plugin agents' |
| 16 | } |
| 17 | return capitalize(getSettingSourceName(source)) |
| 18 | } |
| 19 |
no test coverage detected