hyperframes 0.9.19 → 0.9.21

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 (263) hide show
  1. package/dist/{add-YT7BMWZB.js → add-VQVP3JPZ.js} +14 -15
  2. package/dist/{agentPromptGenerator-VKOL4XCD.js → agentPromptGenerator-PAFWQGHU.js} +10 -11
  3. package/dist/{animatedGifPrep-MD4BNSPH.js → animatedGifPrep-AK26JDVM.js} +10 -11
  4. package/dist/api.js +36 -37
  5. package/dist/{appHistory-WXJ4STHX.js → appHistory-FVDSCS64.js} +1 -1
  6. package/dist/{asset-J42DGWPQ.js → asset-N6RZSN44.js} +2 -2
  7. package/dist/{assetCataloger-XDZB53RE.js → assetCataloger-GWF6II54.js} +11 -12
  8. package/dist/{audio-6EV56WMQ.js → audio-ZHVBBQRA.js} +70 -26
  9. package/dist/{auth-ECYU3HT4.js → auth-AJM3YSN6.js} +4 -4
  10. package/dist/{autoUpdate-HIKCPXQA.js → autoUpdate-GV4LPAJX.js} +2 -2
  11. package/dist/{avatars-X7DEU57Y.js → avatars-5EKOR2DW.js} +16 -17
  12. package/dist/{backgroundChecks-IYWWBPTC.js → backgroundChecks-J4XJD4ET.js} +3 -3
  13. package/dist/backgroundChecksWorker.js +3 -3
  14. package/dist/{batchRender-3TAV6XQQ.js → batchRender-UKQ36JT2.js} +5 -6
  15. package/dist/{beats-IFJBCISA.js → beats-LXYHFVPP.js} +11 -12
  16. package/dist/{benchmark-OS6LVCAY.js → benchmark-KXR56MIT.js} +11 -12
  17. package/dist/{billing-4NRHG5FO.js → billing-3XQYSAKP.js} +15 -16
  18. package/dist/{browser-CFI3GKFB.js → browser-P52FDITF.js} +16 -4
  19. package/dist/{bundleWithLocalizedFonts-6YHKES5G.js → bundleWithLocalizedFonts-I3KWYN6X.js} +1 -1
  20. package/dist/{capture-SNHDWW7W.js → capture-2PSBIAL2.js} +3 -3
  21. package/dist/{capture-4H3W3FNF.js → capture-SMWSGGMG.js} +22 -23
  22. package/dist/{captureCompositionFrame-BH4UMGJP.js → captureCompositionFrame-WRY5ATM7.js} +16 -17
  23. package/dist/{catalog-RZOQ54KZ.js → catalog-JIO6RXSR.js} +14 -15
  24. package/dist/{catch-up-PA4QGVNL.js → catch-up-A73H7VGC.js} +18 -7
  25. package/dist/{check-J2TCCJL5.js → check-FI7SUTK7.js} +43 -42
  26. package/dist/{checkAudio-RIFMEOQI.js → checkAudio-73DDBXXJ.js} +13 -14
  27. package/dist/{checkBrowser-M4YCLLDJ.js → checkBrowser-X5VVYQES.js} +35 -36
  28. package/dist/{chunk-E3GBPA37.js → chunk-2HRKRRQH.js} +2 -2
  29. package/dist/{chunk-OR2FAQFS.js → chunk-3FG3YAHZ.js} +1 -1
  30. package/dist/{chunk-BJUPV6I3.js → chunk-3OIUJOIR.js} +1 -1
  31. package/dist/{chunk-FSTINYWN.js → chunk-3TLAQU62.js} +1 -1
  32. package/dist/{chunk-DTJV7ST5.js → chunk-3ZXKEGKV.js} +1 -1
  33. package/dist/{chunk-ABT7WBZZ.js → chunk-4EL5RKLS.js} +1 -1
  34. package/dist/{chunk-TOD5PQJF.js → chunk-4EMQHF3T.js} +2 -2
  35. package/dist/{chunk-6OBCXHIF.js → chunk-4FNJ2QNP.js} +4 -4
  36. package/dist/{chunk-3QIHS5V3.js → chunk-4NLG5TO6.js} +3 -3
  37. package/dist/{chunk-63LNVITK.js → chunk-4UXCWPHU.js} +1 -1
  38. package/dist/{chunk-UPURJC4I.js → chunk-4ZLMVX3O.js} +1 -1
  39. package/dist/{chunk-IV2R3NET.js → chunk-5PY66UGZ.js} +3 -3
  40. package/dist/{chunk-ZPJYWAAS.js → chunk-7ETNIXIN.js} +1 -1
  41. package/dist/{chunk-HNGHIX26.js → chunk-7EUZAQD6.js} +35 -2
  42. package/dist/{chunk-BEAEO4OV.js → chunk-A2NL7HGF.js} +1 -1
  43. package/dist/{chunk-JWQHGM3V.js → chunk-A4JU6QUG.js} +1 -1
  44. package/dist/{chunk-WMRHEI4N.js → chunk-ADJCNH7M.js} +1 -1
  45. package/dist/{chunk-ENVFGBRD.js → chunk-AXFYCH7S.js} +12 -0
  46. package/dist/{chunk-RRGH76QX.js → chunk-BABCRBAO.js} +38 -4
  47. package/dist/{chunk-SVT6FCQX.js → chunk-BUCJXB6D.js} +1 -1
  48. package/dist/{chunk-3UYQMVJS.js → chunk-C4KYJSSF.js} +9 -9
  49. package/dist/{chunk-N7D6YUGR.js → chunk-CFOJE3VR.js} +2 -2
  50. package/dist/{chunk-GKLZMLX3.js → chunk-CXUT4XVT.js} +22 -1
  51. package/dist/{chunk-2DPQ347C.js → chunk-CZK7A5IB.js} +4 -4
  52. package/dist/{chunk-3XJM7XZN.js → chunk-D3NWGOXW.js} +30 -0
  53. package/dist/{chunk-PTIOZJMF.js → chunk-D7C6NOOO.js} +2 -2
  54. package/dist/{chunk-H3YZRS32.js → chunk-DXIGIMRP.js} +2 -2
  55. package/dist/{chunk-T655WZ4R.js → chunk-DYPAXBNK.js} +1 -1
  56. package/dist/{chunk-4FFKOLNM.js → chunk-DZQEPGNY.js} +3 -3
  57. package/dist/{chunk-RKRJAQFI.js → chunk-F4XUCHQQ.js} +1 -1
  58. package/dist/{chunk-URGLY5QV.js → chunk-FASKJUYU.js} +98 -35
  59. package/dist/{chunk-7EN7RIPV.js → chunk-FET6WMTX.js} +2 -2
  60. package/dist/{chunk-WRBUQRJJ.js → chunk-FOX7LXZ2.js} +1 -1
  61. package/dist/chunk-FRBQYFUV.js +481 -0
  62. package/dist/{chunk-XPIP5ZV3.js → chunk-G5UZHDEZ.js} +2 -2
  63. package/dist/{chunk-AKEZ2BEE.js → chunk-G77Z4GWC.js} +1 -1
  64. package/dist/{chunk-6AYTP32B.js → chunk-GG7RYSIU.js} +1 -1
  65. package/dist/{chunk-KXZD37E5.js → chunk-GH6GWAID.js} +1 -1
  66. package/dist/{chunk-2LZO4FX3.js → chunk-GKOSN3Q6.js} +3 -3
  67. package/dist/chunk-GREVQ2SM.js +5035 -0
  68. package/dist/{chunk-J3QW55W5.js → chunk-H6676SHA.js} +1 -1
  69. package/dist/{chunk-SJUFAZV5.js → chunk-H7N3J7Y3.js} +2 -2
  70. package/dist/{chunk-RWJFNJUE.js → chunk-HCFBCEJT.js} +1 -1
  71. package/dist/{chunk-NKK2FRY7.js → chunk-I7WVS7WN.js} +1 -1
  72. package/dist/{chunk-UIUILBMB.js → chunk-IFY5ACTF.js} +13 -13
  73. package/dist/{chunk-M3EGX3ID.js → chunk-IQR26ZJD.js} +5 -5
  74. package/dist/{chunk-XYHAXHOH.js → chunk-IRWQMKV7.js} +1 -1
  75. package/dist/{chunk-HY5KQ4KT.js → chunk-ITO3VCCW.js} +10 -10
  76. package/dist/{chunk-XKYXENEP.js → chunk-JNN2CTGU.js} +2 -2
  77. package/dist/{chunk-6KBDQAZC.js → chunk-JT6LFFYK.js} +1 -1
  78. package/dist/{chunk-L24NAUBS.js → chunk-KBHBSWEE.js} +64 -19
  79. package/dist/{chunk-XQD6XWE3.js → chunk-L2SQTHMP.js} +1 -1
  80. package/dist/{chunk-ZVDYDMQA.js → chunk-L4C4F4O3.js} +3 -3
  81. package/dist/{chunk-RLXUABCX.js → chunk-LDO7SB4J.js} +12 -5
  82. package/dist/{chunk-IPXNWK7O.js → chunk-LGSSYJS2.js} +2 -2
  83. package/dist/{chunk-ATUCYH5L.js → chunk-LIFQONFJ.js} +1 -1
  84. package/dist/{chunk-NTMMUK6Q.js → chunk-LLUKDUVS.js} +38 -20
  85. package/dist/{chunk-IDNKBZNX.js → chunk-LMUF3BGR.js} +1 -1
  86. package/dist/{chunk-5PC5FMF4.js → chunk-LQBZCXMR.js} +3 -3
  87. package/dist/{chunk-L6YCPDRH.js → chunk-M32FE7JZ.js} +3 -3
  88. package/dist/{chunk-BYVDFTG6.js → chunk-M7Z2SEQG.js} +2 -2
  89. package/dist/{chunk-RL3CNZAX.js → chunk-MERPHIUD.js} +2 -2
  90. package/dist/{chunk-JWORQ5WQ.js → chunk-MFDNMTOP.js} +1 -1
  91. package/dist/{chunk-CBHNARFI.js → chunk-MNMIIDOX.js} +1 -1
  92. package/dist/{chunk-PMAGFCRB.js → chunk-NBHVLN5J.js} +7 -7
  93. package/dist/{chunk-Z2BBCW57.js → chunk-NTNNGWKO.js} +3 -3
  94. package/dist/{chunk-VXZOWF6M.js → chunk-ONBYVA2L.js} +62 -25
  95. package/dist/{chunk-G2HKE5CX.js → chunk-OQ6VGBQV.js} +1 -1
  96. package/dist/{chunk-GNING3UV.js → chunk-OXMEC34G.js} +1 -1
  97. package/dist/{chunk-VGAKHIDG.js → chunk-OXUX73RX.js} +10 -10
  98. package/dist/{chunk-A5MTIN4M.js → chunk-P7WDQTQZ.js} +1 -1
  99. package/dist/chunk-PJNDSYJV.js +525 -0
  100. package/dist/{chunk-X2TDLUIK.js → chunk-PPOJMJR5.js} +51 -16
  101. package/dist/{chunk-67JLV22D.js → chunk-Q2LO2ZF6.js} +3 -3
  102. package/dist/{chunk-CPFG5QSQ.js → chunk-QAES6F2D.js} +7 -7
  103. package/dist/{chunk-FJXBDFH6.js → chunk-QXVJ33BP.js} +362 -190
  104. package/dist/{chunk-WAY7TXDD.js → chunk-RLY4LECT.js} +2 -2
  105. package/dist/{chunk-JDAYOJGJ.js → chunk-RQIR2BOG.js} +1 -1
  106. package/dist/{chunk-YCXW65RT.js → chunk-RYRSI623.js} +5 -5
  107. package/dist/{chunk-BUIZAY4L.js → chunk-TERSCNBN.js} +19 -8
  108. package/dist/{chunk-I4G55F5J.js → chunk-TLNKHH52.js} +1 -1
  109. package/dist/{chunk-I2L7KR3N.js → chunk-UFMWWEL3.js} +7 -7
  110. package/dist/{chunk-GZK32KOL.js → chunk-W62DJ5ZK.js} +5 -5
  111. package/dist/{chunk-TLZCUWHQ.js → chunk-WFEKL42K.js} +266 -61
  112. package/dist/{chunk-LDFI55LW.js → chunk-WZCSU7ZP.js} +1 -1
  113. package/dist/{chunk-7HROKMNQ.js → chunk-XC5PF4T4.js} +4 -4
  114. package/dist/{chunk-2752JKE6.js → chunk-XQUO3BOS.js} +65 -21
  115. package/dist/{chunk-2AL2DME3.js → chunk-XRNXGF7I.js} +2 -2
  116. package/dist/{chunk-QEFMUD5U.js → chunk-YALKIB2K.js} +1 -1
  117. package/dist/{chunk-W6Q7Q7BS.js → chunk-YQV44DRO.js} +77 -2
  118. package/dist/{chunk-WBXUGXZP.js → chunk-YZKRMBYH.js} +1 -1
  119. package/dist/{chunk-D33DCBBM.js → chunk-ZEQOP7XA.js} +2 -2
  120. package/dist/{chunk-YBUZQGMX.js → chunk-ZFYCYUVY.js} +2 -2
  121. package/dist/{chunk-LFSSI7W3.js → chunk-ZH3SXWCV.js} +42 -15
  122. package/dist/{chunk-TJUJJYJC.js → chunk-ZNFYQMFN.js} +2 -2
  123. package/dist/{clean-PMM6YUQ3.js → clean-PILJFGU2.js} +20 -21
  124. package/dist/cli.js +62 -62
  125. package/dist/{cloud-D3WTNTF2.js → cloud-D7DFYONW.js} +4 -4
  126. package/dist/{cloud-OIPASJZZ.js → cloud-HBMQH4EU.js} +4 -4
  127. package/dist/{cloudrun-3TXJ2QOV.js → cloudrun-JZQMF5DS.js} +6 -7
  128. package/dist/commands/layout-audit.browser.js +287 -23
  129. package/dist/{compare-NC7JQXZH.js → compare-5RSAPYJI.js} +32 -33
  130. package/dist/{compiler-C2HCN5CA.js → compiler-T4BPLRFY.js} +4 -4
  131. package/dist/{component-M2VJD3QI.js → component-DMHFV7BD.js} +3 -3
  132. package/dist/{compositions-3QMQV5OS.js → compositions-OW776OLK.js} +14 -15
  133. package/dist/{curve-S3VZXTYX.js → curve-4GNM7DWM.js} +14 -15
  134. package/dist/{cuts-O3OKZGPU.js → cuts-M5R2LKDZ.js} +15 -16
  135. package/dist/{delete-RFDRT4K6.js → delete-MYG77L66.js} +7 -7
  136. package/dist/{deploy-LIQXICPP.js → deploy-FGHE4FID.js} +1 -1
  137. package/dist/{describeProject-IUAV4C55.js → describeProject-SLAKVOOS.js} +11 -12
  138. package/dist/{deterministicFonts-DQDB47K3.js → deterministicFonts-IXXU76SA.js} +1 -1
  139. package/dist/{diff-F434Y7GL.js → diff-TNHEXG72.js} +35 -36
  140. package/dist/{dist-KA45Z5SZ.js → dist-23VTYBIX.js} +11 -12
  141. package/dist/{dist-URQMS2HM.js → dist-5ITUK4AA.js} +6 -4
  142. package/dist/{dist-6N5S5326.js → dist-PEDQQRFU.js} +17 -17
  143. package/dist/docs/motion-blur.md +3 -5
  144. package/dist/{doctor-VAEAFW3N.js → doctor-ILCPSC6S.js} +14 -15
  145. package/dist/{energy-HQG367CH.js → energy-SCJII6HC.js} +15 -16
  146. package/dist/{events-R55FOR6B.js → events-D2QORX35.js} +2 -2
  147. package/dist/{events-M457QJCL.js → events-OHIGKF4W.js} +16 -4
  148. package/dist/{events-3HQKXGJN.js → events-ZMK5VRA2.js} +17 -18
  149. package/dist/{extract-KSYOILWX.js → extract-OD3LI3YL.js} +15 -16
  150. package/dist/{face-IOYVA3KO.js → face-SFQDTQXC.js} +15 -16
  151. package/dist/{feedback-OLY2Y2HB.js → feedback-N3JK4ULK.js} +18 -19
  152. package/dist/{ffmpeg-POWBUKIU.js → ffmpeg-E55HQX7V.js} +10 -11
  153. package/dist/{figma-PYAOGAQ7.js → figma-JYVZPN5L.js} +3 -3
  154. package/dist/fontLocalizeCli.js +14 -15
  155. package/dist/{frames-RIUU6JZF.js → frames-BLCIN32Q.js} +16 -17
  156. package/dist/{generate-TVFTFEHB.js → generate-B7MUYYON.js} +27 -28
  157. package/dist/{get-ASVUBVPU.js → get-VQWG2NY4.js} +7 -7
  158. package/dist/{gpuPolicy-QDYHFIDS.js → gpuPolicy-3TMFL6TM.js} +10 -11
  159. package/dist/{grade-compare-2TVGR2WJ.js → grade-compare-LCS5CBNW.js} +33 -34
  160. package/dist/{heifImagePrep-ZDQ6FE6L.js → heifImagePrep-VHAJEZGL.js} +11 -12
  161. package/dist/{help-MZHLMNGB.js → help-GSE5DFSB.js} +1 -1
  162. package/dist/{history-CCPMGESN.js → history-RSB65UN3.js} +19 -8
  163. package/dist/hyperframe.manifest.json +1 -1
  164. package/dist/hyperframe.runtime.iife.js +65 -65
  165. package/dist/hyperframes-player.global.js +1 -1
  166. package/dist/{info-5CRW7PXR.js → info-FLLONVY5.js} +16 -17
  167. package/dist/{init-6U5JDVOC.js → init-EAKY3LFR.js} +30 -31
  168. package/dist/{ink-BVK6K2CB.js → ink-ZDZVD5CD.js} +15 -16
  169. package/dist/{inspect-NUGGYSLQ.js → inspect-LFEK6HOL.js} +33 -34
  170. package/dist/{installer-TBUJ66L6.js → installer-5NJVGV6X.js} +6 -7
  171. package/dist/{keyframes-N5637YSK.js → keyframes-TZBDB442.js} +16 -8
  172. package/dist/{lambda-VPSI7MTF.js → lambda-RYX5NXX5.js} +14 -15
  173. package/dist/{layout-FHJ2SQTW.js → layout-VATFBERH.js} +33 -34
  174. package/dist/{lint-XPRHASUK.js → lint-QAGBHUXZ.js} +27 -13
  175. package/dist/{lintProject-6TML32JZ.js → lintProject-BC5ISNKQ.js} +2 -2
  176. package/dist/{list-TST4Z4GR.js → list-VQZOLGEO.js} +7 -7
  177. package/dist/{localPage-NR4NBUTZ.js → localPage-ZEJ7ZKIE.js} +10 -11
  178. package/dist/{login-64KOPWVK.js → login-7BL2N6JG.js} +6 -6
  179. package/dist/{logout-EQ2HJDL4.js → logout-EKDVIU6Y.js} +2 -2
  180. package/dist/{look-VBHITYXG.js → look-OKDV2W4W.js} +15 -16
  181. package/dist/{manager-OAK67I5F.js → manager-QPEMMSLW.js} +11 -12
  182. package/dist/{measure-NNQ6XXH2.js → measure-WJ6TR545.js} +11 -11
  183. package/dist/{media-treatment-M2X3Q5NV.js → media-treatment-QYQVLCYP.js} +16 -17
  184. package/dist/{media-use-ZGJJL6KV.js → media-use-OWKQQSPJ.js} +4 -4
  185. package/dist/{models-Y24YJJ6P.js → models-FZ4HL5BX.js} +14 -15
  186. package/dist/{motionShot-KMU2SMX6.js → motionShot-IHZ544WM.js} +19 -20
  187. package/dist/{normalize-audio-27XH53UL.js → normalize-audio-77ZTAPPL.js} +11 -12
  188. package/dist/{open-6MLQR2BC.js → open-Q7AAAYVN.js} +70 -20
  189. package/dist/{parakeetRunner-BMK7KY7W.js → parakeetRunner-TAMKXXNN.js} +15 -16
  190. package/dist/{pipeline-AILSBZUB.js → pipeline-MK7LCHQD.js} +13 -14
  191. package/dist/{play-VTM2B4CS.js → play-WBLWBDBS.js} +22 -23
  192. package/dist/{preflight-IRQCF5ZW.js → preflight-O2EH2LOC.js} +11 -12
  193. package/dist/{present-JQH4CETR.js → present-3GW46ZYF.js} +18 -19
  194. package/dist/{preview-KGMCKLBI.js → preview-MPAHNXEJ.js} +57 -504
  195. package/dist/{probe-IP6W7U4A.js → probe-4F2PK26B.js} +15 -16
  196. package/dist/{producer-PRYLGX6W.js → producer-T462QJC7.js} +1 -1
  197. package/dist/{projectConfig-6WPGQGI3.js → projectConfig-T3WVF6H4.js} +8 -9
  198. package/dist/{publication-25E6ZMLB.js → publication-DX3VDYCI.js} +4 -5
  199. package/dist/{publish-6QT26AMU.js → publish-VNMKJMAK.js} +15 -16
  200. package/dist/{refresh-ARZZRKMP.js → refresh-ZHLUUENK.js} +2 -2
  201. package/dist/{remove-background-CVQQZNQQ.js → remove-background-7LE4IIOE.js} +14 -15
  202. package/dist/{render-3VHULZTP.js → render-5PTZ5VLW.js} +7 -8
  203. package/dist/{render-PUXPIIGJ.js → render-JKUR7OI2.js} +76 -39
  204. package/dist/{render-VMHF2RVD.js → render-RPHNBD4F.js} +42 -39
  205. package/dist/{render-batch-UKWKZUJM.js → render-batch-X2QMZUYH.js} +7 -8
  206. package/dist/renderSetupWorker.js +11 -8
  207. package/dist/{resolver-KEMGGVU7.js → resolver-AXDCEJ77.js} +6 -7
  208. package/dist/{reverse-4BCCUHPA.js → reverse-DQSOSC5W.js} +1 -1
  209. package/dist/{run-WZP6HXIH.js → run-IQLZHH6D.js} +5 -5
  210. package/dist/{screenshotCapture-VGOH65YU.js → screenshotCapture-EAATIOT3.js} +11 -12
  211. package/dist/{sherpa-AQJGVMWJ.js → sherpa-NPPB3DTN.js} +14 -15
  212. package/dist/skills/hyperframes/references/motion.md +1 -1
  213. package/dist/skills/hyperframes/references/storyboard.md +1 -1
  214. package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
  215. package/dist/skills/hyperframes-cli/references/preview-render.md +1 -1
  216. package/dist/skills/media-use/audio/scripts/audio.mjs +56 -26
  217. package/dist/skills/media-use/audio/scripts/lib/media-record.mjs +3 -3
  218. package/dist/skills/media-use/audio/scripts/lib/media-record.test.mjs +16 -1
  219. package/dist/skills/media-use/audio/scripts/lib/recording.mjs +53 -0
  220. package/dist/skills/media-use/audio/scripts/lib/voice-credit.mjs +17 -0
  221. package/dist/skills/media-use/audio/scripts/lib/voice-credit.test.mjs +21 -0
  222. package/dist/skills/media-use/audio/scripts/recording.test.mjs +139 -0
  223. package/dist/skills/media-use/references/audio.md +2 -1
  224. package/dist/skills/media-use/references/heygen.md +9 -9
  225. package/dist/{skills-VB4OXS7B.js → skills-S2ODBBMC.js} +19 -7
  226. package/dist/{skillsUpdateCheck-HMGBIR2Z.js → skillsUpdateCheck-AOCZDRXM.js} +3 -3
  227. package/dist/{snapshot-SXWIDOD3.js → snapshot-SS6WDSZ5.js} +40 -41
  228. package/dist/{src-IEVHZX7S.js → src-HHRR3UTF.js} +13 -14
  229. package/dist/{src-RETKK67M.js → src-MYVZPRHS.js} +20 -19
  230. package/dist/{start-PDD5527T.js → start-OYIXMJKF.js} +24 -25
  231. package/dist/{staticProjectServer-GJQCWV7Y.js → staticProjectServer-65X4MWEN.js} +21 -22
  232. package/dist/{status-N6FGW6E2.js → status-JEYVWANY.js} +16 -17
  233. package/dist/studio/assets/{hyperframes-player-Dszy0WKm.js → hyperframes-player-DqxUNa9H.js} +1 -1
  234. package/dist/studio/assets/index-Bgfyny02.css +1 -0
  235. package/dist/studio/assets/{index-CWYuXWlI.js → index-CFUJyYA1.js} +1 -1
  236. package/dist/studio/assets/{index-BeR5xCi5.js → index-Cq43Ovkf.js} +196 -196
  237. package/dist/studio/index.html +2 -2
  238. package/dist/{studio-api-IAELPUY4.js → studio-api-GJGFGQQW.js} +11 -12
  239. package/dist/{studioServer-XTVVJA3E.js → studioServer-IS27DJNF.js} +66 -59
  240. package/dist/{sync-SDUSYR4M.js → sync-NLK2RFSR.js} +15 -16
  241. package/dist/{telemetry-IXOTZW4E.js → telemetry-BMPRZBBX.js} +22 -2
  242. package/dist/{telemetry-U4VJBESU.js → telemetry-BPPPHER2.js} +16 -4
  243. package/dist/templates/_shared/AGENTS.md +3 -1
  244. package/dist/templates/_shared/CLAUDE.md +3 -1
  245. package/dist/{templates-VFKKDFCR.js → templates-YWBAFFI4.js} +25 -26
  246. package/dist/{timeline-62HYU4LF.js → timeline-FAFHG2G4.js} +21 -22
  247. package/dist/{tokens-XJUQMDBP.js → tokens-QCZBFNMS.js} +2 -2
  248. package/dist/{transcribe-7IPTYLH2.js → transcribe-2P6GMYWR.js} +29 -30
  249. package/dist/{transcribe-RRGMCQBP.js → transcribe-VL3YKFMY.js} +13 -14
  250. package/dist/{update-EAL42IMG.js → update-NWDCG6JG.js} +20 -8
  251. package/dist/{updateCheck-CCDI422O.js → updateCheck-PX4XSKDO.js} +2 -2
  252. package/dist/{upgrade-A73PJHPY.js → upgrade-VWETDZDT.js} +3 -3
  253. package/dist/{upload-YQMBLKH5.js → upload-PEY7EYFV.js} +7 -2
  254. package/dist/{urlDownloader-JZIEE3AD.js → urlDownloader-7TVBPNBG.js} +9 -10
  255. package/dist/{validate-N6F4N34T.js → validate-HCJAHDTZ.js} +27 -28
  256. package/dist/{video-6LPKR7VA.js → video-JDUB5IFM.js} +11 -12
  257. package/dist/{voices-LFPLTLKV.js → voices-YBKCBC6K.js} +30 -29
  258. package/dist/warmCheck.js +41 -42
  259. package/package.json +1 -1
  260. package/dist/chunk-GDQQ4U3L.js +0 -226
  261. package/dist/chunk-TK7THLRO.js +0 -65
  262. package/dist/chunk-X7SYA4OP.js +0 -5035
  263. package/dist/studio/assets/index-CNZk2EFC.css +0 -1
