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

Function getLogoDisplayData

src/utils/logoV2Utils.ts:242–267  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240 * Gets the common logo display data used by both LogoV2 and CondensedLogo
241 */
242export function getLogoDisplayData(): {
243 version: string
244 cwd: string
245 billingType: string
246 agentName: string | undefined
247} {
248 const version = process.env.DEMO_VERSION ?? MACRO.VERSION
249 const serverUrl = getDirectConnectServerUrl()
250 const displayPath = process.env.DEMO_VERSION
251 ? '/code/claude'
252 : getDisplayPath(getCwd())
253 const cwd = serverUrl
254 ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, '')}`
255 : displayPath
256 const billingType = isClaudeAISubscriber()
257 ? getSubscriptionName()
258 : 'API Usage Billing'
259 const agentName = getInitialSettings().agent
260
261 return {
262 version,
263 cwd,
264 billingType,
265 agentName,
266 }
267}
268
269/**
270 * Determines how to display model and billing information based on available width

Callers 2

LogoV2Function · 0.85
CondensedLogoFunction · 0.85

Calls 6

getDisplayPathFunction · 0.85
getCwdFunction · 0.85
getSubscriptionNameFunction · 0.85
getInitialSettingsFunction · 0.85
isClaudeAISubscriberFunction · 0.70

Tested by

no test coverage detected