hyperframes 0.9.16 → 0.9.17

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-VZQBLSRT.js} +12 -12
  3. package/dist/{agentPromptGenerator-VV7UQDGL.js → agentPromptGenerator-TGXEQHN3.js} +6 -7
  4. package/dist/{animatedGifPrep-JTPCKJ44.js → animatedGifPrep-25YV72PG.js} +6 -7
  5. package/dist/api.js +29 -30
  6. package/dist/{asset-ZTXZ6HGB.js → asset-UNDSQLEP.js} +2 -2
  7. package/dist/{assetCataloger-ATGUE5IY.js → assetCataloger-7RUWILYE.js} +7 -8
  8. package/dist/{audio-5SBZBNSP.js → audio-5O25WHIY.js} +16 -17
  9. package/dist/{auth-NDUIJ4HS.js → auth-6JG6SMSP.js} +2 -2
  10. package/dist/{autoUpdate-PZTBUAA5.js → autoUpdate-YIRRNQ6V.js} +2 -2
  11. package/dist/{avatars-YY7FU76E.js → avatars-YE2WC2TM.js} +10 -11
  12. package/dist/{backgroundChecks-6KERI5QL.js → backgroundChecks-A7TYPXRD.js} +3 -3
  13. package/dist/backgroundChecksWorker.js +3 -3
  14. package/dist/{batchRender-L3IIY2FT.js → batchRender-EX5TDMP3.js} +3 -3
  15. package/dist/{beats-UBUJBSVD.js → beats-F3AZFVZG.js} +8 -9
  16. package/dist/{benchmark-YJ2U5KE3.js → benchmark-ZBLLJL5C.js} +8 -8
  17. package/dist/{billing-YN35KTEH.js → billing-MUTW7EEI.js} +11 -11
  18. package/dist/{browser-NRDSXRX7.js → browser-BRIP2ZMX.js} +3 -3
  19. package/dist/{bundleWithLocalizedFonts-5T25BRZU.js → bundleWithLocalizedFonts-F557ZVFL.js} +1 -1
  20. package/dist/{capture-7K7VWXBQ.js → capture-6TRISPA2.js} +13 -14
  21. package/dist/{capture-MP46JHB7.js → capture-GSJVFS7R.js} +3 -3
  22. package/dist/{captureCompositionFrame-4VZCJGGD.js → captureCompositionFrame-YRZVOCTO.js} +12 -13
  23. package/dist/{catalog-32CQF7IT.js → catalog-5HJJNBFM.js} +12 -12
  24. package/dist/{catch-up-IVBUCPZM.js → catch-up-AQ5TFCAH.js} +4 -4
  25. package/dist/{check-U5PPKHG5.js → check-TYBSHODD.js} +40 -41
  26. package/dist/{checkAudio-ZCRRON4E.js → checkAudio-LDSIWNQL.js} +9 -10
  27. package/dist/{checkBrowser-MS5NKDXR.js → checkBrowser-7CFHX4VU.js} +32 -33
  28. package/dist/{chunk-PWTWZF3F.js → chunk-2UJSYHED.js} +1 -1
  29. package/dist/{chunk-L4ZMCB52.js → chunk-3IMHFJDG.js} +9 -9
  30. package/dist/{chunk-SOQNCHO5.js → chunk-426GU4YI.js} +885 -516
  31. package/dist/{chunk-LIUJRACZ.js → chunk-4R63FXGU.js} +15 -5
  32. package/dist/{chunk-TEEPLD64.js → chunk-4TW62PDH.js} +17 -8
  33. package/dist/{chunk-M2Y245ET.js → chunk-64RLXCUT.js} +6 -3
  34. package/dist/{chunk-65XOIIBM.js → chunk-6DX4URUB.js} +1 -1
  35. package/dist/{chunk-JWCMOC7O.js → chunk-6OBCXHIF.js} +1 -1
  36. package/dist/{chunk-O2B3YNUH.js → chunk-7BJQ4R4F.js} +3 -3
  37. package/dist/{chunk-UXS7VE75.js → chunk-7PZLR2JZ.js} +1 -1
  38. package/dist/{chunk-IX5QY54Q.js → chunk-AII4BFKZ.js} +2 -2
  39. package/dist/{chunk-6H5NILM5.js → chunk-ATTDG6NR.js} +1 -1
  40. package/dist/{chunk-ZLWRAHBZ.js → chunk-BIY3M2WW.js} +10 -10
  41. package/dist/{chunk-YNAKUHSJ.js → chunk-C67RYYGK.js} +4 -4
  42. package/dist/{chunk-R5LSL2C7.js → chunk-C6MYVPHX.js} +1 -1
  43. package/dist/{chunk-XS27ELRN.js → chunk-CXSJ6H5Q.js} +2 -2
  44. package/dist/{chunk-N32TVQYQ.js → chunk-DEI35LJT.js} +2 -2
  45. package/dist/{chunk-B2W2CPXF.js → chunk-DLTSPBI7.js} +1 -1
  46. package/dist/{chunk-YQ4LB3XC.js → chunk-DVKZ55DS.js} +1 -1
  47. package/dist/{chunk-PWOMLJFV.js → chunk-E5FLGIV3.js} +2 -2
  48. package/dist/{chunk-XDT2DMH6.js → chunk-ENJ3M6OM.js} +2 -2
  49. package/dist/{chunk-TNTQ7H24.js → chunk-GDQQ4U3L.js} +75 -9
  50. package/dist/{chunk-Q5M3JAME.js → chunk-GQORIM44.js} +13 -13
  51. package/dist/{chunk-L6X4ONBM.js → chunk-HUCRKZ6J.js} +7 -7
  52. package/dist/{chunk-IR3JMMFT.js → chunk-HUZ3GL3F.js} +33 -2
  53. package/dist/{chunk-KWORPYKW.js → chunk-I4BH3ASB.js} +1 -1
  54. package/dist/{chunk-72PVZ2A4.js → chunk-IIXZLGSI.js} +5 -5
  55. package/dist/chunk-IN3ZKLLQ.js +59 -0
  56. package/dist/{chunk-PLVIN7X6.js → chunk-IQL7NJSE.js} +1 -1
  57. package/dist/{chunk-ZO5QD2FA.js → chunk-JEPV6WOW.js} +2 -2
  58. package/dist/{chunk-ZEOPRYFK.js → chunk-JSCY2GUB.js} +2 -2
  59. package/dist/{chunk-WWEFNXQI.js → chunk-JU2XCDW5.js} +2 -2
  60. package/dist/{chunk-AKE744C5.js → chunk-JWORQ5WQ.js} +5 -1
  61. package/dist/{chunk-PNZD5LZL.js → chunk-KE6NXX45.js} +47 -17
  62. package/dist/{chunk-AD2T3VAJ.js → chunk-KEZSFOSN.js} +2 -2
  63. package/dist/{chunk-G4OGVFUJ.js → chunk-KVANP54U.js} +1 -1
  64. package/dist/{chunk-344RFO72.js → chunk-L3HCPZZT.js} +32 -33
  65. package/dist/{chunk-AGQNRDYJ.js → chunk-L5EM7KAY.js} +1 -1
  66. package/dist/{chunk-U7MRV4RM.js → chunk-LHQZYLVO.js} +7 -7
  67. package/dist/{chunk-SREJU7NR.js → chunk-LV3MNSL7.js} +1 -1
  68. package/dist/{chunk-NPDBBMXX.js → chunk-LV7BDQ5X.js} +1 -1
  69. package/dist/{chunk-JPODNK2G.js → chunk-M4HDVKHG.js} +2 -2
  70. package/dist/{chunk-S6AMEEGZ.js → chunk-M6F4HXMW.js} +3 -3
  71. package/dist/{chunk-S7UUJ77M.js → chunk-M6FS7TNN.js} +1 -1
  72. package/dist/{chunk-TABWG4IT.js → chunk-M7VAMZQW.js} +18 -11
  73. package/dist/{chunk-GGSTJZQL.js → chunk-MB7VK7MW.js} +1 -1
  74. package/dist/{chunk-6M3TQUDF.js → chunk-MDZANX4P.js} +2 -2
  75. package/dist/{chunk-5IVECOVN.js → chunk-MJFEHOGJ.js} +1 -1
  76. package/dist/{chunk-OK3IQC32.js → chunk-MLBH6KJL.js} +1 -1
  77. package/dist/{chunk-VPBE4USM.js → chunk-MZI62LS2.js} +38 -25
  78. package/dist/{chunk-QCHPM3C2.js → chunk-N6E2T3JY.js} +1 -1
  79. package/dist/{chunk-4ECLIUTB.js → chunk-N6YQHI3Z.js} +2 -2
  80. package/dist/{chunk-QXGT6KRX.js → chunk-NMQWKWV4.js} +25 -11
  81. package/dist/{chunk-J2I2LTJM.js → chunk-NO2YYTAK.js} +1 -1
  82. package/dist/{chunk-JCIPZMKD.js → chunk-NQZQZY4B.js} +3 -3
  83. package/dist/{chunk-JFUXZERX.js → chunk-NTMMUK6Q.js} +113 -67
  84. package/dist/{chunk-PGM5YXBA.js → chunk-NV7IMBP7.js} +1 -1
  85. package/dist/{chunk-6H5KN7CJ.js → chunk-O6757ZOW.js} +5 -5
  86. package/dist/{chunk-LOKTVSTM.js → chunk-O7SPZE7M.js} +1 -1
  87. package/dist/{chunk-DV7RLE6B.js → chunk-OE347X32.js} +2 -2
  88. package/dist/{chunk-G54QPS3F.js → chunk-OKPASJ5P.js} +4 -4
  89. package/dist/{chunk-U7LBN2BQ.js → chunk-OYNHNQ3E.js} +7 -7
  90. package/dist/{chunk-ZAD422DC.js → chunk-OYXGIP35.js} +4 -4
  91. package/dist/{chunk-SE4WJJ43.js → chunk-PHJNYHGA.js} +1 -1
  92. package/dist/{chunk-LHRQP7TF.js → chunk-PVDBALBI.js} +5 -5
  93. package/dist/{chunk-UGYQBRHG.js → chunk-QR7666XO.js} +3 -3
  94. package/dist/{chunk-NNXS4VBX.js → chunk-RPLMK4WC.js} +1 -1
  95. package/dist/{chunk-K2JGJUMR.js → chunk-SKOBUO2F.js} +3 -3
  96. package/dist/{chunk-4FHTWYDZ.js → chunk-SVPRFL7O.js} +1 -1
  97. package/dist/{chunk-YKAK4ALT.js → chunk-SZLKWUHN.js} +2 -2
  98. package/dist/{chunk-ZUZPIM6R.js → chunk-TBXNHLRL.js} +1 -1
  99. package/dist/{chunk-HNZ2FZIB.js → chunk-TTCNUS5M.js} +3 -3
  100. package/dist/{chunk-YFHOTWWE.js → chunk-UE2RAXA7.js} +1 -1
  101. package/dist/{chunk-ALQAHCK5.js → chunk-UQXBGFKU.js} +1 -1
  102. package/dist/{chunk-BB5CZTGW.js → chunk-UURC7DFD.js} +1 -1
  103. package/dist/{chunk-SPJX4LQR.js → chunk-UYMUPV7Q.js} +10 -10
  104. package/dist/chunk-VBEP277H.js +5035 -0
  105. package/dist/{chunk-75PTCQAO.js → chunk-VFGKM45X.js} +1 -1
  106. package/dist/{chunk-W2BP25U5.js → chunk-VMWRWUDV.js} +1 -1
  107. package/dist/{chunk-PC662ORN.js → chunk-VR7E3QEQ.js} +2 -1
  108. package/dist/{chunk-TTEOPEJJ.js → chunk-VTQ6LSSX.js} +2 -2
  109. package/dist/{chunk-BSPE37DP.js → chunk-WEW22B4F.js} +2 -2
  110. package/dist/{chunk-A4OX3TI6.js → chunk-WODNT4NL.js} +1 -1
  111. package/dist/{chunk-BJAESOYP.js → chunk-X2TDLUIK.js} +4 -12
  112. package/dist/{chunk-OIJHKOV2.js → chunk-XBJNA2O5.js} +2 -2
  113. package/dist/{chunk-HK4AN44J.js → chunk-XCF72IZY.js} +2 -2
  114. package/dist/{chunk-UK5DBUJX.js → chunk-XZRMB5Q7.js} +6 -6
  115. package/dist/{chunk-DM7WRHB5.js → chunk-ZAJSIWIC.js} +1 -1
  116. package/dist/{chunk-5L2CII4L.js → chunk-ZMG7COPL.js} +1 -1
  117. package/dist/{chunk-P2AOKCAC.js → chunk-ZO74SCFC.js} +3 -3
  118. package/dist/{clean-5K2KTH5M.js → clean-RCXP7VIE.js} +16 -17
  119. package/dist/cli.js +76 -68
  120. package/dist/{cloud-7O2Q7IHJ.js → cloud-UMR6YM53.js} +4 -4
  121. package/dist/{cloudrun-3HRDMWIS.js → cloudrun-WNFJ6HDK.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-4DOTZFJB.js} +29 -30
  125. package/dist/{compiler-RY6IVESI.js → compiler-QZAK3CQM.js} +3 -4
  126. package/dist/{component-B7V7A5AP.js → component-JUNJ3HR5.js} +3 -3
  127. package/dist/{compositions-HFBRVNYW.js → compositions-Y4TVCT6A.js} +11 -13
  128. package/dist/{curve-7PLN35CZ.js → curve-MRBPVFJR.js} +10 -11
  129. package/dist/{cuts-ZG7TBYVD.js → cuts-FEQBTLCK.js} +11 -12
  130. package/dist/{delete-YL4IMJJZ.js → delete-IZIO5BPH.js} +3 -3
  131. package/dist/{deploy-A6CDKFQZ.js → deploy-LYSMVVKT.js} +1 -1
  132. package/dist/{describeProject-VZCHDSWT.js → describeProject-37HOCRQS.js} +7 -8
  133. package/dist/{diff-PBVZRS5Z.js → diff-JLJZ7CWH.js} +29 -30
  134. package/dist/{dist-HRK4GWLN.js → dist-LIQVRDQQ.js} +9 -10
  135. package/dist/{dist-BU547SVG.js → dist-RSKVXBET.js} +12 -2
  136. package/dist/{dist-FPRADDH6.js → dist-URQMS2HM.js} +5 -4
  137. package/dist/{doctor-IFTYCM3E.js → doctor-YXP5OQZJ.js} +10 -11
  138. package/dist/{energy-ENGAT6Z5.js → energy-E2MNVLQG.js} +11 -12
  139. package/dist/{events-CMAXQTDX.js → events-7KJUZ6JN.js} +3 -3
  140. package/dist/{events-A6SBEKVH.js → events-AUFOARC3.js} +2 -2
  141. package/dist/{events-AZ5XEDBE.js → events-IQMZODOM.js} +13 -14
  142. package/dist/{extract-IE74J44O.js → extract-MNRKSTVS.js} +11 -12
  143. package/dist/{face-JAPTS7VJ.js → face-PLFENYM6.js} +11 -12
  144. package/dist/{feedback-QCFWXJCD.js → feedback-PMTFDXYG.js} +10 -7
  145. package/dist/{ffmpeg-4YMUUJP7.js → ffmpeg-6NPH4Y32.js} +6 -7
  146. package/dist/{figma-C36IECKZ.js → figma-VRGLERFC.js} +3 -3
  147. package/dist/fontLocalizeCli.js +9 -10
  148. package/dist/{frames-ZW26G4UP.js → frames-IJODIWMC.js} +12 -13
  149. package/dist/{generate-ZXR73M22.js → generate-QGD5W7C2.js} +21 -22
  150. package/dist/{get-3KICFW3X.js → get-JRHXJ3XB.js} +3 -3
  151. package/dist/{gpuPolicy-SBYZLOAU.js → gpuPolicy-ZUQPIKA6.js} +6 -7
  152. package/dist/{grade-compare-DCL3OPKF.js → grade-compare-PBNOHUTC.js} +30 -31
  153. package/dist/{heifImagePrep-YQWEIVTC.js → heifImagePrep-IHGRDGIQ.js} +7 -8
  154. package/dist/{help-PUL7OS7X.js → help-TSKN5WKM.js} +1 -1
  155. package/dist/{history-GPBKC5DE.js → history-CKYGYGIT.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-MJVDLEVI.js} +39 -11
  160. package/dist/{init-5MCEGVHR.js → init-DOL2FWBB.js} +27 -28
  161. package/dist/{ink-NLYWOBTK.js → ink-O6QSMSKC.js} +11 -12
  162. package/dist/{inspect-52COR3TB.js → inspect-PC3SZZOR.js} +30 -31
  163. package/dist/{installer-ARMP4WLF.js → installer-HMGKE36F.js} +4 -4
  164. package/dist/{keyframes-3UMSTEYW.js → keyframes-7XC3AC4V.js} +6 -6
  165. package/dist/{lambda-FYHLXH4H.js → lambda-3FAGLEU5.js} +10 -11
  166. package/dist/{layout-QKWAPDPV.js → layout-VHTDCWFW.js} +30 -31
  167. package/dist/{lint-WJCUB2CR.js → lint-IC6NER4M.js} +7 -8
  168. package/dist/{lintProject-FPLCK7VP.js → lintProject-6TML32JZ.js} +1 -2
  169. package/dist/{list-4FQ4BDXW.js → list-I35ERZHZ.js} +3 -3
  170. package/dist/{localPage-YINL6OV7.js → localPage-FDNKKTXH.js} +6 -7
  171. package/dist/{login-P74VBTVA.js → login-6K6LXYCK.js} +4 -4
  172. package/dist/{look-QCOMYMSD.js → look-MUM6FFJS.js} +11 -12
  173. package/dist/{manager-V2ZJSF3Q.js → manager-C555E5U3.js} +7 -8
  174. package/dist/{measure-7IODZ7VY.js → measure-HIFTI44U.js} +11 -11
  175. package/dist/{media-treatment-UJIFSAXV.js → media-treatment-DI3C7GLC.js} +12 -13
  176. package/dist/{media-use-4Y5XRY6B.js → media-use-DA5QVW4C.js} +3 -3
  177. package/dist/{models-WPBGJ7K6.js → models-GDXFVABP.js} +10 -11
  178. package/dist/{motionShot-DZZXLIIT.js → motionShot-UTGGCPYH.js} +15 -16
  179. package/dist/{normalize-audio-QS2GZ5IT.js → normalize-audio-YS3YILNJ.js} +20 -10
  180. package/dist/{open-SIWIC52J.js → open-4PKI3YVG.js} +12 -12
  181. package/dist/{parakeetRunner-YUUCCA3S.js → parakeetRunner-EC4KUGKK.js} +11 -12
  182. package/dist/{pipeline-AJKIZGUM.js → pipeline-L3ZWWTXS.js} +9 -10
  183. package/dist/{play-4EF3JLTU.js → play-I3NXVJST.js} +20 -21
  184. package/dist/{preflight-LSDOTWZ5.js → preflight-G2AVNYY7.js} +7 -8
  185. package/dist/{present-AOLHT3YC.js → present-RUJ3YKSR.js} +15 -16
  186. package/dist/{preview-WP5VAX3M.js → preview-M2T36DYH.js} +18 -19
  187. package/dist/{probe-WZ3OWMKG.js → probe-OASNPT5T.js} +11 -12
  188. package/dist/{producer-C72VSLBR.js → producer-YEHQIQ3O.js} +1 -1
  189. package/dist/{projectConfig-LPC7WK4W.js → projectConfig-LBMTOOJX.js} +7 -7
  190. package/dist/{publication-QGBUXKB2.js → publication-O2M6ZZNY.js} +2 -2
  191. package/dist/{publish-KA2LPVL7.js → publish-PMGCGIVE.js} +11 -12
  192. package/dist/{remove-background-MC6HXEAW.js → remove-background-DFDEZEXM.js} +10 -11
  193. package/dist/{render-RPMLSL7M.js → render-PJMQH4EQ.js} +5 -5
  194. package/dist/{render-2STR3XR5.js → render-SVP72X6C.js} +32 -33
  195. package/dist/{render-IQUQ7EKS.js → render-U3NYKVOA.js} +25 -26
  196. package/dist/{render-batch-2AWWGFNK.js → render-batch-EUT4DTQZ.js} +5 -5
  197. package/dist/renderSetupWorker.js +4 -2
  198. package/dist/{resolver-D3Q6LTIO.js → resolver-H6U77U4P.js} +5 -5
  199. package/dist/{reverse-62TKSQ7Q.js → reverse-IRAAQ6T7.js} +1 -1
  200. package/dist/{run-GQNVIYMD.js → run-WZP6HXIH.js} +2 -2
  201. package/dist/{screenshotCapture-MM5V4H7M.js → screenshotCapture-2QYWSWGP.js} +7 -8
  202. package/dist/{sherpa-ZHAABYE3.js → sherpa-DO75VQI4.js} +10 -11
  203. package/dist/skills/hyperframes-cli/SKILL.md +3 -1
  204. package/dist/{skills-BYABSOL3.js → skills-7GNBYIEM.js} +6 -6
  205. package/dist/{skillsUpdateCheck-FKOS3ME7.js → skillsUpdateCheck-3X5WU4YB.js} +3 -3
  206. package/dist/{snapshot-N5O5VEBT.js → snapshot-7XX5FCQC.js} +70 -54
  207. package/dist/{src-O6ITP7WU.js → src-OUHQBPJL.js} +8 -9
  208. package/dist/{src-272JLFKW.js → src-R2QH27BL.js} +5 -6
  209. package/dist/{start-K2LGEUB5.js → start-SD4CCZFP.js} +19 -20
  210. package/dist/{staticProjectServer-C7A4W2B4.js → staticProjectServer-3DQIE2ZT.js} +18 -19
  211. package/dist/{status-USHH6OD5.js → status-HUVATV7S.js} +11 -11
  212. package/dist/studio/assets/{hyperframes-player-Bb-Fbf5k.js → hyperframes-player-CL-Qh_Bx.js} +1 -1
  213. package/dist/studio/assets/{index-BZuKog_A.js → index-DkiYRx1f.js} +116 -116
  214. package/dist/studio/assets/{index-Cap2SGKw.js → index-DyvmaiBB.js} +1 -1
  215. package/dist/studio/index.html +1 -1
  216. package/dist/{studio-api-FVBB2MVZ.js → studio-api-776ZTVLU.js} +9 -10
  217. package/dist/{studioServer-SFN7YUNV.js → studioServer-A3LGBU4W.js} +49 -50
  218. package/dist/{sync-JUDSPP46.js → sync-5BBHBAZ6.js} +11 -12
  219. package/dist/{telemetry-3DEZK5Q3.js → telemetry-7ETKP7HP.js} +3 -3
  220. package/dist/{templates-3FJRJ6KB.js → templates-RH674B5Q.js} +11 -11
  221. package/dist/{timeline-P4CS4INR.js → timeline-DEZAVAFR.js} +19 -20
  222. package/dist/{tokens-EFAVVV56.js → tokens-2UHFZABD.js} +2 -2
  223. package/dist/{transcribe-YTBSMCFG.js → transcribe-EZEUKBI3.js} +9 -10
  224. package/dist/{transcribe-JKV42B3Q.js → transcribe-NZBJVCSZ.js} +23 -24
  225. package/dist/{update-6QVOSVBW.js → update-YXZI2ICU.js} +7 -7
  226. package/dist/{updateCheck-2FWJ2X62.js → updateCheck-GJMC7GXZ.js} +2 -2
  227. package/dist/{upgrade-AUHNDKNP.js → upgrade-E3QK3G3D.js} +3 -3
  228. package/dist/{upload-HMRWGZIO.js → upload-YQMBLKH5.js} +3 -1
  229. package/dist/{urlDownloader-6ZSSYTOY.js → urlDownloader-KYFYU6AG.js} +5 -6
  230. package/dist/{validate-DKEWYJ3V.js → validate-HD224PCX.js} +23 -24
  231. package/dist/{video-N6AEYBUW.js → video-3NIYVUPF.js} +7 -8
  232. package/dist/{voices-MT7CM6O5.js → voices-G2YC3Y7U.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
@@ -12,13 +12,16 @@ import {
12
12
  } from "./chunk-D3MUHMFG.js";
13
13
  import {
14
14
  firstFrameColourArgs,
15
- parseFirstFrameColour
16
- } from "./chunk-IR3JMMFT.js";
15
+ keyframeTransferArgs,
16
+ parseFirstFrameColour,
17
+ parseKeyframeTransfers,
18
+ readsKeyframeTransfers
19
+ } from "./chunk-HUZ3GL3F.js";
17
20
  import {
18
21
  findFfBinary
19
22
  } from "./chunk-HYRPH6LL.js";
20
23
 
21
- // ../studio-server/dist/chunk-X73QTST2.js
24
+ // ../studio-server/dist/chunk-Y6EZUBYR.js
22
25
  import { execFile } from "child_process";
23
26
  import { extname } from "path";
24
27
  var execFileRunner = (command, args, options) => new Promise((resolvePromise) => {
@@ -95,14 +98,21 @@ function classifyMediaColor(stream) {
95
98
  bitsPerRawSample: stream?.bits_per_raw_sample
96
99
  };
97
100
  }
98
- async function probeFirstFrameColour(filePath, runner = execFileRunner) {
101
+ async function probeFirstFrameColour(filePath, codec, runner = execFileRunner) {
99
102
  const ffmpegPath = findFfBinary("ffmpeg", { configuredMustExist: true }) ?? (runner === execFileRunner ? void 0 : "ffmpeg");
100
103
  if (!ffmpegPath) return {};
101
104
  const result = await runner(ffmpegPath, firstFrameColourArgs(filePath), {
102
105
  timeout: 15e3,
103
106
  maxBuffer: 1024 * 1024
104
107
  });
105
- return result.status === 0 ? parseFirstFrameColour(String(result.stderr)) : {};
108
+ const first = result.status === 0 ? parseFirstFrameColour(String(result.stderr)) : {};
109
+ if (result.status !== 0 || !readsKeyframeTransfers(first)) return first;
110
+ const keyframes = await runner(ffmpegPath, keyframeTransferArgs(filePath, codec), {
111
+ timeout: 3e4,
112
+ maxBuffer: 8 * 1024 * 1024
113
+ });
114
+ const keyframeTransfers = keyframes.status === 0 ? parseKeyframeTransfers(String(keyframes.stderr)) : [];
115
+ return { ...first, keyframeTransfers };
106
116
  }
107
117
  function bitDepthOf(stream) {
108
118
  const raw = Number(stream.bits_per_raw_sample);
@@ -58,7 +58,7 @@ import {
58
58
  warnUnknownEnumValues,
59
59
  wrapInlineScriptWithErrorBoundary,
60
60
  wrapScopedCompositionScript
61
- } from "./chunk-J3G5KEPY.js";
61
+ } from "./chunk-VBEP277H.js";
62
62
  import {
63
63
  cssVariableName
64
64
  } from "./chunk-VC76R6W2.js";
@@ -67,9 +67,9 @@ import {
67
67
  resolveWithinProject
68
68
  } from "./chunk-OFQWTKPW.js";
69
69
  import {
70
- collectExternalStyles,
70
+ linkedSources,
71
71
  lintHyperframeHtml
72
- } from "./chunk-JFUXZERX.js";
72
+ } from "./chunk-NTMMUK6Q.js";
73
73
  import {
74
74
  readTextFile
75
75
  } from "./chunk-WVRAFHJU.js";
@@ -403,9 +403,7 @@ function extractStandaloneEntryFromIndex(indexHtml, entryFile, entryHtml) {
403
403
 
404
404
  // ../core/dist/compiler/staticGuard.js
405
405
  async function validateHyperframeHtmlContract(html, project) {
406
- const result = await lintHyperframeHtml(html, project && {
407
- externalStyles: collectExternalStyles(project.dir, html, project.compSrcPath)
408
- });
406
+ const result = await lintHyperframeHtml(html, project && linkedSources(project.dir, html, project.compSrcPath));
409
407
  const missingKeys = result.findings.filter((finding) => finding.severity === "error").map((finding) => finding.message);
410
408
  if (missingKeys.length === 0) {
411
409
  return { isValid: true, missingKeys: [], failureReason: null };
@@ -765,6 +763,10 @@ function applyRenames(resolved, idMap) {
765
763
  rewriteElementIdReferences(el, idMap);
766
764
  }
767
765
  }
766
+ var CLIP_SELECTOR = "[data-start]:not([data-composition-id]):not([data-composition-src])";
767
+ function sceneClipRoots(document, hosts) {
768
+ return [...document.querySelectorAll(CLIP_SELECTOR)].filter((clip) => !clip.parentElement?.closest(CLIP_SELECTOR) && !!clip.parentElement?.closest("[data-composition-id]") && !isExcluded(clip, hosts) && !!clip.querySelector("svg"));
769
+ }
768
770
  function namespaceCollidingSvgIds(document, scopes, finalizedIds) {
769
771
  if (scopes.length === 0)
770
772
  return [];
@@ -1206,6 +1208,8 @@ ${AUTHORED_SOURCE_END}`);
1206
1208
  styleEnd
1207
1209
  });
1208
1210
  }
1211
+ const hostRoots = svgIdScopes.map(({ root }) => root);
1212
+ const clips = sceneClipRoots(document, hostRoots);
1209
1213
  const svgIdMaps = namespaceCollidingSvgIds(document, [
1210
1214
  ...svgIdScopes.map(({ root, namespace, exclude, styleStart, styleEnd }) => ({
1211
1215
  root,
@@ -1217,9 +1221,14 @@ ${AUTHORED_SOURCE_END}`);
1217
1221
  root: document.documentElement,
1218
1222
  namespace: "",
1219
1223
  referenceTarget: "document",
1220
- exclude: svgIdScopes.map(({ root }) => root),
1224
+ exclude: [...hostRoots, ...clips],
1221
1225
  cssTexts: rootStyles.map((style) => style.textContent ?? "")
1222
- }
1226
+ },
1227
+ ...clips.map((root, index) => ({
1228
+ root,
1229
+ namespace: `clip-${index}`,
1230
+ exclude: hostRoots.filter((host) => root.contains(host))
1231
+ }))
1223
1232
  ]);
1224
1233
  svgIdMaps.slice(0, svgIdScopes.length).forEach((idMap, index) => {
1225
1234
  const { styleStart, styleEnd } = svgIdScopes[index];
@@ -8,7 +8,7 @@ import {
8
8
  jsonArg,
9
9
  runMeasure,
10
10
  videoArg
11
- } from "./chunk-6M3TQUDF.js";
11
+ } from "./chunk-MDZANX4P.js";
12
12
  import {
13
13
  makeOutputFolder
14
14
  } from "./chunk-3S27CPV7.js";
@@ -18,10 +18,13 @@ import {
18
18
  probeVideo,
19
19
  round,
20
20
  runFfmpeg
21
- } from "./chunk-PC662ORN.js";
21
+ } from "./chunk-VR7E3QEQ.js";
22
22
  import {
23
23
  defineCommand
24
24
  } from "./chunk-DL4OD7IA.js";
25
+ import {
26
+ toneMapReferenceNits
27
+ } from "./chunk-HUZ3GL3F.js";
25
28
 
26
29
  // src/commands/measure/probe.ts
27
30
  import { execFileSync } from "child_process";
@@ -58,7 +61,7 @@ function normalize(info, out) {
58
61
  "install an ffmpeg built with libzimg, e.g. brew install ffmpeg"
59
62
  );
