hyperframes 0.8.222 → 0.8.224

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 (264) hide show
  1. package/dist/{add-6MPLIWVP.js → add-JEPKJ2F4.js} +15 -15
  2. package/dist/{agentPromptGenerator-X7SQPCXZ.js → agentPromptGenerator-ZBNWLX5D.js} +7 -7
  3. package/dist/{animatedGifPrep-ESOJ4FQ7.js → animatedGifPrep-43LLMTN5.js} +7 -7
  4. package/dist/api.d.ts +5 -3
  5. package/dist/api.js +33 -22
  6. package/dist/{asset-Y735VQV6.js → asset-M6SH6PUW.js} +5 -5
  7. package/dist/{assetCataloger-AOJAUEZW.js → assetCataloger-BLQ7UVJ5.js} +8 -8
  8. package/dist/{audio-VMMCGPOV.js → audio-J3QREJK4.js} +150 -1158
  9. package/dist/{auth-BD5NHYRA.js → auth-7TRCBCKA.js} +5 -5
  10. package/dist/{autoUpdate-VTMNHOAJ.js → autoUpdate-WTFSYLTK.js} +4 -4
  11. package/dist/{backgroundChecks-SUDYQZSW.js → backgroundChecks-YZW7AMMJ.js} +5 -5
  12. package/dist/backgroundChecksWorker.js +5 -5
  13. package/dist/{batchRender-4NR7RMT7.js → batchRender-LDZ6NO2X.js} +11 -11
  14. package/dist/{beats-PKEHQHBY.js → beats-JWUADKHV.js} +14 -14
  15. package/dist/{benchmark-K55DDFHG.js → benchmark-QOQZ7UGD.js} +13 -13
  16. package/dist/billing-3GVNEE56.js +86 -0
  17. package/dist/{browser-G2WFWJJ3.js → browser-4HNCSPUR.js} +8 -8
  18. package/dist/{bundleWithLocalizedFonts-MNG2UVH3.js → bundleWithLocalizedFonts-GTKHB45M.js} +2 -2
  19. package/dist/{capture-24PIC3TZ.js → capture-5OYZNIOR.js} +31 -31
  20. package/dist/{capture-U3EEAPI6.js → capture-XSRWYHAM.js} +7 -7
  21. package/dist/{captureCompositionFrame-KL4V6ORD.js → captureCompositionFrame-4F7PPQKB.js} +17 -17
  22. package/dist/{captureTimeout-RIMG6IYH.js → captureTimeout-7Y2RUBCU.js} +3 -1
  23. package/dist/{catalog-J3BU4TFW.js → catalog-4FVQSID5.js} +16 -16
  24. package/dist/{catch-up-LDGNMEGL.js → catch-up-KQVK2QZC.js} +8 -8
  25. package/dist/{check-J6HG6EKE.js → check-3YHLB6FM.js} +47 -46
  26. package/dist/{checkAudio-MAX7JUYG.js → checkAudio-7ZSZVBSJ.js} +15 -15
  27. package/dist/{checkBrowser-3W74WJ26.js → checkBrowser-VX5CHNQS.js} +40 -39
  28. package/dist/{chunk-L55LAERP.js → chunk-2KDHJCH2.js} +2 -2
  29. package/dist/{chunk-CVY6OIKN.js → chunk-2M6B2JKZ.js} +73 -39
  30. package/dist/{chunk-OROHGC7W.js → chunk-2QQO3J3B.js} +7 -7
  31. package/dist/chunk-2WVQ3CCN.js +113 -0
  32. package/dist/{chunk-RRPO44PE.js → chunk-34GAW4GO.js} +5 -5
  33. package/dist/{chunk-WWT6ETQA.js → chunk-35NDLXHZ.js} +50 -55
  34. package/dist/{chunk-YHL4CVTF.js → chunk-3NHCTTLP.js} +15 -15
  35. package/dist/chunk-3ZDOAVZM.js +570 -0
  36. package/dist/{chunk-6ZLDIMPL.js → chunk-4H4DR36N.js} +2 -2
  37. package/dist/{chunk-IB7UYGXR.js → chunk-4ZAOAPWP.js} +17 -11
  38. package/dist/{chunk-GOWU3NCE.js → chunk-52B3AOIV.js} +1 -1
  39. package/dist/{chunk-F6QV5N3A.js → chunk-53JEHQBW.js} +2 -2
  40. package/dist/{chunk-YEKJOA47.js → chunk-53TKUWDX.js} +3 -3
  41. package/dist/{chunk-6MUI2H6P.js → chunk-54Q3H2UQ.js} +5 -2
  42. package/dist/chunk-5KAGTSLY.js +205 -0
  43. package/dist/{chunk-5ZBMHUY2.js → chunk-5LOZWO2M.js} +1 -1
  44. package/dist/{chunk-DSHFKKSZ.js → chunk-5N5FYE5K.js} +2 -2
  45. package/dist/{chunk-ZBNK6X5O.js → chunk-652ERUZD.js} +2 -2
  46. package/dist/{chunk-DP5LF7GF.js → chunk-66W5IWLO.js} +12 -0
  47. package/dist/{chunk-JQWITWVC.js → chunk-6QIYQ43G.js} +2 -2
  48. package/dist/chunk-6UWSEXQ3.js +5030 -0
  49. package/dist/{chunk-35JKCWYI.js → chunk-7HSV5SJ4.js} +3 -3
  50. package/dist/{chunk-3RXZZIDQ.js → chunk-7RTPHNOO.js} +2 -2
  51. package/dist/{chunk-6CFBFWLF.js → chunk-A25SCSOK.js} +1 -1
  52. package/dist/{chunk-SJGE5I5F.js → chunk-ADVVQX4I.js} +1 -1
  53. package/dist/{chunk-GHEYGMKD.js → chunk-AMQFGICP.js} +1 -1
  54. package/dist/chunk-BAXL3U3T.js +312 -0
  55. package/dist/{chunk-YSTBSLWY.js → chunk-BEMGUGGJ.js} +1 -1
  56. package/dist/chunk-BTK3T4HJ.js +250 -0
  57. package/dist/{chunk-UBDO4EHA.js → chunk-C5JKRCSG.js} +1 -1
  58. package/dist/{chunk-ZLXWRYOO.js → chunk-CGX4EOGT.js} +3 -3
  59. package/dist/{chunk-ZPTNLDOB.js → chunk-D4M37ATV.js} +2 -2
  60. package/dist/chunk-DY7PQLIE.js +248 -0
  61. package/dist/{chunk-DNTPNSH5.js → chunk-E2ZY4GWH.js} +5 -5
  62. package/dist/{chunk-QYRMR45H.js → chunk-E47ZWDMH.js} +1 -1
  63. package/dist/{chunk-EGJ4UECR.js → chunk-EHZESMRB.js} +8 -2
  64. package/dist/{chunk-VJVVWYP6.js → chunk-EQFDOQTG.js} +1 -1
  65. package/dist/{chunk-42Q3VX34.js → chunk-F34GYYXO.js} +5 -5
  66. package/dist/{chunk-7IH3RSSG.js → chunk-F3CTUCFD.js} +12 -12
  67. package/dist/chunk-F7T57BZZ.js +95 -0
  68. package/dist/{chunk-BDZSH6P3.js → chunk-FJ3KUOUZ.js} +1 -1
  69. package/dist/{chunk-7KBS6ZLB.js → chunk-FPR57WRR.js} +2 -2
  70. package/dist/{chunk-BPIY5LB3.js → chunk-G45NYKSM.js} +39 -4
  71. package/dist/{chunk-AXVTL7B6.js → chunk-GE4ABM5K.js} +2 -2
  72. package/dist/{chunk-HQDHMAUI.js → chunk-GLTSINRP.js} +1 -1
  73. package/dist/chunk-GQ2QER6M.js +70 -0
  74. package/dist/{chunk-Y7IV5MAK.js → chunk-H6APAFKE.js} +2 -2
  75. package/dist/{chunk-5GSEM63G.js → chunk-HANNA5JJ.js} +1 -1
  76. package/dist/{chunk-RIGSGNDQ.js → chunk-HDPW7THH.js} +30 -21
  77. package/dist/{chunk-L37AZWB2.js → chunk-HIPW4JXL.js} +3 -3
  78. package/dist/{chunk-VQMHDS2V.js → chunk-HT3D5AKG.js} +52 -12
  79. package/dist/{chunk-K5UCRKUK.js → chunk-IORJ42GY.js} +2 -2
  80. package/dist/{chunk-OAXWHPNS.js → chunk-IYYQRNIZ.js} +1 -1
  81. package/dist/{chunk-G675S644.js → chunk-J7FVF73D.js} +33 -31
  82. package/dist/{chunk-S2HWGG5O.js → chunk-JHOPRAJN.js} +1 -1
  83. package/dist/{chunk-WJYFJGYT.js → chunk-JIF347PW.js} +3 -3
  84. package/dist/{chunk-XHD7RKEZ.js → chunk-JK2KNL6F.js} +2 -2
  85. package/dist/{chunk-CZOC7WY7.js → chunk-JKLWWGE6.js} +1 -1
  86. package/dist/{chunk-SKCS4SUZ.js → chunk-JMP52GTN.js} +44 -19
  87. package/dist/chunk-JUF43Q7Q.js +59 -0
  88. package/dist/chunk-K3QT232E.js +71 -0
  89. package/dist/chunk-KEDN4LSV.js +1048 -0
  90. package/dist/{chunk-G2EY3MVW.js → chunk-L4ULTWCD.js} +1 -1
  91. package/dist/{chunk-7D2LTSNV.js → chunk-LRS4FV5W.js} +3 -3
  92. package/dist/{chunk-VMRQDPFL.js → chunk-M336YVCP.js} +1 -1
  93. package/dist/{chunk-6W3DY5BP.js → chunk-MA5AQK7T.js} +2 -2
  94. package/dist/{chunk-EQGKUPBJ.js → chunk-MCDNAIFF.js} +1 -1
  95. package/dist/{chunk-EOUKB53E.js → chunk-MOXNAVCW.js} +1 -1
  96. package/dist/{chunk-AIXH3V5A.js → chunk-NFUR6NNT.js} +20 -5
  97. package/dist/{chunk-AN4USOFT.js → chunk-NI35PAVN.js} +2 -2
  98. package/dist/{chunk-E5IIR67Q.js → chunk-O2VKGYSK.js} +1 -1
  99. package/dist/chunk-ODJ2WBZX.js +288 -0
  100. package/dist/{chunk-52VXA3SC.js → chunk-OZMZFJDW.js} +1 -1
  101. package/dist/{chunk-EE7YWKDY.js → chunk-PKMAWQUI.js} +4 -4
  102. package/dist/{chunk-D6LGD472.js → chunk-POOLZTMZ.js} +6 -4
  103. package/dist/chunk-QK6ZNEBW.js +46 -0
  104. package/dist/{chunk-NUE44RN2.js → chunk-QOI46C6F.js} +17 -4
  105. package/dist/{chunk-MESSJFK3.js → chunk-QOYZ3U6G.js} +39 -29
  106. package/dist/{chunk-ZAJQFY5Q.js → chunk-QU5OYMTB.js} +15 -2
  107. package/dist/{chunk-HOTXWVVP.js → chunk-R2C5EON5.js} +2 -6
  108. package/dist/{chunk-FMKI7ZLM.js → chunk-RR5QE7DB.js} +2 -2
  109. package/dist/{chunk-OQLYKDL5.js → chunk-RU7KMDFL.js} +1 -1
  110. package/dist/{chunk-ONMTNYGR.js → chunk-RXJUMVCA.js} +1 -1
  111. package/dist/chunk-RZ6CXJ56.js +24 -0
  112. package/dist/{chunk-GODT7QDZ.js → chunk-SGMCQAYU.js} +3 -3
  113. package/dist/{chunk-QOZPWIYV.js → chunk-THL3N377.js} +19 -16
  114. package/dist/{chunk-IGBOFU2Y.js → chunk-UCPEABYK.js} +2 -2
  115. package/dist/{chunk-AOHG22HQ.js → chunk-UZ5AWZCA.js} +6 -6
  116. package/dist/{chunk-4VEXJTUT.js → chunk-VCJE7IMY.js} +2 -2
  117. package/dist/{chunk-Z5VQBRU2.js → chunk-VPMHRLJH.js} +3 -3
  118. package/dist/{chunk-FT3CNACL.js → chunk-VXRBPWVW.js} +144 -41
  119. package/dist/{chunk-537WSYHU.js → chunk-W7MJPKBJ.js} +1 -1
  120. package/dist/{chunk-26AQTUU4.js → chunk-WJD3GVAA.js} +1 -1
  121. package/dist/{chunk-DS372VSV.js → chunk-WW7Z2W73.js} +2 -2
  122. package/dist/{chunk-DC26QLB7.js → chunk-X5BSSPC2.js} +1 -1
  123. package/dist/{chunk-DIXTEVWQ.js → chunk-Y5HVDK7X.js} +3 -3
  124. package/dist/{chunk-EHSBBBR2.js → chunk-YGGZ23BB.js} +2 -0
  125. package/dist/{chunk-NHXGFQWQ.js → chunk-Z7GIHPAZ.js} +1 -1
  126. package/dist/{chunk-XC3BGWCJ.js → chunk-ZFQSXMX6.js} +1 -1
  127. package/dist/{chunk-P5M3AXEP.js → chunk-ZGQC6IU7.js} +1 -1
  128. package/dist/{chunk-KEY2VA65.js → chunk-ZLZXGJ63.js} +6 -20
  129. package/dist/{clean-K6IM3LC4.js → clean-SXEI6FT4.js} +24 -24
  130. package/dist/cli.js +73 -63
  131. package/dist/{cloud-OV7EA4BJ.js → cloud-SKN6FWAZ.js} +4 -4
  132. package/dist/{cloudrun-ZEMODIOP.js → cloudrun-RHPVVXCR.js} +9 -9
  133. package/dist/{compare-MJZ3D3HA.js → compare-RTXF2NSK.js} +36 -36
  134. package/dist/{compiler-6KKETX77.js → compiler-SKRY6FPA.js} +4 -4
  135. package/dist/{component-EVXMYIP3.js → component-2NPF5PA6.js} +6 -6
  136. package/dist/{compositions-PZ7FQ7WN.js → compositions-AZRVHGBT.js} +17 -17
  137. package/dist/curve-QSFEGBUH.js +329 -0
  138. package/dist/cuts-6AWEJH2H.js +123 -0
  139. package/dist/{delete-DL3XA4QV.js → delete-NOHFVICL.js} +9 -9
  140. package/dist/{deploy-VEYP3IP5.js → deploy-UFRADJOA.js} +10 -10
  141. package/dist/describeProject-F43LI3YQ.js +56 -0
  142. package/dist/{destroy-BQ5R7LUF.js → destroy-IQLGADZM.js} +6 -6
  143. package/dist/diff-3WS6NMSE.js +1825 -0
  144. package/dist/{dist-SHMQOKMF.js → dist-24QQO5IL.js} +2 -2
  145. package/dist/{dist-M77KFAYW.js → dist-YEYUGCOR.js} +2 -2
  146. package/dist/{docs-VAF5NM5B.js → docs-IB3KETC6.js} +1 -1
  147. package/dist/{doctor-JM2WHH7Y.js → doctor-F4VJYQXC.js} +13 -13
  148. package/dist/energy-BN3QD6Y7.js +134 -0
  149. package/dist/events-5W7ETFWR.js +221 -0
  150. package/dist/{events-GW5I5RCG.js → events-PZH4C7VA.js} +5 -5
  151. package/dist/{events-S7KVBRSL.js → events-YJ3XSIPL.js} +6 -6
  152. package/dist/extract-S34DWGAD.js +309 -0
  153. package/dist/face-3SCJADG4.js +171 -0
  154. package/dist/{feedback-7OR5FVTX.js → feedback-3K6NSKIC.js} +16 -16
  155. package/dist/{ffmpeg-A7CSIX3U.js → ffmpeg-2RBDDMHU.js} +7 -7
  156. package/dist/{figma-444HKFX5.js → figma-NWAJYMAI.js} +3 -3
  157. package/dist/fontLocalizeCli.js +10 -10
  158. package/dist/frames-6UARLPLK.js +352 -0
  159. package/dist/generate-KBVWFVXN.js +74 -0
  160. package/dist/{get-6UTF3225.js → get-SEZZMLQ3.js} +8 -8
  161. package/dist/{gpuPolicy-ORPUS5Z2.js → gpuPolicy-VIZAJ3GY.js} +7 -7
  162. package/dist/{grade-compare-UCTAYN3B.js → grade-compare-PMAK4PJD.js} +40 -37
  163. package/dist/{heifImagePrep-ED6V6RFN.js → heifImagePrep-6NYIR7WN.js} +8 -8
  164. package/dist/{help-HZR32XWP.js → help-4UPSHWI2.js} +7 -1
  165. package/dist/{history-TQ56MZIA.js → history-VNAZEQDE.js} +11 -11
  166. package/dist/hyperframe.manifest.json +1 -1
  167. package/dist/hyperframe.runtime.iife.js +70 -70
  168. package/dist/hyperframes-player.global.js +3 -3
  169. package/dist/index-gen-OPMQ5WSN.js +61 -0
  170. package/dist/{info-RPIIP7RN.js → info-OREET5PM.js} +11 -11
  171. package/dist/{init-ONAWKHFW.js → init-K7AEJBAL.js} +33 -32
  172. package/dist/{inspect-A75PYOWJ.js → inspect-STME5DNY.js} +37 -36
  173. package/dist/{installer-ISMCCFBZ.js → installer-NQA4KXRP.js} +4 -4
  174. package/dist/{keyframes-2I75DP3O.js → keyframes-JQWZ235Q.js} +10 -10
  175. package/dist/{lambda-4QIHGPGJ.js → lambda-RJNLW2EO.js} +21 -21
  176. package/dist/{layout-GW7WE7RT.js → layout-MTZWBPNZ.js} +37 -36
  177. package/dist/{lint-OWP72OZQ.js → lint-AQWTSL75.js} +12 -12
  178. package/dist/{lintProject-XYQ5L7RQ.js → lintProject-6H64SX3V.js} +2 -2
  179. package/dist/{list-WVK7ZCPW.js → list-ZEBZ5DB5.js} +9 -9
  180. package/dist/{localPage-IQWHN7BH.js → localPage-CQ3H4N2N.js} +7 -7
  181. package/dist/{login-Q5CNHYWU.js → login-VHCZHENV.js} +17 -11
  182. package/dist/{logout-6VFJ7WMW.js → logout-LHTQV2BZ.js} +3 -3
  183. package/dist/look-25TSRPSV.js +180 -0
  184. package/dist/{manager-JCYVNEWH.js → manager-57SX7D5G.js} +9 -8
  185. package/dist/manifest-QSJYVERU.js +49 -0
  186. package/dist/measure-Y2R3G5OJ.js +46 -0
  187. package/dist/{media-treatment-M5IUP7H4.js → media-treatment-3G2IVS64.js} +20 -20
  188. package/dist/{media-use-ZNTB7W6N.js → media-use-LUAOZJNV.js} +10 -6
  189. package/dist/{models-CFXKDYZ3.js → models-NT56FKRG.js} +15 -15
  190. package/dist/{motionShot-CWUEI4ZM.js → motionShot-P4NTFKYS.js} +20 -20
  191. package/dist/{normalize-QJVXFMWO.js → normalize-MBNGRVQA.js} +2 -1
  192. package/dist/{normalize-audio-FASY33LR.js → normalize-audio-2DUTZ6QK.js} +12 -12
  193. package/dist/{open-KOVVESYN.js → open-OATYOOR7.js} +15 -15
  194. package/dist/{parakeetRunner-E4IP5SL4.js → parakeetRunner-UASHW3A4.js} +13 -12
  195. package/dist/{pipeline-C6EZVV43.js → pipeline-GGAYP5Q6.js} +11 -11
  196. package/dist/{play-MZJI6SMH.js → play-GHXBJS3T.js} +28 -28
  197. package/dist/{policies-J5BWAZHM.js → policies-EERREOZJ.js} +6 -4
  198. package/dist/{preflight-K4SPUWXP.js → preflight-6VOP3IOI.js} +8 -8
  199. package/dist/{present-7L7ZTG7F.js → present-M7UYHVEZ.js} +23 -23
  200. package/dist/{preview-QGDVMR3X.js → preview-YWT5WA3W.js} +26 -26
  201. package/dist/probe-CQAGZJLP.js +178 -0
  202. package/dist/{producer-EJPNNY3E.js → producer-OU2BCMLY.js} +1 -1
  203. package/dist/{progress-X3QFO3FE.js → progress-STSH2JRY.js} +2 -2
  204. package/dist/{projectConfig-EEF6OPXO.js → projectConfig-UI4NZDN7.js} +6 -6
  205. package/dist/{prompts-VAO7RDKX.js → prompts-ZEVFT7US.js} +2 -2
  206. package/dist/{publication-5KF44AKQ.js → publication-VPJZQCLA.js} +2 -2
  207. package/dist/{publish-SSKWZ5TE.js → publish-7RA2MK2M.js} +18 -18
  208. package/dist/{refresh-I6ITGHKL.js → refresh-AM2ULRRV.js} +3 -3
  209. package/dist/{remove-background-PCL6I5SZ.js → remove-background-A5KJUH6W.js} +14 -14
  210. package/dist/{render-UPRWOGLS.js → render-EMW4I6C6.js} +45 -45
  211. package/dist/{render-DH4UA7KW.js → render-IYV73CG6.js} +10 -10
  212. package/dist/{render-DRWQ6F37.js → render-Z5IS4AUP.js} +39 -39
  213. package/dist/{render-batch-EBW5WHB5.js → render-batch-IN2ZXPS7.js} +10 -10
  214. package/dist/renderSetupWorker.js +2 -2
  215. package/dist/{resolver-ZSZXNRFP.js → resolver-DIXFK5ZR.js} +4 -4
  216. package/dist/run-MCVU7AZX.js +31 -0
  217. package/dist/{sam-QA7JT7IM.js → sam-EGFXZF56.js} +2 -2
  218. package/dist/{screenshotCapture-4THETOMD.js → screenshotCapture-RUDON2HB.js} +2 -2
  219. package/dist/{sherpa-IKVUCBOW.js → sherpa-SAY3I7PK.js} +12 -11
  220. package/dist/{sites-MTLVMYJ6.js → sites-EAGXQOKI.js} +2 -2
  221. package/dist/skills/hyperframes-cli/SKILL.md +4 -4
  222. package/dist/skills/hyperframes-cli/references/cloud.md +3 -1
  223. package/dist/skills/hyperframes-cli/references/preview-render.md +1 -1
  224. package/dist/skills/media-use/SKILL.md +20 -21
  225. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +26 -1
  226. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +33 -0
  227. package/dist/skills/media-use/references/heygen.md +58 -0
  228. package/dist/skills/media-use/references/operations.md +9 -6
  229. package/dist/skills/media-use/references/setup-providers.md +11 -12
  230. package/dist/skills/media-use/scripts/lib/index-gen.d.mts +1 -0
  231. package/dist/skills/media-use/scripts/lib/manifest.d.mts +21 -0
  232. package/dist/{skills-ZREHX3TU.js → skills-YWQ5XKH6.js} +9 -9
  233. package/dist/{skillsUpdateCheck-PPJ5NGAL.js → skillsUpdateCheck-ST5ZFEET.js} +5 -5
  234. package/dist/{snapshot-KPFLZNEL.js → snapshot-57YYYE5J.js} +43 -42
  235. package/dist/{src-QRV3466B.js → src-7MEBCSTP.js} +9 -9
  236. package/dist/{src-EPOGDJTT.js → src-LNSJHD25.js} +10 -6
  237. package/dist/{state-6QHNNHDA.js → state-W3AS6O2J.js} +2 -2
  238. package/dist/{staticProjectServer-ERKLMZVM.js → staticProjectServer-TTJSAB2Q.js} +19 -19
  239. package/dist/{status-4AAPTTRW.js → status-FGXBUX2T.js} +36 -11
  240. package/dist/studio/assets/hyperframes-player-Bzcd9O2g.js +478 -0
  241. package/dist/studio/assets/{index-C8VIUiGz.js → index-CZI-XmnO.js} +119 -119
  242. package/dist/studio/assets/{index-CVPNbydK.js → index-LW6kxYVF.js} +1 -1
  243. package/dist/studio/index.html +1 -1
  244. package/dist/{studio-api-7WFZIIPL.js → studio-api-57E36S5N.js} +15 -15
  245. package/dist/{studioServer-3XZTLI26.js → studioServer-2AIRUNBA.js} +55 -55
  246. package/dist/sync-52GUXEYZ.js +115 -0
  247. package/dist/{telemetry-BMLI4TMC.js → telemetry-RVY6RSCD.js} +6 -6
  248. package/dist/{telemetry-QHYJJAJU.js → telemetry-T73TKZOL.js} +1 -1
  249. package/dist/{timeline-EDCDO2ZR.js → timeline-MMZF4AX3.js} +31 -27
  250. package/dist/{tokens-2ZFLFO3K.js → tokens-WGWCYFTY.js} +5 -5
  251. package/dist/{transcribe-Y2LPBT7I.js → transcribe-6BF5FFPV.js} +39 -22
  252. package/dist/{transcribe-3WMH62HH.js → transcribe-YYDHXRQW.js} +11 -10
  253. package/dist/{tts-BVTJEP72.js → tts-ZLNNIS6W.js} +5 -5
  254. package/dist/{updateCheck-5LFZGC3P.js → updateCheck-AAR5LLUF.js} +4 -4
  255. package/dist/{upgrade-X7QVSEKP.js → upgrade-Y7CIRL4B.js} +5 -5
  256. package/dist/{urlDownloader-TYD6ROKL.js → urlDownloader-KZOD7EWX.js} +6 -6
  257. package/dist/{validate-26KQ5VX7.js → validate-K3PHAA2E.js} +30 -30
  258. package/dist/{video-BPKLZIJK.js → video-Z6EBVCAT.js} +9 -9
  259. package/dist/warmCheck.js +47 -46
  260. package/package.json +1 -1
  261. package/dist/chunk-LL3VMDAC.js +0 -5013
  262. package/dist/studio/assets/hyperframes-player-Dka6e1BG.js +0 -478
  263. package/dist/{chunk-NOH32H42.js → chunk-HBAUU3IK.js} +124 -124
  264. package/dist/{synthesize-4JC74JW5.js → synthesize-DIT2SR3D.js} +5 -5
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  updateCheckDisabled
9
- } from "./chunk-L55LAERP.js";
9
+ } from "./chunk-2KDHJCH2.js";
10
10
  import {
11
11
  hostAnswers
12
12
  } from "./chunk-BR2JQQC5.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  errorBox
9
- } from "./chunk-5ZBMHUY2.js";
9
+ } from "./chunk-5LOZWO2M.js";
10
10
  import {
11
11
  cssVariableName,
12
12
  slugify
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-GWTIFRF5.js";
17
17
  import {
18
18
  failCommand
19
- } from "./chunk-DP5LF7GF.js";
19
+ } from "./chunk-66W5IWLO.js";
20
20
 
21
21
  // ../core/dist/figma/client.js
22
22
  var FigmaClientError = class extends Error {
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
1278
1278
  } catch (err) {
1279
1279
  if (err instanceof Error) {
1280
1280
  try {
1281
- const { trackCommandFailure } = await import("./events-S7KVBRSL.js");
1281
+ const { trackCommandFailure } = await import("./events-YJ3XSIPL.js");
1282
1282
  trackCommandFailure(
1283
1283
  command,
1284
1284
  err,
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-T5ELONXY.js";
11
11
  import {
12
12
  CliUsageError
13
- } from "./chunk-DP5LF7GF.js";
13
+ } from "./chunk-66W5IWLO.js";
14
14
 
15
15
  // src/utils/parseOutputResolution.ts
16
16
  function parseOutputResolutionFlag(raw, options) {
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/version.ts
9
- var VERSION = true ? "0.8.222" : "0.0.0-dev";
10
- var PRODUCER_VERSION = true ? "0.8.222" : "0.0.0-dev";
9
+ var VERSION = true ? "0.8.224" : "0.0.0-dev";
10
+ var PRODUCER_VERSION = true ? "0.8.224" : "0.0.0-dev";
11
11
 
12
12
  export {
13
13
  VERSION,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  asNotice
9
- } from "./chunk-SJGE5I5F.js";
9
+ } from "./chunk-ADVVQX4I.js";
10
10
 
11
11
  // src/ui/diagnostics.ts
12
12
  var diag = {
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-EQBDKYXR.js";
10
10
  import {
11
11
  listenOnBrowserSafePort
12
- } from "./chunk-AIXH3V5A.js";
12
+ } from "./chunk-NFUR6NNT.js";
13
13
 
14
14
  // src/capture/localPage.ts
15
15
  import {
@@ -42,7 +42,7 @@ import {
42
42
  renderFrameIdForRenderId,
43
43
  resolveAuthoredTimingWindow,
44
44
  toFps
45
- } from "./chunk-BDZSH6P3.js";
45
+ } from "./chunk-FJ3KUOUZ.js";
46
46
  import {
47
47
  AUDIO_GROUP_RENDER_ID_ATTR,
48
48
  AUTHORED_SOURCE_BEGIN,
@@ -85,7 +85,7 @@ import {
85
85
  sourceTimeAt,
86
86
  timeAtSourceTime,
87
87
  volumeSegmentSampleCount
88
- } from "./chunk-LL3VMDAC.js";
88
+ } from "./chunk-6UWSEXQ3.js";
89
89
  import {
90
90
  redactTelemetryString,
91
91
  redactUrlQueryStrings
@@ -103,7 +103,7 @@ import {
103
103
  } from "./chunk-WE42NVH7.js";
104
104
  import {
105
105
  resolveReferencedStart
106
- } from "./chunk-VQMHDS2V.js";
106
+ } from "./chunk-HT3D5AKG.js";
107
107
  import {
108
108
  FFMPEG_PATH_ENV,
109
109
  FFPROBE_PATH_ENV,
@@ -8903,6 +8903,9 @@ function findHdrAutoPromotion(sources) {
8903
8903
  output: HDR_AUTO_PROMOTION_PIPELINE
8904
8904
  } : null;
8905
8905
  }
8906
+ function gradingKeepsSdr(hdrMode, media) {
8907
+ return (hdrMode ?? "auto") === "auto" && (media.gradedCanvas === true || [...media.videos, ...media.images].some(({ graded }) => graded === true));
8908
+ }
8906
8909
  function formatHdrAutoPromotionWarning(promotion) {
8907
8910
  return `[Render] HDR auto-promotion triggered by "${promotion.triggeringAsset}", output: ${promotion.output.colorSpace} / ${promotion.output.codec}`;
8908
8911
  }
@@ -13094,11 +13097,15 @@ function parseVideoElements(html) {
13094
13097
  playbackRate: readElementRateSpec(el),
13095
13098
  loop: el.hasAttribute("loop"),
13096
13099
  hasAudio: hasAudioAttr === "true" && isAudibleVideoElement(el),
13097
- ...isSelfOrAncestorHidden(el) || isAudibleVideoElement(el) && isMemberGroupHidden(groupsById, el) ? { hidden: true } : {}
13100
+ ...isSelfOrAncestorHidden(el) || isAudibleVideoElement(el) && isMemberGroupHidden(groupsById, el) ? { hidden: true } : {},
13101
+ ...el.hasAttribute(HF_COLOR_GRADING_ATTR) ? { graded: true } : {}
13098
13102
  });
13099
13103
  }
13100
13104
  return videos;
13101
13105
  }
