hyperframes 0.9.9 → 0.9.10

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.
Files changed (129) hide show
  1. package/dist/{add-FQX5F6PC.js → add-AFD3HNXB.js} +5 -5
  2. package/dist/api.js +4 -4
  3. package/dist/{asset-X5GG5TTP.js → asset-P6SF46UX.js} +2 -2
  4. package/dist/{audio-DDTYFS23.js → audio-DFQXEAEE.js} +5 -5
  5. package/dist/{auth-OAWLDT3A.js → auth-T62ANGDQ.js} +2 -2
  6. package/dist/{autoUpdate-BWIPXW2W.js → autoUpdate-3IT56KGL.js} +2 -2
  7. package/dist/{backgroundChecks-YJ5NRMBA.js → backgroundChecks-UKBVUYML.js} +3 -3
  8. package/dist/backgroundChecksWorker.js +3 -3
  9. package/dist/{beats-Q2TIAA7S.js → beats-7UFMDXBY.js} +4 -4
  10. package/dist/{benchmark-I3GRHFIN.js → benchmark-LCSHBJJF.js} +6 -6
  11. package/dist/billing-5YSYJJ2V.js +142 -0
  12. package/dist/{browser-F24WMZ52.js → browser-5DZHA4EW.js} +3 -3
  13. package/dist/{bundleWithLocalizedFonts-K5CQPNIZ.js → bundleWithLocalizedFonts-TJL2JWRD.js} +1 -1
  14. package/dist/{catalog-H7SOITD6.js → catalog-F2XB4VPP.js} +5 -5
  15. package/dist/{catch-up-YRGPVEM6.js → catch-up-HCBA3MIP.js} +4 -4
  16. package/dist/{check-BPQZZ2MO.js → check-E2RQCELF.js} +14 -14
  17. package/dist/{checkAudio-4NRQ3WGS.js → checkAudio-R4DRK3VG.js} +2 -2
  18. package/dist/{checkBrowser-S66AHKW3.js → checkBrowser-NGY225IO.js} +10 -8
  19. package/dist/{chunk-BBP5KGYS.js → chunk-2CKL2FUJ.js} +2 -2
  20. package/dist/{chunk-63GTSNMY.js → chunk-2WNIF4YT.js} +1 -1
  21. package/dist/{chunk-DIKIN4BA.js → chunk-3XHWHH5A.js} +44 -28
  22. package/dist/{chunk-2ROPUTCS.js → chunk-5CDTGHED.js} +1 -1
  23. package/dist/{chunk-CNX3WKQ5.js → chunk-6VKYITOR.js} +1 -1
  24. package/dist/{chunk-AH6MUQQC.js → chunk-7VGM5TLZ.js} +2 -2
  25. package/dist/{chunk-6DKWOG7L.js → chunk-7VOLQUA2.js} +1 -1
  26. package/dist/{chunk-CBPBTQBH.js → chunk-7VU4RBHC.js} +5 -4
  27. package/dist/chunk-AHLDGEH5.js +158 -0
  28. package/dist/{chunk-5YIZRU2L.js → chunk-CBTBVRXB.js} +2 -2
  29. package/dist/{chunk-NX2X326Z.js → chunk-CDSTLOB7.js} +2 -2
  30. package/dist/{chunk-4W5X4S47.js → chunk-DKROJ3GJ.js} +8 -8
  31. package/dist/{chunk-BXYB5NGT.js → chunk-GRUI2S2F.js} +1 -1
  32. package/dist/{chunk-BX2JB24X.js → chunk-MHZ7NSL5.js} +1 -1
  33. package/dist/{chunk-TZBJEKKU.js → chunk-NBWYATVA.js} +1 -1
  34. package/dist/{chunk-62ATHBDS.js → chunk-NVYVI4FR.js} +1 -1
  35. package/dist/{chunk-MY4PAH7C.js → chunk-P4WYY52Y.js} +1 -1
  36. package/dist/{chunk-V74HSKGY.js → chunk-PO7LSMN5.js} +1 -1
  37. package/dist/{chunk-UWYHZCEQ.js → chunk-PYUS627M.js} +1 -1
  38. package/dist/{chunk-2NGBIAUF.js → chunk-Q3W7TDQX.js} +217 -174
  39. package/dist/{chunk-H534266X.js → chunk-QBPZHOEJ.js} +1 -1
  40. package/dist/{chunk-2Y575PWJ.js → chunk-QPEDM2ZR.js} +1 -1
  41. package/dist/{chunk-322AG75G.js → chunk-RZFW7FBA.js} +2 -2
  42. package/dist/{chunk-NNF6G2UH.js → chunk-UDBNPVUR.js} +1 -1
  43. package/dist/{chunk-VZ5O7A77.js → chunk-V6HV2IDT.js} +5 -2
  44. package/dist/{chunk-HBHLCMOQ.js → chunk-W4Q6VYPZ.js} +2 -2
  45. package/dist/{chunk-VNR7LSN4.js → chunk-WCETVN3N.js} +17 -5
  46. package/dist/{chunk-A2NFFVWH.js → chunk-WP5QHNXN.js} +3 -3
  47. package/dist/{chunk-TJ2USKCK.js → chunk-WWPOGMNX.js} +1 -1
  48. package/dist/{chunk-OYAZODSP.js → chunk-YXSM33UC.js} +11 -6
  49. package/dist/{chunk-HUJMTTKR.js → chunk-ZMXFRRQR.js} +42 -26
  50. package/dist/{clean-RCXKQNFM.js → clean-BXHJEVVO.js} +5 -5
  51. package/dist/cli.js +54 -54
  52. package/dist/{cloud-TQPQZRC5.js → cloud-ISWLTHGP.js} +4 -4
  53. package/dist/{compare-EO32AASM.js → compare-MLZYDSZD.js} +4 -4
  54. package/dist/{component-S3TYNVCR.js → component-MMBTCMY3.js} +3 -3
  55. package/dist/{compositions-4TXRLZ3M.js → compositions-WT2577NJ.js} +5 -5
  56. package/dist/{curve-HGLOP2GY.js → curve-HHKVZ6LX.js} +3 -3
  57. package/dist/{cuts-VNFIISLL.js → cuts-66GBRT5P.js} +3 -3
  58. package/dist/{delete-TIWI3G7X.js → delete-P3WYOC7I.js} +2 -2
  59. package/dist/{deploy-EHPNOGSY.js → deploy-OJ3M7QJQ.js} +1 -1
  60. package/dist/{diff-46JK5ZCL.js → diff-R74KQXXN.js} +9 -7
  61. package/dist/{doctor-LD23DW4N.js → doctor-DT52W4UE.js} +4 -4
  62. package/dist/{energy-YZ3DB6AI.js → energy-WOMDOOLC.js} +3 -3
  63. package/dist/{events-DRTMYSQ6.js → events-PCK4AIN5.js} +2 -2
  64. package/dist/{events-MQIKCKA5.js → events-WEVZ2ELP.js} +3 -3
  65. package/dist/{events-3OWNDNJX.js → events-YVQJLQWG.js} +3 -3
  66. package/dist/{extract-F3NBE3X5.js → extract-CNXA3DWB.js} +4 -4
  67. package/dist/{face-ZU7ZDYGO.js → face-2WNBW74C.js} +3 -3
  68. package/dist/{feedback-37M37Y4F.js → feedback-ADMM2XDS.js} +4 -4
  69. package/dist/{figma-55AG42NN.js → figma-5MMN5JUU.js} +3 -3
  70. package/dist/fontLocalizeCli.js +2 -2
  71. package/dist/{frames-DJA3CFSY.js → frames-7CQGHRWT.js} +3 -3
  72. package/dist/{generate-BVJ5XNWP.js → generate-XOR4UJDW.js} +8 -6
  73. package/dist/{get-PGLCWEBG.js → get-5K6ALHBS.js} +2 -2
  74. package/dist/{grade-compare-R6Q6G6WP.js → grade-compare-DK63C776.js} +4 -4
  75. package/dist/{help-4SNDXHWQ.js → help-AUF2KA6D.js} +1 -1
  76. package/dist/{history-NKRHKIE2.js → history-G3FXVX4A.js} +6 -6
  77. package/dist/hyperframes-player.global.js +1 -1
  78. package/dist/{info-U4VDKU2Y.js → info-DGU3CIU5.js} +5 -5
  79. package/dist/{init-2RUVBHQO.js → init-LYZI2WCS.js} +6 -6
  80. package/dist/{ink-TX3USU7X.js → ink-DYZG4BST.js} +3 -3
  81. package/dist/{inspect-MAGHXEWS.js → inspect-BYQSCRKT.js} +6 -6
  82. package/dist/{keyframes-2TDECIQZ.js → keyframes-XX2DIYPI.js} +5 -5
  83. package/dist/{lambda-CRVYDETX.js → lambda-RKI7KKWW.js} +1 -1
  84. package/dist/{layout-I3VNHWJH.js → layout-RQFOMQRO.js} +6 -6
  85. package/dist/{lint-MCVWXDJX.js → lint-LFCMCDEG.js} +6 -6
  86. package/dist/{list-FJJNWPM6.js → list-V4TGMQ3Y.js} +2 -2
  87. package/dist/{login-YAZZWYFK.js → login-EXCG7PEH.js} +4 -4
  88. package/dist/{look-U5UHXPUQ.js → look-RBHKHGMF.js} +3 -3
  89. package/dist/{measure-JAPDVQ5X.js → measure-SAV5K4WT.js} +11 -11
  90. package/dist/{media-treatment-A4Z32NGP.js → media-treatment-2BVHRXJS.js} +5 -5
  91. package/dist/{media-use-6HX7JHRD.js → media-use-YEBYLITF.js} +1 -1
  92. package/dist/{normalize-audio-45CHOWKY.js → normalize-audio-ILLUZPTO.js} +4 -4
  93. package/dist/{open-RSTNLDYI.js → open-GTNLU7UF.js} +4 -4
  94. package/dist/{play-BYIEIRQQ.js → play-F2HIXJKH.js} +4 -4
  95. package/dist/{preflight-TC6ZW3GB.js → preflight-QMXCKE5P.js} +1 -1
  96. package/dist/{present-5B5VQKT5.js → present-GDR6LCKE.js} +4 -4
  97. package/dist/{preview-5O2HT2WF.js → preview-4TV5426Q.js} +5 -5
  98. package/dist/{probe-ZGK6DBAR.js → probe-TYM7WKX2.js} +4 -4
  99. package/dist/{producer-RFTB2APL.js → producer-NHQXKH7Y.js} +1 -1
  100. package/dist/{render-ETZ3WAJO.js → render-GEAO2HAV.js} +6 -6
  101. package/dist/{render-7HIEI7QP.js → render-YLAS7GVD.js} +12 -12
  102. package/dist/{reverse-VPBNBP2Q.js → reverse-3KAZZXB2.js} +1 -1
  103. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +1 -1
  104. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +1 -1
  105. package/dist/skills/media-use/references/heygen.md +1 -1
  106. package/dist/{skills-EBVQSIK4.js → skills-T5XCP3RC.js} +27 -12
  107. package/dist/{skillsUpdateCheck-7VXK4R4J.js → skillsUpdateCheck-IG7KLWIA.js} +3 -3
  108. package/dist/{snapshot-PJUNSMDS.js → snapshot-RULSIRM6.js} +8 -8
  109. package/dist/{src-SMIMKSHZ.js → src-DHBRQZFZ.js} +1 -1
  110. package/dist/{start-5ZDH643Z.js → start-GF3JCTGF.js} +29 -17
  111. package/dist/{status-4LLUW5YT.js → status-SUK4I7TS.js} +8 -5
  112. package/dist/studio/assets/{hyperframes-player-CcNGHTev.js → hyperframes-player-BcELSci_.js} +1 -1
  113. package/dist/studio/assets/{index-D9uDed3x.js → index-2SLNyxZG.js} +1 -1
  114. package/dist/studio/assets/{index-DSRgrCDX.js → index-DR2eua-L.js} +22 -22
  115. package/dist/studio/index.html +1 -1
  116. package/dist/{studioServer-2WIQBEQC.js → studioServer-DOTRPHS3.js} +9 -9
  117. package/dist/{sync-P3O3WZWT.js → sync-XQPBXGGX.js} +3 -3
  118. package/dist/{telemetry-267LV4SC.js → telemetry-7TIIOBVB.js} +3 -3
  119. package/dist/{templates-MQ742KVZ.js → templates-7DIQ52Y4.js} +40 -11
  120. package/dist/{timeline-WP7AZAQC.js → timeline-4JIUAUIP.js} +5 -5
  121. package/dist/{tokens-ROFKR7AE.js → tokens-4PQU4LVQ.js} +2 -2
  122. package/dist/{transcribe-WS2STSCJ.js → transcribe-IKUPC2R3.js} +6 -6
  123. package/dist/{updateCheck-M2SMSDIO.js → updateCheck-LBPTWEZV.js} +2 -2
  124. package/dist/{upgrade-ZUWFB2QM.js → upgrade-2FS4AMCA.js} +2 -2
  125. package/dist/{validate-M2M37G47.js → validate-MLVDUEK7.js} +6 -6
  126. package/dist/warmCheck.js +14 -14
  127. package/package.json +1 -1
  128. package/dist/billing-W224NIAM.js +0 -96
  129. package/dist/chunk-ASGRVFQ3.js +0 -59