60
63
  filters.push(
61
- "zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv"
64
+ `zscale=t=linear:npl=${toneMapReferenceNits(info.transfer ? [info.transfer] : [])},format=gbrpf32le,zscale=p=bt709,tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv`
62
65
  );
63
66
  }
64
67
  makeOutputFolder(dirname(out));
@@ -10,7 +10,7 @@ import {
10
10
  ratioOf,
11
11
  readClip,
12
12
  round
13
- } from "./chunk-PC662ORN.js";
13
+ } from "./chunk-VR7E3QEQ.js";
14
14
 
15
15
  // src/measure/energy.ts
16
16
  var ENERGY_RATE = 12;
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-HBAUU3IK.js";
20
20
  import {
21
21
  uploadAssetViaDirectUpload
22
- } from "./chunk-TNTQ7H24.js";
22
+ } from "./chunk-GDQQ4U3L.js";
23
23
  import {
24
24
  refreshIfNeeded,
25
25
  resolveCloudBaseUrl
@@ -6,17 +6,17 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  readCompositionFps
9
- } from "./chunk-6H5NILM5.js";
9
+ } from "./chunk-ATTDG6NR.js";
10
10
  import {
11
11
  errorBox
12
12
  } from "./chunk-M3JU24AI.js";
13
13
  import {
14
14
  DEFAULT_CONFIG,
15
15
  resolvePageNavigationTimeout
16
- } from "./chunk-QXGT6KRX.js";
16
+ } from "./chunk-NMQWKWV4.js";
17
17
  import {
18
18
  parseFps
19
- } from "./chunk-IR3JMMFT.js";
19
+ } from "./chunk-HUZ3GL3F.js";
20
20
  import {
21
21
  failUsage
22
22
  } 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
  closestMatch
9
- } from "./chunk-TABWG4IT.js";
9
+ } from "./chunk-M7VAMZQW.js";
10
10
  import {
11
11
  c
12
12
  } from "./chunk-HOCC4J5C.js";
@@ -27,7 +27,7 @@ import {
27
27
  rewritePinnedHyperframesText,
28
28
  rewriteProjectPinnedScripts,
29
29
  withMeta
30
- } from "./chunk-YQ4LB3XC.js";
30
+ } from "./chunk-DVKZ55DS.js";
31
31
  import {
32
32
  setCommandExitCode
33
33
  } from "./chunk-66W5IWLO.js";
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-FYZFURBN.js";
37
37
  import {
38
38
  VERSION
39
- } from "./chunk-N32TVQYQ.js";
39
+ } from "./chunk-DEI35LJT.js";
40
40
 
41
41
  // src/commands/upgrade.ts
42
42
  import { execFileSync } from "child_process";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  DISTRIBUTED_FPS,
12
12
  isDistributedFps
13
- } from "./chunk-IR3JMMFT.js";
13
+ } from "./chunk-HUZ3GL3F.js";
14
14
  import {
15
15
  parseHTML
16
16
  } from "./chunk-GWTIFRF5.js";
@@ -6,28 +6,28 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  gotoWhenSent
9
- } from "./chunk-QCHPM3C2.js";
9
+ } from "./chunk-N6E2T3JY.js";
10
10
  import {
11
11
  windowsChromeCrashRemediation
12
12
  } from "./chunk-262C25DQ.js";
13
13
  import {
14
14
  pageNavigationTimeoutMs
15
- } from "./chunk-O2B3YNUH.js";
15
+ } from "./chunk-7BJQ4R4F.js";
16
16
  import {
17
17
  SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
18
18
  } from "./chunk-YGGZ23BB.js";
19
19
  import {
20
20
  resolveCompositionViewportFromHtml
21
- } from "./chunk-G4OGVFUJ.js";
21
+ } from "./chunk-KVANP54U.js";
22
22
  import {
23
23
  launchManagedBrowser,
24
24
  resolveManagedGpuMode,
25
25
  rethrowAfterBrowserCleanup
26
- } from "./chunk-4ECLIUTB.js";
26
+ } from "./chunk-N6YQHI3Z.js";
27
27
  import {
28
28
  resolveLocalBrowserGpuMode,
29
29
  resolveLocalWebGpu
30
- } from "./chunk-XDT2DMH6.js";
30
+ } from "./chunk-ENJ3M6OM.js";
31
31
  import {
32
32
  c
33
33
  } from "./chunk-HOCC4J5C.js";
@@ -35,7 +35,7 @@ import {
35
35
  assertWebGpuAdapterAvailable,
36
36
  compositionRequiresWebGpu,
37
37
  oneProcessOverPipe
38
- } from "./chunk-QXGT6KRX.js";
38
+ } from "./chunk-NMQWKWV4.js";
39
39
  import {
40
40
  normalizeErrorMessage
41
41
  } from "./chunk-E63BDV4Z.js";
@@ -143,7 +143,7 @@ async function waitForCompositionSettle(page, options) {
143
143
  console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
144
144
  });
145
145
  await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
146
- const { resolveConfig, waitForImagesReady } = await import("./src-272JLFKW.js");
146
+ const { resolveConfig, waitForImagesReady } = await import("./src-R2QH27BL.js");
147
147
  const imageTimeoutMs = resolveConfig().playerReadyTimeout;
148
148
  await waitForImagesReady(
149
149
  page,
@@ -192,7 +192,7 @@ async function installPageFunctionGuard(page) {
192
192
  async function openSettledCompositionPage(html, url, options) {
193
193
  const viewport = resolveCompositionViewportFromHtml(html);
194
194
  const requiresWebGpu = compositionRequiresWebGpu(html);
195
- const answer = (await import("./staticProjectServer-C7A4W2B4.js")).inProcessAnswer(url);
195
+ const answer = (await import("./staticProjectServer-3DQIE2ZT.js")).inProcessAnswer(url);
196
196
  const noListen = answer !== void 0;
197
197
  let chromeBrowser;
198
198
  try {
@@ -203,7 +203,7 @@ async function openSettledCompositionPage(html, url, options) {
203
203
  options.onBrowserReady?.();
204
204
  const page = await chromeBrowser.newPage();
205
205
  await installPageFunctionGuard(page);
206
- const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-272JLFKW.js");
206
+ const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-R2QH27BL.js");
207
207
  await installMediaRenderIdBridge(page);
208
208
  await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
209
209
  await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
@@ -225,7 +225,7 @@ async function launchCompositionBrowser(html, noListen, options) {
225
225
  const { ensureBrowser, findSystemBrowser } = await import("./manager-MKDNQ5KZ.js");
226
226
  const browser = await ensureBrowser({ signal: options.signal });
227
227
  const puppeteer = await import("puppeteer-core");
228
- const { buildChromeArgs } = await import("./src-272JLFKW.js");
228
+ const { buildChromeArgs } = await import("./src-R2QH27BL.js");
229
229
  const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
230
230
  const requiresWebGpu = compositionRequiresWebGpu(html);
231
231
  let softwareWebGpu = false;
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-6BEFEWFB.js";
16
16
  import {
17
17
  trackSkillsInstallSkipped
18
- } from "./chunk-YFHOTWWE.js";
18
+ } from "./chunk-UE2RAXA7.js";
19
19
  import {
20
20
  diag
21
21
  } from "./chunk-MCDNAIFF.js";
@@ -36,11 +36,11 @@ import {
36
36
  isCoreSkill,
37
37
  presentSkills,
38
38
  retiredSkillNotice
39
- } from "./chunk-YKAK4ALT.js";
39
+ } from "./chunk-SZLKWUHN.js";
40
40
  import {
41
41
  NO_UPDATE_NOTICE,
42
42
  withMeta
43
- } from "./chunk-YQ4LB3XC.js";
43
+ } from "./chunk-DVKZ55DS.js";
44
44
  import {
45
45
  failureMessage,
46
46
  jsonFailure
@@ -51,7 +51,7 @@ import {
51
51
  } from "./chunk-66W5IWLO.js";
52
52
  import {
53
53
  VERSION
54
- } from "./chunk-N32TVQYQ.js";
54
+ } from "./chunk-DEI35LJT.js";
55
55
 
56
56
  // src/commands/skills.ts
57
57
  import { execFileSync, spawn } from "child_process";
@@ -8,7 +8,7 @@ import {
8
8
  ratioOf,
9
9
  readClip,
10
10
  round
11
- } from "./chunk-PC662ORN.js";
11
+ } from "./chunk-VR7E3QEQ.js";
12
12
 
13
13
  // src/measure/look.ts
14
14
  var LOOK_FLOOR = { luma: 1, contrast: 1, saturation: 0.01 };
@@ -13,10 +13,10 @@ import {
13
13
  } from "./chunk-GKLZMLX3.js";
14
14
  import {
15
15
  createProjectConfig
16
- } from "./chunk-DM7WRHB5.js";
16
+ } from "./chunk-ZAJSIWIC.js";
17
17
  import {
18
18
  isHyperframesProject
19
- } from "./chunk-IR3JMMFT.js";
19
+ } from "./chunk-HUZ3GL3F.js";
20
20
  import {
21
21
  isCI
22
22
  } from "./chunk-FYZFURBN.js";
@@ -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.16" : "0.0.0-dev";
10
- var PRODUCER_VERSION = true ? "0.9.16" : "0.0.0-dev";
9
+ var VERSION = true ? "0.9.17" : "0.0.0-dev";
10
+ var PRODUCER_VERSION = true ? "0.9.17" : "0.0.0-dev";
11
11
 
12
12
  export {
13
13
  VERSION,
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-R4EWRIDL.js";
13
13
  import {
14
14
  findFFmpeg
15
- } from "./chunk-NNXS4VBX.js";
15
+ } from "./chunk-RPLMK4WC.js";
16
16
  import {
17
17
  stoppableExecFile
18
18
  } from "./chunk-HU2SPFNG.js";
@@ -25,7 +25,7 @@ import {
25
25
  } from "./chunk-FYZFURBN.js";
26
26
  import {
27
27
  VERSION
28
- } from "./chunk-N32TVQYQ.js";
28
+ } from "./chunk-DEI35LJT.js";
29
29
 
30
30
  // src/utils/updateCheck.ts
31
31
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
@@ -8,14 +8,14 @@ import {
8
8
  DEFAULT_REGISTRY_URL,
9
9
  fetchItemFile,
10
10
  validRegistryItem
11
- } from "./chunk-ZUZPIM6R.js";
11
+ } from "./chunk-TBXNHLRL.js";
12
12
  import {
13
13
  publishRegistryFile,
14
14
  registryTargetPath
15
15
  } from "./chunk-T2WJO4XM.js";
16
16
  import {
17
17
  validateVariables
18
- } from "./chunk-IR3JMMFT.js";
18
+ } from "./chunk-HUZ3GL3F.js";
19
19
  import {
20
20
  realProjectRoot
21
21
  } from "./chunk-OFQWTKPW.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveConfig,
9
9
  usesSoftwareWebGpu
10
- } from "./chunk-QXGT6KRX.js";
10
+ } from "./chunk-NMQWKWV4.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-272JLFKW.js");
20
+ const { resolveBrowserGpuMode } = await import("./src-R2QH27BL.js");
21
21
  return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
22
22
  }
23
23
  function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
@@ -13,10 +13,33 @@ import { createHash } from "crypto";
13
13
  import { createReadStream } from "fs";
14
14
  import { request as httpRequest } from "http";
15
15
  import { request as httpsRequest } from "https";
16
+ import { Readable } from "stream";
16
17
  import { pipeline } from "stream/promises";
17
18
  var COMPLETE_MAX_RETRIES = 5;
18
19
  var COMPLETE_RETRY_BASE_MS = 500;
19
20
  var CONTENT_TYPE_ZIP = "application/zip";
21
+ var putTimings = { stallMs: 6e4, retries: 3, backoffMs: 1e3 };
22
+ var PutRefusedError = class extends Error {
23
+ constructor(status, message) {
24
+ super(message);
25
+ this.status = status;
26
+ }
27
+ status;
28
+ };
29
+ function isFinal(err) {
30
+ const code = err.code;
31
+ return err instanceof PutRefusedError && err.status < 500 || code === "ENOENT" || code === "EACCES";
32
+ }
33
+ async function putWithRetry(attempt, signal) {
34
+ for (let tried = 0; ; tried++) {
35
+ try {
36
+ return await attempt();
37
+ } catch (err) {
38
+ if (isFinal(err) || signal?.aborted || tried >= putTimings.retries) throw err;
39
+ await sleep(putTimings.backoffMs * 2 ** tried, signal);
40
+ }
41
+ }
42
+ }
20
43
  function sha256Hex(bytes) {
21
44
  return createHash("sha256").update(bytes).digest("hex");
22
45
  }
@@ -25,8 +48,11 @@ async function sha256OfFile(path) {
25
48
  for await (const chunk of createReadStream(path)) hash.update(chunk);
26
49
  return hash.digest("hex");
27
50
  }
28
- function sleep(ms) {
29
- return new Promise((r) => setTimeout(r, ms));
51
+ function sleep(ms, signal) {
52
+ return new Promise((resolve) => {
53
+ const timer = setTimeout(resolve, ms);
54
+ signal?.addEventListener("abort", () => (clearTimeout(timer), resolve()), { once: true });
55
+ });
30
56
  }
31
57
  function normalizeUploadHeaders(raw) {
32
58
  const out = {};
@@ -41,7 +67,12 @@ async function putBytesToPresignedUrl(fetchImpl, uploadUrl, uploadHeaders, body,
41
67
  "content-type": contentType,
42
68
  ...normalizeUploadHeaders(uploadHeaders)
43
69
  };
44
- if (!(body instanceof Uint8Array)) return putFileToPresignedUrl(uploadUrl, headers, body, signal);
70
+ return putWithRetry(
71
+ () => fetchImpl && body instanceof Uint8Array ? putBytesOnce(fetchImpl, uploadUrl, headers, body, signal) : putStreamToPresignedUrl(uploadUrl, headers, body, signal),
72
+ signal
73
+ );
74
+ }
75
+ async function putBytesOnce(fetchImpl, uploadUrl, headers, body, signal) {
45
76
  const res = await fetchImpl(uploadUrl, {
46
77
  method: "PUT",
47
78
  signal,
@@ -50,29 +81,62 @@ async function putBytesToPresignedUrl(fetchImpl, uploadUrl, uploadHeaders, body,
50
81
  });
51
82
  if (!res.ok) {
52
83
  const detail = await res.text().catch(() => "");
53
- throw new Error(
84
+ throw new PutRefusedError(
85
+ res.status,
54
86
  `Direct upload PUT failed: ${res.status} ${res.statusText}${detail ? ` \u2014 ${detail.slice(0, 300)}` : ""}`
55
87
  );
56
88
  }
57
89
  }
58
- async function putFileToPresignedUrl(uploadUrl, headers, file, signal) {
90
+ var SLICE_BYTES = 64 * 1024;
91
+ function bodyStream(body) {
92
+ if (!(body instanceof Uint8Array)) return createReadStream(body.path);
93
+ return Readable.from(
94
+ (function* () {
95
+ for (let at = 0; at < body.byteLength; at += SLICE_BYTES)
96
+ yield body.subarray(at, at + SLICE_BYTES);
97
+ })()
98
+ );
99
+ }
100
+ function watchStall(req) {
101
+ let written = -1;
102
+ let movedAt = Date.now();
103
+ const watch = setInterval(
104
+ () => {
105
+ const now = req.socket?.bytesWritten ?? 0;
106
+ if (now !== written) [written, movedAt] = [now, Date.now()];
107
+ else if (Date.now() - movedAt >= putTimings.stallMs)
108
+ req.destroy(new Error(`Upload stalled: no data sent for ${putTimings.stallMs / 1e3} s`));
109
+ },
110
+ Math.min(1e3, putTimings.stallMs / 3)
111
+ );
112
+ return () => clearInterval(watch);
113
+ }
114
+ async function putStreamToPresignedUrl(uploadUrl, headers, body, signal) {
115
+ const size = body instanceof Uint8Array ? body.byteLength : body.size;
59
116
  const send = new URL(uploadUrl).protocol === "https:" ? httpsRequest : httpRequest;
60
117
  const req = send(uploadUrl, {
61
118
  method: "PUT",
62
119
  signal,
63
- headers: { ...headers, "content-length": String(file.size) }
120
+ headers: { ...headers, "content-length": String(size) }
64
121
  });
65
122
  const response = new Promise((resolve, reject) => {
66
123
  req.once("response", resolve).once("error", reject);
67
124
  });
68
- const sent = pipeline(createReadStream(file.path), req);
125
+ const stopWatching = watchStall(req);
126
+ const source = bodyStream(body);
127
+ const sent = pipeline(source, req);
69
128
  let res;
70
129
  try {
71
130
  res = await response;
72
131
  } catch (err) {
73
132
  await sent.catch(() => void 0);
74
133
  throw err;
134
+ } finally {
135
+ stopWatching();
75
136
  }
137
+ await settle(res, sent);
138
+ }
139
+ async function settle(res, sent) {
76
140
  const status = res.statusCode ?? 0;
77
141
  const ok = status >= 200 && status < 300;
78
142
  await sent.catch((err) => {
@@ -81,7 +145,8 @@ async function putFileToPresignedUrl(uploadUrl, headers, file, signal) {
81
145
  let detail = "";
82
146
  for await (const chunk of res) detail += String(chunk);
83
147
  if (!ok) {
84
- throw new Error(
148
+ throw new PutRefusedError(
149
+ status,
85
150
  `Direct upload PUT failed: ${status} ${res.statusMessage ?? ""}${detail ? ` \u2014 ${detail.slice(0, 300)}` : ""}`
86
151
  );
87
152
  }
@@ -119,7 +184,7 @@ async function uploadAssetViaDirectUpload(opts) {
119
184
  const body = "bytes" in opts ? opts.bytes : { path: opts.path, size: opts.size };
120
185
  const size_bytes = body instanceof Uint8Array ? body.byteLength : body.size;
121
186
  const checksum_sha256 = body instanceof Uint8Array ? sha256Hex(body) : await sha256OfFile(body.path);
122
- const fetchImpl = opts.fetchImpl ?? fetch;
187
+ const fetchImpl = opts.fetchImpl;
123
188
  opts.onProgress?.({ phase: "initialize" });
124
189
  const initialize = await opts.client.createAssetUpload({
125
190
  body: { filename, content_type: opts.contentType, size_bytes, checksum_sha256 },
@@ -155,6 +220,7 @@ function uploadZipViaDirectUpload(opts) {
155
220
  }
156
221
 
157
222
  export {
223
+ putTimings,
158
224
  uploadAssetViaDirectUpload,
159
225
  uploadZipViaDirectUpload
160
226
  };
@@ -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-MLBH6KJL.js";
10
10
  import {
11
11
  installPageFunctionGuard,
12
12
  resolveCliChromeGpuMode,
13
13
  seekCompositionTimeline,
14
14
  waitForRuntimeReady
15
- } from "./chunk-ZLWRAHBZ.js";
15
+ } from "./chunk-BIY3M2WW.js";
16
16
  import {
17
17
  pageNavigationTimeoutMs
18
- } from "./chunk-O2B3YNUH.js";
18
+ } from "./chunk-7BJQ4R4F.js";
19
19
  import {
20
20
  resolveCompositionViewportFromHtml
21
- } from "./chunk-G4OGVFUJ.js";
21
+ } from "./chunk-KVANP54U.js";
22
22
  import {
23
23
  launchManagedBrowser,
24
24
  resolveManagedGpuMode
25
- } from "./chunk-4ECLIUTB.js";
25
+ } from "./chunk-N6YQHI3Z.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-VBEP277H.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-DVKZ55DS.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-YEHQIQ3O.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-QZAK3CQM.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-3DQIE2ZT.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-R2QH27BL.js");
302
302
  const requestedGpuMode = resolveCliChromeGpuMode();
303
- const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-SBYZLOAU.js");
303
+ const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-ZUQPIKA6.js");
304
304
  const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
305
305
  const requiresWebGpu = compositionRequiresWebGpu(html);
306
306
  const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);