13106
+ function hasGradedCanvas(html) {
13107
+ return parseHTML(unwrapTemplate(html)).document.querySelector(`canvas[${HF_COLOR_GRADING_ATTR}]`) !== null;
13108
+ }
13102
13109
  function parseImageElements(html) {
13103
13110
  const images = [];
13104
13111
  const { document: document2 } = parseHTML(unwrapTemplate(html));
@@ -13127,7 +13134,13 @@ function parseImageElements(html) {
13127
13134
  } else {
13128
13135
  end = Infinity;
13129
13136
  }
13130
- images.push({ id, src, start, end });
13137
+ images.push({
13138
+ id,
13139
+ src,
13140
+ start,
13141
+ end,
13142
+ ...el.hasAttribute(HF_COLOR_GRADING_ATTR) ? { graded: true } : {}
13143
+ });
13131
13144
  }
13132
13145
  return images;
13133
13146
  }
@@ -19065,6 +19078,7 @@ export {
19065
19078
  HDR_AUTO_PROMOTION_PIPELINE,
19066
19079
  sanitizeHdrAutoPromotionAsset,
19067
19080
  findHdrAutoPromotion,
19081
+ gradingKeepsSdr,
19068
19082
  formatHdrAutoPromotionWarning,
19069
19083
  analyzeCompositionHdr,
19070
19084
  isExternalFfmpegInterruption,
@@ -19136,6 +19150,7 @@ export {
19136
19150
  classifyVideoExtractionError,
19137
19151
  runVideoExtractionWithRetry,
19138
19152
  parseVideoElements,
19153
+ hasGradedCanvas,
19139
19154
  parseImageElements,
19140
19155
  sdrCanvasColourFilters,
19141
19156
  extractVideoFramesRange,
@@ -8,7 +8,7 @@ import {
8
8
  flush,
9
9
  shouldTrack,
10
10
  trackEvent
11
- } from "./chunk-NUE44RN2.js";
11
+ } from "./chunk-QOI46C6F.js";
12
12
  import {
13
13
  redactTelemetryString
14
14
  } from "./chunk-TK7THLRO.js";
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-BLBMPEBX.js";
21
21
  import {
22
22
  CliRuntimeError
23
- } from "./chunk-DP5LF7GF.js";
23
+ } from "./chunk-66W5IWLO.js";
24
24
 
25
25
  // src/utils/feedbackRating.ts
26
26
  var FEEDBACK_RATING_SCALE = 10;
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  setHostHandlesSigint
9
- } from "./chunk-AIXH3V5A.js";
9
+ } from "./chunk-NFUR6NNT.js";
10
10
  import {
11
11
  processAncestorSnapshot,
12
12
  processIdentity,
@@ -0,0 +1,288 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ downloadToFile
9
+ } from "./chunk-NO6F7CLR.js";
10
+ import {
11
+ Fix,
12
+ frameAt,
13
+ round,
14
+ runFfmpeg
15
+ } from "./chunk-BTK3T4HJ.js";
16
+ import {
17
+ verifies
18
+ } from "./chunk-RZ6CXJ56.js";
19
+
20
+ // src/measure/opencv.ts
21
+ import { mkdirSync, readFileSync, renameSync, rmSync } from "fs";
22
+ import { createRequire } from "module";
23
+ import { homedir } from "os";
24
+ import { join } from "path";
25
+ var VERSION = "4.10.0";
26
+ var OPENCV_DIR = join(homedir(), ".cache", "hyperframes", "opencv", VERSION);
27
+ var CASCADES = "https://raw.githubusercontent.com/opencv/opencv/4.10.0/data/haarcascades";
28
+ var FILES = [
29
+ {
30
+ name: "opencv.js",
31
+ bytes: 10378215,
32
+ sha256: "19b46167b59efbef9cc3836264b0b657110833e4b1df84282004b8b3141c048d",
33
+ url: "https://cdn.jsdelivr.net/npm/@techstark/opencv-js@4.10.0-release.1/dist/opencv.js"
34
+ },
35
+ {
36
+ name: "haarcascade_frontalface_alt2.xml",
37
+ bytes: 540616,
38
+ sha256: "7b0c967d9abbdfbde025eb9c786947d151b6426040d07a8f9562ed8fd90724b4",
39
+ url: `${CASCADES}/haarcascade_frontalface_alt2.xml`
40
+ },
41
+ {
42
+ name: "haarcascade_profileface.xml",
43
+ bytes: 828514,
44
+ sha256: "b39a4a3be45539db146a7fc1d3e761a292c196eb88421185e6a615b3055e612d",
45
+ url: `${CASCADES}/haarcascade_profileface.xml`
46
+ }
47
+ ];
48
+ var isCv = (v) => typeof v === "object" && v !== null && "Mat" in v && "matFromArray" in v;
49
+ async function ensureOpenCv(onStatus) {
50
+ const missing = [];
51
+ for (const f of FILES) if (!await verifies(join(OPENCV_DIR, f.name), f)) missing.push(f);
52
+ if (!missing.length) return;
53
+ mkdirSync(OPENCV_DIR, { recursive: true });
54
+ for (const f of missing) {
55
+ onStatus?.(`Downloading ${f.name} (${Math.round(f.bytes / 1e5) / 10} MB, once)...`);
56
+ const temp = join(OPENCV_DIR, `${f.name}.part-${process.pid}`);
57
+ try {
58
+ await downloadToFile(f.url, temp);
59
+ if (!await verifies(temp, f))
60
+ throw new Fix(
61
+ `${f.name} did not match its pinned size and sha256`,
62
+ "run the command again to retry the download"
63
+ );
64
+ renameSync(temp, join(OPENCV_DIR, f.name));
65
+ } catch (err) {
66
+ if (err instanceof Fix) throw err;
67
+ throw new Fix(
68
+ `could not download ${f.name} (${err instanceof Error ? err.message : String(err)})`,
69
+ "check the network and run the command again"
70
+ );
71
+ } finally {
72
+ rmSync(temp, { force: true });
73
+ }
74
+ }
75
+ }
76
+ var loaded = null;
77
+ function loadOpenCv(onStatus) {
78
+ loaded ??= (async () => {
79
+ await ensureOpenCv(onStatus);
80
+ const mod = createRequire(import.meta.url)(join(OPENCV_DIR, "opencv.js"));
81
+ if (typeof mod !== "object" || mod === null) throw new Error("opencv.js did not load");
82
+ await new Promise((resolve) => {
83
+ if ("Mat" in mod) resolve();
84
+ else Object.assign(mod, { onRuntimeInitialized: () => resolve() });
85
+ });
86
+ Reflect.deleteProperty(mod, "then");
87
+ if (!isCv(mod)) throw new Error("opencv.js did not initialize");
88
+ const cv = mod;
89
+ for (const f of FILES.filter((x) => x.name.endsWith(".xml")))
90
+ cv.FS_createDataFile("/", f.name, readFileSync(join(OPENCV_DIR, f.name)), true, false, false);
91
+ return cv;
92
+ })();
93
+ return loaded;
94
+ }
95
+ var greyMat = (cv, px, w, h) => cv.matFromArray(h, w, cv.CV_8UC1, px);
96
+
97
+ // src/measure/face.ts
98
+ var FACE_HOLDS = 0.25;
99
+ var FACE_SLIDES = 0.15;
100
+ var FACE_FLOOR = 0.06;
101
+ var FACE_MIN = 0.04;
102
+ var WORK_W = 960;
103
+ var STEP = 1.1;
104
+ var WINDOW_PX = 20;
105
+ var RUN_S = 2;
106
+ var ORDER = ["fail", "unmeasured", "warn", "pass"];
107
+ function faceVerdict(height, cast = false) {
108
+ if (height === null) return "unmeasured";
109
+ if (height >= FACE_HOLDS) return "pass";
110
+ return height < (cast ? FACE_SLIDES : FACE_FLOOR) ? "fail" : "warn";
111
+ }
112
+ function sampleFrames(fps, start, end, samples) {
113
+ const k0 = frameAt(start, fps);
114
+ const k1 = Math.max(k0, Math.ceil(end * fps - 1e-6) - 1);
115
+ const n = Math.min(samples, k1 - k0 + 1);
116
+ return [
117
+ ...new Set(
118
+ Array.from({ length: n }, (_, i) => k0 + Math.round(i * (k1 - k0) / Math.max(1, n - 1)))
119
+ )
120
+ ];
121
+ }
122
+ function minWindow(h, share) {
123
+ const steps = Math.floor(Math.log(Math.max(1, share * h / WINDOW_PX)) / Math.log(STEP) + 1e-9);
124
+ return Math.round(WINDOW_PX * STEP ** steps);
125
+ }
126
+ function readSamples(info, ks, w, h) {
127
+ const runs = [];
128
+ for (const k of ks) {
129
+ const run = runs.at(-1);
130
+ if (run && (info.vfr || (k - run.at(-1)) / info.fps <= RUN_S)) run.push(k);
131
+ else runs.push([k]);
132
+ }
133
+ const size = w * h;
134
+ return runs.flatMap((run) => {
135
+ const k0 = info.vfr ? 0 : run[0];
136
+ const seek = k0 > 0 ? ["-ss", ((k0 - 0.5) / info.fps).toFixed(6)] : [];
137
+ const filters = [
138
+ `select=${run.map((k) => `eq(n\\,${k - k0})`).join("+")}`,
139
+ ...w !== info.width || h !== info.height ? [`scale=${w}:${h}`] : [],
140
+ "format=gray"
141
+ ];
142
+ const raw = runFfmpeg([
143
+ ...seek,
144
+ "-i",
145
+ info.path,
146
+ "-an",
147
+ "-vf",
148
+ filters.join(","),
149
+ "-fps_mode",
150
+ "passthrough",
151
+ "-frames:v",
152
+ String(run.length),
153
+ "-f",
154
+ "rawvideo",
155
+ "-"
156
+ ]);
157
+ const frames = [];
158
+ for (let i = 0; i + size <= raw.length; i += size) frames.push(raw.subarray(i, i + size));
159
+ return frames;
160
+ });
161
+ }
162
+ async function faceBoxes(info, start, end, samples, opts = {}) {
163
+ const cv = await loadOpenCv((m) => console.error(m));
164
+ const ks = sampleFrames(info.fps, start, end, samples);
165
+ const w = Math.min(WORK_W, info.width);
166
+ const h = w === info.width ? info.height : Math.max(2, Math.round(info.height * w / info.width / 2) * 2);
167
+ const frames = readSamples(info, ks, w, h);
168
+ const min = minWindow(h, opts.minFace ?? FACE_MIN);
169
+ const cascades = ["haarcascade_frontalface_alt2.xml", "haarcascade_profileface.xml"].map(
170
+ (name) => {
171
+ const c = new cv.CascadeClassifier();
172
+ c.load(name);
173
+ return c;
174
+ }
175
+ );
176
+ try {
177
+ return frames.map((px, i) => {
178
+ const gray = greyMat(cv, px, w, h);
179
+ const boxes = [];
180
+ try {
181
+ for (const c of cascades) {
182
+ const found = new cv.RectVector();
183
+ c.detectMultiScale(gray, found, STEP, 5, 0, new cv.Size(min, min));
184
+ for (let j = 0; j < found.size(); j++) {
185
+ const r = found.get(j);
186
+ boxes.push([r.x / w, r.y / h, r.width / w, r.height / h]);
187
+ }
188
+ found.delete();
189
+ }
190
+ } finally {
191
+ gray.delete();
192
+ }
193
+ return { frame: ks[i], t: round(ks[i] / info.fps, 3), boxes };
194
+ });
195
+ } finally {
196
+ for (const c of cascades) c.delete();
197
+ }
198
+ }
199
+ function subjectFace(boxes, cast = false) {
200
+ return boxes.reduce(
201
+ (a, b) => !a || (cast ? b[3] < a[3] : b[3] > a[3]) ? b : a,
202
+ null
203
+ );
204
+ }
205
+ function faceSummary(samples, cast = false) {
206
+ const pick = (boxes) => subjectFace(boxes, cast);
207
+ const seen = samples.flatMap((s) => {
208
+ const b = pick(s.boxes);
209
+ return b ? [{ t: s.t, box: b.map((v) => round(v, 4)) }] : [];
210
+ });
211
+ const heights = seen.map((s) => s.box[3]).sort((a, b) => a - b);
212
+ const height = heights.length ? heights[heights.length >> 1] : null;
213
+ const lastFace = pick(samples.at(-1)?.boxes ?? []);
214
+ const last = lastFace ? lastFace[3] : null;
215
+ const verdicts = [faceVerdict(height, cast), faceVerdict(last, cast)];
216
+ return {
217
+ frames_sampled: samples.length,
218
+ frames_with_face: seen.length,
219
+ face_height: height === null ? null : round(height, 3),
220
+ last_face_height: last === null ? null : round(last, 3),
221
+ verdict: verdicts.reduce((a, b) => ORDER.indexOf(b) < ORDER.indexOf(a) ? b : a),
222
+ bands: { pass: FACE_HOLDS, cast_fail_below: FACE_SLIDES, fail_below: FACE_FLOOR },
223
+ boxes: seen,
224
+ ...last === null ? {
225
+ note: "no face at the last sampled frame (turned away, covered or missed): look at the frames"
226
+ } : {}
227
+ };
228
+ }
229
+ var median = (v) => [...v].sort((x, y) => x - y)[v.length >> 1];
230
+ var FIT_MIN_FACES = 2;
231
+ var PAIR_S = 0.1;
232
+ function againstStart(clipDuration, originalDuration, from) {
233
+ return Math.abs(clipDuration - originalDuration) <= 0.5 ? from : 0;
234
+ }
235
+ function faceFit(original, clip, canvas, clipSize, cast = false) {
236
+ const pairs = original.flatMap((o2) => {
237
+ const near = clip.reduce(
238
+ (p, q) => !p || Math.abs(q.t - o2.t) < Math.abs(p.t - o2.t) ? q : p,
239
+ null
240
+ );
241
+ if (!near || Math.abs(near.t - o2.t) > PAIR_S) return [];
242
+ const [a, b] = [subjectFace(o2.boxes, cast), subjectFace(near.boxes, cast)];
243
+ return a && b ? [{ a, b }] : [];
244
+ });
245
+ if (pairs.length < FIT_MIN_FACES) return { moments: pairs.length, transform: null };
246
+ const { width: W, height: H } = canvas;
247
+ const s0 = Math.max(W / clipSize.width, H / clipSize.height);
248
+ const [cw, ch] = [clipSize.width * s0, clipSize.height * s0];
249
+ const [ox, oy] = [(W - cw) / 2, (H - ch) / 2];
250
+ const face = (b, w, h, x0, y0) => ({
251
+ x: x0 + (b[0] + b[2] / 2) * w,
252
+ y: y0 + (b[1] + b[3] / 2) * h,
253
+ h: b[3] * h
254
+ });
255
+ const os = pairs.map((p) => face(p.a, W, H, 0, 0));
256
+ const cs = pairs.map((p) => face(p.b, cw, ch, ox, oy));
257
+ const mid = (v) => ({
258
+ x: median(v.map((f) => f.x)),
259
+ y: median(v.map((f) => f.y)),
260
+ h: median(v.map((f) => f.h))
261
+ });
262
+ const [o, c] = [mid(os), mid(cs)];
263
+ const scale = o.h / c.h;
264
+ const x = o.x - (W / 2 + scale * (c.x - W / 2));
265
+ const y = o.y - (H / 2 + scale * (c.y - H / 2));
266
+ const residual = median(
267
+ pairs.map((_, i) => {
268
+ const [p, q] = [os[i], cs[i]];
269
+ const [mx, my] = [W / 2 + scale * (q.x - W / 2) + x, H / 2 + scale * (q.y - H / 2) + y];
270
+ return Math.hypot(mx - p.x, my - p.y) / p.h;
271
+ })
272
+ );
273
+ return {
274
+ moments: pairs.length,
275
+ transform: { scale: round(scale, 3), x: round(x, 1), y: round(y, 1) },
276
+ original_face: { centre: [round(o.x, 1), round(o.y, 1)], height: round(o.h, 1) },
277
+ clip_face: { centre: [round(c.x, 1), round(c.y, 1)], height: round(c.h, 1) },
278
+ residual: round(residual, 3)
279
+ };
280
+ }
281
+
282
+ export {
283
+ faceBoxes,
284
+ faceSummary,
285
+ FIT_MIN_FACES,
286
+ againstStart,
287
+ faceFit
288
+ };
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  quantizePreviewProxyBox
9
- } from "./chunk-BDZSH6P3.js";
9
+ } from "./chunk-FJ3KUOUZ.js";
10
10
  import {
11
11
  parseHTML
12
12
  } from "./chunk-GWTIFRF5.js";
@@ -4,14 +4,14 @@ import { dirname as __hf_dirname } from "node:path";
4
4
  var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ fetchLocalPageUrl
9
+ } from "./chunk-MOXNAVCW.js";
7
10
  import {
8
11
  captureUpstreamProxy,
9
12
  connectAuthority,
10
13
  openUpstreamTunnel
11
14
  } from "./chunk-TSYRN646.js";
12
- import {
13
- fetchLocalPageUrl
14
- } from "./chunk-EOUKB53E.js";
15
15
  import {
16
16
  ensureCaptureDirSync,
17
17
  writeCaptureFileSync
@@ -25,7 +25,7 @@ import {
25
25
  } from "./chunk-AWDFDFI3.js";
26
26
  import {
27
27
  isBlockedNetworkHost
28
- } from "./chunk-AIXH3V5A.js";
28
+ } from "./chunk-NFUR6NNT.js";
29
29
  import {
30
30
  DOMParser,
31
31
  parseHTML
@@ -9,20 +9,22 @@ import {
9
9
  } from "./chunk-SWC3QIEH.js";
10
10
  import {
11
11
  stoppedByCancelSignal
12
- } from "./chunk-E5IIR67Q.js";
12
+ } from "./chunk-O2VKGYSK.js";
13
13
  import {
14
14
  DEFAULT_MODEL,
15
15
  ensureModel,
16
16
  ensureWhisper,
17
17
  hasFFmpeg,
18
- pinnedWhisperModel,
18
+ pinnedWhisperModel
19
+ } from "./chunk-ZLZXGJ63.js";
20
+ import {
19
21
  sha256File
20
- } from "./chunk-KEY2VA65.js";
22
+ } from "./chunk-RZ6CXJ56.js";
21
23
  import {
22
24
  findFFmpeg,
23
25
  findFFprobe,
24
26
  getFFmpegInstallHint
25
- } from "./chunk-5GSEM63G.js";
27
+ } from "./chunk-HANNA5JJ.js";
26
28
  import {
27
29
  findWavChunk
28
30
  } from "./chunk-UOFAE5RF.js";
