MCPcopy Create free account
hub / github.com/freecodexyz/free-code / buildSurfaceKey

Function buildSurfaceKey

src/utils/commitAttribution.ts:237–239  ·  view source on GitHub ↗
(surface: string, model: ModelName)

Source from the content-addressed store, hash-verified

235 * Format: "surface/model" (e.g., "cli/claude-sonnet")
236 */
237export function buildSurfaceKey(surface: string, model: ModelName): string {
238 return `${surface}/${getCanonicalName(model)}`
239}
240
241/**
242 * Compute SHA-256 hash of content.

Callers

nothing calls this directly

Calls 1

getCanonicalNameFunction · 0.85

Tested by

no test coverage detected