Complete V1 RC deployment capability gates

This commit is contained in:
mes123456
2026-08-15 01:01:23 -04:00
parent a3f3071c03
commit 17ab961485
37 changed files with 2031 additions and 184 deletions

View File

@@ -18,7 +18,7 @@ type Request =
type Response =
| { type: "ready"; index: { stripCount: number; bucketCount: number; referenceCount: number; estimatedBytes: number } }
| { type: "seekResult"; requestId: string; result: LongMediaSeekResultIR }
| { type: "disposed"; cacheBytes: number }
| { type: "disposed"; releasedCacheBytes: number; cacheBytesAfter: number }
| { type: "error"; requestId?: string; message: string };
const scope = self as unknown as {
@@ -71,9 +71,9 @@ scope.onmessage = (event): void => {
return;
}
if (message.type === "cancel") { session?.cancel(); return; }
const cacheBytes = session?.cache.stats().bytes ?? 0;
const releasedCacheBytes = session?.cache.stats().bytes ?? 0;
session?.dispose();
session = null;
assets.clear();
scope.postMessage({ type: "disposed", cacheBytes });
scope.postMessage({ type: "disposed", releasedCacheBytes, cacheBytesAfter: 0 });
};