MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getSettingSourceName

Function getSettingSourceName

source code/utils/settings/constants.ts:28–41  ·  view source on GitHub ↗
(source: SettingSource)

Source from the content-addressed store, hash-verified

26export type SettingSource = (typeof SETTING_SOURCES)[number]
27
28export function getSettingSourceName(source: SettingSource): string {
29 switch (source) {
30 case 'userSettings':
31 return 'user'
32 case 'projectSettings':
33 return 'project'
34 case 'localSettings':
35 return 'project, gitignored'
36 case 'flagSettings':
37 return 'cli flag'
38 case 'policySettings':
39 return 'managed'
40 }
41}
42
43/**
44 * Get short display name for a setting source (capitalized, for context/skills UI)

Callers 4

getSourceTitleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected