diff --git a/packages/cli/src/capture/index.ts b/packages/cli/src/capture/index.ts index b29285de37..e7dbb3076d 100644 --- a/packages/cli/src/capture/index.ts +++ b/packages/cli/src/capture/index.ts @@ -1,3 +1,4 @@ +import { LottieDiscovery } from "./lottieDiscovery.js"; import { createCaptureDownloadBudget } from "./readBoundedResponse.js"; /** * Website capture orchestrator. @@ -84,6 +85,7 @@ export async function captureWebsite( onPhase, } = opts; + const downloadByteBudget = createCaptureDownloadBudget(); const warnings: string[] = []; const progress = (stage: string, detail?: string) => { onProgress?.(stage, detail); @@ -204,51 +206,20 @@ export async function captureWebsite( // Intercept network responses to detect Lottie JSON files const discoveredLotties: DiscoveredLottie[] = []; + const lottieDiscovery = new LottieDiscovery(); // Layer 1 (passive video discovery): every direct-video URL the page fetches // over the whole session (load / scroll / carousel rotation), independent of // whether a