| 384 | } |
| 385 | |
| 386 | function maskModelCodename(baseName: string): string { |
| 387 | // Mask only the first dash-separated segment (the codename), preserve the rest |
| 388 | // e.g. capybara-v2-fast → cap*****-v2-fast |
| 389 | const [codename = '', ...rest] = baseName.split('-') |
| 390 | const masked = |
| 391 | codename.slice(0, 3) + '*'.repeat(Math.max(0, codename.length - 3)) |
| 392 | return [masked, ...rest].join('-') |
| 393 | } |
| 394 | |
| 395 | export function renderModelName(model: ModelName): string { |
| 396 | const publicName = getPublicModelDisplayName(model) |