* Generate a short hash (first 12 hex chars of SHA-256).
(content: string)
| 120 | * Generate a short hash (first 12 hex chars of SHA-256). |
| 121 | */ |
| 122 | function shortHash(content: string): string { |
| 123 | return createHash('sha256').update(content).digest('hex').slice(0, 12) |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * Generate a hash for a system prompt. |
no test coverage detected