Function
getFingerprintType
(
fingerprintId: string,
)
Source from the content-addressed store, hash-verified
| 228 | * Detects the fingerprint type from a fingerprint ID. |
| 229 | */ |
| 230 | export 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 | } |
Tested by
no test coverage detected