hyperframes 0.9.16 → 0.9.18

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 (237) hide show
  1. package/README.md +3 -2
  2. package/dist/{add-GEGI5ERI.js → add-R3OQEWVP.js} +12 -12
  3. package/dist/{agentPromptGenerator-VV7UQDGL.js → agentPromptGenerator-53UGASPS.js} +6 -7
  4. package/dist/{animatedGifPrep-JTPCKJ44.js → animatedGifPrep-XTZ3NW4D.js} +6 -7
  5. package/dist/api.js +29 -30
  6. package/dist/{asset-ZTXZ6HGB.js → asset-7BXTM7P4.js} +2 -2
  7. package/dist/{assetCataloger-ATGUE5IY.js → assetCataloger-B6QCN7D4.js} +7 -8
  8. package/dist/{audio-5SBZBNSP.js → audio-6QT2263V.js} +16 -17
  9. package/dist/{auth-NDUIJ4HS.js → auth-JIVRJDOA.js} +2 -2
  10. package/dist/{autoUpdate-PZTBUAA5.js → autoUpdate-PL2F3J42.js} +2 -2
  11. package/dist/{avatars-YY7FU76E.js → avatars-3BH2GOU2.js} +10 -11
  12. package/dist/{backgroundChecks-6KERI5QL.js → backgroundChecks-MVBPFASG.js} +3 -3
  13. package/dist/backgroundChecksWorker.js +3 -3
  14. package/dist/{batchRender-L3IIY2FT.js → batchRender-MRZD6NEE.js} +3 -3
  15. package/dist/{beats-UBUJBSVD.js → beats-FSTI2GOV.js} +8 -9
  16. package/dist/{benchmark-YJ2U5KE3.js → benchmark-7RQP4OKL.js} +8 -8
  17. package/dist/{billing-YN35KTEH.js → billing-ERTIEJRM.js} +11 -11
  18. package/dist/{browser-NRDSXRX7.js → browser-SHRES7YO.js} +3 -3
  19. package/dist/{bundleWithLocalizedFonts-5T25BRZU.js → bundleWithLocalizedFonts-FBN6DQG7.js} +1 -1
  20. package/dist/{capture-7K7VWXBQ.js → capture-FI236QMK.js} +13 -14
  21. package/dist/{capture-MP46JHB7.js → capture-JGEPACNE.js} +3 -3
  22. package/dist/{captureCompositionFrame-4VZCJGGD.js → captureCompositionFrame-G35BXLQV.js} +12 -13
  23. package/dist/{catalog-32CQF7IT.js → catalog-TASPLI6U.js} +12 -12
  24. package/dist/{catch-up-IVBUCPZM.js → catch-up-HGAVR2VQ.js} +4 -4
  25. package/dist/{check-U5PPKHG5.js → check-LOIL7QDO.js} +40 -41
  26. package/dist/{checkAudio-ZCRRON4E.js → checkAudio-GLG3SWWQ.js} +9 -10
  27. package/dist/{checkBrowser-MS5NKDXR.js → checkBrowser-YQETGZSL.js} +32 -33
  28. package/dist/{chunk-G4OGVFUJ.js → chunk-35STY5XW.js} +1 -1
  29. package/dist/{chunk-4FHTWYDZ.js → chunk-3ACGV3PF.js} +1 -1
  30. package/dist/{chunk-AD2T3VAJ.js → chunk-3OS2U5V2.js} +2 -2
  31. package/dist/{chunk-SE4WJJ43.js → chunk-4JI4P3J6.js} +1 -1
  32. package/dist/{chunk-5L2CII4L.js → chunk-4M42XMWZ.js} +1 -1
  33. package/dist/{chunk-S7UUJ77M.js → chunk-4WV3XDN4.js} +1 -1
  34. package/dist/{chunk-B2W2CPXF.js → chunk-53YFWZOA.js} +1 -1
  35. package/dist/{chunk-IR3JMMFT.js → chunk-56XJDA3H.js} +33 -2
  36. package/dist/{chunk-SREJU7NR.js → chunk-5IUSAGDH.js} +1 -1
  37. package/dist/{chunk-A4OX3TI6.js → chunk-5O4RH4G3.js} +1 -1
  38. package/dist/{chunk-YQ4LB3XC.js → chunk-6AFDBTX6.js} +1 -1
  39. package/dist/{chunk-TEEPLD64.js → chunk-6GJ7QJL7.js} +17 -8
  40. package/dist/{chunk-JCIPZMKD.js → chunk-6LMZ677L.js} +3 -3
  41. package/dist/{chunk-JWCMOC7O.js → chunk-6OBCXHIF.js} +1 -1
  42. package/dist/{chunk-BB5CZTGW.js → chunk-75AH7UVP.js} +1 -1
  43. package/dist/{chunk-U7MRV4RM.js → chunk-7NRTBDXX.js} +7 -7
  44. package/dist/{chunk-UXS7VE75.js → chunk-7PZLR2JZ.js} +1 -1
  45. package/dist/{chunk-J2I2LTJM.js → chunk-7WEOM6IL.js} +1 -1
  46. package/dist/{chunk-U7LBN2BQ.js → chunk-A64V7MWG.js} +7 -7
  47. package/dist/{chunk-S6AMEEGZ.js → chunk-AAEPGDLX.js} +3 -3
  48. package/dist/{chunk-TTEOPEJJ.js → chunk-AAQ32CJQ.js} +2 -2
  49. package/dist/{chunk-ZLWRAHBZ.js → chunk-AXCL2A3T.js} +10 -10
  50. package/dist/{chunk-344RFO72.js → chunk-C6GJQWRL.js} +32 -33
  51. package/dist/{chunk-VPBE4USM.js → chunk-CNCKUJSI.js} +38 -25
  52. package/dist/{chunk-Q5M3JAME.js → chunk-CQ7H3AHT.js} +13 -13
  53. package/dist/{chunk-PNZD5LZL.js → chunk-DGDTF64K.js} +47 -17
  54. package/dist/{chunk-ALQAHCK5.js → chunk-DNECYN6I.js} +1 -1
  55. package/dist/{chunk-G54QPS3F.js → chunk-DQ64M2ZV.js} +4 -4
  56. package/dist/chunk-DSSDDLGX.js +5035 -0
  57. package/dist/{chunk-R5LSL2C7.js → chunk-DUIVM4DL.js} +1 -1
  58. package/dist/{chunk-ZEOPRYFK.js → chunk-DXOAVIPV.js} +2 -2
  59. package/dist/{chunk-K2JGJUMR.js → chunk-EOIDKM7D.js} +3 -3
  60. package/dist/{chunk-LHRQP7TF.js → chunk-FDYNOOQZ.js} +5 -5
  61. package/dist/{chunk-NNXS4VBX.js → chunk-FSHSG2G5.js} +1 -1
  62. package/dist/{chunk-XS27ELRN.js → chunk-FUQPQDBA.js} +2 -2
  63. package/dist/{chunk-JPODNK2G.js → chunk-GBRXAHOL.js} +2 -2
  64. package/dist/{chunk-TNTQ7H24.js → chunk-GDQQ4U3L.js} +75 -9
  65. package/dist/{chunk-N32TVQYQ.js → chunk-GOLNW4NI.js} +2 -2
  66. package/dist/{chunk-GGSTJZQL.js → chunk-H3YLGOKX.js} +1 -1
  67. package/dist/{chunk-ZUZPIM6R.js → chunk-HEZYZUF5.js} +1 -1
  68. package/dist/{chunk-QXGT6KRX.js → chunk-HVACLBWZ.js} +25 -11
  69. package/dist/{chunk-IX5QY54Q.js → chunk-IJOCZ7ND.js} +2 -2
  70. package/dist/{chunk-L4ZMCB52.js → chunk-JALAIYCE.js} +9 -9
  71. package/dist/{chunk-YKAK4ALT.js → chunk-JQTQM6RE.js} +2 -2
  72. package/dist/{chunk-AKE744C5.js → chunk-JWORQ5WQ.js} +5 -1
  73. package/dist/{chunk-DM7WRHB5.js → chunk-K2KFYRVX.js} +1 -1
  74. package/dist/{chunk-W2BP25U5.js → chunk-K336C37N.js} +1 -1
  75. package/dist/{chunk-OIJHKOV2.js → chunk-KAUUM3TL.js} +2 -2
  76. package/dist/{chunk-PLVIN7X6.js → chunk-KWF5BWC7.js} +1 -1
  77. package/dist/{chunk-6H5KN7CJ.js → chunk-LFQLYI7R.js} +5 -5
  78. package/dist/{chunk-PWOMLJFV.js → chunk-LKT5BLRG.js} +2 -2
  79. package/dist/{chunk-XDT2DMH6.js → chunk-LPDYBJ2K.js} +2 -2
  80. package/dist/{chunk-UGYQBRHG.js → chunk-LPIHSJAU.js} +3 -3
  81. package/dist/{chunk-TABWG4IT.js → chunk-M7VAMZQW.js} +18 -11
  82. package/dist/{chunk-75PTCQAO.js → chunk-MBHKOK7C.js} +1 -1
  83. package/dist/{chunk-DV7RLE6B.js → chunk-MBZ56OAU.js} +2 -2
  84. package/dist/{chunk-M2Y245ET.js → chunk-MHSQBZQJ.js} +6 -3
  85. package/dist/{chunk-BSPE37DP.js → chunk-MQ3LHGNO.js} +2 -2
  86. package/dist/{chunk-YNAKUHSJ.js → chunk-N5U63MJG.js} +4 -4
  87. package/dist/{chunk-UK5DBUJX.js → chunk-NC7I6JJZ.js} +6 -6
  88. package/dist/{chunk-JFUXZERX.js → chunk-NTMMUK6Q.js} +113 -67
  89. package/dist/{chunk-KWORPYKW.js → chunk-NYN24QRB.js} +1 -1
  90. package/dist/chunk-ORM4MISE.js +59 -0
  91. package/dist/{chunk-OK3IQC32.js → chunk-P6QX426Y.js} +1 -1
  92. package/dist/{chunk-LOKTVSTM.js → chunk-PBKY4VTZ.js} +1 -1
  93. package/dist/{chunk-PC662ORN.js → chunk-PIPBEVLP.js} +2 -1
  94. package/dist/{chunk-5IVECOVN.js → chunk-PKUGO6D3.js} +1 -1
  95. package/dist/{chunk-4ECLIUTB.js → chunk-PPCD5YIU.js} +2 -2
  96. package/dist/{chunk-6M3TQUDF.js → chunk-PPWKGSEV.js} +2 -2
  97. package/dist/{chunk-L6X4ONBM.js → chunk-PX7EV4SO.js} +7 -7
  98. package/dist/{chunk-YFHOTWWE.js → chunk-QBV3XGXU.js} +1 -1
  99. package/dist/{chunk-SOQNCHO5.js → chunk-QT2SLY7N.js} +885 -516
  100. package/dist/{chunk-PWTWZF3F.js → chunk-QVPHMXKR.js} +1 -1
  101. package/dist/{chunk-HK4AN44J.js → chunk-QVR75TAB.js} +2 -2
  102. package/dist/{chunk-WWEFNXQI.js → chunk-T3K56YF2.js} +2 -2
  103. package/dist/{chunk-O2B3YNUH.js → chunk-T6CCPIDG.js} +3 -3
  104. package/dist/{chunk-HNZ2FZIB.js → chunk-TTCNUS5M.js} +3 -3
  105. package/dist/{chunk-6H5NILM5.js → chunk-UJOQZRIS.js} +1 -1
  106. package/dist/{chunk-65XOIIBM.js → chunk-UUZL4X3G.js} +1 -1
  107. package/dist/{chunk-AGQNRDYJ.js → chunk-VDQPHJVR.js} +1 -1
  108. package/dist/{chunk-PGM5YXBA.js → chunk-W3O7S7FC.js} +1 -1
  109. package/dist/{chunk-QCHPM3C2.js → chunk-WJBP3LIO.js} +1 -1
  110. package/dist/{chunk-LIUJRACZ.js → chunk-WPID5YHT.js} +15 -5
  111. package/dist/{chunk-ZAD422DC.js → chunk-WTOPHBYH.js} +4 -4
  112. package/dist/{chunk-BJAESOYP.js → chunk-X2TDLUIK.js} +4 -12
  113. package/dist/{chunk-72PVZ2A4.js → chunk-XJZR7MXG.js} +5 -5
  114. package/dist/{chunk-P2AOKCAC.js → chunk-Y3P26O7I.js} +3 -3
  115. package/dist/{chunk-SPJX4LQR.js → chunk-YJNI2NM7.js} +10 -10
  116. package/dist/{chunk-ZO5QD2FA.js → chunk-ZHP26FJS.js} +2 -2
  117. package/dist/{chunk-NPDBBMXX.js → chunk-ZII5GCHN.js} +1 -1
  118. package/dist/{clean-5K2KTH5M.js → clean-J6NG7RNU.js} +16 -17
  119. package/dist/cli.js +76 -68
  120. package/dist/{cloud-7O2Q7IHJ.js → cloud-LETWSUJR.js} +4 -4
  121. package/dist/{cloudrun-3HRDMWIS.js → cloudrun-RERXEEVM.js} +4 -4
  122. package/dist/commands/contrast-audit.browser.js +50 -14
  123. package/dist/commands/motion-signature.browser.js +8 -1
  124. package/dist/{compare-D22HJO5V.js → compare-ARPUHHYW.js} +29 -30
  125. package/dist/{compiler-RY6IVESI.js → compiler-DGB2I53W.js} +3 -4
  126. package/dist/{component-B7V7A5AP.js → component-2USQBQOH.js} +3 -3
  127. package/dist/{compositions-HFBRVNYW.js → compositions-X4GSF4RG.js} +11 -13
  128. package/dist/{curve-7PLN35CZ.js → curve-4OYTBAKF.js} +10 -11
  129. package/dist/{cuts-ZG7TBYVD.js → cuts-7MWGKKPB.js} +11 -12
  130. package/dist/{delete-YL4IMJJZ.js → delete-IY5EUCTR.js} +3 -3
  131. package/dist/{deploy-A6CDKFQZ.js → deploy-PEN3EL7H.js} +1 -1
  132. package/dist/{describeProject-VZCHDSWT.js → describeProject-STLWIUTD.js} +7 -8
  133. package/dist/{diff-PBVZRS5Z.js → diff-7T6PMH3C.js} +29 -30
  134. package/dist/{dist-BU547SVG.js → dist-7W5T76QK.js} +12 -2
  135. package/dist/{dist-HRK4GWLN.js → dist-K4BOTYAM.js} +9 -10
  136. package/dist/{dist-FPRADDH6.js → dist-URQMS2HM.js} +5 -4
  137. package/dist/{doctor-IFTYCM3E.js → doctor-65DXV54T.js} +10 -11
  138. package/dist/{energy-ENGAT6Z5.js → energy-BJVPUQDC.js} +11 -12
  139. package/dist/{events-AZ5XEDBE.js → events-FVEDX5PT.js} +13 -14
  140. package/dist/{events-CMAXQTDX.js → events-KLSIFOUP.js} +3 -3
  141. package/dist/{events-A6SBEKVH.js → events-MMV4IZQE.js} +2 -2
  142. package/dist/{extract-IE74J44O.js → extract-ZDOKCY4G.js} +11 -12
  143. package/dist/{face-JAPTS7VJ.js → face-SP6O3QUI.js} +11 -12
  144. package/dist/{feedback-QCFWXJCD.js → feedback-CCNOYJZG.js} +10 -7
  145. package/dist/{ffmpeg-4YMUUJP7.js → ffmpeg-2V25MA6C.js} +6 -7
  146. package/dist/{figma-C36IECKZ.js → figma-C7GSU5XD.js} +3 -3
  147. package/dist/fontLocalizeCli.js +9 -10
  148. package/dist/{frames-ZW26G4UP.js → frames-GW7MG4PX.js} +12 -13
  149. package/dist/{generate-ZXR73M22.js → generate-TBA3D3BT.js} +21 -22
  150. package/dist/{get-3KICFW3X.js → get-EUPFU4PY.js} +3 -3
  151. package/dist/{gpuPolicy-SBYZLOAU.js → gpuPolicy-7WYJ73JK.js} +6 -7
  152. package/dist/{grade-compare-DCL3OPKF.js → grade-compare-V62HD24E.js} +30 -31
  153. package/dist/{heifImagePrep-YQWEIVTC.js → heifImagePrep-K2VOQAMS.js} +7 -8
  154. package/dist/{help-PUL7OS7X.js → help-WIRMKAY5.js} +1 -1
  155. package/dist/{history-GPBKC5DE.js → history-3JEFAPPA.js} +6 -6
  156. package/dist/hyperframe.manifest.json +1 -1
  157. package/dist/hyperframe.runtime.iife.js +62 -62
  158. package/dist/hyperframes-player.global.js +3 -3
  159. package/dist/{info-7I6ZVJ64.js → info-XD7XL4UA.js} +39 -11
  160. package/dist/{init-5MCEGVHR.js → init-OCITZW56.js} +27 -28
  161. package/dist/{ink-NLYWOBTK.js → ink-RIBPCBLJ.js} +11 -12
  162. package/dist/{inspect-52COR3TB.js → inspect-O3KNTVYU.js} +30 -31
  163. package/dist/{installer-ARMP4WLF.js → installer-JC737YVC.js} +4 -4
  164. package/dist/{keyframes-3UMSTEYW.js → keyframes-4YEMPCE3.js} +6 -6
  165. package/dist/{lambda-FYHLXH4H.js → lambda-6RI6AZCI.js} +10 -11
  166. package/dist/{layout-QKWAPDPV.js → layout-U323JUYY.js} +30 -31
  167. package/dist/{lint-WJCUB2CR.js → lint-HL2ZMYYD.js} +7 -8
  168. package/dist/{lintProject-FPLCK7VP.js → lintProject-6TML32JZ.js} +1 -2
  169. package/dist/{list-4FQ4BDXW.js → list-YVRLEZ5C.js} +3 -3
  170. package/dist/{localPage-YINL6OV7.js → localPage-Z4A2OOHF.js} +6 -7
  171. package/dist/{login-P74VBTVA.js → login-Z53XVXB2.js} +4 -4
  172. package/dist/{look-QCOMYMSD.js → look-QAEW6NLB.js} +11 -12
  173. package/dist/{manager-V2ZJSF3Q.js → manager-Y5JESME2.js} +7 -8
  174. package/dist/{measure-7IODZ7VY.js → measure-QAPM6I7P.js} +11 -11
  175. package/dist/{media-treatment-UJIFSAXV.js → media-treatment-QBSD7Z4H.js} +12 -13
  176. package/dist/{media-use-4Y5XRY6B.js → media-use-HWZY3QEN.js} +3 -3
  177. package/dist/{models-WPBGJ7K6.js → models-MKZN7KP3.js} +10 -11
  178. package/dist/{motionShot-DZZXLIIT.js → motionShot-EF2FD7HF.js} +15 -16
  179. package/dist/{normalize-audio-QS2GZ5IT.js → normalize-audio-UI7VGKNU.js} +31 -12
  180. package/dist/{open-SIWIC52J.js → open-PUWUKUNK.js} +12 -12
  181. package/dist/{parakeetRunner-YUUCCA3S.js → parakeetRunner-3XQTNEZS.js} +11 -12
  182. package/dist/{pipeline-AJKIZGUM.js → pipeline-UECOYEZ2.js} +9 -10
  183. package/dist/{play-4EF3JLTU.js → play-4KFBSJLJ.js} +20 -21
  184. package/dist/{preflight-LSDOTWZ5.js → preflight-NREEVZKH.js} +7 -8
  185. package/dist/{present-AOLHT3YC.js → present-5GDW3P4H.js} +15 -16
  186. package/dist/{preview-WP5VAX3M.js → preview-MU3SNNHO.js} +19 -20
  187. package/dist/{probe-WZ3OWMKG.js → probe-ZZ5F7LF4.js} +11 -12
  188. package/dist/{producer-C72VSLBR.js → producer-AMLHR4XV.js} +1 -1
  189. package/dist/{projectConfig-LPC7WK4W.js → projectConfig-LQDSRYHS.js} +7 -7
  190. package/dist/{publication-QGBUXKB2.js → publication-VFQY5MS4.js} +2 -2
  191. package/dist/{publish-KA2LPVL7.js → publish-KFUMQFD4.js} +11 -12
  192. package/dist/{remove-background-MC6HXEAW.js → remove-background-GXQLMKYN.js} +10 -11
  193. package/dist/{render-RPMLSL7M.js → render-5YMMU4K3.js} +5 -5
  194. package/dist/{render-IQUQ7EKS.js → render-U63G4NFP.js} +25 -26
  195. package/dist/{render-2STR3XR5.js → render-X2TJ52JS.js} +32 -33
  196. package/dist/{render-batch-2AWWGFNK.js → render-batch-EJCIXNZ4.js} +5 -5
  197. package/dist/renderSetupWorker.js +5 -3
  198. package/dist/{resolver-D3Q6LTIO.js → resolver-3AZ6BDNT.js} +5 -5
  199. package/dist/{reverse-62TKSQ7Q.js → reverse-SGQLQDPZ.js} +1 -1
  200. package/dist/{run-GQNVIYMD.js → run-WZP6HXIH.js} +2 -2
  201. package/dist/{screenshotCapture-MM5V4H7M.js → screenshotCapture-YHT6OFSL.js} +7 -8
  202. package/dist/{sherpa-ZHAABYE3.js → sherpa-DHJ4KV3O.js} +10 -11
  203. package/dist/skills/hyperframes-cli/SKILL.md +3 -1
  204. package/dist/{skills-BYABSOL3.js → skills-PSIYCWQF.js} +6 -6
  205. package/dist/{skillsUpdateCheck-FKOS3ME7.js → skillsUpdateCheck-INFQ6JY4.js} +3 -3
  206. package/dist/{snapshot-N5O5VEBT.js → snapshot-BRJWWBVL.js} +70 -54
  207. package/dist/{src-272JLFKW.js → src-4HGQRHW6.js} +5 -6
  208. package/dist/{src-O6ITP7WU.js → src-Q4HPEI72.js} +8 -9
  209. package/dist/{start-K2LGEUB5.js → start-BF77FALB.js} +19 -20
  210. package/dist/{staticProjectServer-C7A4W2B4.js → staticProjectServer-MJGRVAHU.js} +18 -19
  211. package/dist/{status-USHH6OD5.js → status-GKDPASRO.js} +11 -11
  212. package/dist/studio/assets/{hyperframes-player-Bb-Fbf5k.js → hyperframes-player-pLs7eSzg.js} +1 -1
  213. package/dist/studio/assets/{index-Cap2SGKw.js → index-DZ7OLB7p.js} +1 -1
  214. package/dist/studio/assets/{index-BZuKog_A.js → index-D_iVCwL3.js} +116 -116
  215. package/dist/studio/index.html +1 -1
  216. package/dist/{studio-api-FVBB2MVZ.js → studio-api-UOW3KWGH.js} +9 -10
  217. package/dist/{studioServer-SFN7YUNV.js → studioServer-6HZXHHM2.js} +50 -51
  218. package/dist/{sync-JUDSPP46.js → sync-STGNZI3G.js} +11 -12
  219. package/dist/{telemetry-3DEZK5Q3.js → telemetry-3CL4XRJJ.js} +3 -3
  220. package/dist/{templates-3FJRJ6KB.js → templates-GK4UAT6M.js} +11 -11
  221. package/dist/{timeline-P4CS4INR.js → timeline-QPB6QGXD.js} +19 -20
  222. package/dist/{tokens-EFAVVV56.js → tokens-S7IZD453.js} +2 -2
  223. package/dist/{transcribe-JKV42B3Q.js → transcribe-LPYK5H76.js} +23 -24
  224. package/dist/{transcribe-YTBSMCFG.js → transcribe-TL74MCTG.js} +9 -10
  225. package/dist/{update-6QVOSVBW.js → update-WXPQPKMO.js} +7 -7
  226. package/dist/{updateCheck-2FWJ2X62.js → updateCheck-QRNGICLU.js} +2 -2
  227. package/dist/{upgrade-AUHNDKNP.js → upgrade-NH3NQOMG.js} +3 -3
  228. package/dist/{upload-HMRWGZIO.js → upload-YQMBLKH5.js} +3 -1
  229. package/dist/{urlDownloader-6ZSSYTOY.js → urlDownloader-JELHNEVH.js} +5 -6
  230. package/dist/{validate-DKEWYJ3V.js → validate-SRIEIBQV.js} +23 -24
  231. package/dist/{video-N6AEYBUW.js → video-ZMNAGSOC.js} +7 -8
  232. package/dist/{voices-MT7CM6O5.js → voices-YVWEHLRS.js} +19 -20
  233. package/dist/warmCheck.js +40 -41
  234. package/package.json +1 -1
  235. package/dist/chunk-CAD6G75K.js +0 -29
  236. package/dist/chunk-CZGHFATT.js +0 -31
  237. package/dist/chunk-J3G5KEPY.js +0 -5035
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  probeAudioTrack
9
- } from "./chunk-LIUJRACZ.js";
9
+ } from "./chunk-WPID5YHT.js";
10
10
  import {
11
11
  resolveWithinProject
12
12
  } from "./chunk-ALVXFXUG.js";
@@ -14,7 +14,7 @@ import {
14
14
  MAX_AUDIO_GAIN_DB,
15
15
  formatAudioGain,
16
16
  isAudibleVideoElement
17
- } from "./chunk-J3G5KEPY.js";
17
+ } from "./chunk-DSSDDLGX.js";
18
18
  import {
19
19
  findFfBinary
20
20
  } from "./chunk-HYRPH6LL.js";
@@ -27,7 +27,7 @@ import {
27
27
  decodeAuthoredAttribute
28
28
  } from "./chunk-CUCP7FKH.js";
29
29
 
30
- // ../studio-server/dist/chunk-H4NVSSDJ.js
30
+ // ../studio-server/dist/chunk-NEGQQZNI.js
31
31
  import { execFile } from "child_process";
32
32
  import { isAbsolute, relative, resolve } from "path";
33
33
  import { promisify } from "util";
@@ -288,30 +288,24 @@ function audioNormalizationPlan(referenceTrack, targetTrack) {
288
288
  }
289
289
  const referenceLufs = referenceTrack.integratedLufs + gainDb(referenceTrack.volume);
290
290
  const targetLufs = targetTrack.integratedLufs + gainDb(targetTrack.volume);
291
- const wantedGainDb = referenceLufs - targetTrack.integratedLufs;
292
- if (wantedGainDb > MAX_AUDIO_GAIN_DB + 1e-9) {
293
- throw new Error(
294
- `Matching #${targetTrack.id} needs ${wantedGainDb.toFixed(1)} dB, beyond the +${MAX_AUDIO_GAIN_DB} dB authoring ceiling. A gap this large belongs in the source file, not the mixer: mixer gain raises the noise floor with the signal. Normalize ${targetTrack.id}'s asset offline (e.g. ffmpeg loudnorm), or lower #${referenceTrack.id} instead.`
295
- );
296
- }
297
- const volume = 10 ** (wantedGainDb / 20);
298
- const projectedTruePeakDbfs = targetTrack.truePeakDbfs + wantedGainDb;
299
- if (projectedTruePeakDbfs > 0) {
300
- throw new Error(
301
- `Matching #${targetTrack.id} would clip at +${projectedTruePeakDbfs.toFixed(1)} dBFS; limit or preprocess the source first`
302
- );
303
- }
291
+ const previousGainDb = gainDb(targetTrack.volume);
292
+ const { appliedGainDb, limitedBy } = fittedGain(
293
+ referenceLufs - targetTrack.integratedLufs,
294
+ targetTrack.truePeakDbfs,
295
+ previousGainDb
296
+ );
304
297
  return {
305
298
  referenceId: referenceTrack.id,
306
299
  targetId: targetTrack.id,
307
300
  referenceLufs,
308
301
  targetLufs,
309
302
  previousVolume: targetTrack.volume,
310
- volume,
311
- gainDb: wantedGainDb,
312
- changeDb: wantedGainDb - gainDb(targetTrack.volume),
313
- projectedLufs: targetTrack.integratedLufs + wantedGainDb,
314
- projectedTruePeakDbfs
303
+ volume: 10 ** (appliedGainDb / 20),
304
+ gainDb: appliedGainDb,
305
+ changeDb: appliedGainDb - previousGainDb,
306
+ projectedLufs: targetTrack.integratedLufs + appliedGainDb,
307
+ projectedTruePeakDbfs: targetTrack.truePeakDbfs + appliedGainDb,
308
+ limitedBy
315
309
  };
316
310
  }
317
311
  function updateAudioVolume(html, id, volume) {
@@ -374,19 +368,12 @@ function absoluteLoudnessPlan(track, targetLufs = DEFAULT_TARGET_LUFS) {
374
368
  if (track.integratedLufs <= SILENCE_LUFS) {
375
369
  throw new Error(`#${track.id} is silent in the played window; there is nothing to normalize`);
376
370
  }
377
- const wantedGainDb = targetLufs - track.integratedLufs;
378
- const peakRoomDb = NORMALIZE_TRUE_PEAK_CEILING_DBFS - track.truePeakDbfs;
379
- const limits = [
380
- [null, wantedGainDb],
381
- ["gain-ceiling", MAX_AUDIO_GAIN_DB],
382
- ["true-peak", peakRoomDb]
383
- ];
384
- const [limitedBy, limitedGainDb] = limits.reduce(
385
- (lowest, candidate) => candidate[1] < lowest[1] - 1e-9 ? candidate : lowest
386
- );
387
371
  const previousGainDb = track.volume > 0 ? gainDb(track.volume) : 0;
388
- const limitCannotCutAWantedBoost = wantedGainDb > previousGainDb;
389
- const appliedGainDb = limitCannotCutAWantedBoost ? Math.max(limitedGainDb, previousGainDb) : limitedGainDb;
372
+ const { appliedGainDb, limitedBy } = fittedGain(
373
+ targetLufs - track.integratedLufs,
374
+ track.truePeakDbfs,
375
+ previousGainDb
376
+ );
390
377
  return {
391
378
  targetId: track.id,
392
379
  targetLufs,
@@ -400,6 +387,18 @@ function absoluteLoudnessPlan(track, targetLufs = DEFAULT_TARGET_LUFS) {
400
387
  limitedBy
401
388
  };
402
389
  }
390
+ function fittedGain(wantedGainDb, truePeakDbfs, previousGainDb) {
391
+ const limits = [
392
+ [null, wantedGainDb],
393
+ ["gain-ceiling", MAX_AUDIO_GAIN_DB],
394
+ ["true-peak", NORMALIZE_TRUE_PEAK_CEILING_DBFS - truePeakDbfs]
395
+ ];
396
+ const [limitedBy, limitedGainDb] = limits.reduce(
397
+ (lowest, candidate) => candidate[1] < lowest[1] - 1e-9 ? candidate : lowest
398
+ );
399
+ const appliedGainDb = wantedGainDb > previousGainDb ? Math.max(limitedGainDb, previousGainDb) : limitedGainDb;
400
+ return { appliedGainDb, limitedBy };
401
+ }
403
402
  function absoluteOutcome(plan, tolerance) {
404
403
  if (Math.abs(plan.changeDb) > tolerance) return "change";
405
404
  return Math.abs(plan.projectedLufs - plan.targetLufs) <= tolerance ? "matched" : "held";
@@ -7,8 +7,9 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parseTimeoutMs,
9
9
  pngDimensions
10
- } from "./chunk-HNZ2FZIB.js";
10
+ } from "./chunk-TTCNUS5M.js";
11
11
  import {
12
+ CheckBudgetError,
12
13
  CheckCopiesUnfinishedError,
13
14
  CheckDeadline,
14
15
  CheckDeadlineError,
@@ -19,20 +20,20 @@ import {
19
20
  idleWindow,
20
21
  preResolveHostileMediaProxies,
21
22
  rectToBbox
22
- } from "./chunk-PNZD5LZL.js";
23
+ } from "./chunk-DGDTF64K.js";
23
24
  import {
24
25
  collectProjectMedia,
25
26
  mediaPath
26
- } from "./chunk-CAD6G75K.js";
27
+ } from "./chunk-ORM4MISE.js";
27
28
  import {
28
29
  captureArtifactRevision,
29
30
  readToolContext,
30
31
  reportArtifacts,
31
32
  withProjectLock
32
- } from "./chunk-A4OX3TI6.js";
33
+ } from "./chunk-5O4RH4G3.js";
33
34
  import {
34
35
  trackLintRun
35
- } from "./chunk-S6AMEEGZ.js";
36
+ } from "./chunk-AAEPGDLX.js";
36
37
  import {
37
38
  CONTENT_OVERLAP_HELD_ERROR_MS,
38
39
  DEFAULT_MAX_STATIC_SEC,
@@ -53,7 +54,7 @@ import {
53
54
  mergeSampleTimes,
54
55
  parseAt,
55
56
  readMotionSpec
56
- } from "./chunk-SPJX4LQR.js";
57
+ } from "./chunk-YJNI2NM7.js";
57
58
  import {
58
59
  findingAtRoot,
59
60
  findingElementKey,
@@ -62,7 +63,7 @@ import {
62
63
  } from "./chunk-TQBQYO4L.js";
63
64
  import {
64
65
  resolveProject
65
- } from "./chunk-OK3IQC32.js";
66
+ } from "./chunk-P6QX426Y.js";
66
67
  import {
67
68
  recordArtifacts
68
69
  } from "./chunk-US2SO6O4.js";
@@ -70,17 +71,17 @@ import {
70
71
  BrowserCleanupError,
71
72
  onStopSignal,
72
73
  registerBrowserSessionCleanup
73
- } from "./chunk-4ECLIUTB.js";
74
+ } from "./chunk-PPCD5YIU.js";
74
75
  import {
75
76
  resolveLocalBrowserGpuMode
76
- } from "./chunk-XDT2DMH6.js";
77
+ } from "./chunk-LPDYBJ2K.js";
77
78
  import {
78
79
  trackCheckReport,
79
80
  trackCommandFailure
80
- } from "./chunk-YFHOTWWE.js";
81
+ } from "./chunk-QBV3XGXU.js";
81
82
  import {
82
83
  swallowedFlagUsageError
83
- } from "./chunk-UXS7VE75.js";
84
+ } from "./chunk-7PZLR2JZ.js";
84
85
  import {
85
86
  defineCommand
86
87
  } from "./chunk-DL4OD7IA.js";
@@ -98,13 +99,13 @@ import {
98
99
  extractMediaMetadata,
99
100
  findHdrAutoPromotion,
100
101
  gradingKeepsSdr
101
- } from "./chunk-QXGT6KRX.js";
102
+ } from "./chunk-HVACLBWZ.js";
102
103
  import {
103
104
  lintProject
104
- } from "./chunk-JFUXZERX.js";
105
+ } from "./chunk-NTMMUK6Q.js";
105
106
  import {
106
107
  withMeta
107
- } from "./chunk-YQ4LB3XC.js";
108
+ } from "./chunk-6AFDBTX6.js";
108
109
  import {
109
110
  recordLastCheck
110
111
  } from "./chunk-CMQZP52Y.js";
@@ -1782,7 +1783,7 @@ async function runCheckPipeline(project, options, dependencies = DEFAULT_DEPENDE
1782
1783
  relative(project.dir, motion.path) || "index.motion.json"
1783
1784
  )
1784
1785
  ] : [];
1785
- const deadline = new CheckDeadline(idleWindow(options.timeout));
1786
+ const deadline = new CheckDeadline(idleWindow(options.timeout), options.budget);
1786
1787
  const forgetStop = onStopSignal(deadline.stop);
1787
1788
  let outcome;
1788
1789
  try {
@@ -1864,7 +1865,7 @@ async function writeContrastSnapshots(dependencies, projectDir, browser) {
1864
1865
  }
1865
1866
  async function withFindingCrops(dependencies, project, options, report, deadline) {
1866
1867
  const cropRequests = selectFindingCropRequests(report);
1867
- if (cropRequests.length === 0) return report;
1868
+ if (cropRequests.length === 0 || deadline.signal.aborted) return report;
1868
1869
  try {
1869
1870
  deadline.enter("crops");
1870
1871
  const findingFiles = await deadline.run(
@@ -1872,7 +1873,7 @@ async function withFindingCrops(dependencies, project, options, report, deadline
1872
1873
  );
1873
1874
  return { ...report, snapshots: { ...report.snapshots, findingFiles } };
1874
1875
  } catch (error) {
1875
- if (error instanceof CheckDeadlineError) {
1876
+ if (isCheckExpiry(error)) {
1876
1877
  const finding = runtimeFailure(error);
1877
1878
  return { ...report, ok: false, runtime: section([...report.runtime.findings, finding]) };
1878
1879
  }
@@ -1897,7 +1898,7 @@ async function withOptionalFindingFrames(dependencies, project, options, report,
1897
1898
  const captured = await deadline.run(() => capture(project, options, requests, deadline));
1898
1899
  return withFindingFrameFields(report, plan, captured);
1899
1900
  } catch (error) {
1900
- if (error instanceof CheckDeadlineError || error instanceof CheckStoppedError) {
1901
+ if (isCheckExpiry(error)) {
1901
1902
  const finding = runtimeFailure(error);
1902
1903
  return { ...report, ok: false, runtime: section([...report.runtime.findings, finding]) };
1903
1904
  }
@@ -1906,6 +1907,7 @@ async function withOptionalFindingFrames(dependencies, project, options, report,
1906
1907
  return report;
1907
1908
  }
1908
1909
  }
1910
+ var isCheckExpiry = (error) => error instanceof CheckDeadlineError || error instanceof CheckStoppedError || error instanceof CheckBudgetError;
1909
1911
  var MAX_FINDING_CROPS = 12;
1910
1912
  function selectFindingCropRequests(report) {
1911
1913
  const candidates = [
@@ -2204,7 +2206,7 @@ function emptyBrowserResult() {
2204
2206
  }
2205
2207
  function runtimeFailure(error, code) {
2206
2208
  return findingAtRoot(
2207
- code ?? (error instanceof CheckCopiesUnfinishedError ? "media_copies_unfinished" : "check_runtime_failure"),
2209
+ code ?? (error instanceof CheckCopiesUnfinishedError ? "media_copies_unfinished" : error instanceof CheckBudgetError ? "check_budget_reached" : "check_runtime_failure"),
2208
2210
  "error",
2209
2211
  normalizeErrorMessage(error),
2210
2212
  error instanceof CheckDeadlineError ? error.sourceFile ?? "index.html" : "index.html"
@@ -2235,7 +2237,7 @@ function resolveMotionSpec(projectDir) {
2235
2237
  };
2236
2238
  }
2237
2239
  async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
2238
- const module = await import("./checkBrowser-MS5NKDXR.js");
2240
+ const module = await import("./checkBrowser-YQETGZSL.js");
2239
2241
  return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
2240
2242
  }
2241
2243
  var adoptedBrowser;
@@ -2249,7 +2251,7 @@ async function prelaunchBrowser(project, options) {
2249
2251
  if (adopted) return adopted;
2250
2252
  const html = await readFile(project.indexPath, "utf8").catch(() => void 0);
2251
2253
  if (html === void 0) return void 0;
2252
- const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-4VZCJGGD.js");
2254
+ const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-G35BXLQV.js");
2253
2255
  return prelaunchCompositionBrowser(html, options.browserGpuMode);
2254
2256
  }
2255
2257
  async function writeSnapshot(projectDir, index, time, pngBase64) {
@@ -2261,11 +2263,11 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
2261
2263
  return relative(projectDir, path);
2262
2264
  }
2263
2265
  async function captureFindingFrames(project, options, requests, deadline) {
2264
- const module = await import("./checkBrowser-MS5NKDXR.js");
2266
+ const module = await import("./checkBrowser-YQETGZSL.js");
2265
2267
  return module.captureFindingFrames(project, options, requests, deadline);
2266
2268
  }
2267
2269
  async function captureFindingCrops(project, options, requests, deadline) {
2268
- const module = await import("./checkBrowser-MS5NKDXR.js");
2270
+ const module = await import("./checkBrowser-YQETGZSL.js");
2269
2271
  return module.captureFindingCrops(project, options, requests, deadline);
2270
2272
  }
2271
2273
  async function inspectProjectMedia(project, dependencies) {
@@ -2287,7 +2289,7 @@ function collectMedia(project) {
2287
2289
  return collectProjectMedia(project.dir);
2288
2290
  }
2289
2291
  async function inspectAudio(project, media) {
2290
- const module = await import("./checkAudio-ZCRRON4E.js");
2292
+ const module = await import("./checkAudio-GLG3SWWQ.js");
2291
2293
  return module.inspectAudio(project.dir, relative(project.dir, project.indexPath), media);
2292
2294
  }
2293
2295
  function audioCheckFailure(project, error) {
@@ -2361,7 +2363,7 @@ var DEFAULT_COMMAND_DEPENDENCIES = {
2361
2363
  }
2362
2364
  },
2363
2365
  async prepareMedia(project, options) {
2364
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-5T25BRZU.js");
2366
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-FBN6DQG7.js");
2365
2367
  const html = await bundleWithLocalizedFonts(project.dir);
2366
2368
  return (await preResolveHostileMediaProxies(project.dir, html, options.autoProxy)).files;
2367
2369
  },
@@ -2480,6 +2482,10 @@ var CHECK_COMMAND_ARGS = {
2480
2482
  description: "Allowed pixel overflow before reporting an issue (default: 2)",
2481
2483
  default: "2"
2482
2484
  },
2485
+ budget: {
2486
+ type: "string",
2487
+ description: "Stop the whole check this long after it starts (ms, or 90s, 8m; at least 30s) and report what it found so far"
2488
+ },
2483
2489
  timeout: {
2484
2490
  type: "string",
2485
2491
  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)",
@@ -2598,6 +2604,12 @@ function reportCheckFailure(error, asJson, addMeta) {
2598
2604
  setCommandExitCode(1);
2599
2605
  }
2600
2606
  var REPORT_GRACE_MS = 5e3;
2607
+ var MIN_BUDGET_MS = 3e4;
2608
+ var BUDGET_REPORT_MS = 1e4;
2609
+ function parseBudget(raw) {
2610
+ const ms = parseTimeoutMs(raw, 0, MIN_BUDGET_MS, console.error, "--budget");
2611
+ return ms > 0 ? { ms, stopAt: Date.now() + ms - BUDGET_REPORT_MS } : void 0;
2612
+ }
2601
2613
  function untilReported() {
2602
2614
  let done = () => void 0;
2603
2615
  const printed = new Promise((resolve2) => {
@@ -2665,6 +2677,7 @@ function parseCheckOptions(args) {
2665
2677
  collapseStatic: args["collapse-static"] !== false,
2666
2678
  tolerance: nonNegativeNumber(args.tolerance, DEFAULT_CHECK_OPTIONS.tolerance),
2667
2679
  timeout: parseTimeoutMs(args.timeout, DEFAULT_CHECK_OPTIONS.timeout, 500),
2680
+ budget: parseBudget(args.budget),
2668
2681
  contrast: args.contrast !== false,
2669
2682
  ...checkReview()?.skipContrastInMotion ? { skipContrastInMotion: true } : {},
2670
2683
  strict: args.strict === true,
@@ -6,23 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-OK3IQC32.js";
9
+ } from "./chunk-P6QX426Y.js";
10
10
  import {
11
11
  installPageFunctionGuard,
12
12
  resolveCliChromeGpuMode,
13
13
  seekCompositionTimeline,
14
14
  waitForRuntimeReady
15
- } from "./chunk-ZLWRAHBZ.js";
15
+ } from "./chunk-AXCL2A3T.js";
16
16
  import {
17
17
  pageNavigationTimeoutMs
18
- } from "./chunk-O2B3YNUH.js";
18
+ } from "./chunk-T6CCPIDG.js";
19
19
  import {
20
20
  resolveCompositionViewportFromHtml
21
- } from "./chunk-G4OGVFUJ.js";
21
+ } from "./chunk-35STY5XW.js";
22
22
  import {
23
23
  launchManagedBrowser,
24
24
  resolveManagedGpuMode
25
- } from "./chunk-4ECLIUTB.js";
25
+ } from "./chunk-PPCD5YIU.js";
26
26
  import {
27
27
  defineCommand
28
28
  } from "./chunk-DL4OD7IA.js";
@@ -31,14 +31,14 @@ import {
31
31
  } from "./chunk-HOCC4J5C.js";
32
32
  import {
33
33
  resolveNaturalMediaTimelineDuration
34
- } from "./chunk-J3G5KEPY.js";
34
+ } from "./chunk-DSSDDLGX.js";
35
35
  import {
36
36
  decodeWellFormedEscapes
37
37
  } from "./chunk-OHQRQE7F.js";
38
38
  import {
39
39
  printDeprecationNotice,
40
40
  withMeta
41
- } from "./chunk-YQ4LB3XC.js";
41
+ } from "./chunk-6AFDBTX6.js";
42
42
  import {
43
43
  failureMessage,
44
44
  jsonFailure
@@ -253,7 +253,7 @@ function extractCompositionErrorsFromLint(lintResult) {
253
253
  async function localizeRemoteAssets(html) {
254
254
  let dir;
255
255
  try {
256
- const { loadProducer } = await import("./producer-C72VSLBR.js");
256
+ const { loadProducer } = await import("./producer-AMLHR4XV.js");
257
257
  const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
258
258
  dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
259
259
  const assetDir = dir;
@@ -274,10 +274,10 @@ async function localizeRemoteAssets(html) {
274
274
  }
275
275
  async function validateInBrowser(project, opts) {
276
276
  const projectDir = project.dir;
277
- const { bundleToSingleHtml } = await import("./compiler-RY6IVESI.js");
277
+ const { bundleToSingleHtml } = await import("./compiler-DGB2I53W.js");
278
278
  const { ensureBrowser } = await import("./manager-MKDNQ5KZ.js");
279
- const { serveStaticProjectHtml } = await import("./staticProjectServer-C7A4W2B4.js");
280
- const { lintProject } = await import("./lintProject-FPLCK7VP.js");
279
+ const { serveStaticProjectHtml } = await import("./staticProjectServer-MJGRVAHU.js");
280
+ const { lintProject } = await import("./lintProject-6TML32JZ.js");
281
281
  const lintResult = await lintProject(projectDir);
282
282
  const compositionErrors = extractCompositionErrorsFromLint(lintResult);
283
283
  const html = await bundleToSingleHtml(projectDir);
@@ -298,9 +298,9 @@ async function validateInBrowser(project, opts) {
298
298
  try {
299
299
  const browser = await ensureBrowser();
300
300
  const puppeteer = await import("puppeteer-core");
301
- const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-272JLFKW.js");
301
+ const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-4HGQRHW6.js");
302
302
  const requestedGpuMode = resolveCliChromeGpuMode();
303
- const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-SBYZLOAU.js");
303
+ const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-7WYJ73JK.js");
304
304
  const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
305
305
  const requiresWebGpu = compositionRequiresWebGpu(html);
306
306
  const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
@@ -7,15 +7,15 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  ambiguousIssue,
9
9
  loadBrowserScript
10
- } from "./chunk-SPJX4LQR.js";
10
+ } from "./chunk-YJNI2NM7.js";
11
11
  import {
12
12
  auditClipDurations,
13
13
  shouldIgnoreHttpError,
14
14
  shouldIgnoreRequestFailure
15
- } from "./chunk-Q5M3JAME.js";
15
+ } from "./chunk-CQ7H3AHT.js";
16
16
  import {
17
17
  serveStaticProjectHtml
18
- } from "./chunk-U7MRV4RM.js";
18
+ } from "./chunk-7NRTBDXX.js";
19
19
  import {
20
20
  AUDIT_SEEK_OPTIONS,
21
21
  DEFAULT_ZOOM_PADDING_PX,
@@ -29,18 +29,18 @@ import {
29
29
  seekCompositionTimeline,
30
30
  seekInPage,
31
31
  waitForPreferredSeekTarget
32
- } from "./chunk-ZLWRAHBZ.js";
32
+ } from "./chunk-AXCL2A3T.js";
33
33
  import {
34
34
  SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS,
35
35
  withRemainingBudget
36
36
  } from "./chunk-YGGZ23BB.js";
37
37
  import {
38
38
  findStageProxyBox
39
- } from "./chunk-G4OGVFUJ.js";
39
+ } from "./chunk-35STY5XW.js";
40
40
  import {
41
41
  STUDIO_PREVIEW_CAPTURE_MODE,
42
42
  STUDIO_PREVIEW_MARK_META
43
- } from "./chunk-L4ZMCB52.js";
43
+ } from "./chunk-JALAIYCE.js";
44
44
  import {
45
45
  artifactDirectory,
46
46
  finishSnapshotRun
@@ -54,21 +54,21 @@ import {
54
54
  resolveProxies,
55
55
  scanProjectMediaCodecMap,
56
56
  shouldPrewarmProxy
57
- } from "./chunk-72PVZ2A4.js";
57
+ } from "./chunk-XJZR7MXG.js";
58
58
  import {
59
59
  BrowserCleanupError,
60
60
  closeManagedBrowser,
61
61
  onStopSignal
62
- } from "./chunk-4ECLIUTB.js";
62
+ } from "./chunk-PPCD5YIU.js";
63
63
  import {
64
64
  resolveAutoProxy
65
- } from "./chunk-DM7WRHB5.js";
65
+ } from "./chunk-K2KFYRVX.js";
66
66
  import {
67
67
  DEFAULT_CONFIG
68
- } from "./chunk-QXGT6KRX.js";
68
+ } from "./chunk-HVACLBWZ.js";
69
69
  import {
70
70
  injectTagsAtHeadStart
71
- } from "./chunk-J3G5KEPY.js";
71
+ } from "./chunk-DSSDDLGX.js";
72
72
  import {
73
73
  parseHTML
74
74
  } from "./chunk-GWTIFRF5.js";
@@ -110,17 +110,30 @@ var CheckCopiesUnfinishedError = class extends Error {
110
110
  );
111
111
  }
112
112
  };
113
+ var CheckBudgetError = class extends Error {
114
+ constructor(budgetMs, where) {
115
+ super(
116
+ `Check reached its --budget of ${budgetMs / 1e3} s${where || "."} The report holds what it found before then.`
117
+ );
118
+ }
119
+ };
113
120
  var CheckStoppedError = class extends Error {
114
121
  constructor(signal) {
115
122
  super(`Check stopped before finishing (${signal}).`);
116
123
  }
117
124
  };
118
125
  var CheckDeadline = class {
119
- constructor(idleMs = CHECK_IDLE_MS) {
126
+ constructor(idleMs = CHECK_IDLE_MS, budget) {
120
127
  this.idleMs = idleMs;
121
128
  this.expiry = new Promise((_, reject) => {
122
129
  this.rejectExpiry = reject;
123
130
  });
131
+ this.expiry.catch(() => void 0);
132
+ this.budgetTimer = budget && setTimeout(
133
+ () => this.expire(new CheckBudgetError(budget.ms, this.where())),
134
+ Math.max(0, budget.stopAt - Date.now())
135
+ );
136
+ this.stopAt = budget?.stopAt;
124
137
  }
125
138
  idleMs;
126
139
  abort = new AbortController();
@@ -136,6 +149,11 @@ var CheckDeadline = class {
136
149
  work;
137
150
  spent = /* @__PURE__ */ new Map();
138
151
  partials = [];
152
+ budgetTimer;
153
+ stopAt;
154
+ remainingMs() {
155
+ return this.stopAt === void 0 ? void 0 : Math.max(0, this.stopAt - Date.now());
156
+ }
139
157
  keepPartial = (read) => {
140
158
  this.partials.push(read);
141
159
  };
@@ -154,13 +172,17 @@ var CheckDeadline = class {
154
172
  this.spent.set(phase, (this.spent.get(phase) ?? 0) + ms);
155
173
  }
156
174
  describe() {
175
+ const where = this.where();
176
+ return where && ` (no progress for ${this.idleMs / 1e3} s after Chrome was ready),${where}`;
177
+ }
178
+ where() {
157
179
  if (!this.work) return "";
158
180
  const open = Date.now() - this.work.since;
159
181
  const parts = [...this.spent].map(([phase, ms]) => {
160
182
  const seconds = ((phase === this.work?.phase ? ms + open : ms) / 1e3).toFixed(1);
161
183
  return `${PHASE_LABELS[phase]} ${seconds}${BEFORE_DEADLINE.has(phase) ? " (before the deadline)" : ""}`;
162
184
  });
163
- return ` (no progress for ${this.idleMs / 1e3} s after Chrome was ready), while ${PHASE_LABELS[this.work.phase]}${this.work.detail ? ` (${this.work.detail})` : ""}. Seconds per phase: ${parts.join(", ")}.`;
185
+ return ` while ${PHASE_LABELS[this.work.phase]}${this.work.detail ? ` (${this.work.detail})` : ""}. Seconds per phase: ${parts.join(", ")}.`;
164
186
  }
165
187
  start = () => {
166
188
  if (this.phase !== "waiting") return;
@@ -177,6 +199,7 @@ var CheckDeadline = class {
177
199
  }
178
200
  expire(error) {
179
201
  clearTimeout(this.timer);
202
+ clearTimeout(this.budgetTimer);
180
203
  this.expired = error;
181
204
  this.rejectExpiry(error);
182
205
  this.abort.abort(error);
@@ -220,6 +243,7 @@ var CheckDeadline = class {
220
243
  async close() {
221
244
  this.phase = "closed";
222
245
  clearTimeout(this.timer);
246
+ clearTimeout(this.budgetTimer);
223
247
  const closes = await Promise.allSettled([...this.browsers].map(closeManagedBrowser));
224
248
  const errors = closes.filter((entry) => entry.status === "rejected").map((entry) => entry.reason);
225
249
  try {
@@ -866,7 +890,7 @@ function proxyFailedDraft(message) {
866
890
  return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
867
891
  }
868
892
  async function loadCheckHtmlWithDeferredMedia(dir) {
869
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-5T25BRZU.js");
893
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-FBN6DQG7.js");
870
894
  return withCapturePreviewMark(await bundleWithLocalizedFonts(dir));
871
895
  }
872
896
  function withCapturePreviewMark(html) {
@@ -882,7 +906,12 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
882
906
  findings: drafts,
883
907
  failedPaths,
884
908
  limits
885
- } = await preResolveHostileMediaProxies(project.dir, html, options.autoProxy, COPY_BUDGET_MS);
909
+ } = await preResolveHostileMediaProxies(
910
+ project.dir,
911
+ html,
912
+ options.autoProxy,
913
+ Math.min(COPY_BUDGET_MS, deadline?.remainingMs() ?? COPY_BUDGET_MS)
914
+ );
886
915
  deadline?.enter("launch");
887
916
  const server = await serveStaticProjectHtml(
888
917
  project.dir,
@@ -929,7 +958,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
929
958
  ).map((draft) => runtimeFinding(draft, rootAnchor))
930
959
  }));
931
960
  const launchSettleMs = Date.now() - launchSettleStart;
932
- const { analyzeClipMediaFit } = await import("./src-272JLFKW.js");
961
+ const { analyzeClipMediaFit } = await import("./src-4HGQRHW6.js");
933
962
  for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
934
963
  drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
935
964
  }
@@ -1070,7 +1099,7 @@ async function captureFindingCrops(project, options, requests, deadline) {
1070
1099
  async function captureFindingFrames(project, options, requests, deadline) {
1071
1100
  if (requests.length === 0) return { written: [], inspected: [] };
1072
1101
  const inspector = requests.some((request) => request.inspect?.length) ? await prepareFindingInspector(project.dir, async (bundleOptions) => {
1073
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-5T25BRZU.js");
1102
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-FBN6DQG7.js");
1074
1103
  return withCapturePreviewMark(
1075
1104
  await bundleWithLocalizedFonts(project.dir, void 0, bundleOptions)
1076
1105
  );
@@ -2375,6 +2404,7 @@ export {
2375
2404
  idleWindow,
2376
2405
  CheckDeadlineError,
2377
2406
  CheckCopiesUnfinishedError,
2407
+ CheckBudgetError,
2378
2408
  CheckStoppedError,
2379
2409
  CheckDeadline,
2380
2410
  beginCheckSnapshots,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  isTransientBrowserError
9
- } from "./chunk-QXGT6KRX.js";
9
+ } from "./chunk-HVACLBWZ.js";
10
10
 
11
11
  // src/utils/screenshotOnceMore.ts
12
12
  async function screenshotOnceMore(shoot) {
@@ -12,7 +12,7 @@ import {
12
12
  rewriteHtmlAttributes,
13
13
  rewriteStyleBlocks,
14
14
  stagedSize
15
- } from "./chunk-BJAESOYP.js";
15
+ } from "./chunk-X2TDLUIK.js";
16
16
  import {
17
17
  probeAudio
18
18
  } from "./chunk-SWC3QIEH.js";
@@ -20,13 +20,13 @@ import {
20
20
  findFFmpeg,
21
21
  findFFprobe,
22
22
  getFFmpegInstallHint
23
- } from "./chunk-NNXS4VBX.js";
23
+ } from "./chunk-FSHSG2G5.js";
24
24
  import {
25
25
  formatBytes
26
26
  } from "./chunk-M3JU24AI.js";
27
27
  import {
28
28
  parseAnimatedGifMetadata
29
- } from "./chunk-IR3JMMFT.js";
29
+ } from "./chunk-56XJDA3H.js";
30
30
  import {
31
31
  cleanAssetUrl,
32
32
  isRemoteOrInlineUrl,
@@ -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-O6ITP7WU.js")).prepareAnimatedGifInputs;
624
+ const prep = ctx.opts.gifPrep ?? (await import("./src-Q4HPEI72.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, {