@@ -25,6 +25,7 @@ import {
25
25
  HF_COLOR_GROUP_ATTR,
26
26
  HF_COLOR_GROUP_TAG,
27
27
  MEDIA_VISUAL_STYLE_PROPERTIES,
28
+ MOTION_BLUR_FINGERPRINT_FIELDS,
28
29
  RENDER_FRAME_ID_PREFIX,
29
30
  RENDER_FRAME_ID_SUFFIX,
30
31
  SCENE_CALLBACK_ERROR_PREFIX,
@@ -42,10 +43,12 @@ import {
42
43
  quantizeSeekTime,
43
44
  quantizeTimeToFrame,
44
45
  readsKeyframeTransfers,
46
+ redactTelemetryString,
47
+ redactUrlQueryStrings,
45
48
  renderFrameIdForRenderId,
46
49
  resolveAuthoredTimingWindow,
47
50
  toFps
48
- } from "./chunk-W6Q7Q7BS.js";
51
+ } from "./chunk-YQV44DRO.js";
49
52
  import {
50
53
  AUDIO_GROUP_RENDER_ID_ATTR,
51
54
  AUTHORED_SOURCE_BEGIN,
@@ -88,11 +91,7 @@ import {
88
91
  sourceTimeAt,
89
92
  timeAtSourceTime,
90
93
  volumeSegmentSampleCount
91
- } from "./chunk-X7SYA4OP.js";
92
- import {
93
- redactTelemetryString,
94
- redactUrlQueryStrings
95
- } from "./chunk-TK7THLRO.js";
94
+ } from "./chunk-GREVQ2SM.js";
96
95
  import {
97
96
  withHyperframesBrowserMarker
98
97
  } from "./chunk-K4MJX7SR.js";
