MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / maskModelCodename

Function maskModelCodename

source code/utils/model/model.ts:388–395  ·  view source on GitHub ↗
(baseName: string)

Source from the content-addressed store, hash-verified

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

Callers 1

renderModelNameFunction · 0.85

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected