import crypto from 'node:crypto';
export function sha256Hex(input) {
    return crypto.createHash('sha256').update(input).digest('hex');
}
/** simple in-process cache (clears when process restarts) */
const blobCache = new Map();
export function cacheGetBlobId(hash) {
    return blobCache.get(hash);
}
export function cacheSetBlobId(hash, blobId) {
    blobCache.set(hash, blobId);
}
