hyperframes 0.8.195 → 0.8.197

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 (179) hide show
  1. package/dist/{add-NL6XABRV.js → add-5GQIR5OE.js} +12 -12
  2. package/dist/{animatedGifPrep-JD4BBM2L.js → animatedGifPrep-MGFQWIGJ.js} +8 -8
  3. package/dist/api.js +16 -16
  4. package/dist/{asset-LRRHLG4L.js → asset-ADX55DGH.js} +2 -2
  5. package/dist/{assetCataloger-D7KGO346.js → assetCataloger-GGBWBQZW.js} +8 -8
  6. package/dist/{audio-34CZM4HF.js → audio-SPB4CLRU.js} +14 -14
  7. package/dist/{auth-FL5ZMOXB.js → auth-WBAB35QA.js} +1 -1
  8. package/dist/{autoUpdate-FZTJFLIH.js → autoUpdate-5VUDX7JO.js} +2 -2
  9. package/dist/{backgroundChecks-6ZKDCQET.js → backgroundChecks-ATZQQUMR.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-KDZ4F4QT.js → batchRender-6S2XULOE.js} +4 -4
  12. package/dist/{beats-7PK677VR.js → beats-WJPHWDZ6.js} +9 -9
  13. package/dist/{benchmark-LO36QH5D.js → benchmark-LZVR7PF6.js} +9 -9
  14. package/dist/{browser-3F7NDHU2.js → browser-QJ3PFVDY.js} +3 -3
  15. package/dist/{bundleWithLocalizedFonts-JL5J52L6.js → bundleWithLocalizedFonts-564BQ73K.js} +2 -2
  16. package/dist/{capture-DOP3ONNZ.js → capture-3PUQLQNM.js} +11 -11
  17. package/dist/{capture-JOSZZYUW.js → capture-IRAYPK52.js} +2 -2
  18. package/dist/{captureCompositionFrame-SWZ4GEJP.js → captureCompositionFrame-OHS3WBTA.js} +13 -13
  19. package/dist/{catalog-EZLHZMLM.js → catalog-IQKJLTSF.js} +12 -12
  20. package/dist/{catch-up-6B7VY43I.js → catch-up-C4JJJNP3.js} +4 -4
  21. package/dist/{check-QGELCBBF.js → check-46Z5CAA4.js} +37 -37
  22. package/dist/{checkBrowser-A5C2AB4L.js → checkBrowser-KAC54SLQ.js} +32 -32
  23. package/dist/{chunk-NKNRVPNV.js → chunk-2C4VIQ2H.js} +2 -2
  24. package/dist/{chunk-D6XDOYMB.js → chunk-2R7QYR2D.js} +1 -1
  25. package/dist/{chunk-W7GMPEY3.js → chunk-33BFEUCL.js} +15 -11
  26. package/dist/{chunk-KJ6ZQL34.js → chunk-3DEBV7RH.js} +1 -1
  27. package/dist/{chunk-7DFIVUOW.js → chunk-3HOQ5ZMS.js} +6 -6
  28. package/dist/{chunk-L4BFXWHC.js → chunk-454VK7CA.js} +17 -17
  29. package/dist/{chunk-IZR7U27Z.js → chunk-46J53I7B.js} +47 -16
  30. package/dist/{chunk-SMROKE63.js → chunk-4FXJ54L4.js} +2 -2
  31. package/dist/{chunk-OB4GJZTY.js → chunk-4MNF7ALL.js} +1 -1
  32. package/dist/{chunk-GKMRLES4.js → chunk-5FY7ARKL.js} +1 -1
  33. package/dist/{chunk-YUFECVHG.js → chunk-5L6UY76S.js} +1 -1
  34. package/dist/{chunk-IZCW2NKT.js → chunk-5S7W3TUO.js} +1 -0
  35. package/dist/{chunk-YSXCPSJ4.js → chunk-6DMFWXDH.js} +3 -3
  36. package/dist/{chunk-KVLGJJTE.js → chunk-6LN4GQH3.js} +5 -5
  37. package/dist/{chunk-E527A6RS.js → chunk-6UX32GRW.js} +2 -2
  38. package/dist/{chunk-4R2NWLQL.js → chunk-7JMUJID2.js} +1 -1
  39. package/dist/{chunk-WUL5LPI2.js → chunk-AHE4R7PV.js} +9 -1
  40. package/dist/{chunk-F4T7XYMF.js → chunk-AXJMD32I.js} +1 -1
  41. package/dist/{chunk-FWDDLW2H.js → chunk-B6D7KOXQ.js} +2 -2
  42. package/dist/{chunk-ES7KSCSO.js → chunk-BF3ACZAB.js} +9 -9
  43. package/dist/{chunk-3OAFRLD3.js → chunk-BNMVX4JK.js} +11 -8
  44. package/dist/{chunk-66Q27H72.js → chunk-BXXEQFRW.js} +2 -2
  45. package/dist/{chunk-NOHH25WS.js → chunk-C4REI4HU.js} +2 -2
  46. package/dist/{chunk-CCZMCX3F.js → chunk-DTC4KKFP.js} +1 -1
  47. package/dist/{chunk-ST35C4K6.js → chunk-DY53XJ3P.js} +1 -1
  48. package/dist/{chunk-BBXZPDEA.js → chunk-FFPKJU7T.js} +2 -2
  49. package/dist/{chunk-ROEW726S.js → chunk-FMTJ4I6I.js} +1 -1
  50. package/dist/{chunk-ORZMO6NY.js → chunk-FUAS4KCJ.js} +3 -3
  51. package/dist/chunk-G5RNOVAV.js +3901 -0
  52. package/dist/{chunk-7Y5RVQQ7.js → chunk-GC4NUZAR.js} +4 -4
  53. package/dist/{chunk-7G2LQM3J.js → chunk-GGURM4ZM.js} +27 -18
  54. package/dist/{chunk-VNWX5GBF.js → chunk-GI2WXOY5.js} +4 -3
  55. package/dist/{chunk-ZOJHEN3C.js → chunk-GM6WM6YH.js} +1 -1
  56. package/dist/{chunk-6ORTRIDW.js → chunk-IFOJM6PV.js} +3 -3
  57. package/dist/{chunk-SC6NILKD.js → chunk-IHSFWHXI.js} +1 -1
  58. package/dist/{chunk-E74JMKSK.js → chunk-IK4Q7EKF.js} +2 -2
  59. package/dist/{chunk-TE6VGYHQ.js → chunk-IY2NZKMG.js} +1 -1
  60. package/dist/{chunk-636WBDXB.js → chunk-J756NYRP.js} +5 -5
  61. package/dist/{chunk-GJG4CTXD.js → chunk-KBVJ6G65.js} +3 -3
  62. package/dist/{chunk-3PYIQLPL.js → chunk-MGSQPE6P.js} +1 -1
  63. package/dist/{chunk-YFTO5YD7.js → chunk-NAZ54XAE.js} +5 -5
  64. package/dist/{chunk-XOUWCZHD.js → chunk-OEC7RJVD.js} +1 -1
  65. package/dist/{chunk-W4SSWOOD.js → chunk-PDDVEHWJ.js} +2 -2
  66. package/dist/{chunk-OJNNKHAZ.js → chunk-PGDWNIOK.js} +7 -2
  67. package/dist/{chunk-RZUEXJRC.js → chunk-POYHL7UJ.js} +2 -2
  68. package/dist/{chunk-L2EBYFU7.js → chunk-PRURJIVL.js} +1 -1
  69. package/dist/{chunk-2OYYNKJ4.js → chunk-QXPZGDTI.js} +1 -1
  70. package/dist/{chunk-IA7HZ4CM.js → chunk-RHYXITPN.js} +3 -3
  71. package/dist/{chunk-GOOE33GV.js → chunk-RNPTRRLX.js} +1 -1
  72. package/dist/{chunk-ELQ2QQC5.js → chunk-SD2IVQXM.js} +1 -1
  73. package/dist/{chunk-HJINEUHY.js → chunk-T3CBCGU4.js} +179 -131
  74. package/dist/{chunk-7PXVXRVX.js → chunk-UP7IRMTI.js} +9 -9
  75. package/dist/{chunk-HTLCE7M2.js → chunk-VFSFTVOT.js} +67 -24
  76. package/dist/{chunk-CZNSLFYD.js → chunk-VLVQQJOX.js} +14 -7
  77. package/dist/{chunk-B7Y2DGU6.js → chunk-WKHPW2BC.js} +1 -1
  78. package/dist/{chunk-RAACYYWX.js → chunk-WNLHEUZU.js} +1 -1
  79. package/dist/{chunk-2G6JZJAV.js → chunk-WWE73ZFN.js} +2 -2
  80. package/dist/{chunk-HT33OHQL.js → chunk-WY6X5Q33.js} +1 -1
  81. package/dist/{chunk-ZL6ZCLY6.js → chunk-X56HO2IP.js} +1 -1
  82. package/dist/{chunk-XC7SJ2UR.js → chunk-X73MOLUS.js} +3 -3
  83. package/dist/{chunk-2HSRLKZR.js → chunk-XE5DW6UC.js} +3 -3
  84. package/dist/{chunk-B7RJV74O.js → chunk-XOTUPVIF.js} +4 -0
  85. package/dist/{chunk-2TU4OKIR.js → chunk-YUODO5H2.js} +31 -0
  86. package/dist/{chunk-ZAVUASNT.js → chunk-ZAY376M4.js} +1 -1
  87. package/dist/{chunk-P5X5URNQ.js → chunk-ZE6CLWXL.js} +1 -1
  88. package/dist/{clean-PI4JLT6O.js → clean-JM6Y5V2G.js} +18 -18
  89. package/dist/cli.js +53 -53
  90. package/dist/{cloud-SQRY723M.js → cloud-DWKTRWWB.js} +4 -4
  91. package/dist/{cloudrun-VMPROR43.js → cloudrun-HLUQOVRO.js} +6 -6
  92. package/dist/{compare-EHX4APTP.js → compare-GVTQBP4N.js} +29 -29
  93. package/dist/{compiler-FZCJGGBF.js → compiler-3MDCAKFB.js} +4 -4
  94. package/dist/{component-I75ZKJYH.js → component-QSRD6BSP.js} +3 -3
  95. package/dist/{compositions-YNYYUEQD.js → compositions-BDITIWMO.js} +12 -12
  96. package/dist/{delete-7BVTBKOC.js → delete-G2MXPSLU.js} +2 -2
  97. package/dist/{deploy-TUEEJP3W.js → deploy-Q7RDYGFL.js} +1 -1
  98. package/dist/{deterministicFonts-RADD3BSX.js → deterministicFonts-RMA7GDJC.js} +2 -2
  99. package/dist/{dist-VVROHSP4.js → dist-WHAM6TAE.js} +3 -3
  100. package/dist/{dist-VRGIE57H.js → dist-XPD7X6JB.js} +1 -1
  101. package/dist/{doctor-53DSQFW4.js → doctor-Q7SJW3MZ.js} +12 -12
  102. package/dist/{events-AD3U6E7I.js → events-DOABLVUG.js} +2 -2
  103. package/dist/{events-M6FIUDNQ.js → events-XEAJVOX2.js} +3 -3
  104. package/dist/{feedback-7SQ7KKAR.js → feedback-K7I2FQQF.js} +8 -8
  105. package/dist/{ffmpeg-3HSSPXS4.js → ffmpeg-2LKYJYAF.js} +8 -8
  106. package/dist/{figma-B5XII2BO.js → figma-LXJRAIDI.js} +3 -3
  107. package/dist/fontLocalizeCli.js +11 -11
  108. package/dist/{get-RZKNBIRD.js → get-EDCTYZB6.js} +2 -2
  109. package/dist/{gpuPolicy-77LOK3K6.js → gpuPolicy-4YOOXLBX.js} +8 -8
  110. package/dist/{grade-compare-K3YB3FQA.js → grade-compare-ZWUXB3MD.js} +30 -30
  111. package/dist/{help-UM6INVL5.js → help-LEZ3E433.js} +1 -1
  112. package/dist/{history-EWKPACWR.js → history-YD7OKO74.js} +7 -7
  113. package/dist/hyperframe.manifest.json +1 -1
  114. package/dist/hyperframe.runtime.iife.js +58 -58
  115. package/dist/hyperframes-player.global.js +1 -1
  116. package/dist/{info-KY3MFTCY.js → info-SI2KU7J7.js} +8 -8
  117. package/dist/{init-LURF2PL5.js → init-INX5WA2G.js} +28 -28
  118. package/dist/{inspect-46CZJM6P.js → inspect-SJENYN3F.js} +30 -30
  119. package/dist/{installer-NGFX6INI.js → installer-JQ6DMFZ2.js} +5 -5
  120. package/dist/{keyframes-YCSK6POI.js → keyframes-EAVHD4PM.js} +6 -6
  121. package/dist/{lambda-5KXULI2S.js → lambda-323RMLN5.js} +8 -8
  122. package/dist/{layout-WOLH24YE.js → layout-JGCQYWWK.js} +30 -30
  123. package/dist/{lint-P3P2LX6S.js → lint-SFE43W5P.js} +7 -7
  124. package/dist/{lintProject-ESAJKFOX.js → lintProject-Q4ZVEF3G.js} +1 -1
  125. package/dist/{list-RUYQWMF2.js → list-N2NSYK6G.js} +2 -2
  126. package/dist/{login-THBBWZAY.js → login-QGISW3KF.js} +4 -4
  127. package/dist/{manager-V34BMSAG.js → manager-IXZJADWC.js} +9 -9
  128. package/dist/{media-treatment-IMBLTYGV.js → media-treatment-BTA7BV52.js} +14 -14
  129. package/dist/{models-3NW7HU72.js → models-NZEBSWXZ.js} +12 -12
  130. package/dist/{motionShot-VTTYZ6KW.js → motionShot-E4GNRX4N.js} +16 -16
  131. package/dist/{normalize-audio-ME3X7HBX.js → normalize-audio-F4Q5ZX5R.js} +6 -6
  132. package/dist/{open-GLGSJISM.js → open-A4U2RXCG.js} +12 -12
  133. package/dist/{parakeetRunner-T3UGRZWC.js → parakeetRunner-OVNNGTEB.js} +13 -13
  134. package/dist/{pipeline-IJXVEQCU.js → pipeline-Z76DCEY7.js} +9 -9
  135. package/dist/{play-HFFGGAZH.js → play-NWSZMZZG.js} +21 -21
  136. package/dist/{preflight-QV6V3UO2.js → preflight-I6UXFNYV.js} +9 -9
  137. package/dist/{present-TH34CTYY.js → present-QFZQ5VRM.js} +17 -17
  138. package/dist/{preview-R67EQGQP.js → preview-GXNG3UOV.js} +19 -19
  139. package/dist/{producer-HWPFETDU.js → producer-MGXGNSQX.js} +1 -1
  140. package/dist/{projectConfig-AO4V3RHS.js → projectConfig-TNL3ZDIP.js} +7 -7
  141. package/dist/{publication-BDQ3PXYG.js → publication-OO772CBM.js} +3 -3
  142. package/dist/{publish-PXYTWSXN.js → publish-X33ZCMFO.js} +11 -11
  143. package/dist/{remove-background-BVDJPT3Z.js → remove-background-JAD2RBYP.js} +10 -10
  144. package/dist/{render-45YHWV6W.js → render-2FX26ITP.js} +6 -6
  145. package/dist/{render-5MZY4TAB.js → render-BZCK6XNT.js} +16 -16
  146. package/dist/{render-5RQUYPIV.js → render-OJEKVJNG.js} +30 -30
  147. package/dist/{render-batch-ZUTUBTHX.js → render-batch-SP6HKIF4.js} +6 -6
  148. package/dist/renderSetupWorker.js +1 -1
  149. package/dist/{resolver-FN2M3XVM.js → resolver-QB7L6U4Q.js} +5 -5
  150. package/dist/{sherpa-6KWNPRWB.js → sherpa-BZLXBJTD.js} +12 -12
  151. package/dist/skills/hyperframes/references/film.md +1 -0
  152. package/dist/skills/media-use/scripts/lib/recipe-store.mjs +1 -0
  153. package/dist/skills/media-use/scripts/lib/recipe-store.test.mjs +24 -0
  154. package/dist/skills/media-use/scripts/lib/svg-sanitize.mjs +2 -2
  155. package/dist/{skills-PWQCM2BT.js → skills-OMKCU4HZ.js} +5 -5
  156. package/dist/{skillsUpdateCheck-EHV2G3JX.js → skillsUpdateCheck-NNURJXBS.js} +3 -3
  157. package/dist/{snapshot-7Q24NFEI.js → snapshot-J7Y3PCCI.js} +58 -37
  158. package/dist/{src-OS2FRVZV.js → src-2YZVFDNC.js} +7 -7
  159. package/dist/{src-J43SXEHJ.js → src-T5WHBOD2.js} +10 -10
  160. package/dist/{staticProjectServer-YJWOQJF4.js → staticProjectServer-PHNKV2NL.js} +18 -18
  161. package/dist/studio/assets/{hyperframes-player-DnIPEARk.js → hyperframes-player-Cyi8HgFo.js} +1 -1
  162. package/dist/studio/assets/{index-Dkt4c1MV.js → index-6njHuMnJ.js} +106 -105
  163. package/dist/studio/assets/{index-CVppCm_X.js → index-DG6ZXBnu.js} +1 -1
  164. package/dist/studio/index.html +1 -1
  165. package/dist/{studio-api-CZBZ4D65.js → studio-api-VLJJP2GQ.js} +11 -11
  166. package/dist/{studioServer-U6EX5DSB.js → studioServer-G7RGGTWJ.js} +49 -49
  167. package/dist/{telemetry-VP4UWWO3.js → telemetry-2R6G2A54.js} +3 -3
  168. package/dist/{timeline-LMSUKEG6.js → timeline-B2CM5IZO.js} +19 -19
  169. package/dist/{tokens-FQ5AI5H4.js → tokens-7EOFUTMX.js} +2 -2
  170. package/dist/{transcribe-DNQFPZ2S.js → transcribe-7GTD3CEW.js} +11 -11
  171. package/dist/{transcribe-VAMXV7QS.js → transcribe-YJM673R7.js} +17 -17
  172. package/dist/{updateCheck-TOU7VLZK.js → updateCheck-JBIJ7L2D.js} +2 -2
  173. package/dist/{upgrade-CJRMRR2S.js → upgrade-WF2CBHOE.js} +2 -2
  174. package/dist/{urlDownloader-GETNWEIT.js → urlDownloader-HMXLCV4T.js} +7 -7
  175. package/dist/{validate-PRI2UTQS.js → validate-OHWQ7DQO.js} +24 -24
  176. package/dist/{video-VOCQA6AG.js → video-OEEM43V6.js} +8 -8
  177. package/dist/warmCheck.js +37 -37
  178. package/package.json +2 -2
  179. package/dist/chunk-ZQRD62QZ.js +0 -3901
@@ -7,19 +7,23 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  ambiguousIssue,
9
9
  loadBrowserScript
10
- } from "./chunk-7PXVXRVX.js";
10
+ } from "./chunk-UP7IRMTI.js";
11
11
  import {
12
12
  auditClipDurations,
13
13
  shouldIgnoreHttpError,
14
14
  shouldIgnoreRequestFailure
15
- } from "./chunk-7G2LQM3J.js";
15
+ } from "./chunk-GGURM4ZM.js";
16
16
  import {
17
17
  serveStaticProjectHtml
18
- } from "./chunk-KVLGJJTE.js";
18
+ } from "./chunk-6LN4GQH3.js";
19
+ import {
20
+ STUDIO_PREVIEW_CAPTURE_MODE,
21
+ STUDIO_PREVIEW_MARK_META
22
+ } from "./chunk-454VK7CA.js";
19
23
  import {
20
24
  artifactDirectory,
21
25
  finishSnapshotRun
22
- } from "./chunk-OJNNKHAZ.js";
26
+ } from "./chunk-PGDWNIOK.js";
23
27
  import {
24
28
  FfmpegUnavailableError,
25
29
  decideMediaProxyEligibility,
@@ -27,7 +31,7 @@ import {
27
31
  proxyVariantFor,
28
32
  resolveProxies,
29
33
  scanProjectMediaCodecMap
30
- } from "./chunk-GJG4CTXD.js";
34
+ } from "./chunk-KBVJ6G65.js";
31
35
  import {
32
36
  AUDIT_SEEK_OPTIONS,
33
37
  DEFAULT_ZOOM_PADDING_PX,
@@ -41,17 +45,20 @@ import {
41
45
  seekCompositionTimeline,
42
46
  seekInPage,
43
47
  waitForPreferredSeekTarget
44
- } from "./chunk-ES7KSCSO.js";
48
+ } from "./chunk-BF3ACZAB.js";
45
49
  import {
46
50
  BrowserCleanupError,
47
51
  closeManagedBrowser
48
- } from "./chunk-WUL5LPI2.js";
52
+ } from "./chunk-AHE4R7PV.js";
49
53
  import {
50
54
  findStageProxyBox
51
- } from "./chunk-GOOE33GV.js";
55
+ } from "./chunk-RNPTRRLX.js";
52
56
  import {
53
57
  resolveAutoProxy
54
- } from "./chunk-RAACYYWX.js";
58
+ } from "./chunk-WNLHEUZU.js";
59
+ import {
60
+ injectTagsAtHeadStart
61
+ } from "./chunk-G5RNOVAV.js";
55
62
  import {
56
63
  normalizeErrorMessage
57
64
  } from "./chunk-T2EUWCJE.js";
@@ -388,9 +395,15 @@ function proxyCached(projectDir, source) {
388
395
  function proxyFailedDraft(message) {
389
396
  return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
390
397
  }
398
+ async function loadCheckHtmlWithDeferredMedia(dir) {
399
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-564BQ73K.js");
400
+ return injectTagsAtHeadStart(
401
+ await bundleWithLocalizedFonts(dir),
402
+ `<meta name="${STUDIO_PREVIEW_MARK_META}" content="${STUDIO_PREVIEW_CAPTURE_MODE}">`
403
+ );
404
+ }
391
405
  async function runBrowserCheck(project, options, motion, runGrid, deadline, prelaunched) {
392
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-JL5J52L6.js");
393
- const html = await bundleWithLocalizedFonts(project.dir);
406
+ const html = await loadCheckHtmlWithDeferredMedia(project.dir);
394
407
  deadline?.enter("copies");
395
408
  const { findings: drafts, failedPaths } = await preResolveHostileMediaProxies(
396
409
  project.dir,
@@ -442,7 +455,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
442
455
  ).map((draft) => runtimeFinding(draft, rootAnchor))
443
456
  }));
444
457
  const launchSettleMs = Date.now() - launchSettleStart;
445
- const { analyzeClipMediaFit } = await import("./src-OS2FRVZV.js");
458
+ const { analyzeClipMediaFit } = await import("./src-2YZVFDNC.js");
446
459
  for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
447
460
  drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
448
461
  }
@@ -559,8 +572,7 @@ function mergeHelperDrafts(primary, helper) {
559
572
  }
560
573
  async function captureFindingCrops(project, options, requests, deadline) {
561
574
  if (requests.length === 0) return [];
562
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-JL5J52L6.js");
563
- const html = await bundleWithLocalizedFonts(project.dir);
575
+ const html = await loadCheckHtmlWithDeferredMedia(project.dir);
564
576
  const server = await serveStaticProjectHtml(
565
577
  project.dir,
566
578
  html,
@@ -786,8 +798,27 @@ function wireNetworkListeners(page, drafts, clock) {
786
798
  });
787
799
  });
788
800
  }
801
+ function failWhenPageDies(page, driver) {
802
+ const dead = new Promise((_, reject) => {
803
+ page.on(
804
+ "error",
805
+ (error) => reject(new Error(`The page crashed: ${normalizeErrorMessage(error)}`))
806
+ );
807
+ page.on("close", () => reject(new Error("The page closed before the check finished")));
808
+ });
809
+ dead.catch(() => void 0);
810
+ return Object.fromEntries(
811
+ Object.entries(driver).map(([name, member]) => [
812
+ name,
813
+ typeof member === "function" ? (...args) => {
814
+ const result = Reflect.apply(member, driver, args);
815
+ return result instanceof Promise ? Promise.race([result, dead]) : result;
816
+ } : member
817
+ ])
818
+ );
819
+ }
789
820
  function createPageDriver(page, clock = createRuntimeClock(), sampleLog) {
790
- return {
821
+ return failWhenPageDies(page, {
791
822
  initialize: (contrast) => injectAuditScripts(page, contrast),
792
823
  markSamples: (phase) => {
793
824
  if (!sampleLog) return;
@@ -836,7 +867,7 @@ function createPageDriver(page, clock = createRuntimeClock(), sampleLog) {
836
867
  collectContrast: (time, annotations) => collectContrast(page, time, annotations),
837
868
  collectCraftFrame: (time) => collectCraftFrame(page, time),
838
869
  collectCraftFilm: () => collectCraftFilm(page)
839
- };
870
+ });
840
871
  }
841
872
  async function collectCraftFrame(page, time) {
842
873
  const raw = await page.evaluate(() => {
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-ZAVUASNT.js";
9
+ } from "./chunk-ZAY376M4.js";
10
10
  import {
11
11
  DEFAULT_HISTORY_ROOT,
12
12
  HistoryBusyError,
13
13
  MAX_WINDOW_IDLE_MS,
14
14
  openProjectHistory,
15
15
  readProjectHistory
16
- } from "./chunk-OJNNKHAZ.js";
16
+ } from "./chunk-PGDWNIOK.js";
17
17
  import {
18
18
  findPreviewServerForProject,
19
19
  studioApiUrl
@@ -10,7 +10,7 @@ import {
10
10
  isDevice,
11
11
  isQuality,
12
12
  render
13
- } from "./chunk-IA7HZ4CM.js";
13
+ } from "./chunk-RHYXITPN.js";
14
14
 
15
15
  // src/api/removeBackground.ts
16
16
  import { resolve } from "path";
@@ -11,7 +11,7 @@ import {
11
11
  distroLabel,
12
12
  getFFmpegInstallHint,
13
13
  parseLddMissingLibs
14
- } from "./chunk-4R2NWLQL.js";
14
+ } from "./chunk-7JMUJID2.js";
15
15
  import {
16
16
  ensureBrowser,
17
17
  findBrowser
@@ -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-M6FIUDNQ.js");
1281
+ const { trackCommandFailure } = await import("./events-XEAJVOX2.js");
1282
1282
  trackCommandFailure(
1283
1283
  command,
1284
1284
  err,
@@ -24,6 +24,7 @@ function alphaDecoderFor(codecName) {
24
24
  }
25
25
 
26
26
  export {
27
+ pixelFormatHasAlpha,
27
28
  videoStreamHasAlpha,
28
29
  alphaDecoderFor
29
30
  };
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  readCompositionFps
9
- } from "./chunk-CCZMCX3F.js";
9
+ } from "./chunk-DTC4KKFP.js";
10
10
  import {
11
11
  errorBox
12
12
  } from "./chunk-K2FLNJVB.js";
@@ -16,10 +16,10 @@ import {
16
16
  import {
17
17
  DEFAULT_CONFIG,
18
18
  resolvePageNavigationTimeout
19
- } from "./chunk-HJINEUHY.js";
19
+ } from "./chunk-T3CBCGU4.js";
20
20
  import {
21
21
  parseFps
22
- } from "./chunk-E74JMKSK.js";
22
+ } from "./chunk-IK4Q7EKF.js";
23
23
 
24
24
  // src/browser/windowsCrash.ts
25
25
  var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType,
9
9
  injectMediaCodecMapIntoHtml
10
- } from "./chunk-L4BFXWHC.js";
10
+ } from "./chunk-454VK7CA.js";
11
11
  import {
12
12
  PROXY_VARIANT_CONFIG,
13
13
  ProxyCapacityError,
@@ -18,17 +18,17 @@ import {
18
18
  recordProxyRequest,
19
19
  resolveProxy,
20
20
  resolveProxyVariantRequest
21
- } from "./chunk-GJG4CTXD.js";
21
+ } from "./chunk-KBVJ6G65.js";
22
22
  import {
23
23
  findStageProxyBox
24
- } from "./chunk-GOOE33GV.js";
24
+ } from "./chunk-RNPTRRLX.js";
25
25
  import {
26
26
  resolveAutoProxy
27
- } from "./chunk-RAACYYWX.js";
27
+ } from "./chunk-WNLHEUZU.js";
28
28
  import {
29
29
  PREVIEW_PROXY_BOX_PARAM,
30
30
  parsePreviewProxyBox
31
- } from "./chunk-E74JMKSK.js";
31
+ } from "./chunk-IK4Q7EKF.js";
32
32
  import {
33
33
  decodeWellFormedEscapes
34
34
  } from "./chunk-BSQ7XANM.js";
@@ -6,11 +6,11 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  withOwner
9
- } from "./chunk-SMROKE63.js";
9
+ } from "./chunk-4FXJ54L4.js";
10
10
  import {
11
11
  HistoryBusyError,
12
12
  beginArtifactCapture
13
- } from "./chunk-OJNNKHAZ.js";
13
+ } from "./chunk-PGDWNIOK.js";
14
14
 
15
15
  // src/utils/artifactCapture.ts
16
16
  var SKIP_BUSY_HISTORY = { ownerWaitMs: 0 };
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  detectGpuEncoder
9
- } from "./chunk-HJINEUHY.js";
9
+ } from "./chunk-T3CBCGU4.js";
10
10
  import {
11
11
  runCancellableProcess
12
12
  } from "./chunk-BL4U6U52.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-DKPNNYBZ.js";
15
15
  import {
16
16
  resolveCaptureBrowserGpuMode
17
- } from "./chunk-BBXZPDEA.js";
17
+ } from "./chunk-FFPKJU7T.js";
18
18
  import {
19
19
  requestCliExit
20
20
  } from "./chunk-JVBRJMOP.js";
@@ -90,8 +90,15 @@ var LAUNCH_TIMEOUT_MS = 3e4;
90
90
  var EXIT_POLL_MS = 50;
91
91
  var listening = false;
92
92
  var shutdown;
93
+ var stopListeners = /* @__PURE__ */ new Set();
94
+ function onStopSignal(listener) {
95
+ ownSignals();
96
+ stopListeners.add(listener);
97
+ return () => stopListeners.delete(listener);
98
+ }
93
99
  function stopForSignal(signal) {
94
100
  if (shutdown) return;
101
+ for (const listener of stopListeners) listener(signal);
95
102
  shutdown = closeManagedBrowsers();
96
103
  void shutdown.then(
97
104
  () => requestCliExit(signal === "SIGINT" ? 130 : 143),
@@ -272,6 +279,7 @@ async function closedWithoutKill(browser) {
272
279
 
273
280
  export {
274
281
  BrowserCleanupError,
282
+ onStopSignal,
275
283
  resolveManagedGpuMode,
276
284
  launchManagedBrowser,
277
285
  registerBrowserSessionCleanup,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-WQ6ZXHFQ.js";
10
10
  import {
11
11
  findFFmpeg
12
- } from "./chunk-4R2NWLQL.js";
12
+ } from "./chunk-7JMUJID2.js";
13
13
  import {
14
14
  stoppableExecFile
15
15
  } from "./chunk-HU2SPFNG.js";
@@ -9,10 +9,10 @@ import {
9
9
  isHttpUrl,
10
10
  renameWithRetry,
11
11
  runFfmpeg
12
- } from "./chunk-HJINEUHY.js";
12
+ } from "./chunk-T3CBCGU4.js";
13
13
  import {
14
14
  parseAnimatedGifMetadata
15
- } from "./chunk-E74JMKSK.js";
15
+ } from "./chunk-IK4Q7EKF.js";
16
16
  import {
17
17
  parseHTML
18
18
  } from "./chunk-SDYDNHEE.js";
@@ -8,31 +8,31 @@ import {
8
8
  launchManagedBrowser,
9
9
  resolveManagedGpuMode,
10
10
  rethrowAfterBrowserCleanup
11
- } from "./chunk-WUL5LPI2.js";
11
+ } from "./chunk-AHE4R7PV.js";
12
12
  import {
13
13
  gotoWhenSent
14
14
  } from "./chunk-MOEGCMKI.js";
15
15
  import {
16
16
  pageNavigationTimeoutMs,
17
17
  windowsChromeCrashRemediation
18
- } from "./chunk-YSXCPSJ4.js";
18
+ } from "./chunk-6DMFWXDH.js";
19
19
  import {
20
20
  oneProcessOverPipe
21
21
  } from "./chunk-DKPNNYBZ.js";
22
22
  import {
23
23
  resolveCompositionViewportFromHtml
24
- } from "./chunk-GOOE33GV.js";
24
+ } from "./chunk-RNPTRRLX.js";
25
25
  import {
26
26
  resolveLocalBrowserGpuMode,
27
27
  resolveLocalWebGpu
28
- } from "./chunk-BBXZPDEA.js";
28
+ } from "./chunk-FFPKJU7T.js";
29
29
  import {
30
30
  c
31
31
  } from "./chunk-ZTZA4UWZ.js";
32
32
  import {
33
33
  assertWebGpuAdapterAvailable,
34
34
  compositionRequiresWebGpu
35
- } from "./chunk-HJINEUHY.js";
35
+ } from "./chunk-T3CBCGU4.js";
36
36
  import {
37
37
  normalizeErrorMessage
38
38
  } from "./chunk-T2EUWCJE.js";
@@ -140,7 +140,7 @@ async function waitForCompositionSettle(page, options) {
140
140
  console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
141
141
  });
142
142
  await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
143
- const { resolveConfig, waitForImagesReady } = await import("./src-OS2FRVZV.js");
143
+ const { resolveConfig, waitForImagesReady } = await import("./src-2YZVFDNC.js");
144
144
  const imageTimeoutMs = resolveConfig().playerReadyTimeout;
145
145
  await waitForImagesReady(
146
146
  page,
@@ -189,7 +189,7 @@ async function installPageFunctionGuard(page) {
189
189
  async function openSettledCompositionPage(html, url, options) {
190
190
  const viewport = resolveCompositionViewportFromHtml(html);
191
191
  const requiresWebGpu = compositionRequiresWebGpu(html);
192
- const answer = (await import("./staticProjectServer-YJWOQJF4.js")).inProcessAnswer(url);
192
+ const answer = (await import("./staticProjectServer-PHNKV2NL.js")).inProcessAnswer(url);
193
193
  const noListen = answer !== void 0;
194
194
  let chromeBrowser;
195
195
  try {
@@ -200,7 +200,7 @@ async function openSettledCompositionPage(html, url, options) {
200
200
  options.onBrowserReady?.();
201
201
  const page = await chromeBrowser.newPage();
202
202
  await installPageFunctionGuard(page);
203
- const { installMediaRenderIdBridge } = await import("./src-OS2FRVZV.js");
203
+ const { installMediaRenderIdBridge } = await import("./src-2YZVFDNC.js");
204
204
  await installMediaRenderIdBridge(page);
205
205
  await page.setViewport(viewport);
206
206
  if (answer) await answerPageInProcess(page, url, answer);
@@ -219,7 +219,7 @@ async function launchCompositionBrowser(html, noListen, options) {
219
219
  const { ensureBrowser, findSystemBrowser } = await import("./manager-COSJVRAE.js");
220
220
  const browser = await ensureBrowser({ signal: options.signal });
221
221
  const puppeteer = await import("puppeteer-core");
222
- const { buildChromeArgs } = await import("./src-OS2FRVZV.js");
222
+ const { buildChromeArgs } = await import("./src-2YZVFDNC.js");
223
223
  const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
224
224
  const requiresWebGpu = compositionRequiresWebGpu(html);
225
225
  let softwareWebGpu = false;
@@ -7,29 +7,29 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  RegistryCompatibilityError,
9
9
  gateRegistryItemsCompatibility
10
- } from "./chunk-3PYIQLPL.js";
10
+ } from "./chunk-MGSQPE6P.js";
11
11
  import {
12
12
  DEFAULT_PROJECT_CONFIG,
13
13
  createProjectConfig,
14
14
  loadProjectConfig,
15
15
  projectConfigPath,
16
16
  recordProjectRegistryItems
17
- } from "./chunk-RAACYYWX.js";
17
+ } from "./chunk-WNLHEUZU.js";
18
18
  import {
19
19
  resolveItemWithDependencies,
20
20
  resolveItemsByTag
21
- } from "./chunk-D6XDOYMB.js";
21
+ } from "./chunk-2R7QYR2D.js";
22
22
  import {
23
23
  InvalidVariableValuesError,
24
24
  prepareItem,
25
25
  publishItem
26
- } from "./chunk-W4SSWOOD.js";
26
+ } from "./chunk-PDDVEHWJ.js";
27
27
  import {
28
28
  DEFAULT_REGISTRY_URL
29
- } from "./chunk-HT33OHQL.js";
29
+ } from "./chunk-WY6X5Q33.js";
30
30
  import {
31
31
  trackRegistryItemAdded
32
- } from "./chunk-ZL6ZCLY6.js";
32
+ } from "./chunk-X56HO2IP.js";
33
33
  import {
34
34
  defineCommand
35
35
  } from "./chunk-S3S4TGEH.js";
@@ -41,7 +41,7 @@ import {
41
41
  } from "./chunk-ZTZA4UWZ.js";
42
42
  import {
43
43
  ITEM_TYPE_DIRS
44
- } from "./chunk-E74JMKSK.js";
44
+ } from "./chunk-IK4Q7EKF.js";
45
45
  import {
46
46
  isProjectRootMissing,
47
47
  realpath
@@ -57,6 +57,7 @@ import { resolve, relative } from "path";
57
57
  // src/utils/clipboard.ts
58
58
  import { spawnSync } from "child_process";
59
59
  import { platform } from "os";
60
+ var COPY_TIMEOUT_MS = 5e3;
60
61
  function detectProvider() {
61
62
  const os = platform();
62
63
  if (os === "darwin") {
@@ -86,7 +87,9 @@ function copyToClipboard(text) {
86
87
  try {
87
88
  const res = spawnSync(provider.cmd, provider.args, {
88
89
  input: text,
89
- encoding: "utf-8"
90
+ encoding: "utf-8",
91
+ stdio: ["pipe", "ignore", "ignore"],
92
+ timeout: COPY_TIMEOUT_MS
90
93
  });
91
94
  return res.status === 0;
92
95
  } catch {
@@ -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.8.195" : "0.0.0-dev";
10
- var PRODUCER_VERSION = true ? "0.8.195" : "0.0.0-dev";
9
+ var VERSION = true ? "0.8.197" : "0.0.0-dev";
10
+ var PRODUCER_VERSION = true ? "0.8.197" : "0.0.0-dev";
11
11
 
12
12
  export {
13
13
  VERSION,
@@ -20,7 +20,7 @@ import {
20
20
  typeDirPath,
21
21
  updateRecord,
22
22
  withFigmaErrors
23
- } from "./chunk-YUFECVHG.js";
23
+ } from "./chunk-5L6UY76S.js";
24
24
  import {
25
25
  defineCommand
26
26
  } from "./chunk-S3S4TGEH.js";
@@ -229,7 +229,7 @@ var asset_default = defineCommand({
229
229
  rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
230
230
  );
231
231
  }
232
- const { trackFigmaImport } = await import("./telemetry-VP4UWWO3.js");
232
+ const { trackFigmaImport } = await import("./telemetry-2R6G2A54.js");
233
233
  trackFigmaImport({
234
234
  phase: "asset",
235
235
  reused: results.every((r) => r.reused),
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  DISTRIBUTED_FPS,
12
12
  isDistributedFps
13
- } from "./chunk-E74JMKSK.js";
13
+ } from "./chunk-IK4Q7EKF.js";
14
14
  import {
15
15
  parseHTML
16
16
  } from "./chunk-SDYDNHEE.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  VALID_CANVAS_RESOLUTIONS,
9
9
  resolveResolutionFlagPair
10
- } from "./chunk-B7RJV74O.js";
10
+ } from "./chunk-XOTUPVIF.js";
11
11
 
12
12
  // src/utils/parseOutputResolution.ts
13
13
  function parseOutputResolutionFlag(raw, options) {
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveConfig,
9
9
  usesSoftwareWebGpu
10
- } from "./chunk-HJINEUHY.js";
10
+ } from "./chunk-T3CBCGU4.js";
11
11
 
12
12
  // src/browser/gpuPolicy.ts
13
13
  function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
17
17
  return "auto";
18
18
  }
19
19
  async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
20
- const { resolveBrowserGpuMode } = await import("./src-OS2FRVZV.js");
20
+ const { resolveBrowserGpuMode } = await import("./src-2YZVFDNC.js");
21
21
  return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
22
22
  }
23
23
  function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  FONT_ALIAS_MAP,
16
16
  resolveAliasDisplayName
17
- } from "./chunk-B7RJV74O.js";
17
+ } from "./chunk-XOTUPVIF.js";
18
18
  import {
19
19
  parseHTML
20
20
  } from "./chunk-SDYDNHEE.js";
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  trackLintReport,
9
9
  trackLintRuleStreak
10
- } from "./chunk-ZL6ZCLY6.js";
10
+ } from "./chunk-X56HO2IP.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-KJ6ZQL34.js";
13
+ } from "./chunk-3DEBV7RH.js";
14
14
  import {
15
15
  LINT_RULE_COUNT,
16
16
  LINT_RULE_GROUP_COUNTS
17
- } from "./chunk-2TU4OKIR.js";
17
+ } from "./chunk-YUODO5H2.js";
18
18
 
19
19
  // src/telemetry/lintStreaks.ts
20
20
  import { createHash } from "crypto";