MCPcopy
hub / github.com/codeaashu/claude-code / getScopeLabel

Function getScopeLabel

src/commands/plugin/ManagePlugins.tsx:2158–2179  ·  view source on GitHub ↗
(scope_8: string)

Source from the content-addressed store, hash-verified

2156
2157 // Get scope label
2158 const getScopeLabel = (scope_8: string): string => {
2159 switch (scope_8) {
2160 case 'flagged':
2161 return 'Flagged';
2162 case 'project':
2163 return 'Project';
2164 case 'local':
2165 return 'Local';
2166 case 'user':
2167 return 'User';
2168 case 'enterprise':
2169 return 'Enterprise';
2170 case 'managed':
2171 return 'Managed';
2172 case 'builtin':
2173 return 'Built-in';
2174 case 'dynamic':
2175 return 'Built-in';
2176 default:
2177 return scope_8;
2178 }
2179 };
2180 return <React.Fragment key={item_10.id}>
2181 {showScopeHeader && <Box marginTop={visibleIndex > 0 ? 1 : 0} paddingLeft={2}>
2182 <Text dimColor={item_10.scope !== 'flagged'} color={item_10.scope === 'flagged' ? 'warning' : undefined} bold={item_10.scope === 'flagged'}>

Callers 4

ManagePluginsFunction · 0.70
McpConfigErrorSectionFunction · 0.50
mcpRemoveHandlerFunction · 0.50
mcpGetHandlerFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected