hyperframes 0.8.221 → 0.8.223

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 (262) hide show
  1. package/dist/{add-7CVO7K6M.js → add-PBLOPJHC.js} +16 -15
  2. package/dist/{agentPromptGenerator-YFC2SJLF.js → agentPromptGenerator-OD74HKYZ.js} +12 -11
  3. package/dist/{animatedGifPrep-YSMY5GU2.js → animatedGifPrep-QCG2BTDC.js} +12 -11
  4. package/dist/api.d.ts +5 -3
  5. package/dist/api.js +38 -26
  6. package/dist/{asset-ZVKHSO3M.js → asset-KHXCO4OR.js} +2 -2
  7. package/dist/{assetCataloger-6IBSEOK7.js → assetCataloger-ZX5WZTDQ.js} +13 -12
  8. package/dist/{audio-JUV3TVSW.js → audio-7AH2C6PB.js} +153 -1160
  9. package/dist/{auth-2J6FP462.js → auth-DJWMGXQB.js} +5 -5
  10. package/dist/{autoUpdate-ML6EZK6D.js → autoUpdate-KJMLYSHE.js} +2 -2
  11. package/dist/{backgroundChecks-MAWP2REX.js → backgroundChecks-XLVQMMXY.js} +3 -3
  12. package/dist/backgroundChecksWorker.js +3 -3
  13. package/dist/{batchRender-Z7MGNJZH.js → batchRender-UR67LI4H.js} +12 -9
  14. package/dist/{beats-LRZOZUUQ.js → beats-ISWSYNN6.js} +54 -22
  15. package/dist/{benchmark-XJWLDTIL.js → benchmark-7JUATINH.js} +12 -11
  16. package/dist/billing-VGKY3FMX.js +86 -0
  17. package/dist/{browser-STEVEWWA.js → browser-HNGQB47C.js} +3 -3
  18. package/dist/{bundleWithLocalizedFonts-WH63ZWUT.js → bundleWithLocalizedFonts-4XWX2XPS.js} +2 -2
  19. package/dist/{capture-VB5ID7HT.js → capture-GFDP5THL.js} +3 -3
  20. package/dist/{capture-U3ZT3GNI.js → capture-LBEGVQTJ.js} +80 -38
  21. package/dist/{captureCompositionFrame-MXJ3WO2R.js → captureCompositionFrame-5L3J4MZ4.js} +18 -17
  22. package/dist/{catalog-ICGHSRPZ.js → catalog-SNUTPI57.js} +16 -15
  23. package/dist/{catch-up-DJPQKXQB.js → catch-up-FE3HDMLJ.js} +4 -4
  24. package/dist/{check-TL7AGWPO.js → check-MQCBMOKA.js} +47 -45
  25. package/dist/{checkAudio-GPTU6EGB.js → checkAudio-6VPMLIY6.js} +22 -21
  26. package/dist/{checkBrowser-FG5DAW2R.js → checkBrowser-SHUVFQ4S.js} +45 -39
  27. package/dist/{chunk-YKMFCE5B.js → chunk-2GMHYOV3.js} +1 -1
  28. package/dist/{chunk-TNQCXU37.js → chunk-2HBB5U52.js} +1 -1
  29. package/dist/{chunk-UNQ3CVKW.js → chunk-3FGEDDSA.js} +27 -28
  30. package/dist/{chunk-HSHKLYDI.js → chunk-44IPXXSK.js} +7 -5
  31. package/dist/{chunk-TVT465RJ.js → chunk-44YG42L5.js} +144 -41
  32. package/dist/{chunk-ZBLSSWSE.js → chunk-45UOXUUH.js} +16 -3
  33. package/dist/chunk-4JRFMRCQ.js +288 -0
  34. package/dist/{chunk-M2F6VGCP.js → chunk-4XQQQ4KN.js} +85 -50
  35. package/dist/{chunk-6MUI2H6P.js → chunk-54Q3H2UQ.js} +5 -2
  36. package/dist/{chunk-67CALYTU.js → chunk-664JAO7C.js} +1 -1
  37. package/dist/{chunk-H3HC6U4I.js → chunk-6LE7K3YM.js} +17 -14
  38. package/dist/{chunk-Z7YQEDA5.js → chunk-7LKEHM2R.js} +1 -1
  39. package/dist/{chunk-I45R2REQ.js → chunk-7XWCCFYW.js} +1 -1
  40. package/dist/{chunk-L63FJVSC.js → chunk-A2KNKY4Z.js} +1 -1
  41. package/dist/{chunk-MEB6HWBM.js → chunk-A5WWEW6U.js} +2 -2
  42. package/dist/{chunk-PBNWRWKA.js → chunk-AKMY4QVI.js} +2 -1
  43. package/dist/{chunk-OPKSVV4G.js → chunk-AKTI2SHL.js} +2 -2
  44. package/dist/{chunk-VZBJ5BQF.js → chunk-AW3XJY4S.js} +1 -1
  45. package/dist/chunk-AW7UW2Z7.js +312 -0
  46. package/dist/{chunk-DWTFLQ3P.js → chunk-B2ZZYISD.js} +4 -2
  47. package/dist/{chunk-625I5VBE.js → chunk-B5HFCGI7.js} +2 -2
  48. package/dist/{chunk-AZXDEC2G.js → chunk-B6F33PUK.js} +6 -8
  49. package/dist/{chunk-AW7A27JM.js → chunk-BDEBKAD2.js} +1 -1
  50. package/dist/{chunk-322M35EB.js → chunk-BN75GXZM.js} +3 -3
  51. package/dist/{chunk-KSC4O2RY.js → chunk-C2KEGBR3.js} +53 -4
  52. package/dist/{chunk-6YW3FEHC.js → chunk-C466I3DT.js} +9 -8
  53. package/dist/{chunk-M2BCU4Y5.js → chunk-CXEU6XNL.js} +6 -20
  54. package/dist/{chunk-KQPP4NIZ.js → chunk-CYE2NNFF.js} +2 -2
  55. package/dist/{chunk-U6WH572X.js → chunk-DFK4RMNE.js} +5 -5
  56. package/dist/chunk-DY7PQLIE.js +248 -0
  57. package/dist/chunk-EF735J3K.js +59 -0
  58. package/dist/{chunk-XFMO3BEN.js → chunk-EHZESMRB.js} +18 -6
  59. package/dist/chunk-EJOFIHX4.js +46 -0
  60. package/dist/{chunk-3422KMTD.js → chunk-EPQC3FGZ.js} +4 -0
  61. package/dist/{chunk-2ZNURTH5.js → chunk-EX75C5HT.js} +4459 -4312
  62. package/dist/{chunk-4ZM727AO.js → chunk-FKBWONRY.js} +5 -5
  63. package/dist/{chunk-YISDQ7YP.js → chunk-FORV75JT.js} +26 -14
  64. package/dist/{chunk-ZKPRJPWN.js → chunk-G5KX4X6W.js} +59 -59
  65. package/dist/{chunk-SGTEKMJW.js → chunk-HOTXWVVP.js} +93 -5
  66. package/dist/{chunk-LYZB5CJN.js → chunk-HT3D5AKG.js} +160 -19
  67. package/dist/{chunk-BIROA7JM.js → chunk-HYRPH6LL.js} +7 -6
  68. package/dist/{chunk-35JKCWYI.js → chunk-I6OY5MS6.js} +1 -1
  69. package/dist/{chunk-S5GOFDX5.js → chunk-IJI2JNN7.js} +1 -1
  70. package/dist/{chunk-SAKL7SZH.js → chunk-IQ7FABPU.js} +3 -3
  71. package/dist/{chunk-YV2QQUTL.js → chunk-JNQCM6CR.js} +2 -2
  72. package/dist/{chunk-TMK3MW7B.js → chunk-JO4LHFFP.js} +10 -10
  73. package/dist/chunk-JTZHDD63.js +70 -0
  74. package/dist/{chunk-YSZ4VMXI.js → chunk-K5GMPWMG.js} +1 -1
  75. package/dist/{chunk-ROVRC3CG.js → chunk-KCDWRMTC.js} +5 -5
  76. package/dist/{chunk-74E7EHVH.js → chunk-KJGYQVFD.js} +1 -1
  77. package/dist/{chunk-3STL4WJ6.js → chunk-KT2WLSX5.js} +19 -10
  78. package/dist/{chunk-OMLDAF44.js → chunk-KWYK65GR.js} +9 -8
  79. package/dist/{chunk-F6WHVEUS.js → chunk-LAIGIOEA.js} +5 -1
  80. package/dist/{chunk-3PJ3HVLG.js → chunk-LV5AVW6U.js} +1 -1
  81. package/dist/{chunk-XETZLYGW.js → chunk-M4UVOUWC.js} +2 -2
  82. package/dist/{chunk-DMCU2ELU.js → chunk-M7HNGAWN.js} +3 -3
  83. package/dist/chunk-MEJH7VEA.js +63 -0
  84. package/dist/{chunk-MYXFBIJO.js → chunk-MTVL7FWZ.js} +1 -1
  85. package/dist/{chunk-MYNBV7WG.js → chunk-MUHOFRGW.js} +1 -1
  86. package/dist/{chunk-7DVR3DL3.js → chunk-N6XKBBT5.js} +8 -8
  87. package/dist/{chunk-OOEOJPFY.js → chunk-NLWG5TU7.js} +2 -2
  88. package/dist/chunk-NZZQCWUC.js +205 -0
  89. package/dist/{chunk-ZOLKM3VZ.js → chunk-OL2C3ODS.js} +9 -9
  90. package/dist/{chunk-QLQVQQP6.js → chunk-OVINGNLQ.js} +3 -3
  91. package/dist/{chunk-MXVH6UW6.js → chunk-OWFSGDQS.js} +6 -57
  92. package/dist/chunk-OZM6VLD7.js +71 -0
  93. package/dist/{chunk-5YT2KHPO.js → chunk-P5QGZMGC.js} +2 -2
  94. package/dist/{chunk-NYOQP6DO.js → chunk-PBPHKD56.js} +1 -1
  95. package/dist/chunk-PHEPL7OX.js +1048 -0
  96. package/dist/{chunk-AZI2T2KO.js → chunk-PX7Y4HMM.js} +1 -1
  97. package/dist/{chunk-IDWJJ7PP.js → chunk-QNLHDYYO.js} +2 -2
  98. package/dist/{chunk-N4XNRHFM.js → chunk-QNW43LWB.js} +1 -1
  99. package/dist/{chunk-24F7TOW2.js → chunk-QU5OYMTB.js} +140 -54
  100. package/dist/chunk-QZGKKQ77.js +570 -0
  101. package/dist/{chunk-NQOCM4KQ.js → chunk-RKVKFXYB.js} +3 -3
  102. package/dist/{chunk-Y4GLFHO5.js → chunk-RORIFIUW.js} +1 -1
  103. package/dist/{chunk-MESSJFK3.js → chunk-RWSVSCOP.js} +38 -28
  104. package/dist/chunk-RZ6CXJ56.js +24 -0
  105. package/dist/chunk-SDBVVDBW.js +113 -0
  106. package/dist/{chunk-YBNF5ZOC.js → chunk-SFS5BTQ3.js} +1 -1
  107. package/dist/{chunk-BQNTY7J5.js → chunk-SNFVQDKE.js} +1 -1
  108. package/dist/{chunk-J74ZUXVU.js → chunk-SWC3QIEH.js} +1 -1
  109. package/dist/{chunk-D2RQVJLZ.js → chunk-SX7ESVCQ.js} +5 -29
  110. package/dist/{chunk-P6FGS4U6.js → chunk-UFYWGUUV.js} +6 -6
  111. package/dist/{chunk-GSCFMG4C.js → chunk-UGUWSAJT.js} +3 -3
  112. package/dist/chunk-UQECNXFA.js +5013 -0
  113. package/dist/{chunk-XDTCPMR3.js → chunk-UQVAAEPQ.js} +2 -2
  114. package/dist/{chunk-NHXGFQWQ.js → chunk-UVF4U3ZF.js} +1 -1
  115. package/dist/{chunk-YSTBSLWY.js → chunk-VBCBHDIW.js} +1 -1
  116. package/dist/chunk-VJM6NX54.js +250 -0
  117. package/dist/{chunk-5SKC4G26.js → chunk-VMRQDPFL.js} +1 -1
  118. package/dist/chunk-WGOIJN57.js +95 -0
  119. package/dist/{chunk-RVCWVOXM.js → chunk-WQLTKHPP.js} +3 -3
  120. package/dist/{chunk-RVIMLJXC.js → chunk-WUXDIF5D.js} +60 -23
  121. package/dist/{chunk-QYUXDFJY.js → chunk-WWOHLNFO.js} +12 -10
  122. package/dist/{chunk-JGZUG5V4.js → chunk-XZEHFUQF.js} +2 -2
  123. package/dist/{chunk-6HKUUBAV.js → chunk-Y4INSXS7.js} +2 -2
  124. package/dist/{chunk-O7WR4AHX.js → chunk-ZEKV5T3I.js} +14 -14
  125. package/dist/{clean-3NMJWZXK.js → clean-JZOPMJMV.js} +27 -26
  126. package/dist/cli.js +59 -56
  127. package/dist/{cloud-CB3NYNUR.js → cloud-VMPF2KMA.js} +4 -4
  128. package/dist/{cloudrun-2CTKCIXV.js → cloudrun-LA2FKS2F.js} +10 -9
  129. package/dist/commands/layout-audit.browser.js +19 -3
  130. package/dist/commands/motion-signature.browser.js +8 -4
  131. package/dist/{compare-FVY3AMTT.js → compare-IQCFSC5Z.js} +37 -36
  132. package/dist/{compiler-SEQRWEEN.js → compiler-J7OZQIPD.js} +8 -8
  133. package/dist/{component-AEMJRROX.js → component-TRGBVFCI.js} +3 -3
  134. package/dist/{compositions-NRBSIBGZ.js → compositions-FOC2CAZX.js} +18 -17
  135. package/dist/curve-ID3Z522S.js +329 -0
  136. package/dist/cuts-MWHQSE2Z.js +123 -0
  137. package/dist/{delete-T4E53ELR.js → delete-47KZ7PLI.js} +5 -5
  138. package/dist/{deploy-PUF2DW3H.js → deploy-NTNEO4TI.js} +8 -8
  139. package/dist/describeProject-WWREIVQV.js +56 -0
  140. package/dist/{deterministicFonts-2ISM3LMW.js → deterministicFonts-LV2JMOJL.js} +2 -2
  141. package/dist/diff-GH4KCQGQ.js +1825 -0
  142. package/dist/{dist-VARV35QH.js → dist-24QQO5IL.js} +6 -6
  143. package/dist/{dist-B6C3DU6I.js → dist-XW7FATO6.js} +7 -6
  144. package/dist/{doctor-FVBU575B.js → doctor-4ZH7WFU6.js} +16 -15
  145. package/dist/{dotEnv-BGFXSQOA.js → dotEnv-33RDHX7P.js} +1 -1
  146. package/dist/energy-2C65KXBH.js +134 -0
  147. package/dist/{events-RSPDI7FX.js → events-FUFFA55P.js} +3 -3
  148. package/dist/{events-DZ5PRR6F.js → events-Q3EBOW2Y.js} +2 -2
  149. package/dist/events-QO5G2VCC.js +221 -0
  150. package/dist/extract-Z6TLBM5B.js +309 -0
  151. package/dist/face-WI6BPPUG.js +171 -0
  152. package/dist/{feedback-AALA3OA7.js → feedback-M5GZWDXP.js} +16 -15
  153. package/dist/{ffmpeg-YXKE5CUE.js → ffmpeg-27H6P7ZU.js} +13 -12
  154. package/dist/{figma-37R727XZ.js → figma-AI6TSWVO.js} +3 -3
  155. package/dist/fontLocalizeCli.js +16 -15
  156. package/dist/frames-WUTLVZIR.js +352 -0
  157. package/dist/generate-3CJREF5U.js +74 -0
  158. package/dist/{get-L3VKJ6JF.js → get-KTDRE33B.js} +5 -5
  159. package/dist/{gpuPolicy-6QIFFWAI.js → gpuPolicy-Z4MM64HY.js} +12 -11
  160. package/dist/{grade-compare-7IN5QDJD.js → grade-compare-IM7Z7HWI.js} +41 -37
  161. package/dist/{heifImagePrep-AWII25PM.js → heifImagePrep-CXI2ZMUX.js} +13 -12
  162. package/dist/{help-B4MB7MWW.js → help-5FR6BRLR.js} +7 -1
  163. package/dist/{history-TQO6AWEQ.js → history-5P5YVP5H.js} +17 -8
  164. package/dist/hyperframe.manifest.json +1 -1
  165. package/dist/hyperframe.runtime.iife.js +72 -72
  166. package/dist/hyperframes-player.global.js +3 -3
  167. package/dist/hyperframes-slideshow.global.js +8 -8
  168. package/dist/index-gen-OPMQ5WSN.js +61 -0
  169. package/dist/{info-7CBHVXSG.js → info-5ZGNJJVA.js} +11 -10
  170. package/dist/{init-D7HKPQ5A.js → init-NWIAEYSX.js} +35 -33
  171. package/dist/{inspect-VHDQL55M.js → inspect-HBLAVW5C.js} +38 -36
  172. package/dist/{installer-EJNLL6SV.js → installer-KVFTBZZ5.js} +8 -7
  173. package/dist/{keyframes-IFLBMAJP.js → keyframes-LFCLUY2R.js} +7 -7
  174. package/dist/{lambda-I7EQULHC.js → lambda-RFWTTMLU.js} +19 -18
  175. package/dist/{layout-MOCEANRO.js → layout-WOG2Y5ND.js} +38 -36
  176. package/dist/{lint-HFXGSQKN.js → lint-7MALXMMF.js} +12 -12
  177. package/dist/{lintProject-VCDI6A2W.js → lintProject-6H64SX3V.js} +6 -6
  178. package/dist/{list-OFYIXVON.js → list-XRYAT24W.js} +5 -5
  179. package/dist/{localPage-QOOQ5YA2.js → localPage-IN36JVJU.js} +12 -11
  180. package/dist/{login-WAG7B4PM.js → login-32WGVGTM.js} +15 -9
  181. package/dist/{logout-6VFJ7WMW.js → logout-SLI6YTHI.js} +2 -2
  182. package/dist/look-ZWVE6JO3.js +180 -0
  183. package/dist/{manager-34U5CEFB.js → manager-SFL6GLYX.js} +14 -12
  184. package/dist/manifest-QSJYVERU.js +49 -0
  185. package/dist/measure-Q74BJTRQ.js +46 -0
  186. package/dist/{media-treatment-2TLX6NKS.js → media-treatment-3R6DYEAZ.js} +24 -23
  187. package/dist/{media-use-ZNTB7W6N.js → media-use-ZM2WCRQC.js} +9 -5
  188. package/dist/{models-M2F4WTAR.js → models-NNC53UPU.js} +16 -15
  189. package/dist/{motionShot-6WCTCV4W.js → motionShot-5BI5JFUP.js} +21 -20
  190. package/dist/{normalize-QJVXFMWO.js → normalize-MBNGRVQA.js} +2 -1
  191. package/dist/{normalize-audio-T6PIPWOT.js → normalize-audio-6Z2WN56Q.js} +15 -14
  192. package/dist/{open-BC5METIY.js → open-5NCEN6RC.js} +15 -14
  193. package/dist/{parakeetRunner-UXVY7PV2.js → parakeetRunner-DH3XKR3C.js} +19 -17
  194. package/dist/{pipeline-GJAJPWPB.js → pipeline-CGEGQAPH.js} +15 -14
  195. package/dist/{play-UCIRUHCU.js → play-K37BN736.js} +28 -27
  196. package/dist/{policies-J5BWAZHM.js → policies-U4PFXF5E.js} +4 -2
  197. package/dist/{preflight-GVRYYIH5.js → preflight-CG7H3D5B.js} +13 -12
  198. package/dist/{present-46QLZOK4.js → present-KQ53DOHA.js} +24 -23
  199. package/dist/{preview-HWXMP7WL.js → preview-V7CYHL6U.js} +26 -25
  200. package/dist/probe-JVW2MPY3.js +178 -0
  201. package/dist/{producer-2PBHUE5O.js → producer-UD32S7PX.js} +1 -1
  202. package/dist/{projectConfig-C4S3LBBX.js → projectConfig-WXCB5AZE.js} +10 -9
  203. package/dist/{publication-GESNVVMS.js → publication-KG4UDZRM.js} +6 -5
  204. package/dist/{publish-IBY26S3T.js → publish-MEQB543T.js} +22 -21
  205. package/dist/{refresh-I6ITGHKL.js → refresh-2LU4XDL7.js} +2 -2
  206. package/dist/{remove-background-3OBWOHVZ.js → remove-background-FSV5KQK3.js} +16 -15
  207. package/dist/{render-LSI5WXS7.js → render-O4S4SURS.js} +10 -9
  208. package/dist/{render-SR5RISLU.js → render-SQXZAGPQ.js} +160 -46
  209. package/dist/{render-3F6GQ5WW.js → render-SY4AXKXC.js} +40 -39
  210. package/dist/{render-batch-HV4W3PZM.js → render-batch-GTZQUB3H.js} +10 -9
  211. package/dist/renderSetupWorker.js +6 -6
  212. package/dist/{resolver-R5X3HAPE.js → resolver-BQZNCVJS.js} +8 -7
  213. package/dist/run-67OPNJGD.js +31 -0
  214. package/dist/{screenshotCapture-U3IYWTDB.js → screenshotCapture-4THETOMD.js} +2 -1
  215. package/dist/{sherpa-2Q6U4ZFY.js → sherpa-KH3PJAUG.js} +18 -16
  216. package/dist/skills/hyperframes-cli/references/beats.md +1 -1
  217. package/dist/skills/media-use/SKILL.md +20 -21
  218. package/dist/skills/media-use/audio/scripts/lib/gemini-tts.mjs +13 -1
  219. package/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +10 -0
  220. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +26 -1
  221. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +33 -0
  222. package/dist/skills/media-use/references/heygen.md +58 -0
  223. package/dist/skills/media-use/references/operations.md +9 -6
  224. package/dist/skills/media-use/references/setup-providers.md +11 -12
  225. package/dist/skills/media-use/scripts/lib/index-gen.d.mts +1 -0
  226. package/dist/skills/media-use/scripts/lib/manifest.d.mts +21 -0
  227. package/dist/{skills-FSGXQSHA.js → skills-FTZZJGAB.js} +5 -5
  228. package/dist/{skillsUpdateCheck-UW6643XX.js → skillsUpdateCheck-LZPD2CZI.js} +3 -3
  229. package/dist/{slideshow-SJGK4RQS.js → slideshow-ARJR22W4.js} +1 -1
  230. package/dist/{snapshot-HFPB34Y7.js → snapshot-4BORZ3ED.js} +60 -47
  231. package/dist/{src-VMTQQUUP.js → src-6ZOFAM3F.js} +21 -14
  232. package/dist/{src-ROWFWCEN.js → src-D7AO7PGH.js} +12 -11
  233. package/dist/{staticProjectServer-4TGZJIWN.js → staticProjectServer-Q23A6XU2.js} +25 -24
  234. package/dist/{status-4AAPTTRW.js → status-VIJRZ4ZK.js} +34 -9
  235. package/dist/studio/assets/hyperframes-player-D0W1SNqK.js +478 -0
  236. package/dist/studio/assets/{index-BDE7dwov.js → index-DD9KJoEr.js} +119 -119
  237. package/dist/studio/assets/{index-D0jGq2dS.js → index-mbwAH5iR.js} +1 -1
  238. package/dist/studio/index.html +1 -1
  239. package/dist/{studio-api-TSHXVZ6R.js → studio-api-XVVJZ7YT.js} +24 -19
  240. package/dist/{studioServer-74ZBLNP2.js → studioServer-6HG3AMTW.js} +77 -114
  241. package/dist/sync-Q5SRIL7V.js +115 -0
  242. package/dist/{telemetry-3NDLZOPR.js → telemetry-VXPSJ3X3.js} +3 -3
  243. package/dist/templates/blank/index.html +1 -1
  244. package/dist/templates/from-file/index.html +1 -1
  245. package/dist/{timeline-5IFZJU7M.js → timeline-6477OWFA.js} +31 -26
  246. package/dist/{tokens-UFNPQVLS.js → tokens-ZUUNEDKT.js} +2 -2
  247. package/dist/{transcribe-7KQAUHEN.js → transcribe-HA4UGLKO.js} +17 -15
  248. package/dist/{transcribe-NAXKBIPW.js → transcribe-ITVANIDK.js} +41 -23
  249. package/dist/{tts-BVTJEP72.js → tts-KMZPHG3K.js} +1 -1
  250. package/dist/{updateCheck-KDSFL3XX.js → updateCheck-SVADAQ43.js} +2 -2
  251. package/dist/{upgrade-EXX4C35N.js → upgrade-WKW4FDNF.js} +2 -2
  252. package/dist/{urlDownloader-4UFCIAPH.js → urlDownloader-VWHCESDD.js} +11 -10
  253. package/dist/{validate-QYOHY3N6.js → validate-7VG2RLP2.js} +31 -30
  254. package/dist/{video-HRL3V2R5.js → video-LM3FYHGG.js} +13 -12
  255. package/dist/warmCheck.js +47 -45
  256. package/package.json +1 -1
  257. package/dist/chunk-Q3PPGPEA.js +0 -5061
  258. package/dist/studio/assets/hyperframes-player-B_wvwarc.js +0 -478
  259. package/dist/{chunk-NOH32H42.js → chunk-HBAUU3IK.js} +124 -124
  260. package/dist/{chunk-NHA4NRBE.js → chunk-T5ELONXY.js} +0 -0
  261. package/dist/{destroy-BQ5R7LUF.js → destroy-6NWJMQX2.js} +4 -4
  262. package/dist/{synthesize-4JC74JW5.js → synthesize-DIT2SR3D.js} +5 -5
