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

Function getLogoDisplayData

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 5

getDisplayPathFunction · 0.85
getCwdFunction · 0.85
getInitialSettingsFunction · 0.50

Tested by

no test coverage detected