MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / resolve

Function resolve

cli/src/utils/theme-config.ts:87–96  ·  view source on GitHub ↗
(value: string, fallback: string = defaultFallback)

Source from the content-addressed store, hash-verified

85 const defaultFallback = mode === 'dark' ? '#ffffff' : '#000000'
86
87 const resolve = (value: string, fallback: string = defaultFallback): string => {
88 if (typeof value === 'string') {
89 const normalized = value.trim().toLowerCase()
90 if (normalized === 'default' || normalized.length === 0) {
91 return fallback
92 }
93 return value
94 }
95 return fallback
96 }
97
98 // Resolve all ThemeColor properties to actual colors
99 theme.foreground = resolve(theme.foreground)

Callers 15

resolveThemeColorsFunction · 0.70
startCallbackServerFunction · 0.70
withTimeoutFunction · 0.70
sendOscQueryFunction · 0.70
resolveWithFunction · 0.70
runCommandFunction · 0.70
streamToStringFunction · 0.50
checkForUpdatesFunction · 0.50
connectThroughProxyFunction · 0.50
httpGetFunction · 0.50
streamToStringFunction · 0.50
checkForUpdatesFunction · 0.50

Calls

no outgoing calls

Tested by 3

tmuxFunction · 0.40
tmuxFunction · 0.40
tmuxFunction · 0.40