@@ -106,7 +105,7 @@ import {
106
105
  } from "./chunk-WE42NVH7.js";
107
106
  import {
108
107
  resolveReferencedStart
109
- } from "./chunk-NTMMUK6Q.js";
108
+ } from "./chunk-LLUKDUVS.js";
110
109
  import {
111
110
  isWithinProjectRoot,
112
111
  resolveProjectRelativeSrc
@@ -116,12 +115,6 @@ import {
116
115
  FFPROBE_PATH_ENV,
117
116
  findFfBinary
118
117
  } from "./chunk-HYRPH6LL.js";
119
- import {
120
- isPathInside
121
- } from "./chunk-OHQRQE7F.js";
122
- import {
123
- parseHTML
124
- } from "./chunk-GWTIFRF5.js";
125
118
  import {
126
119
  LOW_MEMORY_TOTAL_MB_THRESHOLD,
127
120
  getAvailableMemoryMb,
@@ -129,6 +122,12 @@ import {
129
122
  getSystemTotalMb,
130
123
  isLowMemorySystem
131
124
  } from "./chunk-FBN2M2HK.js";
125
+ import {
126
+ isPathInside
127
+ } from "./chunk-OHQRQE7F.js";
128
+ import {
129
+ parseHTML
130
+ } from "./chunk-GWTIFRF5.js";
132
131
  import {
133
132
  hyperframesCacheDir
134
133
  } from "./chunk-JOQR4AP6.js";
@@ -1213,9 +1212,18 @@ function setHostHandlesSigint(owned) {
1213
1212
  hostHandlesSigint = owned;
1214
1213
  }
1215
1214
  var ownedLaunchOptions = () => ({ handleSIGINT: !hostHandlesSigint, pipe: true });
1215
+ var SOFTWARE_WEBGL_RENDERER_TOKENS = [
1216
+ "swiftshader",
1217
+ "llvmpipe",
1218
+ "lavapipe",
1219
+ "softpipe",
1220
+ "mesa offscreen",
1221
+ "microsoft basic render driver",
1222
+ "software rasterizer"
1223
+ ];
1216
1224
  function isSoftwareWebGlRenderer(rendererInfo) {
1217
1225
  const renderer = rendererInfo.trim().toLowerCase();
1218
- return renderer.includes("swiftshader") || renderer.includes("llvmpipe") || renderer.includes("lavapipe") || renderer.includes("softpipe") || renderer.includes("mesa offscreen") || renderer.includes("microsoft basic render driver") || renderer.includes("software rasterizer");
1226
+ return SOFTWARE_WEBGL_RENDERER_TOKENS.some((token) => renderer.includes(token));
1219
1227
  }
1220
1228
  async function getPuppeteer() {
1221
1229
  if (_puppeteer) return _puppeteer;
@@ -1977,10 +1985,13 @@ async function assertWebGpuAdapterAvailable(page, requiresWebGpu, softwareWebGpu
1977
1985
  return await Promise.race([
1978
1986
  probe(),
1979
1987
  new Promise((resolve2) => {
1980
- timer = setTimeout(() => {
1981
- expired = true;
1982
- resolve2(false);
1983
- }, timeoutMs);
1988
+ timer = (globalThis.window?.__HF_VIRTUAL_TIME__?.originalSetTimeout ?? setTimeout)(
1989
+ () => {
1990
+ expired = true;
1991
+ resolve2(false);
1992
+ },
1993
+ timeoutMs
1994
+ );
1984
1995
  })
1985
1996
  ]);
1986
1997
  } catch {
@@ -2091,10 +2102,12 @@ identically under Docker. Consider:
2091
2102
 
2092
2103
  // ../engine/src/services/drawElementService.ts
2093
2104
  var DE_CANVAS_NOT_INITIALIZED_CODE = "HF_DE_CANVAS_NOT_INITIALIZED";
2094
- function resolveDrawElementCaptureMode(isSwiftShader, transparent) {
2095
- void transparent;
2096
- if (isSwiftShader) return "screenshot";
2097
- return "drawelement";
2105
+ function drawElementGate(args) {
2106
+ const { backend, launchCaptureMode, forceDE } = args;
2107
+ if (backend.isSwiftShader) return "swiftshader";
2108
+ if (!backend.webglAvailable) return "webgl_unavailable";
2109
+ if (launchCaptureMode === "beginframe" && !forceDE) return "beginframe_no_self_verify";
2110
+ return null;
2098
2111
  }
2099
2112
  function instrumentAcceleratedCanvases() {
2100
2113
  const w = window;
@@ -2132,15 +2145,25 @@ function classifyGpuRenderer(renderer) {
2132
2145
  return `${backend}/${vendor}`;
2133
2146
  }
2134
2147
  async function detectGpuBackend(page) {
2135
- return page.evaluate(() => {
2148
+ return page.evaluate((softwareTokens) => {
2136
2149
  const canvas = document.createElement("canvas");
2137
- const gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl");
2138
- if (!gl) return { isSwiftShader: false, renderer: null };
2150
+ let gl = null;
2151
+ try {
2152
+ gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl");
2153
+ } catch {
2154
+ gl = null;
2155
+ }
2156
+ if (!gl) return { isSwiftShader: false, webglAvailable: false, renderer: null };
2139
2157
  const ext = gl.getExtension("WEBGL_debug_renderer_info");
2140
- if (!ext) return { isSwiftShader: false, renderer: null };
2158
+ if (!ext) return { isSwiftShader: false, webglAvailable: true, renderer: null };
2141
2159
  const renderer = gl.getParameter(ext.UNMASKED_RENDERER_WEBGL);
2142
- return { isSwiftShader: renderer.toLowerCase().includes("swiftshader"), renderer };
2143
- });
2160
+ const lower = renderer.toLowerCase();
2161
+ return {
2162
+ isSwiftShader: softwareTokens.some((token) => lower.includes(token)),
2163
+ webglAvailable: true,
2164
+ renderer
2165
+ };
2166
+ }, SOFTWARE_WEBGL_RENDERER_TOKENS);
2144
2167
  }
2145
2168
  async function injectDrawElementCanvas(page, width, height) {
2146
2169
  await page.evaluate(
@@ -2289,7 +2312,7 @@ async function captureDrawElementFrame(page, width, height, format = "jpeg", qua
2289
2312
  rejectCapture(e instanceof Error ? e : new Error(String(e)));
2290
2313
  return;
2291
2314
  }
2292
- setTimeout(() => {
2315
+ (window.__HF_VIRTUAL_TIME__?.originalSetTimeout ?? setTimeout)(() => {
2293
2316
  try {
2294
2317
  resolveCapture(
2295
2318
  fmt === "png" ? canvas.toDataURL("image/png") : canvas.toDataURL("image/jpeg", q / 100)
@@ -2309,7 +2332,7 @@ async function captureDrawElementFrame(page, width, height, format = "jpeg", qua
2309
2332
  };
2310
2333
  canvas.addEventListener("paint", onPaint);
2311
2334
  usedRequestPaint = aw.__hfDeInvalidate?.() === true;
2312
- setTimeout(() => {
2335
+ (window.__HF_VIRTUAL_TIME__?.originalSetTimeout ?? setTimeout)(() => {
2313
2336
  canvas.removeEventListener("paint", onPaint);
2314
2337
  drawAndEncode();
2315
2338
  }, 250);
@@ -2566,7 +2589,7 @@ async function produceDrawElementFrame(page, width, height, quality = 80, syncTo
2566
2589
  };
2567
2590
  canvas.addEventListener("paint", onPaint);
2568
2591
  usedRequestPaint = aw.__hfDeInvalidate?.() === true;
2569
- setTimeout(() => {
2592
+ (window.__HF_VIRTUAL_TIME__?.originalSetTimeout ?? setTimeout)(() => {
2570
2593
  canvas.removeEventListener("paint", onPaint);
2571
2594
  drawAndKick();
2572
2595
  }, 250);
@@ -2644,7 +2667,7 @@ async function produceDrawElementFrameBatch(page, times, width, height, quality
2644
2667
  };
2645
2668
  canvas.addEventListener("paint", settle);
2646
2669
  usedRequestPaint = aw.__hfDeInvalidate?.() === true;
2647
- setTimeout(settle, 250);
2670
+ (window.__HF_VIRTUAL_TIME__?.originalSetTimeout ?? setTimeout)(settle, 250);
2648
2671
  });
2649
2672
  let prevBitmap = Promise.resolve();
2650
2673
  let prevBitmapIdx = -1;
@@ -3661,34 +3684,75 @@ async function installPageMotionBlur(page, options) {
3661
3684
  off
3662
3685
  );
3663
3686
  }
3687
+ function parseFingerprint(raw) {
3688
+ if (!raw || typeof raw !== "object") return null;
3689
+ const count = (field) => Number(Reflect.get(raw, field)) || 0;
3690
+ return Object.fromEntries(
3691
+ MOTION_BLUR_FINGERPRINT_FIELDS.map((field) => [field, count(field)])
3692
+ );
3693
+ }
3664
3694
  async function readPageMotionBlur(page) {
3665
- return page.evaluate(() => {
3695
+ const read = await page.evaluate(() => {
3666
3696
  const api = Reflect.get(window, "__hfMotionBlur");
3667
3697
  const report = api && typeof api === "object" ? Reflect.get(api, "report") : null;
3668
3698
  const got = typeof report === "function" ? report() : null;
3669
3699
  if (!got || typeof got !== "object") return null;
3670
3700
  const tier = Reflect.get(got, "tier");
3701
+ const reasonCode = Reflect.get(got, "reasonCode");
3671
3702
  return {
3672
3703
  state: String(Reflect.get(got, "state")),
3673
- code: String(Reflect.get(got, "reasonCode")),
3704
+ reasonCode: typeof reasonCode === "string" ? reasonCode : null,
3674
3705
  movers: Number(Reflect.get(got, "movers")),
3675
3706
  failedFrames: Number(Reflect.get(got, "failedFrames")) || 0,
3676
- tier: typeof tier === "string" ? tier : null
3707
+ tier: typeof tier === "string" ? tier : null,
3708
+ readEvents: Reflect.get(got, "readEvents") === true,
3709
+ fingerprint: Reflect.get(got, "fingerprint")
3677
3710
  };
3678
3711
  });
3712
+ return read && { ...read, fingerprint: parseFingerprint(read.fingerprint) };
3713
+ }
3714
+ function fingerprintCounts(fingerprint) {
3715
+ if (!fingerprint) return "";
3716
+ return MOTION_BLUR_FINGERPRINT_FIELDS.filter((field) => fingerprint[field] > 0).map((field) => `${field}:${fingerprint[field]}`).join(",");
3717
+ }
3718
+ var formatPageMotionBlur = (r) => {
3719
+ const counts = fingerprintCounts(r.fingerprint);
3720
+ return `[motion-blur] ${r.state} reasonCode=${r.reasonCode} movers=${r.movers} failedFrames=${r.failedFrames}${r.tier ? ` tier=${r.tier}` : ""}${r.readEvents ? " readEvents=true" : ""}${counts ? ` fp=${counts}` : ""}`;
3721
+ };
3722
+ var summarize = (r) => ({
3723
+ tier: r.tier === "capture" || r.tier === "filter" ? r.tier : null,
3724
+ reasonCode: r.reasonCode,
3725
+ movers: r.movers,
3726
+ failedFrames: r.failedFrames,
3727
+ readEvents: r.readEvents,
3728
+ fingerprint: r.fingerprint
3729
+ });
3730
+ function pageMotionBlurRecorder(session) {
3731
+ return (next) => {
3732
+ const held = session.pageMotionBlur;
3733
+ if (!held) {
3734
+ session.pageMotionBlur = next;
3735
+ return;
3736
+ }
3737
+ Object.assign(held, next, {
3738
+ tier: next.tier ?? held.tier,
3739
+ fingerprint: next.fingerprint ?? held.fingerprint
3740
+ });
3741
+ };
3679
3742
  }
3680
- var formatPageMotionBlur = (r) => `[motion-blur] ${r.state} reasonCode=${r.code} movers=${r.movers} failedFrames=${r.failedFrames}${r.tier ? ` tier=${r.tier}` : ""}`;
3681
- async function describePageMotionBlur(page) {
3743
+ async function describePageMotionBlur(page, record2) {
3682
3744
  const r = await readPageMotionBlur(page);
3745
+ if (r) record2?.(summarize(r));
3683
3746
  return r && formatPageMotionBlur(r);
3684
3747
  }
3685
- async function describePageMotionBlurAtEnd(page, timeoutMs = 1500) {
3748
+ async function describePageMotionBlurAtEnd(page, timeoutMs = 1500, record2) {
3686
3749
  let timer;
3687
3750
  const stuck = new Promise((resolve2) => {
3688
3751
  timer = setTimeout(() => resolve2(null), timeoutMs);
3689
3752
  });
3690
3753
  try {
3691
3754
  const r = await Promise.race([readPageMotionBlur(page), stuck]);
3755
+ if (r) record2?.(summarize(r));
3692
3756
  return r && r.failedFrames > 0 ? `${formatPageMotionBlur(r)} (session end)` : null;
3693
3757
  } catch {
3694
3758
  return null;
@@ -5118,7 +5182,20 @@ function withinBudget(work, ms) {
5118
5182
  );
5119
5183
  });
5120
5184
  }
5121
- async function scanCssEffectLiveFrames(page, fps, totalFrames, maxFrames, { budgetMs = SCAN_BUDGET_MS, now = () => performance.now(), onProgress } = {}) {
5185
+ async function scanCssEffectLiveFrames(page, fps, totalFrames, maxFrames, {
5186
+ budgetMs = SCAN_BUDGET_MS,
5187
+ now = () => performance.now(),
5188
+ onProgress = () => {
5189
+ },
5190
+ onEnd
5191
+ } = {}) {
5192
+ try {
5193
+ return await scanLiveFrames(page, fps, totalFrames, maxFrames, budgetMs, now, onProgress);
5194
+ } finally {
5195
+ onEnd?.();
5196
+ }
5197
+ }
5198
+ async function scanLiveFrames(page, fps, totalFrames, maxFrames, budgetMs, now, onProgress) {
5122
5199
  const live = /* @__PURE__ */ new Set();
5123
5200
  const started = now();
5124
5201
  for (let from = 0; from < totalFrames && live.size <= maxFrames; from += SCAN_CHUNK_FRAMES) {
@@ -5133,7 +5210,7 @@ async function scanCssEffectLiveFrames(page, fps, totalFrames, maxFrames, { budg
5133
5210
  return null;
5134
5211
  }
5135
5212
  for (const i of shown) live.add(from + i);
5136
- onProgress?.(to, totalFrames);
5213
+ onProgress(to, totalFrames);
5137
5214
  const projectedMs = (now() - started) / to * totalFrames;
5138
5215
  if (to < totalFrames && projectedMs > budgetMs) {
5139
5216
  console.error(
@@ -5663,7 +5740,10 @@ async function decodeDynamicCssBackgroundImages(page) {
5663
5740
  image.src = url;
5664
5741
  let timer;
5665
5742
  const expired = new Promise((resolve2) => {
5666
- timer = setTimeout(() => resolve2("late"), limitMs);
5743
+ timer = (window.__HF_VIRTUAL_TIME__?.originalSetTimeout ?? setTimeout)(
5744
+ () => resolve2("late"),
5745
+ limitMs
5746
+ );
5667
5747
  });
5668
5748
  try {
5669
5749
  const outcome = await Promise.race([
@@ -5880,6 +5960,11 @@ async function waitForCloseWithTimeout(promise) {
5880
5960
  if (timer) clearTimeout(timer);
5881
5961
  return !timedOut;
5882
5962
  }
5963
+ var DE_GATE_MESSAGES = {
5964
+ swiftshader: "SwiftShader (software rasterizer, no GPU egress to skip, drawElement is parity-or-slower; see fast-capture-limitations.md)",
5965
+ webgl_unavailable: "WebGL is unavailable (no GPU behind this browser, so it rasterizes in software and drawElement has no GPU egress to skip)",
5966
+ beginframe_no_self_verify: "this browser was launched for BeginFrame capture, whose self-verify truth page has no BeginFrame driver, so drawElement frames could not be checked"
5967
+ };
5883
5968
  async function initDrawElementOrTransparentBackground(session, page, logInitPhase) {
5884
5969
  await session.options.recordReferenceBackground?.(() => readReferenceBackground(page));
5885
5970
  const supersampling = (session.options.deviceScaleFactor ?? 1) !== 1;
@@ -5937,12 +6022,16 @@ async function initDrawElementOrTransparentBackground(session, page, logInitPhas
5937
6022
  await routeToFallback();
5938
6023
  return;
5939
6024
  }
5940
- const mode = resolveDrawElementCaptureMode(session.isSwiftShader, transparent);
5941
- if (mode === "screenshot") {
5942
- session.deGateReason = "swiftshader";
5943
- session.deFallbackTrigger = "swiftshader";
6025
+ const gateReason = drawElementGate({
6026
+ backend: gpuBackend,
6027
+ launchCaptureMode: session.launchCaptureMode,
6028
+ forceDE
6029
+ });
6030
+ if (gateReason !== null) {
6031
+ session.deGateReason = gateReason;
6032
+ session.deFallbackTrigger = gateReason;
5944
6033
  console.error(
5945
- `[engine] fast capture falls back to ${session.launchCaptureMode} capture: SwiftShader (software rasterizer, no GPU egress to skip, drawElement is parity-or-slower; see fast-capture-limitations.md)`
6034
+ `[engine] fast capture falls back to ${session.launchCaptureMode} capture: ` + DE_GATE_MESSAGES[gateReason]
5946
6035
  );
5947
6036
  await routeToFallback();
5948
6037
  } else {
@@ -5961,12 +6050,12 @@ async function initDrawElementOrTransparentBackground(session, page, logInitPhas
5961
6050
  if (!forceDE && process.env.HF_FAST_CAPTURE_CSSFX !== "true") {
5962
6051
  const cssFx = (await scanCssEffects(page, false)).reason;
5963
6052
  if (cssFx) {
5964
- const gateReason = `css_effect:${(cssFx.split(":")[0] ?? "").replace(/[^a-z-]/gi, "")}`;
6053
+ const gateReason2 = `css_effect:${(cssFx.split(":")[0] ?? "").replace(/[^a-z-]/gi, "")}`;
5965
6054
  const gateMessage = `${cssFx} detected (drawElementImage cannot reproduce it; see fast-capture-limitations.md)`;
5966
6055
  cssFrames = perFrame ? await renderFrameCount(session, page) : 0;
5967
6056
  const live = cssFrames > 0 ? await cssEffectRiskFrames(session, cssFrames) : null;
5968
6057
  if (!live) {
5969
- await routeWholeRender(gateReason, cssFx, gateMessage);
6058
+ await routeWholeRender(gateReason2, cssFx, gateMessage);
5970
6059
  return;
5971
6060
  }
5972
6061
  for (const f of live) riskFrames.add(f);
@@ -6082,7 +6171,7 @@ async function cssEffectRiskFrames(session, totalFrames) {
6082
6171
  fps,
6083
6172
  totalFrames,
6084
6173
  totalFrames * MAX_RISK_FRAME_FRACTION,
6085
- { onProgress: session.options.onEffectScanProgress }
6174
+ { onProgress: session.options.onEffectScanProgress, onEnd: session.options.onEffectScanEnd }
6086
6175
  );
6087
6176
  return live && withFramesAfterCallback(live, scan.callbackFrom, fps, totalFrames);
6088
6177
  } catch (error) {
@@ -6386,7 +6475,9 @@ var HF_READY_DIAGNOSTIC_EXPR = `(async function() {
6386
6475
  function() { settled[key] = "rejected"; },
6387
6476
  );
6388
6477
  });
6389
- await new Promise(function(r) { setTimeout(r, 0); });
6478
+ await new Promise(function(r) {
6479
+ (window.__HF_VIRTUAL_TIME__ && window.__HF_VIRTUAL_TIME__.originalSetTimeout || setTimeout)(r, 0);
6480
+ });
6390
6481
  }
6391
6482
  // A thenable resolving via its own setTimeout(0) can still misreport as
6392
6483
  // pending here (macrotask registration order, not resolution order), a
@@ -6795,6 +6886,78 @@ function recordCaptureWarnings(session, warnings) {
6795
6886
  console.warn(`[FrameCapture:${warning.code}] ${warning.message}`, warning.details ?? {});
6796
6887
  }
6797
6888
  }
6889
+ function recordReadiness(session, warnings) {
6890
+ recordCaptureWarnings(session, warnings);
6891
+ for (const warning of warnings) {
6892
+ if (warning.code !== "media_readiness_timeout" || warning.details?.mediaType !== "image")
6893
+ continue;
6894
+ session.lateImages ??= /* @__PURE__ */ new Set();
6895
+ for (const source of warning.details.sources ?? []) session.lateImages.add(source);
6896
+ }
6897
+ }
6898
+ var ImageMissingFromFrameError = class extends Error {
6899
+ constructor(frameIndex, sources, failedToLoad) {
6900
+ super(
6901
+ `Frame ${frameIndex} shows ${sources.join(", ")}, which ${failedToLoad ? "failed to load" : "did not load in time"}, so the render stopped rather than make a video missing it. ` + (failedToLoad ? `Check that the image exists and can be opened.` : `Try fewer workers (--workers 1) or a longer --player-ready-timeout.`)
6902
+ );
6903
+ this.frameIndex = frameIndex;
6904
+ this.sources = sources;
6905
+ this.failedToLoad = failedToLoad;
6906
+ this.name = "ImageMissingFromFrameError";
6907
+ }
6908
+ frameIndex;
6909
+ sources;
6910
+ failedToLoad;
6911
+ };
6912
+ var LATE_IMAGE_POLL_MS = 100;
6913
+ async function waitForShownLateImages(session, frameIndex) {
6914
+ const lateImages = session.lateImages;
6915
+ if (!lateImages?.size) return;
6916
+ session.captureStep = "waiting for a late image";
6917
+ const timeoutMs = session.config?.playerReadyTimeout ?? DEFAULT_CONFIG.playerReadyTimeout;
6918
+ const deadline = Date.now() + timeoutMs;
6919
+ for (; ; ) {
6920
+ const { arrived, waiting, broken } = await session.page.evaluate(async (urls) => {
6921
+ const listed2 = new Set(urls);
6922
+ const found = Array.from(document.querySelectorAll("img")).filter(
6923
+ (img) => listed2.has(img.src)
6924
+ );
6925
+ const loaded = found.filter((img) => img.complete && img.naturalWidth > 0);
6926
+ await Promise.allSettled(loaded.map((img) => img.decode()));
6927
+ const inViewport = (img) => {
6928
+ const box = img.getBoundingClientRect();
6929
+ return box.width > 0 && box.height > 0 && box.right > 0 && box.bottom > 0 && box.left < window.innerWidth && box.top < window.innerHeight;
6930
+ };
6931
+ const shown = found.filter(
6932
+ (img) => !loaded.includes(img) && img.checkVisibility({ opacityProperty: true, visibilityProperty: true }) && inViewport(img)
6933
+ );
6934
+ return {
6935
+ arrived: loaded.map((img) => img.src),
6936
+ waiting: shown.filter((img) => !img.complete).map((img) => img.src),
6937
+ broken: shown.filter((img) => img.complete).map((img) => img.src)
6938
+ };
6939
+ }, Array.from(lateImages));
6940
+ for (const source of arrived) lateImages.delete(source);
6941
+ const missing = Date.now() >= deadline ? [...waiting, ...broken] : broken;
6942
+ if (missing.length > 0) {
6943
+ const stopped = new ImageMissingFromFrameError(
6944
+ frameIndex,
6945
+ [...new Set(missing.map(sanitizeDiagnosticUrl))].sort(),
6946
+ broken.length > 0
6947
+ );
6948
+ recordCaptureWarnings(session, [
6949
+ {
6950
+ code: "image_missing_from_frame",
6951
+ message: stopped.message,
6952
+ details: { mediaType: "image", sources: [...stopped.sources] }
6953
+ }
6954
+ ]);
6955
+ throw stopped;
6956
+ }
6957
+ if (waiting.length === 0) return;
6958
+ await new Promise((resolve2) => setTimeout(resolve2, LATE_IMAGE_POLL_MS));
6959
+ }
6960
+ }
6798
6961
  function recordBackgroundDecodeTimeouts(session, urls) {
6799
6962
  if (!urls?.length) return;
6800
6963
  const sources = [...new Set(urls.map(sanitizeDiagnosticUrl))].sort();
@@ -7189,7 +7352,7 @@ async function initializeSession(session) {
7189
7352
  `[FrameCapture] Some video elements did not decode within ${pageReadyTimeout}ms: ${failedVideos}. Continuing render. Affected videos will appear as blank/black frames.`
7190
7353
  );
7191
7354
  }
7192
- recordCaptureWarnings(
7355
+ recordReadiness(
7193
7356
  session,
7194
7357
  await collectMediaReadinessWarnings(page, skipVideoIds, pageReadyTimeout)
7195
7358
  );
@@ -7285,7 +7448,7 @@ async function initializeSession(session) {
7285
7448
  `[FrameCapture] Some video elements did not decode within ${pageReadyTimeout}ms: ${failedVideos}. Continuing render. Affected videos will appear as blank/black frames.`
7286
7449
  );
7287
7450
  }
7288
- recordCaptureWarnings(
7451
+ recordReadiness(
7289
7452
  session,
7290
7453
  await collectMediaReadinessWarnings(page, bfSkipVideoIds, pageReadyTimeout)
7291
7454
  );
@@ -7370,6 +7533,7 @@ async function prepareFrameForCapture(session, frameIndex, time, seekOptions, he
7370
7533
  const seekStart = Date.now();
7371
7534
  session.captureStep = "seeking the timeline";
7372
7535
  const hasPendingComposite = await seekPageTimeline(page, quantizedTime, seekOptions);
7536
+ await waitForShownLateImages(session, frameIndex);
7373
7537
  session.captureStep = "decoding CSS background images";
7374
7538
  recordBackgroundDecodeTimeouts(session, await decodeDynamicCssBackgroundImages(page));
7375
7539
  const seekMs = Date.now() - seekStart;
@@ -8215,6 +8379,7 @@ async function captureAccumulatedFrame(session, frameIndex, absFrameIndex, plan)
8215
8379
  const eventfulSeekStart = Date.now();
8216
8380
  session.captureStep = "seeking the timeline";
8217
8381
  await seekPageTimeline(session.page, frameTime, void 0);
8382
+ await waitForShownLateImages(session, frameIndex);
8218
8383
  const totals = { seekMs: Date.now() - eventfulSeekStart, beforeCaptureMs: 0, screenshotMs: 0 };
8219
8384
  if (session.onBeforeCapture) {
8220
8385
  const injectStart = Date.now();
@@ -8297,7 +8462,10 @@ async function captureFrameCore(session, frameIndex, time) {
8297
8462
  session.capturePerf.totalMs += captureTimeMs;
8298
8463
  session.capturePerf.frameMs.push(captureTimeMs);
8299
8464
  if (session.capturePerf.frames === 1) {
8300
- const blur = await describePageMotionBlur(session.page).catch(() => null);
8465
+ const blur = await describePageMotionBlur(
8466
+ session.page,
8467
+ pageMotionBlurRecorder(session)
8468
+ ).catch(() => null);
8301
8469
  if (blur) console.error(blur);
8302
8470
  }
8303
8471
  if (session.staticFrames) {
@@ -8435,6 +8603,18 @@ async function captureFramesBatchPipelined(session, frameIndices, times) {
8435
8603
  }
8436
8604
  assertVfxIntact(session);
8437
8605
  for (const frameIndex of frameIndices) assertNotRiskFrame(session, frameIndex);
8606
+ if (session.lateImages?.size) {
8607
+ const oneByOne = [];
8608
+ for (const [i, frameIndex] of frameIndices.entries()) {
8609
+ const { encodeResult } = await captureFrameToBufferPipelined(
8610
+ session,
8611
+ frameIndex,
8612
+ times[i] ?? 0
8613
+ );
8614
+ oneByOne.push({ frameIndex, encodeResult });
8615
+ }
8616
+ return oneByOne;
8617
+ }
8438
8618
  const startTime = Date.now();
8439
8619
  const fps = fpsToNumber(options.fps);
8440
8620
  const quantized = times.map((t) => quantizeTimeToFrame(t, fps));
@@ -8514,7 +8694,11 @@ async function closeCaptureSession(session) {
8514
8694
  await waitForCloseWithTimeout(session.chromeMemory.sampleOnce());
8515
8695
  }
8516
8696
  if (session.page && !session.pageReleased) {
8517
- const blur = await describePageMotionBlurAtEnd(session.page);
8697
+ const blur = await describePageMotionBlurAtEnd(
8698
+ session.page,
8699
+ void 0,
8700
+ pageMotionBlurRecorder(session)
8701
+ );
8518
8702
  if (blur) console.error(blur);
8519
8703
  }
8520
8704
  const reused = session.staticDedupCount ?? 0;
@@ -8719,6 +8903,7 @@ function getCapturePerfSummary(session) {
8719
8903
  chromeGpuProcessSeenLastSample: session.chromeMemory?.stats().gpuProcessSeenLastSample,
8720
8904
  chromeMemorySamples: session.chromeMemory?.stats().samples,
8721
8905
  deGateReason: session.deGateReason,
8906
+ motionBlur: session.pageMotionBlur,
8722
8907
  deFallbackTrigger: session.deFallbackTrigger,
8723
8908
  deWorkerEncode: session.workerEncodeEnabled ?? false,
8724
8909
  deVerifyArmed: session.deVerifyFrames?.size ?? 0,
@@ -13652,9 +13837,19 @@ function parseImageElements(html) {
13652
13837
  }
13653
13838
  var firstFrameColourCache = /* @__PURE__ */ new Map();
13654
13839
  function readKeyframeTransfers(videoPath, codec) {
13840
+ let traced = "";
13841
+ let rest = "";
13842
+ const onStderr = (chunk) => {
13843
+ const lines = (rest + chunk).split("\n");
13844
+ rest = lines.pop() ?? "";
13845
+ for (const line of lines) if (line.includes("transfer_characteristics")) traced += `${line}
13846
+ `;
13847
+ };
13655
13848
  return inExtractionSlot(
13656
- () => runFfmpeg([...urlInputArgs(videoPath), ...keyframeTransferArgs(videoPath, codec)])
13657
- ).then((result) => result.success ? parseKeyframeTransfers(result.stderr) : null);
13849
+ () => runFfmpeg([...urlInputArgs(videoPath), ...keyframeTransferArgs(videoPath, codec)], {
13850
+ onStderr
13851
+ })
13852
+ ).then((result) => result.success ? parseKeyframeTransfers(traced + rest) : null);
13658
13853
  }
13659
13854
  function readFirstFrameColour(videoPath, codec) {
13660
13855
  const identity = mediaFileIdentity(videoPath);
@@ -18728,8 +18923,20 @@ ${stderr}`;
18728
18923
  return /\bENOENT\b|No such filter|Unknown filter/i.test(text);
18729
18924
  }
18730
18925
  async function psnrForDiskSample(framePath, truth, workerId, idx) {
18926
+ const skipSample = (err) => {
18927
+ console.warn(
18928
+ `[Parallel] drawElement disk self-verify sample skipped (worker ${workerId}, frame ${idx}): ${err instanceof Error ? err.message : String(err)}`
18929
+ );
18930
+ return null;
18931
+ };
18932
+ let frame;
18731
18933
  try {
18732
- return await psnrDb(await readFile2(framePath), truth);
18934
+ frame = await readFile2(framePath);
18935
+ } catch (err) {
18936
+ return skipSample(err);
18937
+ }
18938
+ try {
18939
+ return await psnrDb(frame, truth);
18733
18940
  } catch (err) {
18734
18941
  if (isFfmpegInfrastructureFailure(err)) {
18735
18942
  const detail = err instanceof Error ? err.message : String(err);
@@ -18738,10 +18945,7 @@ async function psnrForDiskSample(framePath, truth, workerId, idx) {
18738
18945
  { cause: err }
18739
18946
  );
18740
18947
  }
18741
- console.warn(
18742
- `[Parallel] drawElement disk self-verify sample skipped (worker ${workerId}, frame ${idx}): ${err instanceof Error ? err.message : String(err)}`
18743
- );
18744
- return null;
18948
+ return skipSample(err);
18745
18949
  }
18746
18950
  }
18747
18951
  async function verifyDiskDrawElementSamples(session, task, streaming) {
@@ -19673,6 +19877,7 @@ export {
19673
19877
  buildZeroDurationDiagnostic,
19674
19878
  evaluateHfDiagnostic,
19675
19879
  waitForImagesReady,
19880
+ ImageMissingFromFrameError,
19676
19881
  applyVideoMetadataHints,
19677
19882
  VfxFailureError,
19678
19883
  initializeSession,
@@ -10,7 +10,7 @@ import {
10
10
  ratioOf,
11
11
  readClip,
12
12
  round
13
- } from "./chunk-NKK2FRY7.js";
13
+ } from "./chunk-I7WVS7WN.js";
14
14
 
15
15
  // src/measure/energy.ts
16
16
  var ENERGY_RATE = 12;
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-6BEFEWFB.js";
16
16
  import {
17
17
  trackSkillsInstallSkipped
18
- } from "./chunk-HNGHIX26.js";
18
+ } from "./chunk-7EUZAQD6.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-SJUFAZV5.js";
39
+ } from "./chunk-H7N3J7Y3.js";
40
40
  import {
41
41
  NO_UPDATE_NOTICE,
42
42
  withMeta
43
- } from "./chunk-T655WZ4R.js";
43
+ } from "./chunk-DYPAXBNK.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-2AL2DME3.js";
54
+ } from "./chunk-XRNXGF7I.js";
55
55
 
56
56
  // src/commands/skills.ts
57
57
  import { execFileSync, spawn } from "child_process";