@@ -14,20 +14,20 @@ import {
14
14
  import {
15
15
  collectProjectMedia,
16
16
  mediaPath
17
- } from "./chunk-UWYHZCEQ.js";
17
+ } from "./chunk-PYUS627M.js";
18
18
  import {
19
19
  captureArtifactRevision
20
- } from "./chunk-H534266X.js";
20
+ } from "./chunk-QBPZHOEJ.js";
21
21
  import {
22
22
  trackLintRun
23
- } from "./chunk-BBP5KGYS.js";
23
+ } from "./chunk-2CKL2FUJ.js";
24
24
  import {
25
25
  beginCheckSnapshots,
26
26
  checkSnapshotDirectory,
27
27
  finishCheckSnapshots,
28
28
  preResolveHostileMediaProxies,
29
29
  rectToBbox
30
- } from "./chunk-OYAZODSP.js";
30
+ } from "./chunk-YXSM33UC.js";
31
31
  import {
32
32
  CONTENT_OVERLAP_HELD_ERROR_MS,
33
33
  DEFAULT_MAX_STATIC_SEC,
@@ -48,7 +48,7 @@ import {
48
48
  mergeSampleTimes,
49
49
  parseAt,
50
50
  readMotionSpec
51
- } from "./chunk-NX2X326Z.js";
51
+ } from "./chunk-CDSTLOB7.js";
52
52
  import {
53
53
  findingAtRoot,
54
54
  findingElementKey,
@@ -57,7 +57,7 @@ import {
57
57
  } from "./chunk-TQBQYO4L.js";
58
58
  import {
59
59
  resolveProject
60
- } from "./chunk-6DKWOG7L.js";
60
+ } from "./chunk-7VOLQUA2.js";
61
61
  import {
62
62
  withRemainingBudget
63
63
  } from "./chunk-YGGZ23BB.js";
@@ -76,7 +76,7 @@ import {
76
76
  import {
77
77
  trackCheckReport,
78
78
  trackCommandFailure
79
- } from "./chunk-2ROPUTCS.js";
79
+ } from "./chunk-5CDTGHED.js";
80
80
  import {
81
81
  swallowedFlagUsageError
82
82
  } from "./chunk-WWBEAKTO.js";
@@ -93,6 +93,7 @@ import {
93
93
  c
94
94
  } from "./chunk-2GICKZ3I.js";
95
95
  import {
96
+ DEFAULT_CONFIG,
96
97
  extractMediaMetadata,
97
98
  findHdrAutoPromotion,
98
99
  gradingKeepsSdr
@@ -103,7 +104,7 @@ import {
103
104
  } from "./chunk-XX77LLFJ.js";
104
105
  import {
105
106
  withMeta
106
- } from "./chunk-TZBJEKKU.js";
107
+ } from "./chunk-NBWYATVA.js";
107
108
  import {
108
109
  recordLastCheck
109
110
  } from "./chunk-BLBMPEBX.js";
@@ -136,6 +137,7 @@ var PHASE_LABELS = {
136
137
  load: "loading the page",
137
138
  settle: "waiting for the page to be ready",
138
139
  samples: "checking samples",
140
+ analysis: "analyzing the samples",
139
141
  overlap: "running the overlap pass",
140
142
  crops: "capturing finding crops",
141
143
  frames: "capturing finding frames"
@@ -822,7 +824,7 @@ var DEFAULT_CHECK_OPTIONS = {
822
824
  maxIssues: 80,
823
825
  collapseStatic: true,
824
826
  tolerance: 2,
825
- timeout: 1e4,
827
+ timeout: DEFAULT_CONFIG.playerReadyTimeout,
826
828
  contrast: true,
827
829
  strict: false,
828
830
  snapshots: false,
@@ -1753,6 +1755,18 @@ function wholeCompositionKeepsMoving(assertions) {
1753
1755
  function disabledCraft() {
1754
1756
  return { enabled: false, step: 0, samples: 0, findings: [] };
1755
1757
  }
1758
+ function reportingProgress(driver, enter) {
1759
+ return new Proxy(driver, {
1760
+ get(target, name) {
1761
+ const member = Reflect.get(target, name);
1762
+ if (typeof member !== "function") return member;
1763
+ return (...args) => {
1764
+ enter("analysis", String(name));
1765
+ return member.apply(target, args);
1766
+ };
1767
+ }
1768
+ });
1769
+ }
1756
1770
  async function runAuditGrid(driver, options, motion, helpers = Promise.resolve([]), enter = () => {
1757
1771
  }, report = () => {
1758
1772
  }, keep = () => {
@@ -1778,46 +1792,48 @@ async function runAuditGrid(driver, options, motion, helpers = Promise.resolve([
1778
1792
  );
1779
1793
  const seekLoopMs = Date.now() - seekLoopStart;
1780
1794
  report("analyze", 0, 3);
1795
+ enter("analysis");
1796
+ const analysing = reportingProgress(driver, enter);
1781
1797
  let motionIssues = plan.preflightIssues;
1782
1798
  if (motion.kind === "valid" && plan.assertions.length > 0 && collected.motionFrames.length > 0) {
1783
- const canvas = await driver.getCanvas();
1799
+ const canvas = await analysing.getCanvas();
1784
1800
  let evaluated = evaluateMotion(collected.motionFrames, plan.assertions, canvas, grid.duration);
1785
1801
  if (evaluated.some((issue) => issue.code === "motion_frozen")) {
1786
- const frames = await withFrameMotion(driver, collected.motionFrames, plan.assertions);
1802
+ const frames = await withFrameMotion(analysing, collected.motionFrames, plan.assertions);
1787
1803
  evaluated = evaluateMotion(frames, plan.assertions, canvas, grid.duration);
1788
1804
  }
1789
- motionIssues = [...motionIssues, ...await driver.anchorMotionIssues(evaluated)];
1805
+ motionIssues = [...motionIssues, ...await analysing.anchorMotionIssues(evaluated)];
1790
1806
  }
1791
1807
  report("analyze", 1, 3);
1792
1808
  const userPicked = new Set(grid.userPickedSamples);
1793
- const noTimeline = await driver.hasNoTimelineDeclaration();
1809
+ const noTimeline = await analysing.hasNoTimelineDeclaration();
1794
1810
  const sweepSamples = collected.layoutStateSignatures.filter(
1795
1811
  (sample) => !userPicked.has(sample.time)
1796
1812
  );
1797
1813
  const sweepVerdict = options.range ? [] : detectSweepStatic(grid.duration, sweepSamples, motionIssues, noTimeline);
1798
1814
  const sweepFindings = sweepVerdict.length > 0 && await framesMoved(
1799
- driver,
1815
+ analysing,
1800
1816
  sweepSamples.map((sample) => sample.time)
1801
1817
  ) ? [] : sweepVerdict;
1802
1818
  const rotationFindings = detectRotationPivotDrift(
1803
1819
  collected.rotationSamples,
1804
- await driver.getCanvas()
1820
+ await analysing.getCanvas()
1805
1821
  );
1806
1822
  const offPivotFindings = detectOffPivotRotation(collected.indicatorFrames);
1807
1823
  const contrast = buildContrastResults(collected.contrastEntries);
1808
1824
  report("analyze", 2, 3);
1809
- const craft = craftEnabled(driver, options) ? await auditCraft(
1825
+ const craft = craftEnabled(analysing, options) ? await auditCraft(
1810
1826
  {
1811
1827
  frames: collected.craftFrames,
1812
1828
  duration: grid.duration,
1813
- canvas: await driver.getCanvas(),
1814
- soundSources: driver.collectCraftFilm ? (await driver.collectCraftFilm()).soundSources : null,
1829
+ canvas: await analysing.getCanvas(),
1830
+ soundSources: analysing.collectCraftFilm ? (await analysing.collectCraftFilm()).soundSources : null,
1815
1831
  stillnessJudgedElsewhere: noTimeline || sweepFindings.length > 0 || wholeCompositionKeepsMoving(plan.assertions)
1816
1832
  },
1817
1833
  async (time) => {
1818
- await driver.seekGeometry(time, { draws: true });
1819
- if (!driver.collectCraftFrame) throw new Error("craft sampling unavailable");
1820
- return driver.collectCraftFrame(time);
1834
+ await analysing.seekGeometry(time, { draws: true });
1835
+ if (!analysing.collectCraftFrame) throw new Error("craft sampling unavailable");
1836
+ return analysing.collectCraftFrame(time);
1821
1837
  }
1822
1838
  ) : disabledCraft();
1823
1839
  if (options.components?.length) {
@@ -2362,7 +2378,7 @@ function resolveMotionSpec(projectDir) {
2362
2378
  };
2363
2379
  }
2364
2380
  async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
2365
- const module = await import("./checkBrowser-S66AHKW3.js");
2381
+ const module = await import("./checkBrowser-NGY225IO.js");
2366
2382
  return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
2367
2383
  }
2368
2384
  var adoptedBrowser;
@@ -2388,11 +2404,11 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
2388
2404
  return relative(projectDir, path);
2389
2405
  }
2390
2406
  async function captureFindingFrames(project, options, requests, deadline) {
2391
- const module = await import("./checkBrowser-S66AHKW3.js");
2407
+ const module = await import("./checkBrowser-NGY225IO.js");
2392
2408
  return module.captureFindingFrames(project, options, requests, deadline);
2393
2409
  }
2394
2410
  async function captureFindingCrops(project, options, requests, deadline) {
2395
- const module = await import("./checkBrowser-S66AHKW3.js");
2411
+ const module = await import("./checkBrowser-NGY225IO.js");
2396
2412
  return module.captureFindingCrops(project, options, requests, deadline);
2397
2413
  }
2398
2414
  async function inspectProjectMedia(project, dependencies) {
@@ -2414,7 +2430,7 @@ function collectMedia(project) {
2414
2430
  return collectProjectMedia(project.dir);
2415
2431
  }
2416
2432
  async function inspectAudio(project, media) {
2417
- const module = await import("./checkAudio-4NRQ3WGS.js");
2433
+ const module = await import("./checkAudio-R4DRK3VG.js");
2418
2434
  return module.inspectAudio(project.dir, relative(project.dir, project.indexPath), media);
2419
2435
  }
2420
2436
  function audioCheckFailure(project, error) {
@@ -2488,7 +2504,7 @@ var DEFAULT_COMMAND_DEPENDENCIES = {
2488
2504
  }
2489
2505
  },
2490
2506
  async prepareMedia(project, options) {
2491
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-K5CQPNIZ.js");
2507
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-TJL2JWRD.js");
2492
2508
  const html = await bundleWithLocalizedFonts(project.dir);
2493
2509
  return (await preResolveHostileMediaProxies(project.dir, html, options.autoProxy)).files;
2494
2510
  },
@@ -2604,8 +2620,8 @@ var CHECK_COMMAND_ARGS = {
2604
2620
  },
2605
2621
  timeout: {
2606
2622
  type: "string",
2607
- description: "Initial render-ready timeout in ms, or with a unit (45s, 2m); also sets the navigation minimum (10s floor, default: 10000)",
2608
- default: "10000"
2623
+ description: "Initial render-ready timeout in ms, or with a unit (45s, 2m); also sets the navigation minimum (10s floor, default: 45000, as snapshot and render)",
2624
+ default: String(DEFAULT_CHECK_OPTIONS.timeout)
2609
2625
  },
2610
2626
  contrast: {
2611
2627
  type: "boolean",
@@ -8,7 +8,7 @@ import {
8
8
  flush,
9
9
  shouldTrack,
10
10
  trackEvent
11
- } from "./chunk-V74HSKGY.js";
11
+ } from "./chunk-PO7LSMN5.js";
12
12
  import {
13
13
  redactTelemetryString
14
14
  } from "./chunk-TK7THLRO.js";
@@ -621,7 +621,7 @@ async function prepareEntryGifs(ctx, fileMap) {
621
621
  if (!html || !/\.gif\b/i.test(html)) return;
622
622
  const sourceAssets = entryGifSources(ctx, entryPath, html);
623
623
  if (!sourceAssets) return;
624
- const prep = ctx.opts.gifPrep ?? (await import("./src-SMIMKSHZ.js")).prepareAnimatedGifInputs;
624
+ const prep = ctx.opts.gifPrep ?? (await import("./src-DHBRQZFZ.js")).prepareAnimatedGifInputs;
625
625
  const outputDir = mkdtempSync(join(tmpdir(), "hf-offload-gif-"));
626
626
  ctx.tempFiles.push(outputDir);
627
627
  const result = await prep(html, {
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/version.ts
9
- var VERSION = true ? "0.9.9" : "0.0.0-dev";
10
- var PRODUCER_VERSION = true ? "0.9.9" : "0.0.0-dev";
9
+ var VERSION = true ? "0.9.10" : "0.0.0-dev";
10
+ var PRODUCER_VERSION = true ? "0.9.10" : "0.0.0-dev";
11
11
 
12
12
  export {
13
13
  VERSION,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-5LOZWO2M.js";
10
10
  import {
11
11
  trackCommandFailure
12
- } from "./chunk-2ROPUTCS.js";
12
+ } from "./chunk-5CDTGHED.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-66W5IWLO.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-6DKWOG7L.js";
9
+ } from "./chunk-7VOLQUA2.js";
10
10
  import {
11
11
  installPageFunctionGuard,
12
12
  resolveCliChromeGpuMode,
@@ -38,7 +38,7 @@ import {
38
38
  import {
39
39
  printDeprecationNotice,
40
40
  withMeta
41
- } from "./chunk-TZBJEKKU.js";
41
+ } from "./chunk-NBWYATVA.js";
42
42
  import {
43
43
  failureMessage,
44
44
  jsonFailure
@@ -61,7 +61,7 @@ var __dirname = dirname(__filename);
61
61
  var CONTRAST_SAMPLES = 5;
62
62
  var SEEK_SETTLE_MS = 150;
63
63
  var PREFERRED_SEEK_TARGET_WAIT_MS = 500;
64
- var MEDIA_EXTENSIONS = /\.(aac|flac|m4a|mov|mp3|mp4|oga|ogg|wav|webm)$/i;
64
+ var MEDIA_EXTENSIONS = /\.(3gp|aac|aif|aiff|avi|flac|flv|m2ts|m4a|m4v|mkv|mov|mp3|mp4|mpeg|mpg|mts|mxf|oga|ogg|ogv|opus|wav|weba|webm|wma|wmv)$/i;
65
65
  function navigationTimeoutHint(err, navTimeoutMs) {
66
66
  const msg = err instanceof Error ? err.message : String(err);
67
67
  if (!/navigation timeout/i.test(msg)) return null;
@@ -73,6 +73,7 @@ function shouldIgnoreRequestFailure(url, errorText, resourceType) {
73
73
  if (errorText === "net::ERR_ABORTED" && isOptionalCaptionOverridesRequest(url)) return true;
74
74
  if (errorText !== "net::ERR_ABORTED") return false;
75
75
  if (resourceType === "media") return true;
76
+ if (resourceType === "image") return false;
76
77
  try {
77
78
  return MEDIA_EXTENSIONS.test(new URL(url).pathname);
78
79
  } catch {
@@ -252,7 +253,7 @@ function extractCompositionErrorsFromLint(lintResult) {
252
253
  async function localizeRemoteAssets(html) {
253
254
  let dir;
254
255
  try {
255
- const { loadProducer } = await import("./producer-RFTB2APL.js");
256
+ const { loadProducer } = await import("./producer-NHQXKH7Y.js");
256
257
  const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
257
258
  dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
258
259
  const assetDir = dir;
@@ -0,0 +1,158 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ resolveCloudAuthHeaders,
9
+ resolveCloudBaseUrl
10
+ } from "./chunk-TSQZ3DSC.js";
11
+
12
+ // src/heygen/plan.ts
13
+ import { randomUUID } from "crypto";
14
+ var UNPAID = /* @__PURE__ */ new Set(["incomplete", "incomplete_expired"]);
15
+ var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
16
+ function mockPlan() {
17
+ const raw = process.env["HYPERFRAMES_MOCK_PLAN"]?.trim();
18
+ if (!raw) return null;
19
+ const [plan = "none", credits = "0"] = raw.split(":");
20
+ return { plan, credits: Number(credits) || 0, mock: true };
21
+ }
22
+ var billingBaseUrl = () => resolveCloudBaseUrl().replace("://api.", "://api2.");
23
+ async function readPlan() {
24
+ try {
25
+ const res = await fetch(`${billingBaseUrl()}/v1/payment/hyperframes/subscription`, {
26
+ headers: { ...await resolveCloudAuthHeaders(), accept: "application/json" },
27
+ signal: AbortSignal.timeout(15e3)
28
+ });
29
+ const body = await res.json().catch(() => null);
30
+ const data = isRecord(body) && isRecord(body.data) ? body.data : body;
31
+ if (!res.ok || !isRecord(data)) return mockPlan();
32
+ const usage = isRecord(data.usage) ? data.usage : {};
33
+ const sub = isRecord(data.subscription) ? data.subscription : null;
34
+ const paid = !!sub && !UNPAID.has(String(sub.status));
35
+ return {
36
+ plan: paid ? String(sub.plan_name ?? "paid") : "none",
37
+ credits: Number(usage.remaining_units ?? 0) || 0
38
+ };
39
+ } catch {
40
+ return mockPlan();
41
+ }
42
+ }
43
+ var webBase = () => "https://hyperframes.studio";
44
+ var plansUrl = () => process.env["HYPERFRAMES_PLANS_URL"] || `${webBase()}/pricing`;
45
+ var creditsUrl = () => process.env["HYPERFRAMES_CREDITS_URL"] || `${webBase()}/pricing`;
46
+ async function signedInSpace() {
47
+ try {
48
+ const res = await fetch(`${billingBaseUrl()}/v1/pacific/account.get`, {
49
+ headers: { ...await resolveCloudAuthHeaders(), accept: "application/json" },
50
+ signal: AbortSignal.timeout(5e3)
51
+ });
52
+ const body = await res.json().catch(() => null);
53
+ const data = isRecord(body) && isRecord(body.data) ? body.data : null;
54
+ const id = data && isRecord(data.space_info) ? data.space_info.space_id : void 0;
55
+ return typeof id === "string" && /^[a-zA-Z0-9-]{1,64}$/.test(id) ? id : void 0;
56
+ } catch {
57
+ return void 0;
58
+ }
59
+ }
60
+ async function pageUrl(kind, fields = {}) {
61
+ const url = new URL(fields.base ?? (kind === "plans" ? plansUrl() : creditsUrl()));
62
+ url.searchParams.set("from", "cli");
63
+ if (fields.needed) url.searchParams.set("needed_credits", String(fields.needed));
64
+ if (fields.tool) url.searchParams.set("tool", fields.tool);
65
+ if (fields.feature) url.searchParams.set("feature", fields.feature);
66
+ if (fields.rs) url.searchParams.set("rs", fields.rs);
67
+ if (kind === "credits" && !fields.base) url.hash = "packs";
68
+ const space = await signedInSpace();
69
+ if (space) url.searchParams.set("workspace_hint", space);
70
+ return url.toString();
71
+ }
72
+ var int = (v) => Number.isSafeInteger(v) && v > 0 ? v : void 0;
73
+ async function readOffer() {
74
+ try {
75
+ const res = await fetch(`${billingBaseUrl()}/v1/payment/hyperframes/plans`, {
76
+ headers: { ...await resolveCloudAuthHeaders(), accept: "application/json" },
77
+ signal: AbortSignal.timeout(15e3)
78
+ });
79
+ const body = await res.json().catch(() => null);
80
+ const data = isRecord(body) && isRecord(body.data) ? body.data : body;
81
+ if (!res.ok || !isRecord(data)) return {};
82
+ const plans = Array.isArray(data.plans) ? data.plans.filter(isRecord) : [];
83
+ const pro = plans.find((p) => p.plan_name === "pro" && p.period === "month");
84
+ const a = isRecord(data.addon) && data.addons_enabled === true ? data.addon : null;
85
+ const offer = {};
86
+ if (pro && int(pro.amount) && typeof pro.currency === "string")
87
+ offer.pro = { amount: int(pro.amount), currency: pro.currency };
88
+ const [unitsPerBlock, unitAmount, min, max] = [
89
+ "units_per_block",
90
+ "unit_amount",
91
+ "min_quantity",
92
+ "max_quantity"
93
+ ].map((k) => int(a?.[k]));
94
+ if (a && unitsPerBlock && unitAmount && min && max && typeof a.currency === "string")
95
+ offer.addon = {
96
+ unitsPerBlock,
97
+ unitAmount,
98
+ currency: a.currency,
99
+ min,
100
+ max,
101
+ recommended: int(a.recommended) ?? min
102
+ };
103
+ return offer;
104
+ } catch {
105
+ return {};
106
+ }
107
+ }
108
+ function addonBlocks(offer, missing) {
109
+ const blocks = missing && missing > 0 ? Math.ceil(missing / offer.unitsPerBlock) : offer.recommended;
110
+ return Math.min(offer.max, Math.max(offer.min, blocks));
111
+ }
112
+ var money = (cents, currency) => new Intl.NumberFormat("en-US", { style: "currency", currency: currency.toUpperCase() }).format(
113
+ cents / 100
114
+ );
115
+ function stripeCheckoutUrl(value) {
116
+ if (typeof value !== "string" || !URL.canParse(value)) return void 0;
117
+ const url = new URL(value);
118
+ return url.protocol === "https:" && url.hostname === "checkout.stripe.com" ? url.toString() : void 0;
119
+ }
120
+ async function createCheckout(kind, offer, missing) {
121
+ const addon = kind === "credits" ? offer.addon : void 0;
122
+ if (kind === "credits" && !addon)
123
+ throw new Error("Credits are not on sale for this account right now.");
124
+ const body = addon ? {
125
+ quantity: addonBlocks(addon, missing),
126
+ currency: addon.currency,
127
+ unit_amount: addon.unitAmount
128
+ } : { plan_name: "pro", period: "month", request_id: randomUUID() };
129
+ const res = await fetch(
130
+ `${billingBaseUrl()}/v1/payment/hyperframes/${addon ? "addon.checkout" : "checkout"}`,
131
+ {
132
+ method: "POST",
133
+ headers: {
134
+ ...await resolveCloudAuthHeaders(),
135
+ accept: "application/json",
136
+ "content-type": "application/json"
137
+ },
138
+ body: JSON.stringify(body),
139
+ signal: AbortSignal.timeout(2e4)
140
+ }
141
+ );
142
+ const reply = await res.json().catch(() => null);
143
+ const data = isRecord(reply) && isRecord(reply.data) ? reply.data : reply;
144
+ const url = res.ok && isRecord(data) ? stripeCheckoutUrl(data.url) : void 0;
145
+ if (url) return url;
146
+ const why = isRecord(reply) && typeof reply.message === "string" ? reply.message.slice(0, 200) : `HTTP ${res.status}`;
147
+ throw new Error(`HeyGen would not open a checkout: ${why}`);
148
+ }
149
+
150
+ export {
151
+ billingBaseUrl,
152
+ readPlan,
153
+ pageUrl,
154
+ readOffer,
155
+ addonBlocks,
156
+ money,
157
+ createCheckout
158
+ };
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parseFeedbackRating,
9
9
  trackRenderFeedback
10
- } from "./chunk-2ROPUTCS.js";
10
+ } from "./chunk-5CDTGHED.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-V74HSKGY.js";
13
+ } from "./chunk-PO7LSMN5.js";
14
14
  import {
15
15
  c
16
16
  } from "./chunk-2GICKZ3I.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-TQBQYO4L.js";
10
10
  import {
11
11
  resolveProject
12
- } from "./chunk-6DKWOG7L.js";
12
+ } from "./chunk-7VOLQUA2.js";
13
13
  import {
14
14
  serveStaticProjectHtml
15
15
  } from "./chunk-BYC4C4YY.js";
@@ -42,7 +42,7 @@ import {
42
42
  import {
43
43
  printDeprecationNotice,
44
44
  withMeta
45
- } from "./chunk-TZBJEKKU.js";
45
+ } from "./chunk-NBWYATVA.js";
46
46
  import {
47
47
  failureMessage,
48
48
  jsonFailure
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  pageUrl
9
- } from "./chunk-ASGRVFQ3.js";
9
+ } from "./chunk-AHLDGEH5.js";
10
10
  import {
11
11
  Fix
12
12
  } from "./chunk-A33GFLPY.js";
@@ -75,7 +75,7 @@ function liveKey(key, scope) {
75
75
  for (let n = 1; failed.has(sent); n++) sent = `${key}-${n}`;
76
76
  return sent;
77
77
  }
78
- function refusal(status, body, estimate) {
78
+ async function refusal(status, body, estimate) {
79
79
  const err = isRecord(body) && isRecord(body.error) ? body.error : isRecord(body) ? body : {};
80
80
  const code = String(err.code ?? err.failure_code ?? "");
81
81
  const message = String(err.message ?? err.failure_message ?? "").slice(0, 300);
@@ -87,12 +87,12 @@ function refusal(status, body, estimate) {
87
87
  if (/hf_subscription_required/i.test(code))
88
88
  return new Refused(
89
89
  `this is a HyperFrames Pro feature; nothing was charged. Run \`npx hyperframes billing subscribe\`: it opens the page and waits`,
90
- `Subscribe: ${url ?? pageUrl("plans", { needed })}`
90
+ `Subscribe: ${url ?? await pageUrl("plans", { needed })}`
91
91
  );
92
92
  if (/hf_usage_exhausted/i.test(code))
93
93
  return new Refused(
94
- `out of HyperFrames credits (this step needs ${needs}${balance}); nothing was charged. Run \`npx hyperframes billing top-up${needed ? ` --needed ${needed}` : ""}\`: it opens the page and waits`,
95
- `Add credits: ${url ?? pageUrl("credits", { needed })}`
94
+ `out of HyperFrames credits (this step needs ${needs}${balance}); nothing was charged. Run \`npx hyperframes billing add-credits${needed ? ` --needed ${needed}` : ""}\`: it opens the page and waits`,
95
+ `Buy add-on credits: ${url ?? await pageUrl("credits", { needed })}`
96
96
  );
97
97
  if (/api_key_required/i.test(code))
98
98
  return new Refused(
@@ -107,7 +107,7 @@ function refusal(status, body, estimate) {
107
107
  if (status === 402 || /insufficient|credit|usage_exhausted|quota/i.test(code))
108
108
  return new Refused(
109
109
  `HeyGen says there is not enough credit (${code || status})`,
110
- "top up at https://app.heygen.com, or sign in with npx hyperframes auth login to use the plan's allowance"
110
+ "buy add-on credits at https://app.heygen.com, or sign in with npx hyperframes auth login to use the plan's allowance"
111
111
  );
112
112
  if (/content_policy/i.test(code))
113
113
  return new Refused(
@@ -134,7 +134,7 @@ async function call(route, send, timeoutMs, estimate, auth) {
134
134
  );
135
135
  if (err.status >= 500 || err.status < 300 || err.raw == null)
136
136
  throw new Fix(`HeyGen ${err.status} for ${route} with no readable answer`, resume);
137
- const refused = refusal(err.status, err.raw, estimate);
137
+ const refused = await refusal(err.status, err.raw, estimate);
138
138
  refused.status = err.status;
139
139
  throw refused;
140
140
  }
@@ -197,7 +197,7 @@ async function runJob(jobRoute, body, key, opts = {}) {
197
197
  if (opts.log) log(opts.log, { route, id: job.id, key: sent, status: job.status });
198
198
  if (!/^(completed|succeeded|success|done)$/i.test(job.status)) {
199
199
  markFailed(sent, scope);
200
- throw refusal(422, {
200
+ throw await refusal(422, {
201
201
  error: { code: job.failure_code ?? job.status, message: job.failure_message ?? "" }
202
202
  });
203
203
  }
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-2GICKZ3I.js";
17
17
  import {
18
18
  withMeta
19
- } from "./chunk-TZBJEKKU.js";
19
+ } from "./chunk-NBWYATVA.js";
20
20
  import {
21
21
  failCommand
22
22
  } from "./chunk-66W5IWLO.js";
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
1278
1278
  } catch (err) {
1279
1279
  if (err instanceof Error) {
1280
1280
  try {
1281
- const { trackCommandFailure } = await import("./events-3OWNDNJX.js");
1281
+ const { trackCommandFailure } = await import("./events-YVQJLQWG.js");
1282
1282
  trackCommandFailure(
1283
1283
  command,
1284
1284
  err,
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-J3RXEDR2.js";
25
25
  import {
26
26
  VERSION
27
- } from "./chunk-AH6MUQQC.js";
27
+ } from "./chunk-7VGM5TLZ.js";
28
28
 
29
29
  // src/utils/updateCheck.ts
30
30
  import { existsSync, readFileSync } from "fs";
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  idempotencyKey,
18
18
  runJob
19
- } from "./chunk-4W5X4S47.js";
19
+ } from "./chunk-DKROJ3GJ.js";
20
20
  import {
21
21
  projectOf,
22
22
  runFfmpeg
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  shouldTrack
9
- } from "./chunk-V74HSKGY.js";
9
+ } from "./chunk-PO7LSMN5.js";
10
10
 
11
11
  // src/telemetry/renderObservability.ts
12
12
  function renderObservabilityTelemetryPayload(observability) {
@@ -43,7 +43,7 @@ import {
43
43
  } from "./chunk-BLBMPEBX.js";
44
44
  import {
45
45
  VERSION
46
- } from "./chunk-AH6MUQQC.js";
46
+ } from "./chunk-7VGM5TLZ.js";
47
47
 
48
48
  // src/telemetry/transport.ts
49
49
  import { spawn } from "child_process";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  loadProducer
9
- } from "./chunk-TJ2USKCK.js";
9
+ } from "./chunk-WWPOGMNX.js";
10
10
  import {
11
11
  resolveProjectRelativeSrc
12
12
  } from "./chunk-WVRAFHJU.js";