MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getFingerprintType

Function getFingerprintType

cli/src/utils/fingerprint.ts:230–240  ·  view source on GitHub ↗
(
  fingerprintId: string,
)

Source from the content-addressed store, hash-verified

228 * Detects the fingerprint type from a fingerprint ID.
229 */
230export function getFingerprintType(
231 fingerprintId: string,
232): 'enhanced_cli' | 'legacy' | 'unknown' {
233 if (fingerprintId.startsWith('enhanced-')) {
234 return 'enhanced_cli'
235 }
236 if (fingerprintId.startsWith('codebuff-cli-') || fingerprintId.startsWith('legacy-')) {
237 return 'legacy'
238 }
239 return 'unknown'
240}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected