| 420 | } |
| 421 | |
| 422 | function maskModelCodename(baseName: string): string { |
| 423 | // Mask only the first dash-separated segment (the codename), preserve the rest |
| 424 | // e.g. capybara-v2-fast → cap*****-v2-fast |
| 425 | const [codename = '', ...rest] = baseName.split('-') |
| 426 | const masked = |
| 427 | codename.slice(0, 3) + '*'.repeat(Math.max(0, codename.length - 3)) |
| 428 | return [masked, ...rest].join('-') |
| 429 | } |
| 430 | |
| 431 | export function renderModelName(model: ModelName): string { |
| 432 | const publicName = getPublicModelDisplayName(model) |