()
| 240 | * Gets the common logo display data used by both LogoV2 and CondensedLogo |
| 241 | */ |
| 242 | export 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 |
no test coverage detected