@@ -0,0 +1,46 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ meanAbsDiff,
9
+ pearson,
10
+ ratioOf,
11
+ readClip,
12
+ round
13
+ } from "./chunk-BTK3T4HJ.js";
14
+
15
+ // src/measure/energy.ts
16
+ var ENERGY_RATE = 12;
17
+ var STILL_SHOT_GREY_LEVELS = 0.1;
18
+ function energyCurve(clip, roi) {
19
+ const { frames } = readClip(clip, { fps: ENERGY_RATE, width: 270, gray: true, roi });
20
+ return frames.slice(1).map((f, i) => meanAbsDiff(f, frames[i]));
21
+ }
22
+ function compareEnergy(ref, yours) {
23
+ let best = [-2, 0];
24
+ for (let lag = -ENERGY_RATE; lag <= ENERGY_RATE; lag++) {
25
+ const [aa, bb] = lag >= 0 ? [ref.slice(0, ref.length - lag), yours.slice(lag)] : [ref.slice(-lag), yours.slice(0, yours.length + lag)];
26
+ if (Math.min(aa.length, bb.length) > 8) {
27
+ const r = pearson(aa, bb) ?? 0;
28
+ if (r > best[0]) best = [r, lag];
29
+ }
30
+ }
31
+ const mean = (v) => v.reduce((s, x) => s + x, 0) / (v.length || 1);
32
+ return {
33
+ r: round(best[0] === -2 ? 0 : best[0]),
34
+ lag_s: round(best[1] / ENERGY_RATE, 2),
35
+ peak_ratio: round(
36
+ ratioOf(Math.max(...yours, 0), Math.max(...ref, 0), STILL_SHOT_GREY_LEVELS),
37
+ 2
38
+ ),
39
+ mean_ratio: round(ratioOf(mean(yours), mean(ref), STILL_SHOT_GREY_LEVELS), 2)
40
+ };
41
+ }
42
+
43
+ export {
44
+ energyCurve,
45
+ compareEnergy
46
+ };
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-PXVQOMKL.js";
10
10
  import {
11
11
  diag
12
- } from "./chunk-EQGKUPBJ.js";
12
+ } from "./chunk-MCDNAIFF.js";
13
13
  import {
14
14
  credentialPath
15
15
  } from "./chunk-VLA6UJGH.js";
