* Generate content hash for an MCPB file
(data: Uint8Array)
| 93 | * Generate content hash for an MCPB file |
| 94 | */ |
| 95 | function generateContentHash(data: Uint8Array): string { |
| 96 | return createHash('sha256').update(data).digest('hex').substring(0, 16) |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Get cache directory for MCPB files |