| 406 | } |
| 407 | |
| 408 | function maskModelCodename(baseName: string): string { |
| 409 | // Mask only the first dash-separated segment (the codename), preserve the rest |
| 410 | // e.g. capybara-v2-fast → cap*****-v2-fast |
| 411 | const [codename = '', ...rest] = baseName.split('-') |
| 412 | const masked = |
| 413 | codename.slice(0, 3) + '*'.repeat(Math.max(0, codename.length - 3)) |
| 414 | return [masked, ...rest].join('-') |
| 415 | } |
| 416 | |
| 417 | export function renderModelName(model: ModelName): string { |
| 418 | const publicName = getPublicModelDisplayName(model) |