MCPcopy Create free account
hub / github.com/freecodexyz/free-code / getLogoDisplayData

Function getLogoDisplayData

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

Source from the content-addressed store, hash-verified

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

Callers 2

LogoV2Function · 0.85
CondensedLogoFunction · 0.85

Calls 7

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

Tested by

no test coverage detected