MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getAgentSourceDisplayName

Function getAgentSourceDisplayName

src/components/agents/utils.ts:5–18  ·  view source on GitHub ↗
(
  source: SettingSource | 'all' | 'built-in' | 'plugin',
)

Source from the content-addressed store, hash-verified

3import { getSettingSourceName } from 'src/utils/settings/constants.js'
4
5export 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

Callers 3

validateAgentFunction · 0.85
renderMenuFunction · 0.85
AgentsListFunction · 0.85

Calls 2

capitalizeFunction · 0.85
getSettingSourceNameFunction · 0.85

Tested by

no test coverage detected