fix crit process, bun idk wtf it's doing has to be a chang with the 1.3 update. Modularize ws upgrades, fix hvnc not being in types, optimize thumbnail lookups.

This commit is contained in:
KingKDot
2026-05-29 22:51:25 -05:00
parent 206ade731d
commit fec4838156
7 changed files with 397 additions and 271 deletions
+17
View File
@@ -92,6 +92,23 @@ export function getThumbnailVersion(id: string): number {
return thumbnails.get(id)?.version ?? 0;
}
export type ThumbnailSummary = {
hasThumbnail: boolean;
thumbnailVersion: number;
};
export function getThumbnailSummaries(ids: readonly string[]): Map<string, ThumbnailSummary> {
const summaries = new Map<string, ThumbnailSummary>();
for (const id of ids) {
const thumbnail = thumbnails.get(id);
summaries.set(id, {
hasThumbnail: !!thumbnail,
thumbnailVersion: thumbnail?.version ?? 0,
});
}
return summaries;
}
export function clearThumbnail(id: string) {
thumbnails.delete(id);
latestFrames.delete(id);