@hyperframes/producer 0.9.87 → 0.9.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1409,12 +1409,12 @@ var workerPhasesByJob = /* @__PURE__ */ new WeakMap();
1409
1409
  function forgetWorkerPhases(job) {
1410
1410
  workerPhasesByJob.delete(job);
1411
1411
  }
1412
- var staticDedupActivityByJob = /* @__PURE__ */ new WeakMap();
1413
- function noteStaticDedupActivity(job) {
1414
- staticDedupActivityByJob.set(job, (staticDedupActivityByJob.get(job) ?? 0) + 1);
1412
+ var captureActivityByJob = /* @__PURE__ */ new WeakMap();
1413
+ function noteCaptureActivity(job) {
1414
+ captureActivityByJob.set(job, (captureActivityByJob.get(job) ?? 0) + 1);
1415
1415
  }
1416
- function staticDedupActivity(job) {
1417
- return staticDedupActivityByJob.get(job) ?? 0;
1416
+ function captureActivity(job) {
1417
+ return captureActivityByJob.get(job) ?? 0;
1418
1418
  }
1419
1419
  function describeWorkerPhases(job) {
1420
1420
  const phases = workerPhasesByJob.get(job);
@@ -2034,7 +2034,8 @@ async function extractDeferredFrames(input) {
2034
2034
  outputDir: input.outputRoot,
2035
2035
  format: range.format,
2036
2036
  frameRanges: contiguousRuns(indexes),
2037
- shownBox: input.shownBoxes?.get(video.videoId)
2037
+ shownBox: input.shownBoxes?.get(video.videoId),
2038
+ ...input.onProgress && { onProgress: input.onProgress }
2038
2039
  },
2039
2040
  input.signal,
2040
2041
  input.cfg
@@ -6480,7 +6481,7 @@ async function runProbeStage(input) {
6480
6481
  staticDedupMemo,
6481
6482
  compositionHash: computeCompositionObservabilityHash(compiled.html),
6482
6483
  deferStaticDedup: true,
6483
- onStaticDedupActivity: () => noteStaticDedupActivity(job)
6484
+ onStaticDedupActivity: () => noteCaptureActivity(job)
6484
6485
  };
6485
6486
  const PROBE_MAX_ATTEMPTS = 2;
6486
6487
  for (let attempt = 1; attempt <= PROBE_MAX_ATTEMPTS; attempt++) {
@@ -9230,7 +9231,7 @@ function frameStallRule(job, totalFrames, probeStartupMs) {
9230
9231
  tailMs: Math.max(TAIL_STALL_MS, noProgressMs),
9231
9232
  detail: () => describeWorkerPhases(job),
9232
9233
  attemptOpened: () => forgetWorkerPhases(job),
9233
- activity: () => staticDedupActivity(job)
9234
+ activity: () => captureActivity(job)
9234
9235
  };
9235
9236
  }
9236
9237
  function isRecoverableParallelCaptureError(error) {
@@ -9913,6 +9914,7 @@ async function extractDeferredVideoFramesForChunk(input) {
9913
9914
  outputRoot: input.outputRoot,
9914
9915
  cfg: input.cfg,
9915
9916
  shownBoxes: input.shownBoxes,
9917
+ ...input.onProgress && { onProgress: input.onProgress },
9916
9918
  sourceOf: (video) => {
9917
9919
  const range = planned.get(video.videoId).deferredRange;
9918
9920
  const remoteUrl = remoteSources[range.sourcePath];
@@ -13672,7 +13674,7 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
13672
13674
  deferredVideos.filter((video) => remoteVideoIds.has(video.videoId))
13673
13675
  )
13674
13676
  });
13675
- captureOptions.onStaticDedupActivity = () => noteStaticDedupActivity(job);
13677
+ captureOptions.onStaticDedupActivity = () => noteCaptureActivity(job);
13676
13678
  const captureFrames = effectiveChunkFrames(framesInChunk, slice.captureCost);
13677
13679
  const chunkWorkerCount = resolveChunkCaptureWorkers(
13678
13680
  captureFrames,
@@ -13789,7 +13791,8 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
13789
13791
  outputRoot: videoFramesDir,
13790
13792
  cfg,
13791
13793
  remoteSources,
13792
- shownBoxes
13794
+ shownBoxes,
13795
+ onProgress: () => noteCaptureActivity(job)
13793
13796
  }).then((frames) => {
13794
13797
  videoExtractMs = Date.now() - extractStarted;
13795
13798
  return frames;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": "0.1.0",
3
3
  "buildId": "dev",
4
- "sha256": "03838fae71a8339868d5541f78e757dd1bba3ea7fe8e63ff004d512d8b086f1b",
4
+ "sha256": "3735af53b864a66562f237cb1220be981a1e793b8423e293f52684e06c7bb56d",
5
5
  "artifacts": {
6
6
  "iife": "hyperframe.runtime.iife.js",
7
7
  "esm": "hyperframe.runtime.mjs"