| 497 | } |
| 498 | |
| 499 | function maskModelCodename(baseName: string): string { |
| 500 | // Mask only the first dash-separated segment (the codename), preserve the rest |
| 501 | // e.g. capybara-v2-fast → cap*****-v2-fast |
| 502 | const [codename = '', ...rest] = baseName.split('-') |
| 503 | const masked = |
| 504 | codename.slice(0, 3) + '*'.repeat(Math.max(0, codename.length - 3)) |
| 505 | return [masked, ...rest].join('-') |
| 506 | } |
| 507 | |
| 508 | export function renderModelName(model: ModelName): string { |
| 509 | const publicName = getPublicModelDisplayName(model) |