| 474 | } |
| 475 | |
| 476 | function maskModelCodename(baseName: string): string { |
| 477 | // Mask only the first dash-separated segment (the codename), preserve the rest |
| 478 | // e.g. capybara-v2-fast → cap*****-v2-fast |
| 479 | const [codename = '', ...rest] = baseName.split('-') |
| 480 | const masked = |
| 481 | codename.slice(0, 3) + '*'.repeat(Math.max(0, codename.length - 3)) |
| 482 | return [masked, ...rest].join('-') |
| 483 | } |
| 484 | |
| 485 | export function renderModelName(model: ModelName): string { |
| 486 | const publicName = getPublicModelDisplayName(model) |