@@ -12,53 +12,56 @@ import {
12
12
  createPageDriver,
13
13
  dropFailedProxyEchoes,
14
14
  keepBrokenImageAborts,
15
+ keepFailedNetworkChanges,
15
16
  matchComponentFindings,
16
17
  mergeHelperDrafts,
18
+ networkChangesStillFailing,
17
19
  preResolveHostileMediaProxies,
18
20
  runBrowserCheck,
19
21
  samplingBrowserCount
20
- } from "./chunk-RVIMLJXC.js";
21
- import "./chunk-X7MTZ4T2.js";
22
- import "./chunk-H3HC6U4I.js";
22
+ } from "./chunk-WUXDIF5D.js";
23
+ import "./chunk-6LE7K3YM.js";
24
+ import "./chunk-ZEKV5T3I.js";
23
25
  import "./chunk-TQBQYO4L.js";
24
- import "./chunk-O7WR4AHX.js";
25
- import "./chunk-BQNTY7J5.js";
26
- import "./chunk-7DVR3DL3.js";
27
- import "./chunk-QLQVQQP6.js";
28
26
  import "./chunk-X7MTZ4T2.js";
27
+ import "./chunk-SNFVQDKE.js";
28
+ import "./chunk-N6XKBBT5.js";
29
+ import "./chunk-X7MTZ4T2.js";
30
+ import "./chunk-OVINGNLQ.js";
29
31
  import "./chunk-XUHOIDKG.js";
30
- import "./chunk-ZKPRJPWN.js";
31
- import "./chunk-6YW3FEHC.js";
32
- import "./chunk-VZBJ5BQF.js";
33
- import "./chunk-ROVRC3CG.js";
34
- import "./chunk-24F7TOW2.js";
35
- import "./chunk-P6FGS4U6.js";
36
- import "./chunk-XDTCPMR3.js";
32
+ import "./chunk-G5KX4X6W.js";
33
+ import "./chunk-C466I3DT.js";
34
+ import "./chunk-KCDWRMTC.js";
35
+ import "./chunk-AW3XJY4S.js";
36
+ import "./chunk-UFYWGUUV.js";
37
+ import "./chunk-UQVAAEPQ.js";
38
+ import "./chunk-QU5OYMTB.js";
37
39
  import "./chunk-ALVXFXUG.js";
38
- import "./chunk-TMK3MW7B.js";
39
- import "./chunk-SGTEKMJW.js";
40
- import "./chunk-322M35EB.js";
41
- import "./chunk-Z7YQEDA5.js";
40
+ import "./chunk-JO4LHFFP.js";
41
+ import "./chunk-HOTXWVVP.js";
42
+ import "./chunk-BN75GXZM.js";
43
+ import "./chunk-7LKEHM2R.js";
42
44
  import "./chunk-5ZBMHUY2.js";
43
45
  import "./chunk-EHSBBBR2.js";
44
- import "./chunk-NYOQP6DO.js";
45
- import "./chunk-YKMFCE5B.js";
46
+ import "./chunk-PBPHKD56.js";
47
+ import "./chunk-2GMHYOV3.js";
46
48
  import "./chunk-XT7X6QCP.js";
47
49
  import "./chunk-5YPMCCCA.js";
48
50
  import "./chunk-HVW7ABXD.js";
49
- import "./chunk-MYNBV7WG.js";
51
+ import "./chunk-MUHOFRGW.js";
50
52
  import "./chunk-JHOCK3DG.js";
51
- import "./chunk-SAKL7SZH.js";
52
- import "./chunk-S5GOFDX5.js";
53
+ import "./chunk-IQ7FABPU.js";
54
+ import "./chunk-IJI2JNN7.js";
53
55
  import "./chunk-AWDFDFI3.js";
54
56
  import "./chunk-P6LJ4Y32.js";
55
57
  import "./chunk-T2WJO4XM.js";
56
58
  import "./chunk-W4DMQZL5.js";
57
- import "./chunk-JGZUG5V4.js";
58
- import "./chunk-625I5VBE.js";
59
+ import "./chunk-XZEHFUQF.js";
60
+ import "./chunk-B5HFCGI7.js";
61
+ import "./chunk-EHZESMRB.js";
59
62
  import "./chunk-A4ZTSQLW.js";
60
- import "./chunk-F6WHVEUS.js";
61
- import "./chunk-ZBLSSWSE.js";
63
+ import "./chunk-LAIGIOEA.js";
64
+ import "./chunk-45UOXUUH.js";
62
65
  import "./chunk-PXVQOMKL.js";
63
66
  import "./chunk-EQGKUPBJ.js";
64
67
  import "./chunk-VLA6UJGH.js";
@@ -70,14 +73,15 @@ import "./chunk-2GICKZ3I.js";
70
73
  import "./chunk-G6OKQMJI.js";
71
74
  import "./chunk-EVMY7IPL.js";
72
75
  import "./chunk-7FMUTGOH.js";
73
- import "./chunk-M2F6VGCP.js";
76
+ import "./chunk-4XQQQ4KN.js";
74
77
  import "./chunk-Z5J67X44.js";
75
78
  import "./chunk-5S7W3TUO.js";
76
79
  import "./chunk-D3MUHMFG.js";
77
- import "./chunk-4ZM727AO.js";
80
+ import "./chunk-FKBWONRY.js";
78
81
  import "./chunk-YWRUQ7XZ.js";
79
- import "./chunk-MXVH6UW6.js";
80
- import "./chunk-Q3PPGPEA.js";
82
+ import "./chunk-OWFSGDQS.js";
83
+ import "./chunk-MEJH7VEA.js";
84
+ import "./chunk-UQECNXFA.js";
81
85
  import "./chunk-VC76R6W2.js";
82
86
  import "./chunk-OFQWTKPW.js";
83
87
  import "./chunk-RQVDTPGD.js";
@@ -88,20 +92,20 @@ import "./chunk-KGPLIH7B.js";
88
92
  import "./chunk-LAGZGKKN.js";
89
93
  import "./chunk-K4MJX7SR.js";
90
94
  import "./chunk-WE42NVH7.js";
91
- import "./chunk-LYZB5CJN.js";
95
+ import "./chunk-HT3D5AKG.js";
96
+ import "./chunk-HYRPH6LL.js";
97
+ import "./chunk-AKMY4QVI.js";
92
98
  import "./chunk-CZGHFATT.js";
93
- import "./chunk-BIROA7JM.js";
94
- import "./chunk-PBNWRWKA.js";
95
- import "./chunk-KSC4O2RY.js";
96
- import "./chunk-NHA4NRBE.js";
99
+ import "./chunk-C2KEGBR3.js";
100
+ import "./chunk-T5ELONXY.js";
97
101
  import "./chunk-FR7YBU3H.js";
98
102
  import "./chunk-DPVXBVLL.js";
99
103
  import "./chunk-GWTIFRF5.js";
100
104
  import "./chunk-2RY2LWAA.js";
101
- import "./chunk-3422KMTD.js";
105
+ import "./chunk-EPQC3FGZ.js";
102
106
  import "./chunk-WC4MTXGN.js";
103
107
  import "./chunk-FBN2M2HK.js";
104
- import "./chunk-YSZ4VMXI.js";
108
+ import "./chunk-K5GMPWMG.js";
105
109
  import "./chunk-BR2JQQC5.js";
106
110
  import "./chunk-BLBMPEBX.js";
107
111
  import "./chunk-ISN5GRYI.js";
@@ -109,7 +113,7 @@ import "./chunk-SJGE5I5F.js";
109
113
  import "./chunk-DP5LF7GF.js";
110
114
  import "./chunk-J3RXEDR2.js";
111
115
  import "./chunk-QBXDU24O.js";
112
- import "./chunk-5YT2KHPO.js";
116
+ import "./chunk-P5QGZMGC.js";
113
117
  import "./chunk-E63BDV4Z.js";
114
118
  import "./chunk-G7VEYUZ2.js";
115
119
  import "./chunk-XT6MXC7A.js";
@@ -123,8 +127,10 @@ export {
123
127
  createPageDriver,
124
128
  dropFailedProxyEchoes,
125
129
  keepBrokenImageAborts,
130
+ keepFailedNetworkChanges,
126
131
  matchComponentFindings,
127
132
  mergeHelperDrafts,
133
+ networkChangesStillFailing,
128
134
  preResolveHostileMediaProxies,
129
135
  runBrowserCheck,
130
136
  samplingBrowserCount
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-HVW7ABXD.js";
13
13
  import {
14
14
  DEFAULT_REGISTRY_URL
15
- } from "./chunk-S5GOFDX5.js";
15
+ } from "./chunk-IJI2JNN7.js";
16
16
 
17
17
  // src/utils/projectConfig.ts
18
18
  import { readFileSync, writeFileSync } from "fs";