@@ -43,11 +43,14 @@ import {
43
43
  } from "./chunk-BLBMPEBX.js";
44
44
  import {
45
45
  VERSION
46
- } from "./chunk-6W3DY5BP.js";
46
+ } from "./chunk-MA5AQK7T.js";
47
47
 
48
48
  // src/telemetry/transport.ts
49
49
  import { spawn } from "child_process";
50
50
  import { randomUUID } from "crypto";
51
+ import { unlinkSync, writeFileSync } from "fs";
52
+ import { tmpdir } from "os";
53
+ import { join } from "path";
51
54
  var POSTHOG_HOST = "https://us.i.posthog.com";
52
55
  var FLUSH_TIMEOUT_MS = 5e3;
53
56
  var eventQueue = [];
@@ -109,17 +112,27 @@ function flushSync() {
109
112
  const payload = buildPayload(eventQueue);
110
113
  if (payload == null) return;
111
114
  eventQueue = [];
115
+ const file = join(tmpdir(), `hyperframes-telemetry-${randomUUID()}.json`);
112
116
  try {
117
+ writeFileSync(file, payload, { mode: 384 });
113
118
  const child = spawn(
114
119
  process.execPath,
115
120
  [
116
121
  "-e",
117
- `fetch(${JSON.stringify(`${POSTHOG_HOST}/batch/`)},{method:"POST",headers:{"Content-Type":"application/json"},body:${JSON.stringify(payload)},signal:AbortSignal.timeout(${FLUSH_TIMEOUT_MS})}).catch(()=>{})`
122
+ `const f=require("node:fs"),b=f.readFileSync(process.argv[1],"utf8");f.unlinkSync(process.argv[1]);fetch(${JSON.stringify(`${POSTHOG_HOST}/batch/`)},{method:"POST",headers:{"Content-Type":"application/json"},body:b,signal:AbortSignal.timeout(${FLUSH_TIMEOUT_MS})}).catch(()=>{})`,
123
+ file
118
124
  ],
119
125
  { detached: true, stdio: "ignore", windowsHide: true }
120
126
  );
121
127
  child.unref();
122
- } catch {
128
+ } catch (error) {
129
+ try {
130
+ unlinkSync(file);
131
+ } catch {
132
+ }
133
+ diag.warn(
134
+ `hyperframes: telemetry was not sent (${error instanceof Error ? error.message : error})`
135
+ );
123
136
  }
124
137
  }
125
138