@@ -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-RSPDI7FX.js");
1281
+ const { trackCommandFailure } = await import("./events-FUFFA55P.js");
1282
1282
  trackCommandFailure(
1283
1283
  command,
1284
1284
  err,
@@ -17,17 +17,7 @@ import {
17
17
  finishCheckSnapshots,
18
18
  preResolveHostileMediaProxies,
19
19
  rectToBbox
20
- } from "./chunk-RVIMLJXC.js";
21
- import {
22
- collectProjectMedia,
23
- mediaPath
24
- } from "./chunk-GSCFMG4C.js";
25
- import {
26
- captureArtifactRevision
27
- } from "./chunk-IDWJJ7PP.js";
28
- import {
29
- trackLintRun
30
- } from "./chunk-RVCWVOXM.js";
20
+ } from "./chunk-WUXDIF5D.js";
31
21
  import {
32
22
  CONTENT_OVERLAP_HELD_ERROR_MS,
33
23
  DEFAULT_MAX_STATIC_SEC,
@@ -48,19 +38,29 @@ import {
48
38
  mergeSampleTimes,
49
39
  parseAt,
50
40
  readMotionSpec
51
- } from "./chunk-H3HC6U4I.js";
41
+ } from "./chunk-6LE7K3YM.js";
42
+ import {
43
+ collectProjectMedia,
44
+ mediaPath
45
+ } from "./chunk-UGUWSAJT.js";
52
46
  import {
53
47
  findingAtRoot,
54
48
  findingElementKey,
55
49
  formatFindingTimes,
56
50
  groupSampledFindings
57
51
  } from "./chunk-TQBQYO4L.js";
52
+ import {
53
+ captureArtifactRevision
54
+ } from "./chunk-QNLHDYYO.js";
55
+ import {
56
+ trackLintRun
57
+ } from "./chunk-WQLTKHPP.js";
58
58
  import {
59
59
  resolveProject
60
- } from "./chunk-BQNTY7J5.js";
60
+ } from "./chunk-SNFVQDKE.js";
61
61
  import {
62
62
  recordArtifacts
63
- } from "./chunk-24F7TOW2.js";
63
+ } from "./chunk-QU5OYMTB.js";
64
64
  import {
65
65
  withRemainingBudget
66
66
  } from "./chunk-EHSBBBR2.js";
@@ -69,14 +69,14 @@ import {
69
69
  closeManagedBrowser,
70
70
  onStopSignal,
71
71
  registerBrowserSessionCleanup
72
- } from "./chunk-JGZUG5V4.js";
72
+ } from "./chunk-XZEHFUQF.js";
73
73
  import {
74
74
  resolveLocalBrowserGpuMode
75
- } from "./chunk-625I5VBE.js";
75
+ } from "./chunk-B5HFCGI7.js";
76
76
  import {
77
77
  trackCheckReport,
78
78
  trackCommandFailure
79
- } from "./chunk-F6WHVEUS.js";
79
+ } from "./chunk-LAIGIOEA.js";
80
80
  import {
81
81
  swallowedFlagUsageError
82
82
  } from "./chunk-XC3BGWCJ.js";
@@ -95,14 +95,14 @@ import {
95
95
  import {
96
96
  extractMediaMetadata,
97
97
  findHdrAutoPromotion
98
- } from "./chunk-M2F6VGCP.js";
98
+ } from "./chunk-4XQQQ4KN.js";
99
99
  import {
100
100
  lintProject,
101
101
  shouldBlockRender
102
- } from "./chunk-LYZB5CJN.js";
102
+ } from "./chunk-HT3D5AKG.js";
103
103
  import {
104
104
  withMeta
105
- } from "./chunk-YSZ4VMXI.js";
105
+ } from "./chunk-K5GMPWMG.js";
106
106
  import {
107
107
  recordLastCheck
108
108
  } from "./chunk-BLBMPEBX.js";
@@ -518,14 +518,13 @@ function readableBlocks(frame, readHeight) {
518
518
  const block = blocks.get(part.block);
519
519
  if (!block) {
520
520
  blocks.set(part.block, {
521
- text: part.text,
521
+ text: part.blockText,
522
522
  rect,
523
523
  selector: part.blockSelector,
524
524
  sourceFile: part.sourceFile
525
525
  });
526
526
  continue;
527
527
  }
528
- block.text = `${block.text} ${part.text}`;
529
528
  block.rect = {
530
529
  left: Math.min(block.rect.left, rect.left),
531
530
  top: Math.min(block.rect.top, rect.top),
@@ -2361,7 +2360,7 @@ function resolveMotionSpec(projectDir) {
2361
2360
  };
2362
2361
  }
2363
2362
  async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
2364
- const module = await import("./checkBrowser-FG5DAW2R.js");
2363
+ const module = await import("./checkBrowser-SHUVFQ4S.js");
2365
2364
  return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
2366
2365
  }
2367
2366
  var adoptedBrowser;
@@ -2375,7 +2374,7 @@ async function prelaunchBrowser(project, options) {
2375
2374
  if (adopted) return adopted;
2376
2375
  const html = await readFile(project.indexPath, "utf8").catch(() => void 0);
2377
2376
  if (html === void 0) return void 0;
2378
- const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-MXJ3WO2R.js");
2377
+ const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-5L3J4MZ4.js");
2379
2378
  return prelaunchCompositionBrowser(html, options.browserGpuMode);
2380
2379
  }
2381
2380
  async function writeSnapshot(projectDir, index, time, pngBase64) {
@@ -2387,11 +2386,11 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
2387
2386
  return relative(projectDir, path);
2388
2387
  }
2389
2388
  async function captureFindingFrames(project, options, requests, deadline) {
2390
- const module = await import("./checkBrowser-FG5DAW2R.js");
2389
+ const module = await import("./checkBrowser-SHUVFQ4S.js");
2391
2390
  return module.captureFindingFrames(project, options, requests, deadline);
2392
2391
  }
2393
2392
  async function captureFindingCrops(project, options, requests, deadline) {
2394
- const module = await import("./checkBrowser-FG5DAW2R.js");
2393
+ const module = await import("./checkBrowser-SHUVFQ4S.js");
2395
2394
  return module.captureFindingCrops(project, options, requests, deadline);
2396
2395
  }
2397
2396
  async function inspectProjectMedia(project, dependencies) {
@@ -2413,7 +2412,7 @@ function collectMedia(project) {
2413
2412
  return collectProjectMedia(project.dir);
2414
2413
  }
2415
2414
  async function inspectAudio(project, media) {
2416
- const module = await import("./checkAudio-GPTU6EGB.js");
2415
+ const module = await import("./checkAudio-6VPMLIY6.js");
2417
2416
  return module.inspectAudio(project.dir, relative(project.dir, project.indexPath), media);
2418
2417
  }
2419
2418
  function audioCheckFailure(project, error) {
@@ -2487,7 +2486,7 @@ var DEFAULT_COMMAND_DEPENDENCIES = {
2487
2486
  }
2488
2487
  },
2489
2488
  async prepareMedia(project, options) {
2490
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-WH63ZWUT.js");
2489
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-4XWX2XPS.js");
2491
2490
  const html = await bundleWithLocalizedFonts(project.dir);
2492
2491
  return (await preResolveHostileMediaProxies(project.dir, html, options.autoProxy)).files;
2493
2492
  },
@@ -6,23 +6,25 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  probeAudio
9
- } from "./chunk-J74ZUXVU.js";
9
+ } from "./chunk-SWC3QIEH.js";
10
10
  import {
11
11
  stoppedByCancelSignal
12
- } from "./chunk-3PJ3HVLG.js";
12
+ } from "./chunk-LV5AVW6U.js";
13
13
  import {
14
14
  DEFAULT_MODEL,
15
15
  ensureModel,
16
16
  ensureWhisper,
17
17
  hasFFmpeg,
18
- pinnedWhisperModel,
18
+ pinnedWhisperModel
19
+ } from "./chunk-CXEU6XNL.js";
20
+ import {
19
21
  sha256File
20
- } from "./chunk-M2BCU4Y5.js";
22
+ } from "./chunk-RZ6CXJ56.js";
21
23
  import {
22
24
  findFFmpeg,
23
25
  findFFprobe,
24
26
  getFFmpegInstallHint
25
- } from "./chunk-QYUXDFJY.js";
27
+ } from "./chunk-WWOHLNFO.js";
26
28
  import {
27
29
  findWavChunk
28
30
  } from "./chunk-UOFAE5RF.js";
@@ -6,32 +6,39 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parakeetRunner
9
- } from "./chunk-AZI2T2KO.js";
9
+ } from "./chunk-PX7Y4HMM.js";
10
10
  import {
11
11
  DecodeCancelled,
12
12
  prepareSherpaWav,
13
13
  sherpaUnsupportedReason,
14
14
  transcribeWithSherpa
15
- } from "./chunk-DMCU2ELU.js";
15
+ } from "./chunk-M7HNGAWN.js";
16
+ import {
17
+ idempotencyKey,
18
+ runJob
19
+ } from "./chunk-NZZQCWUC.js";
20
+ import {
21
+ runFfmpeg
22
+ } from "./chunk-VJM6NX54.js";
16
23
  import {
17
24
  initialModelForLanguage,
18
25
  transcribe
19
- } from "./chunk-HSHKLYDI.js";
26
+ } from "./chunk-44IPXXSK.js";
20
27
  import {
21
28
  createRenderCancellationScope,
22
29
  stoppedByCancelSignal
23
- } from "./chunk-3PJ3HVLG.js";
30
+ } from "./chunk-LV5AVW6U.js";
24
31
  import {
25
32
  DEFAULT_MODEL,
26
33
  findWhisper,
27
34
  isWhisperUnavailable
28
- } from "./chunk-M2BCU4Y5.js";
35
+ } from "./chunk-CXEU6XNL.js";
29
36
  import {
30
37
  formatSrt,
31
38
  formatVtt,
32
39
  loadTranscript,
33
40
  patchCaptionHtml
34
- } from "./chunk-6MUI2H6P.js";
41
+ } from "./chunk-54Q3H2UQ.js";
35
42
  import {
36
43
  PARAKEET_INSTALL_COMMAND,
37
44
  PARAKEET_LANGUAGES,
@@ -46,8 +53,86 @@ import {
46
53
  } from "./chunk-E63BDV4Z.js";
47
54
 
48
55
  // src/api/transcribe.ts
49
- import { existsSync, realpathSync, rmSync, statSync, writeFileSync } from "fs";
50
- import { basename, dirname, extname, join, resolve } from "path";
56
+ import { existsSync, realpathSync, rmSync as rmSync2, statSync, writeFileSync as writeFileSync2 } from "fs";
57
+ import { basename, dirname, extname, join as join2, resolve } from "path";
58
+
59
+ // src/heygen/transcribe.ts
60
+ import { mkdtempSync, readFileSync, rmSync, writeFileSync } from "fs";
61
+ import { tmpdir } from "os";
62
+ import { join } from "path";
63
+ var ROUTE = "/v3/audio/transcriptions";
64
+ var MODEL = "scribe-v2";
65
+ var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
66
+ var list = (v) => Array.isArray(v) ? v.filter(isRecord) : [];
67
+ function wordsOf(job) {
68
+ return list(job.segments).flatMap(
69
+ (segment) => list(segment.words).flatMap((w) => {
70
+ const text = String(w.word ?? w.text ?? "").trim();
71
+ if (!text || typeof w.start !== "number" || typeof w.end !== "number") return [];
72
+ const speaker = w.speaker ?? segment.speaker;
73
+ return [
74
+ {
75
+ text,
76
+ start: w.start,
77
+ end: w.end,
78
+ ...speaker !== void 0 ? { speaker: String(speaker) } : {}
79
+ }
80
+ ];
81
+ })
82
+ );
83
+ }
84
+ async function transcribeWithHeygen(inputPath, transcriptPath, opts = {}) {
85
+ const work = mkdtempSync(join(tmpdir(), "hf-heygen-asr-"));
86
+ try {
87
+ opts.onStatus?.("Preparing audio for HeyGen...");
88
+ const mp3 = join(work, "audio.mp3");
89
+ runFfmpeg([
90
+ "-y",
91
+ "-i",
92
+ inputPath,
93
+ "-vn",
94
+ "-ac",
95
+ "1",
96
+ "-ar",
97
+ "16000",
98
+ "-c:a",
99
+ "libmp3lame",
100
+ "-b:a",
101
+ "64k",
102
+ mp3
103
+ ]);
104
+ const audio = readFileSync(mp3);
105
+ const diarize = opts.diarize === true;
106
+ opts.onStatus?.("Transcribing on HeyGen...");
107
+ const job = await runJob(
108
+ ROUTE,
109
+ {
110
+ model: MODEL,
111
+ audio: { type: "base64", media_type: "audio/mpeg", data: audio.toString("base64") },
112
+ diarize
113
+ },
114
+ idempotencyKey(ROUTE, [audio, String(diarize)]),
115
+ (id) => `${ROUTE}/${encodeURIComponent(id)}`,
116
+ {
117
+ log: { projectDir: opts.projectDir, what: `transcribe ${inputPath}` },
118
+ timeoutMs: 10 * 6e4
119
+ }
120
+ );
121
+ const words = wordsOf(job);
122
+ writeFileSync(transcriptPath, JSON.stringify(words, null, 2));
123
+ return {
124
+ transcriptPath,
125
+ model: typeof job.model === "string" ? job.model : MODEL,
126
+ detectedLanguage: typeof job.language === "string" ? job.language : null,
127
+ durationSeconds: typeof job.duration_seconds === "number" ? job.duration_seconds : words.at(-1)?.end ?? 0,
128
+ speechOnsetSeconds: words[0]?.start ?? null
129
+ };
130
+ } finally {
131
+ rmSync(work, { recursive: true, force: true });
132
+ }
133
+ }
134
+
135
+ // src/api/transcribe.ts
51
136
  var MIN_TIMEOUT_MS = 5e3;
52
137
  var TranscribeError = class extends Error {
53
138
  code;
@@ -101,8 +186,8 @@ function parseSidecar(captions, inputPath, dir) {
101
186
  const to = parseExportFormat(captions?.format);
102
187
  if (!to) return void 0;
103
188
  const output = captions?.outputPath;
104
- const outPath = resolve(output ?? join(dir, `transcript.${to}`));
105
- const keep = [inputPath, join(dir, TRANSCRIPT_FILE)];
189
+ const outPath = resolve(output ?? join2(dir, `transcript.${to}`));
190
+ const keep = [inputPath, join2(dir, TRANSCRIPT_FILE)];
106
191
  const problem = output !== void 0 && outputProblem(output, outPath, to) || overwriteProblem(outPath, keep);
107
192
  if (problem) throw new TranscribeError("invalid_option", problem);
108
193
  return { to, outPath, preserveCues: captions?.preserveCues === true, keep };
@@ -114,7 +199,7 @@ function outputProblem(output, outPath, to) {
114
199
  return `Output folder not found: ${folder}`;
115
200
  }
116
201
  if (/[\\/]$/.test(output) || existsSync(outPath) && statSync(outPath).isDirectory()) {
117
- return `--output is a folder; give a file path such as ${join(outPath, `transcript.${to}`)}`;
202
+ return `--output is a folder; give a file path such as ${join2(outPath, `transcript.${to}`)}`;
118
203
  }
119
204
  return void 0;
120
205
  }
@@ -145,8 +230,8 @@ function readTranscript(inputPath) {
145
230
  }
146
231
  function importTranscript(inputPath, dir) {
147
232
  const { words, format } = readTranscript(inputPath);
148
- const transcriptPath = join(dir, TRANSCRIPT_FILE);
149
- writeFileSync(transcriptPath, JSON.stringify(words, null, 2));
233
+ const transcriptPath = join2(dir, TRANSCRIPT_FILE);
234
+ writeFileSync2(transcriptPath, JSON.stringify(words, null, 2));
150
235
  patchCaptionHtml(dir, words);
151
236
  return { kind: "imported", format, wordCount: words.length, transcriptPath };
152
237
  }
@@ -173,7 +258,7 @@ function writeCaptionSidecar(words, { to, outPath, preserveCues, keep }, phraseL
173
258
  if (hit) throw new Error(`it is the same file as ${hit}`);
174
259
  const preGrouped = preserveCues || phraseLevelSource;
175
260
  const content = to === "srt" ? formatSrt(words, { preGrouped }) : formatVtt(words, { preGrouped });
176
- writeFileSync(outPath, content);
261
+ writeFileSync2(outPath, content);
177
262
  }
178
263
  function pickRunner(engine, parakeet, language, whisperForLanguage = false) {
179
264
  if (engine === "whisper" || whisperForLanguage || !parakeetSpeaks(language)) return "whisper";
@@ -197,12 +282,54 @@ function failureMessage(err) {
197
282
  return stderr ? `${base}
198
283
  ${stderr}` : base;
199
284
  }
285
+ function finishTranscript(result, engine, dir, sidecar) {
286
+ const { words } = loadTranscript(result.transcriptPath);
287
+ writeFileSync2(result.transcriptPath, JSON.stringify(words, null, 2));
288
+ patchCaptionHtml(dir, words);
289
+ if (sidecar) {
290
+ try {
291
+ writeCaptionSidecar(words, sidecar, false);
292
+ } catch (err) {
293
+ throw new TranscribeError(
294
+ "caption_write_failed",
295
+ `Transcript saved to ${result.transcriptPath}, but the caption file ${sidecar.outPath} could not be written: ${normalizeErrorMessage(err)}`,
296
+ { cause: err, transcriptPath: result.transcriptPath }
297
+ );
298
+ }
299
+ }
300
+ return {
301
+ kind: "transcribed",
302
+ engine,
303
+ model: result.model,
304
+ detectedLanguage: result.detectedLanguage,
305
+ wordCount: words.length,
306
+ durationSeconds: result.durationSeconds,
307
+ speechOnsetSeconds: result.speechOnsetSeconds,
308
+ transcriptPath: result.transcriptPath,
309
+ ...sidecar && { captions: { format: sidecar.to, outputPath: sidecar.outPath } }
310
+ };
311
+ }
312
+ async function transcribeOnHeygen(inputPath, dir, sidecar, options) {
313
+ try {
314
+ const result = await transcribeWithHeygen(inputPath, join2(dir, TRANSCRIPT_FILE), {
315
+ diarize: options.speakers,
316
+ projectDir: dir,
317
+ onStatus: options.onStatus
318
+ });
319
+ return finishTranscript(result, "heygen", dir, sidecar);
320
+ } catch (err) {
321
+ if (err instanceof TranscribeError) throw err;
322
+ const fix = err instanceof Error && "fix" in err && typeof err.fix === "string" ? ` Fix: ${err.fix}` : "";
323
+ throw new TranscribeError("failed", `${normalizeErrorMessage(err)}.${fix}`, { cause: err });
324
+ }
325
+ }
200
326
  async function transcribeAudio(inputPath, dir, sidecar, options) {
201
327
  const engine = (options.engine ?? "auto").toLowerCase();
328
+ if (engine === "heygen") return transcribeOnHeygen(inputPath, dir, sidecar, options);
202
329
  if (engine !== "auto" && engine !== "parakeet" && engine !== "whisper") {
203
330
  throw new TranscribeError(
204
331
  "invalid_option",
205
- `Unknown --engine: ${options.engine}. Use auto, parakeet, or whisper.`
332
+ `Unknown --engine: ${options.engine}. Use auto, parakeet, whisper, or heygen.`
206
333
  );
207
334
  }
208
335
  const unsupported = sherpaUnsupportedReason();
@@ -299,31 +426,7 @@ async function transcribeAudio(inputPath, dir, sidecar, options) {
299
426
  throw new Error(`${parakeetError}. The ${runner} fallback failed too: ${why}`);
300
427
  }
301
428
  }
302
- const { words } = loadTranscript(result.transcriptPath);
303
- writeFileSync(result.transcriptPath, JSON.stringify(words, null, 2));
304
- patchCaptionHtml(dir, words);
305
- if (sidecar) {
306
- try {
307
- writeCaptionSidecar(words, sidecar, false);
308
- } catch (err) {
309
- throw new TranscribeError(
310
- "caption_write_failed",
311
- `Transcript saved to ${result.transcriptPath}, but the caption file ${sidecar.outPath} could not be written: ${normalizeErrorMessage(err)}`,
312
- { cause: err, transcriptPath: result.transcriptPath }
313
- );
314
- }
315
- }
316
- return {
317
- kind: "transcribed",
318
- engine: engineOf(runner),
319
- model: result.model,
320
- detectedLanguage: result.detectedLanguage,
321
- wordCount: words.length,
322
- durationSeconds: result.durationSeconds,
323
- speechOnsetSeconds: result.speechOnsetSeconds,
324
- transcriptPath: result.transcriptPath,
325
- ...sidecar && { captions: { format: sidecar.to, outputPath: sidecar.outPath } }
326
- };
429
+ return finishTranscript(result, engineOf(runner), dir, sidecar);
327
430
  } catch (err) {
328
431
  if (err instanceof TranscribeError) throw err;
329
432
  if (err instanceof DecodeCancelled || cancellation?.signal.aborted) {
@@ -337,7 +440,7 @@ async function transcribeAudio(inputPath, dir, sidecar, options) {
337
440
  throw new TranscribeError("failed", message, { cause: err });
338
441
  } finally {
339
442
  cancellation?.dispose();
340
- if (wavPath !== inputPath) rmSync(wavPath, { force: true });
443
+ if (wavPath !== inputPath) rmSync2(wavPath, { force: true });
341
444
  }
342
445
  }
343
446
 
@@ -43,11 +43,14 @@ import {
43
43
  } from "./chunk-BLBMPEBX.js";
44
44
  import {
45
45
  VERSION
46
- } from "./chunk-5YT2KHPO.js";
46
+ } from "./chunk-P5QGZMGC.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