hyperframes 0.9.7 → 0.9.9

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 (242) hide show
  1. package/dist/{add-WLXYFHMC.js → add-FQX5F6PC.js} +12 -12
  2. package/dist/{agentPromptGenerator-2SMADJAL.js → agentPromptGenerator-XNGPKVEX.js} +9 -9
  3. package/dist/{animatedGifPrep-4WCFONEJ.js → animatedGifPrep-E3PYKFJ3.js} +9 -9
  4. package/dist/api.js +29 -28
  5. package/dist/{asset-UQBTWAMJ.js → asset-X5GG5TTP.js} +2 -2
  6. package/dist/{assetCataloger-GOUD7VDG.js → assetCataloger-SDFP4DWL.js} +10 -10
  7. package/dist/{audio-LDVXMRHU.js → audio-DDTYFS23.js} +28 -28
  8. package/dist/{auth-6LVATNTF.js → auth-OAWLDT3A.js} +2 -2
  9. package/dist/{autoUpdate-X6KZRI5E.js → autoUpdate-BWIPXW2W.js} +23 -16
  10. package/dist/{backgroundChecks-3HGGWYLY.js → backgroundChecks-YJ5NRMBA.js} +3 -3
  11. package/dist/backgroundChecksWorker.js +3 -3
  12. package/dist/{batchRender-4ISYYVPQ.js → batchRender-ZDL65J7N.js} +4 -4
  13. package/dist/{beats-WN2KYIK3.js → beats-Q2TIAA7S.js} +11 -11
  14. package/dist/{benchmark-HZPGQ2MP.js → benchmark-I3GRHFIN.js} +9 -9
  15. package/dist/{billing-3Q2EAZFJ.js → billing-W224NIAM.js} +12 -2
  16. package/dist/{browser-6XC7MTQL.js → browser-F24WMZ52.js} +3 -3
  17. package/dist/{bundleWithLocalizedFonts-ZZ6Y4CEO.js → bundleWithLocalizedFonts-K5CQPNIZ.js} +2 -2
  18. package/dist/{capture-46LJ2VU2.js → capture-HLC6I4RE.js} +3 -3
  19. package/dist/{capture-FCLAEX5L.js → capture-UKWY3SZQ.js} +22 -22
  20. package/dist/{captureCompositionFrame-SMUDCZ2L.js → captureCompositionFrame-YMB3CKSP.js} +14 -14
  21. package/dist/{catalog-72AEDDEG.js → catalog-H7SOITD6.js} +12 -12
  22. package/dist/{catch-up-6WIX7SWV.js → catch-up-YRGPVEM6.js} +4 -4
  23. package/dist/{check-R2G5OYIA.js → check-BPQZZ2MO.js} +44 -44
  24. package/dist/{checkAudio-2RP7BNQ3.js → checkAudio-4NRQ3WGS.js} +17 -17
  25. package/dist/{checkBrowser-OWLF2BT4.js → checkBrowser-S66AHKW3.js} +37 -37
  26. package/dist/{chunk-Y2R4N6HQ.js → chunk-2NGBIAUF.js} +25 -20
  27. package/dist/{chunk-SXGXJAA7.js → chunk-2QMEP4LR.js} +1 -1
  28. package/dist/{chunk-PYWJGSWO.js → chunk-2ROPUTCS.js} +1 -1
  29. package/dist/{chunk-FLDSZTHP.js → chunk-2Y575PWJ.js} +2 -2
  30. package/dist/{chunk-PG356QHK.js → chunk-322AG75G.js} +2 -2
  31. package/dist/{chunk-CUCDUPTA.js → chunk-3DWH6Z5U.js} +1 -1
  32. package/dist/{chunk-6A45RKAK.js → chunk-3XJM7XZN.js} +136 -35
  33. package/dist/{chunk-LIA4GZ4F.js → chunk-42TYQPES.js} +2 -2
  34. package/dist/{chunk-V6MZZEA7.js → chunk-4W5X4S47.js} +48 -49
  35. package/dist/{chunk-3Q7UFKFN.js → chunk-5YIZRU2L.js} +3 -3
  36. package/dist/{chunk-X3DTUYKZ.js → chunk-62ATHBDS.js} +27 -17
  37. package/dist/{chunk-PPNA6EBI.js → chunk-63GTSNMY.js} +6 -6
  38. package/dist/{chunk-46HMQ4I3.js → chunk-6DKWOG7L.js} +1 -1
  39. package/dist/{chunk-C3FKYBZ4.js → chunk-6HO6QKYG.js} +9 -9
  40. package/dist/{chunk-X2PPRHKO.js → chunk-6KV3CMY2.js} +1 -1
  41. package/dist/{chunk-P7CVKVPD.js → chunk-6UZLHLFP.js} +2 -2
  42. package/dist/{chunk-PUMQDN2T.js → chunk-7RM3TB62.js} +29 -2
  43. package/dist/{chunk-UQH3MOES.js → chunk-7W5ZDOLW.js} +2 -2
  44. package/dist/{chunk-YHO5SKUR.js → chunk-A2NFFVWH.js} +5 -5
  45. package/dist/{chunk-RJ6LXDUC.js → chunk-A33GFLPY.js} +22 -2
  46. package/dist/{chunk-74VSOKKS.js → chunk-ABI256T5.js} +1 -1
  47. package/dist/{chunk-T252SG67.js → chunk-AH6MUQQC.js} +2 -2
  48. package/dist/{chunk-QXVW22VM.js → chunk-ASGRVFQ3.js} +1 -0
  49. package/dist/{chunk-HZG42ZYW.js → chunk-AUYRWWFL.js} +3 -3
  50. package/dist/{chunk-DZNJD7BH.js → chunk-AVNF52HR.js} +1 -1
  51. package/dist/{chunk-WAURLEUO.js → chunk-B5GWDPUO.js} +3 -3
  52. package/dist/{chunk-XFA6NPMP.js → chunk-BBP5KGYS.js} +3 -3
  53. package/dist/{chunk-TBCRTIXP.js → chunk-BHL4KN3H.js} +2 -2
  54. package/dist/{chunk-OO7U23BR.js → chunk-BX2JB24X.js} +1 -1
  55. package/dist/{chunk-CTPYBHF3.js → chunk-BXYB5NGT.js} +2 -2
  56. package/dist/{chunk-QXUDHDJU.js → chunk-BYC4C4YY.js} +9 -9
  57. package/dist/{chunk-RWHCRVZV.js → chunk-C3NC67BB.js} +8 -8
  58. package/dist/{chunk-CX6MGY2B.js → chunk-CBPBTQBH.js} +13 -13
  59. package/dist/{chunk-IXGZ6YFZ.js → chunk-CNX3WKQ5.js} +30 -8
  60. package/dist/{chunk-NEI65CWG.js → chunk-CPMTEWQM.js} +3 -3
  61. package/dist/{chunk-P73MHFBX.js → chunk-CUYVIDGF.js} +4 -3
  62. package/dist/{chunk-XKTLYF4N.js → chunk-DIKIN4BA.js} +29 -29
  63. package/dist/{chunk-KD22R2UE.js → chunk-E2YXF2EP.js} +3 -3
  64. package/dist/{chunk-NFNYH6VQ.js → chunk-EBUA6NWH.js} +2 -2
  65. package/dist/{chunk-RY7Z6KFS.js → chunk-EN6MPNZT.js} +4 -4
  66. package/dist/{chunk-CE7EQUBV.js → chunk-G3ERWPNV.js} +1 -1
  67. package/dist/{chunk-DOS6S7HW.js → chunk-GAKRZZHQ.js} +2 -2
  68. package/dist/{chunk-X4K7Q5PT.js → chunk-GIYZMGYT.js} +1 -1
  69. package/dist/{chunk-WZGVBZY6.js → chunk-H534266X.js} +2 -2
  70. package/dist/{chunk-7XRS2NDR.js → chunk-HBHLCMOQ.js} +7 -7
  71. package/dist/{chunk-FYR2GKAA.js → chunk-HUJMTTKR.js} +163 -32
  72. package/dist/{chunk-LFDPOL45.js → chunk-JZPUXDQE.js} +4 -4
  73. package/dist/{chunk-TSCO4XR4.js → chunk-LR5NVYZT.js} +1 -1
  74. package/dist/{chunk-XEP7PGXS.js → chunk-LTBBFLOM.js} +1 -1
  75. package/dist/{chunk-LCDXHXYH.js → chunk-LV5SL4YW.js} +2 -2
  76. package/dist/{chunk-Q3SKYJGG.js → chunk-M6JFR7KF.js} +18 -5
  77. package/dist/{chunk-2BARV2ZU.js → chunk-MDMQD6BV.js} +6 -6
  78. package/dist/{chunk-3LHJHMFK.js → chunk-MWHTLXG4.js} +4 -54
  79. package/dist/{chunk-3YJB4QVS.js → chunk-MY4PAH7C.js} +1 -1
  80. package/dist/{chunk-IAZ2A7D6.js → chunk-N6FGHJ7X.js} +53 -29
  81. package/dist/{chunk-GK3OROLS.js → chunk-N74N2I2K.js} +1 -1
  82. package/dist/{chunk-3AH6KE6F.js → chunk-NCP3JQ6S.js} +109 -96
  83. package/dist/{chunk-E3IBPTX7.js → chunk-NNF6G2UH.js} +1 -1
  84. package/dist/{chunk-M336YVCP.js → chunk-NWQFOHXF.js} +1 -1
  85. package/dist/{chunk-UDY3FS6G.js → chunk-NX2X326Z.js} +9 -9
  86. package/dist/{chunk-7LCZBNX7.js → chunk-OAFGA2FR.js} +4 -3
  87. package/dist/{chunk-FYDFHW22.js → chunk-OYAZODSP.js} +28 -28
  88. package/dist/{chunk-SE6O4APZ.js → chunk-PPMCILED.js} +37 -5
  89. package/dist/{chunk-E4XS2M2E.js → chunk-Q3IT7I2K.js} +1 -1
  90. package/dist/{chunk-SIJYH7XM.js → chunk-QOF7XZEI.js} +1 -1
  91. package/dist/{chunk-SEJ7UBR2.js → chunk-QRCORKYC.js} +2 -2
  92. package/dist/{chunk-YTWTG67C.js → chunk-QUBVGS27.js} +6 -6
  93. package/dist/{chunk-IOECRDWX.js → chunk-R7EKEIAK.js} +1 -1
  94. package/dist/{chunk-HRSZOW3U.js → chunk-S2UKSI3C.js} +1 -1
  95. package/dist/{chunk-C7XW5WPZ.js → chunk-SG4YBQPY.js} +2 -2
  96. package/dist/chunk-SRVAYGTN.js +62 -0
  97. package/dist/{chunk-2X43RFKM.js → chunk-SSZTRWKQ.js} +2 -2
  98. package/dist/{chunk-ULH6TLE3.js → chunk-TJ2USKCK.js} +1 -1
  99. package/dist/{chunk-6IW2HWYI.js → chunk-TZBJEKKU.js} +1 -1
  100. package/dist/{chunk-HBCY63DS.js → chunk-UWYHZCEQ.js} +2 -2
  101. package/dist/{chunk-XXEOJXXY.js → chunk-V74HSKGY.js} +1 -1
  102. package/dist/{chunk-EG7FZSEF.js → chunk-VM6T3Z6B.js} +1 -1
  103. package/dist/{chunk-IX3R4BKU.js → chunk-VNR7LSN4.js} +50 -11
  104. package/dist/{chunk-ZVERYNYS.js → chunk-VZ5O7A77.js} +1 -1
  105. package/dist/{chunk-N6O2RQLQ.js → chunk-W5AUD5OL.js} +2 -2
  106. package/dist/{chunk-BGHKFD3T.js → chunk-WWBEAKTO.js} +10 -2
  107. package/dist/{chunk-UGUYWTWD.js → chunk-XLPCBE2Q.js} +4 -4
  108. package/dist/{chunk-KDTOB4TD.js → chunk-XTYNW745.js} +1 -1
  109. package/dist/{chunk-BGMMC352.js → chunk-XX77LLFJ.js} +6 -6
  110. package/dist/chunk-Y3ICFPFK.js +5035 -0
  111. package/dist/{chunk-AWQE37H3.js → chunk-YTNHZT47.js} +2 -2
  112. package/dist/{chunk-LAZREIJF.js → chunk-ZD3MK4H5.js} +1 -1
  113. package/dist/{chunk-GBEGZOP3.js → chunk-ZLN3AJKT.js} +1 -1
  114. package/dist/{clean-52TVJH4U.js → clean-RCXKQNFM.js} +23 -23
  115. package/dist/cli.js +61 -60
  116. package/dist/{cloud-FEPPMA5F.js → cloud-TQPQZRC5.js} +4 -4
  117. package/dist/cloud-Z3FNCC4T.js +39 -0
  118. package/dist/{cloudrun-DFWQ7ZJW.js → cloudrun-N737TJRC.js} +6 -6
  119. package/dist/{compare-UBQUKWOB.js → compare-EO32AASM.js} +34 -34
  120. package/dist/{compiler-UCJ4KC75.js → compiler-NAIDMQFU.js} +6 -6
  121. package/dist/{component-6YUQ2XAM.js → component-S3TYNVCR.js} +3 -3
  122. package/dist/{compositions-KGZO4UYR.js → compositions-4TXRLZ3M.js} +15 -15
  123. package/dist/{curve-VISYHZKL.js → curve-HGLOP2GY.js} +13 -13
  124. package/dist/{cuts-HCWYCBI2.js → cuts-VNFIISLL.js} +14 -14
  125. package/dist/{delete-CNKHLEDS.js → delete-TIWI3G7X.js} +7 -5
  126. package/dist/{deploy-TS3R7DTD.js → deploy-EHPNOGSY.js} +6 -6
  127. package/dist/{describeProject-6TNE4FY4.js → describeProject-DN6YQU3X.js} +10 -10
  128. package/dist/{deterministicFonts-H4RC6TOJ.js → deterministicFonts-GQMT52JQ.js} +2 -2
  129. package/dist/{diff-YRBYR56R.js → diff-46JK5ZCL.js} +156 -75
  130. package/dist/dist-CCPYPKOC.js +197 -0
  131. package/dist/{dist-T57O7KXT.js → dist-GUX66F7V.js} +3 -3
  132. package/dist/{dist-H4C7ZCFU.js → dist-PCVNVAVC.js} +4 -4
  133. package/dist/{doctor-PLA77GFC.js → doctor-LD23DW4N.js} +13 -13
  134. package/dist/{energy-7BTNGNR7.js → energy-YZ3DB6AI.js} +14 -14
  135. package/dist/{events-IMWCEFSZ.js → events-3OWNDNJX.js} +3 -3
  136. package/dist/{events-QTM2OEFB.js → events-DRTMYSQ6.js} +2 -2
  137. package/dist/{events-25FIG2O6.js → events-MQIKCKA5.js} +16 -16
  138. package/dist/{extract-C66C5A22.js → extract-F3NBE3X5.js} +14 -14
  139. package/dist/{face-MDOI2JO5.js → face-ZU7ZDYGO.js} +14 -14
  140. package/dist/{feedback-26OSAZF3.js → feedback-37M37Y4F.js} +8 -8
  141. package/dist/{ffmpeg-R5ND25AV.js → ffmpeg-PERZ6YHQ.js} +9 -9
  142. package/dist/{figma-276JAPS4.js → figma-55AG42NN.js} +3 -3
  143. package/dist/fontLocalizeCli.js +15 -15
  144. package/dist/{frames-AMLBNI5B.js → frames-DJA3CFSY.js} +19 -16
  145. package/dist/{generate-YIZS4JFA.js → generate-BVJ5XNWP.js} +18 -17
  146. package/dist/{get-HFEFIRAJ.js → get-PGLCWEBG.js} +7 -5
  147. package/dist/{gpuPolicy-7JA66MJG.js → gpuPolicy-DUNSQM6M.js} +9 -9
  148. package/dist/{grade-compare-7NH6XYIY.js → grade-compare-R6Q6G6WP.js} +34 -34
  149. package/dist/{heifImagePrep-WCL36MHY.js → heifImagePrep-YNPHFR6W.js} +10 -10
  150. package/dist/{help-HHIAUMBQ.js → help-4SNDXHWQ.js} +2 -1
  151. package/dist/{history-SLWPRU6Q.js → history-NKRHKIE2.js} +10 -10
  152. package/dist/hyperframe.manifest.json +1 -1
  153. package/dist/hyperframe.runtime.iife.js +65 -65
  154. package/dist/hyperframes-player.global.js +1 -1
  155. package/dist/{info-MIPROXSM.js → info-U4VDKU2Y.js} +8 -8
  156. package/dist/{init-T56UGI6Z.js → init-2RUVBHQO.js} +29 -29
  157. package/dist/{ink-TY7CKC6Q.js → ink-TX3USU7X.js} +14 -14
  158. package/dist/{inspect-TIF7YHGN.js → inspect-MAGHXEWS.js} +34 -34
  159. package/dist/{installer-72QUKTPE.js → installer-PUQYKLXZ.js} +5 -5
  160. package/dist/{keyframes-I4JRA37J.js → keyframes-2TDECIQZ.js} +6 -6
  161. package/dist/{lambda-VGFSEG56.js → lambda-CRVYDETX.js} +15 -15
  162. package/dist/{layout-K776Z2IS.js → layout-I3VNHWJH.js} +34 -34
  163. package/dist/{lint-XLTSC66T.js → lint-MCVWXDJX.js} +10 -10
  164. package/dist/{lintProject-NZADSVSU.js → lintProject-EV3EEBY3.js} +4 -4
  165. package/dist/{list-6V3IKLXF.js → list-FJJNWPM6.js} +7 -5
  166. package/dist/{localPage-RM6EXBBT.js → localPage-6MQ6YFER.js} +9 -9
  167. package/dist/{login-HD47X3JE.js → login-YAZZWYFK.js} +4 -4
  168. package/dist/{look-KUDJYDTK.js → look-U5UHXPUQ.js} +14 -14
  169. package/dist/{manager-TUKVGY7O.js → manager-ARXEX6OP.js} +10 -10
  170. package/dist/{measure-6BRNY3II.js → measure-JAPDVQ5X.js} +11 -11
  171. package/dist/{media-treatment-MLME5LNQ.js → media-treatment-A4Z32NGP.js} +15 -15
  172. package/dist/{media-use-3YTDQKGR.js → media-use-6HX7JHRD.js} +17 -11
  173. package/dist/{models-IUX642FY.js → models-GMJODMZ5.js} +13 -13
  174. package/dist/{motionShot-INNVFSPU.js → motionShot-Z63I3GO7.js} +17 -17
  175. package/dist/{normalize-audio-ZMJIN2OV.js → normalize-audio-45CHOWKY.js} +10 -10
  176. package/dist/{open-FDQ3NDSX.js → open-RSTNLDYI.js} +12 -12
  177. package/dist/{parakeetRunner-WZ6JW3QQ.js → parakeetRunner-K4EGDDVH.js} +14 -14
  178. package/dist/{pipeline-V3TOATHS.js → pipeline-EKLTELWF.js} +12 -12
  179. package/dist/{play-5WIU4CZL.js → play-BYIEIRQQ.js} +25 -25
  180. package/dist/{preflight-JXEVL63B.js → preflight-TC6ZW3GB.js} +10 -10
  181. package/dist/{present-UHWGVCP4.js → present-5B5VQKT5.js} +20 -20
  182. package/dist/{preview-W75P6D7E.js → preview-5O2HT2WF.js} +23 -23
  183. package/dist/{probe-O2ADL5FX.js → probe-ZGK6DBAR.js} +14 -14
  184. package/dist/{producer-6GQQQT7M.js → producer-RFTB2APL.js} +1 -1
  185. package/dist/{projectConfig-FQ7CAOXL.js → projectConfig-PUAOWUNS.js} +7 -7
  186. package/dist/{publication-YRVC6D56.js → publication-K4XAMUI6.js} +3 -3
  187. package/dist/{publish-4IN3WW5G.js → publish-7W46NJFT.js} +13 -13
  188. package/dist/{remove-background-L4KWXVMH.js → remove-background-LURZDSDJ.js} +13 -13
  189. package/dist/{render-IP7KBRD7.js → render-7HIEI7QP.js} +46 -46
  190. package/dist/{render-73VGDCCH.js → render-EF7Y6YYC.js} +6 -6
  191. package/dist/{render-GZ4DBQ5E.js → render-ETZ3WAJO.js} +39 -37
  192. package/dist/{render-batch-RX3TJ4NY.js → render-batch-JYYP4RXA.js} +6 -6
  193. package/dist/renderSetupWorker.js +4 -4
  194. package/dist/{resolver-SNTBG6O2.js → resolver-BKFLETMU.js} +5 -5
  195. package/dist/{reverse-5SHT4TC6.js → reverse-VPBNBP2Q.js} +1 -1
  196. package/dist/{run-GV6MEM2M.js → run-XER4YJY5.js} +3 -3
  197. package/dist/{sherpa-LJJHQNQ6.js → sherpa-D6FQ3CHN.js} +13 -13
  198. package/dist/skills/media-use/SKILL.md +2 -2
  199. package/dist/skills/media-use/references/heygen.md +17 -9
  200. package/dist/skills/media-use/references/operations.md +14 -13
  201. package/dist/skills/media-use/scripts/lib/adopt.mjs +11 -0
  202. package/dist/skills/media-use/scripts/lib/adopt.test.mjs +26 -0
  203. package/dist/skills/media-use/scripts/lib/registry.mjs +2 -1
  204. package/dist/skills/media-use/scripts/lib/registry.test.mjs +5 -6
  205. package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +23 -0
  206. package/dist/skills/media-use/scripts/resolve.mjs +3 -1
  207. package/dist/{skills-NVNRQU7K.js → skills-EBVQSIK4.js} +22 -12
  208. package/dist/{skillsUpdateCheck-QNFIPFLX.js → skillsUpdateCheck-7VXK4R4J.js} +3 -3
  209. package/dist/{snapshot-75S4SIRK.js → snapshot-PJUNSMDS.js} +49 -46
  210. package/dist/{src-MTLH4YHV.js → src-RL6YEPTD.js} +10 -10
  211. package/dist/{src-KS6W3WRC.js → src-SMIMKSHZ.js} +18 -18
  212. package/dist/{start-4UCLBL76.js → start-5ZDH643Z.js} +32 -25
  213. package/dist/{staticProjectServer-USD7TCZH.js → staticProjectServer-BX4RWEY5.js} +21 -21
  214. package/dist/{status-MPCREDMQ.js → status-4LLUW5YT.js} +1 -1
  215. package/dist/studio/assets/{hyperframes-player-CQLtM2zB.js → hyperframes-player-CcNGHTev.js} +1 -1
  216. package/dist/studio/assets/{index-CKnGNPHF.js → index-D9uDed3x.js} +1 -1
  217. package/dist/studio/assets/{index-CdWK2GVp.js → index-DSRgrCDX.js} +118 -118
  218. package/dist/studio/index.html +1 -1
  219. package/dist/{studio-api-447CJUUM.js → studio-api-PEUXVD7P.js} +17 -17
  220. package/dist/{studioServer-TMPKQRQA.js → studioServer-2WIQBEQC.js} +61 -61
  221. package/dist/{sync-V456U5AA.js → sync-P3O3WZWT.js} +19 -16
  222. package/dist/{telemetry-NK6K3VRH.js → telemetry-267LV4SC.js} +3 -3
  223. package/dist/templates/_shared/AGENTS.md +1 -0
  224. package/dist/templates/_shared/CLAUDE.md +1 -0
  225. package/dist/templates-MQ742KVZ.js +173 -0
  226. package/dist/{timeline-M5URP7QS.js → timeline-WP7AZAQC.js} +24 -24
  227. package/dist/{tokens-5OIFB4MD.js → tokens-ROFKR7AE.js} +2 -2
  228. package/dist/{transcribe-ON5WTZV3.js → transcribe-N66QUYCS.js} +12 -12
  229. package/dist/{transcribe-N3E7T7AW.js → transcribe-WS2STSCJ.js} +23 -22
  230. package/dist/{tts-JHGGL7GL.js → tts-HIQMJU6O.js} +1 -1
  231. package/dist/{updateCheck-JQOAKPNR.js → updateCheck-M2SMSDIO.js} +2 -2
  232. package/dist/{upgrade-737POFN4.js → upgrade-ZUWFB2QM.js} +2 -2
  233. package/dist/upload-L5TSWWIU.js +16 -0
  234. package/dist/{urlDownloader-ZIPT6PZC.js → urlDownloader-YNI3Y3IE.js} +8 -8
  235. package/dist/{validate-6IPCQFXI.js → validate-M2M37G47.js} +28 -28
  236. package/dist/{video-BEZHDPH2.js → video-2OEOTSPQ.js} +10 -10
  237. package/dist/warmCheck.js +44 -44
  238. package/package.json +1 -1
  239. package/dist/chunk-OUZSRPKC.js +0 -5035
  240. package/dist/{chunk-T5ELONXY.js → chunk-JHILL4BN.js} +0 -0
  241. package/dist/{destroy-IQLGADZM.js → destroy-C5GQLZVZ.js} +4 -4
  242. package/dist/{synthesize-YYT7UON6.js → synthesize-YK3WLOEQ.js} +5 -5
@@ -6,15 +6,19 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  pageUrl
9
- } from "./chunk-QXVW22VM.js";
9
+ } from "./chunk-ASGRVFQ3.js";
10
10
  import {
11
11
  Fix
12
- } from "./chunk-RJ6LXDUC.js";
12
+ } from "./chunk-A33GFLPY.js";
13
13
  import {
14
14
  refreshIfNeeded,
15
15
  resolveCloudAuthHeaders,
16
16
  resolveCloudBaseUrl
17
17
  } from "./chunk-TSQZ3DSC.js";
18
+ import {
19
+ HyperframesApiError,
20
+ HyperframesCloudClient
21
+ } from "./chunk-3XJM7XZN.js";
18
22
  import {
19
23
  AuthClient,
20
24
  buildAuthHeaders,
@@ -115,42 +119,29 @@ function refusal(status, body, estimate) {
115
119
  "fix the request it names, then run again"
116
120
  );
117
121
  }
118
- async function call(method, route, body, key, estimate, auth) {
119
- const headers = {
120
- ...auth ?? await resolveCloudAuthHeaders().catch(noSignIn),
121
- accept: "application/json"
122
- };
123
- if (body !== void 0) headers["content-type"] = "application/json";
124
- if (key) headers["Idempotency-Key"] = key;
125
- let res;
122
+ var clientFor = (auth) => new HyperframesCloudClient({ baseUrl: resolveCloudBaseUrl(), getAuthHeaders: () => auth });
123
+ var resume = "run the same command again: it resumes the same job";
124
+ async function call(route, send, timeoutMs, estimate, auth) {
125
+ const client = clientFor(auth ?? await resolveCloudAuthHeaders().catch(noSignIn));
126
+ let data;
126
127
  try {
127
- res = await fetch(`${resolveCloudBaseUrl()}${route}`, {
128
- method,
129
- headers,
130
- ...body !== void 0 ? { body: JSON.stringify(body) } : {},
131
- signal: AbortSignal.timeout(method === "POST" ? 18e4 : 3e4)
132
- });
128
+ data = await send(client, AbortSignal.timeout(timeoutMs));
133
129
  } catch (err) {
134
- throw new Fix(
135
- `no answer from HeyGen for ${route} (${err instanceof Error ? err.message : String(err)})`,
136
- "run the same command again: it resumes the same job"
137
- );
138
- }
139
- const value = await res.json().catch(() => null);
140
- if (res.status >= 500 || value === null)
141
- throw new Fix(
142
- `HeyGen ${res.status} for ${route} with no readable answer`,
143
- "run the same command again: it resumes the same job"
144
- );
145
- if (!res.ok) {
146
- const refused = refusal(res.status, value, estimate);
147
- refused.status = res.status;
130
+ if (!(err instanceof HyperframesApiError))
131
+ throw new Fix(
132
+ `no answer from HeyGen for ${route} (${err instanceof Error ? err.message : String(err)})`,
133
+ resume
134
+ );
135
+ if (err.status >= 500 || err.status < 300 || err.raw == null)
136
+ throw new Fix(`HeyGen ${err.status} for ${route} with no readable answer`, resume);
137
+ const refused = refusal(err.status, err.raw, estimate);
138
+ refused.status = err.status;
148
139
  throw refused;
149
140
  }
150
- const data = isRecord(value) && isRecord(value.data) ? value.data : value;
141
+ if (data == null) throw new Fix(`HeyGen answered ${route} with no readable answer`, resume);
151
142
  if (!isRecord(data))
152
143
  throw new Fix(`HeyGen answered ${route} with no job`, "run the same command again");
153
- const id = data.id ?? data.job_id ?? data.video_id ?? data.generation_id;
144
+ const id = data.id ?? data.job_id ?? data.video_id ?? data.generation_id ?? data.lipsync_id;
154
145
  return {
155
146
  ...data,
156
147
  id: typeof id === "string" ? id : "",
@@ -167,19 +158,28 @@ function log(entry, record) {
167
158
  `
168
159
  );
169
160
  }
170
- async function runJob(route, body, key, pollRoute, opts = {}) {
161
+ async function runJob(jobRoute, body, key, opts = {}) {
171
162
  const started = Date.now();
163
+ const route = jobRoute.path;
172
164
  const { auth, scope } = await jobSender();
173
165
  const sent = liveKey(key, scope);
174
166
  let job;
175
167
  try {
176
- job = await call("POST", route, body, sent, opts.credits, auth);
168
+ job = await call(
169
+ route,
170
+ (client, signal) => jobRoute.start(client, body, sent, signal),
171
+ 18e4,
172
+ opts.credits,
173
+ auth
174
+ );
177
175
  } catch (err) {
178
176
  if (err instanceof Refused && !KEEPS_KEY.has(err.status)) markFailed(sent, scope);
179
177
  throw err;
180
178
  }
181
- if (opts.log) log(opts.log, { route, id: job.id, key: sent, status: job.status });
182
- while (RUNNING.has(job.status.toLowerCase())) {
179
+ const waits = RUNNING.has(job.status.toLowerCase());
180
+ if (opts.log && waits) log(opts.log, { route, id: job.id, key: sent, status: job.status });
181
+ const status = jobRoute.status;
182
+ while (status && RUNNING.has(job.status.toLowerCase())) {
183
183
  if (Date.now() - started > (opts.timeoutMs ?? 15 * 6e4))
184
184
  throw new Fix(
185
185
  `HeyGen job ${job.id} is still ${job.status}`,
@@ -187,7 +187,12 @@ async function runJob(route, body, key, pollRoute, opts = {}) {
187
187
  );
188
188
  opts.onWait?.(job);
189
189
  await new Promise((r) => setTimeout(r, opts.intervalMs ?? 5e3));
190
- job = await call("GET", pollRoute(job.id));
190
+ const id = job.id;
191
+ job = await call(
192
+ `${route}/${encodeURIComponent(id)}`,
193
+ (client, signal) => status(client, id, signal),
194
+ 3e4
195
+ );
191
196
  }
192
197
  if (opts.log) log(opts.log, { route, id: job.id, key: sent, status: job.status });
193
198
  if (!/^(completed|succeeded|success|done)$/i.test(job.status)) {
@@ -200,23 +205,17 @@ async function runJob(route, body, key, pollRoute, opts = {}) {
200
205
  }
201
206
  var isVoice = (v) => isRecord(v) && typeof v.voice_id === "string" && typeof v.name === "string";
202
207
  async function publicVoices(language, limit) {
203
- const headers = {
204
- ...await resolveCloudAuthHeaders().catch(noSignIn),
205
- accept: "application/json"
206
- };
207
- const query = new URLSearchParams({ type: "public", language, limit: String(limit) });
208
- const res = await fetch(`${resolveCloudBaseUrl()}/v3/voices?${query}`, {
209
- headers,
210
- signal: AbortSignal.timeout(3e4)
211
- }).catch((err) => {
208
+ const client = clientFor(await resolveCloudAuthHeaders().catch(noSignIn));
209
+ const value = await client.listVoicesV3({ type: "public", language, limit, signal: AbortSignal.timeout(3e4) }).catch((err) => {
210
+ if (err instanceof HyperframesApiError)
211
+ throw new Fix(`HeyGen ${err.status} listing its voices`, "run the same command again");
212
212
  throw new Fix(
213
213
  `no answer from HeyGen for its voices (${err instanceof Error ? err.message : String(err)})`,
214
214
  "run the same command again"
215
215
  );
216
216
  });
217
- const value = await res.json().catch(() => null);
218
- if (!res.ok || !isRecord(value) || !Array.isArray(value.data))
219
- throw new Fix(`HeyGen ${res.status} listing its voices`, "run the same command again");
217
+ if (!isRecord(value) || !Array.isArray(value.data))
218
+ throw new Fix("HeyGen answered its voices with no list", "run the same command again");
220
219
  return value.data.filter(isVoice).map(({ voice_id, name, language: language2, gender }) => ({ voice_id, name, language: language2, gender }));
221
220
  }
222
221
  async function senderScope() {
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parseFeedbackRating,
9
9
  trackRenderFeedback
10
- } from "./chunk-PYWJGSWO.js";
10
+ } from "./chunk-2ROPUTCS.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-XXEOJXXY.js";
13
+ } from "./chunk-V74HSKGY.js";
14
14
  import {
15
15
  c
16
16
  } from "./chunk-2GICKZ3I.js";
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
84
84
  try {
85
85
  const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
86
86
  import("./system-FDPS57FU.js"),
87
- import("./ffmpeg-R5ND25AV.js")
87
+ import("./ffmpeg-PERZ6YHQ.js")
88
88
  ]);
89
89
  const sys = getSystemMeta();
90
90
  const parts = [
@@ -6,33 +6,34 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parakeetRunner
9
- } from "./chunk-KDTOB4TD.js";
9
+ } from "./chunk-XTYNW745.js";
10
10
  import {
11
11
  DecodeCancelled,
12
12
  prepareSherpaWav,
13
13
  sherpaUnsupportedReason,
14
14
  transcribeWithSherpa
15
- } from "./chunk-AWQE37H3.js";
15
+ } from "./chunk-YTNHZT47.js";
16
16
  import {
17
17
  idempotencyKey,
18
18
  runJob
19
- } from "./chunk-V6MZZEA7.js";
19
+ } from "./chunk-4W5X4S47.js";
20
20
  import {
21
+ projectOf,
21
22
  runFfmpeg
22
- } from "./chunk-RJ6LXDUC.js";
23
+ } from "./chunk-A33GFLPY.js";
23
24
  import {
24
25
  initialModelForLanguage,
25
26
  transcribe
26
- } from "./chunk-HZG42ZYW.js";
27
+ } from "./chunk-AUYRWWFL.js";
27
28
  import {
28
29
  createRenderCancellationScope,
29
30
  stoppedByCancelSignal
30
- } from "./chunk-EG7FZSEF.js";
31
+ } from "./chunk-VM6T3Z6B.js";
31
32
  import {
32
33
  DEFAULT_MODEL,
33
34
  findWhisper,
34
35
  isWhisperUnavailable
35
- } from "./chunk-GBEGZOP3.js";
36
+ } from "./chunk-ZLN3AJKT.js";
36
37
  import {
37
38
  formatSrt,
38
39
  formatVtt,
@@ -54,13 +55,21 @@ import {
54
55
 
55
56
  // src/api/transcribe.ts
56
57
  import { existsSync, realpathSync, rmSync as rmSync2, statSync, writeFileSync as writeFileSync2 } from "fs";
57
- import { basename, dirname, extname, join as join2, resolve } from "path";
58
+ import { basename, dirname as dirname2, extname, join as join2, resolve } from "path";
58
59
 
59
60
  // src/heygen/transcribe.ts
60
61
  import { mkdtempSync, readFileSync, rmSync, writeFileSync } from "fs";
61
62
  import { tmpdir } from "os";
62
- import { join } from "path";
63
- var ROUTE = "/v3/audio/transcriptions";
63
+ import { dirname, join } from "path";
64
+ var ROUTE = {
65
+ path: "/v3/audio/transcriptions",
66
+ start: (c, body, key, signal) => c.createTranscription({
67
+ body,
68
+ idempotencyKey: key,
69
+ signal
70
+ }),
71
+ status: (c, id, signal) => c.getTranscription({ transcription_id: id, signal })
72
+ };
64
73
  var MODEL = "scribe-v2";
65
74
  var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
66
75
  var list = (v) => Array.isArray(v) ? v.filter(isRecord) : [];
@@ -111,10 +120,12 @@ async function transcribeWithHeygen(inputPath, transcriptPath, opts = {}) {
111
120
  audio: { type: "base64", media_type: "audio/mpeg", data: audio.toString("base64") },
112
121
  diarize
113
122
  },
114
- idempotencyKey(ROUTE, [audio, String(diarize)]),
115
- (id) => `${ROUTE}/${encodeURIComponent(id)}`,
123
+ idempotencyKey(ROUTE.path, [audio, String(diarize)]),
116
124
  {
117
- log: { projectDir: opts.projectDir, what: `transcribe ${inputPath}` },
125
+ log: {
126
+ projectDir: projectOf(dirname(transcriptPath)) ?? process.cwd(),
127
+ what: `transcribe ${inputPath}`
128
+ },
118
129
  timeoutMs: 10 * 6e4
119
130
  }
120
131
  );
@@ -158,7 +169,7 @@ async function runTranscribe(options) {
158
169
  if (!existsSync(inputPath)) {
159
170
  throw new TranscribeError("input_not_found", `File not found: ${options.input}`);
160
171
  }
161
- const dir = resolve(options.dir ?? dirname(inputPath));
172
+ const dir = resolve(options.dir ?? dirname2(inputPath));
162
173
  const ext = extname(inputPath).toLowerCase();
163
174
  const isImport = ext === ".json" || ext === ".srt" || ext === ".vtt";
164
175
  const sidecar = parseSidecar(options.captions, inputPath, dir);
@@ -194,7 +205,7 @@ function parseSidecar(captions, inputPath, dir) {
194
205
  }
195
206
  function outputProblem(output, outPath, to) {
196
207
  if (!output) return "--output needs a file path";
197
- const folder = dirname(outPath);
208
+ const folder = dirname2(outPath);
198
209
  if (!existsSync(folder) || !statSync(folder).isDirectory()) {
199
210
  return `Output folder not found: ${folder}`;
200
211
  }
@@ -213,7 +224,7 @@ function sameFile(out, file) {
213
224
  if (a.ino !== 0n && b.ino !== 0n) return a.dev === b.dev && a.ino === b.ino;
214
225
  return realpathSync.native(out) === realpathSync.native(file);
215
226
  }
216
- const realDir = (p) => existsSync(dirname(p)) ? realpathSync.native(dirname(p)) : dirname(p);
227
+ const realDir = (p) => existsSync(dirname2(p)) ? realpathSync.native(dirname2(p)) : dirname2(p);
217
228
  return realDir(out) === realDir(file) && basename(out).toLowerCase() === basename(file).toLowerCase();
218
229
  }
219
230
  function readTranscript(inputPath) {
@@ -313,7 +324,6 @@ async function transcribeOnHeygen(inputPath, dir, sidecar, options) {
313
324
  try {
314
325
  const result = await transcribeWithHeygen(inputPath, join2(dir, TRANSCRIPT_FILE), {
315
326
  diarize: options.speakers,
316
- projectDir: dir,
317
327
  onStatus: options.onStatus
318
328
  });
319
329
  return finishTranscript(result, "heygen", dir, sidecar);
@@ -6,18 +6,18 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-46HMQ4I3.js";
9
+ } from "./chunk-6DKWOG7L.js";
10
+ import {
11
+ findPreviewServerForProject,
12
+ studioApiUrl
13
+ } from "./chunk-US4BCRYB.js";
10
14
  import {
11
15
  DEFAULT_HISTORY_ROOT,
12
16
  HistoryBusyError,
13
17
  MAX_WINDOW_IDLE_MS,
14
18
  openProjectHistory,
15
19
  readProjectHistory
16
- } from "./chunk-UGUYWTWD.js";
17
- import {
18
- findPreviewServerForProject,
19
- studioApiUrl
20
- } from "./chunk-US4BCRYB.js";
20
+ } from "./chunk-XLPCBE2Q.js";
21
21
 
22
22
  // src/utils/historyOwner.ts
23
23
  import { randomUUID } from "crypto";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-5LOZWO2M.js";
10
10
  import {
11
11
  trackCommandFailure
12
- } from "./chunk-PYWJGSWO.js";
12
+ } from "./chunk-2ROPUTCS.js";
13
13
  import {
14
14
  failCommand
15
15
  } from "./chunk-66W5IWLO.js";
@@ -12,22 +12,22 @@ import {
12
12
  } from "./chunk-262C25DQ.js";
13
13
  import {
14
14
  pageNavigationTimeoutMs
15
- } from "./chunk-KD22R2UE.js";
15
+ } from "./chunk-E2YXF2EP.js";
16
16
  import {
17
17
  SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
18
18
  } from "./chunk-YGGZ23BB.js";
19
19
  import {
20
20
  resolveCompositionViewportFromHtml
21
- } from "./chunk-XEP7PGXS.js";
21
+ } from "./chunk-LTBBFLOM.js";
22
22
  import {
23
23
  launchManagedBrowser,
24
24
  resolveManagedGpuMode,
25
25
  rethrowAfterBrowserCleanup
26
- } from "./chunk-TBCRTIXP.js";
26
+ } from "./chunk-BHL4KN3H.js";
27
27
  import {
28
28
  resolveLocalBrowserGpuMode,
29
29
  resolveLocalWebGpu
30
- } from "./chunk-P7CVKVPD.js";
30
+ } from "./chunk-6UZLHLFP.js";
31
31
  import {
32
32
  c
33
33
  } from "./chunk-2GICKZ3I.js";
@@ -35,7 +35,7 @@ import {
35
35
  assertWebGpuAdapterAvailable,
36
36
  compositionRequiresWebGpu,
37
37
  oneProcessOverPipe
38
- } from "./chunk-IAZ2A7D6.js";
38
+ } from "./chunk-N6FGHJ7X.js";
39
39
  import {
40
40
  normalizeErrorMessage
41
41
  } from "./chunk-E63BDV4Z.js";
@@ -143,7 +143,7 @@ async function waitForCompositionSettle(page, options) {
143
143
  console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
144
144
  });
145
145
  await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
146
- const { resolveConfig, waitForImagesReady } = await import("./src-MTLH4YHV.js");
146
+ const { resolveConfig, waitForImagesReady } = await import("./src-RL6YEPTD.js");
147
147
  const imageTimeoutMs = resolveConfig().playerReadyTimeout;
148
148
  await waitForImagesReady(
149
149
  page,
@@ -192,7 +192,7 @@ async function installPageFunctionGuard(page) {
192
192
  async function openSettledCompositionPage(html, url, options) {
193
193
  const viewport = resolveCompositionViewportFromHtml(html);
194
194
  const requiresWebGpu = compositionRequiresWebGpu(html);
195
- const answer = (await import("./staticProjectServer-USD7TCZH.js")).inProcessAnswer(url);
195
+ const answer = (await import("./staticProjectServer-BX4RWEY5.js")).inProcessAnswer(url);
196
196
  const noListen = answer !== void 0;
197
197
  let chromeBrowser;
198
198
  try {
@@ -203,7 +203,7 @@ async function openSettledCompositionPage(html, url, options) {
203
203
  options.onBrowserReady?.();
204
204
  const page = await chromeBrowser.newPage();
205
205
  await installPageFunctionGuard(page);
206
- const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-MTLH4YHV.js");
206
+ const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-RL6YEPTD.js");
207
207
  await installMediaRenderIdBridge(page);
208
208
  await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
209
209
  await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
@@ -225,7 +225,7 @@ async function launchCompositionBrowser(html, noListen, options) {
225
225
  const { ensureBrowser, findSystemBrowser } = await import("./manager-SAXHANEY.js");
226
226
  const browser = await ensureBrowser({ signal: options.signal });
227
227
  const puppeteer = await import("puppeteer-core");
228
- const { buildChromeArgs } = await import("./src-MTLH4YHV.js");
228
+ const { buildChromeArgs } = await import("./src-RL6YEPTD.js");
229
229
  const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
230
230
  const requiresWebGpu = compositionRequiresWebGpu(html);
231
231
  let softwareWebGpu = false;
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-T2WJO4XM.js";
28
28
  import {
29
29
  ITEM_TYPE_DIRS
30
- } from "./chunk-N6O2RQLQ.js";
30
+ } from "./chunk-W5AUD5OL.js";
31
31
  import {
32
32
  realProjectRoot
33
33
  } from "./chunk-OFQWTKPW.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveConfig,
9
9
  usesSoftwareWebGpu
10
- } from "./chunk-IAZ2A7D6.js";
10
+ } from "./chunk-N6FGHJ7X.js";
11
11
 
12
12
  // src/browser/gpuPolicy.ts
13
13
  function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
17
17
  return "auto";
18
18
  }
19
19
  async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
20
- const { resolveBrowserGpuMode } = await import("./src-MTLH4YHV.js");
20
+ const { resolveBrowserGpuMode } = await import("./src-RL6YEPTD.js");
21
21
  return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
22
22
  }
23
23
  function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  decode,
9
9
  meanAbsDiff
10
- } from "./chunk-RJ6LXDUC.js";
10
+ } from "./chunk-A33GFLPY.js";
11
11
 
12
12
  // src/measure/cuts.ts
13
13
  var SIG_W = 64;
@@ -28,6 +28,7 @@ var MAX_CUT_FRAMES = 3;
28
28
  var FLASH_FRAMES = 4;
29
29
  var RETURNED = 0.4;
30
30
  var SAME_TONES = 0.8;
31
+ var IN_MOTION = 0.3;
31
32
  function signatures(input, filters = []) {
32
33
  return decode(input, [...filters, `scale=${SIG_W}:${SIG_H}:flags=area`], SIG_W, SIG_H, true);
33
34
  }
@@ -74,6 +75,31 @@ var sharedTones = (a, b) => {
74
75
  const after = tones(b);
75
76
  return tones(a).reduce((sum, share, bin) => sum + Math.min(share, after[bin]), 0);
76
77
  };
78
+ function moved(f, s, dx, dy) {
79
+ const out = new Uint8Array(f.length);
80
+ const cx = (SIG_W - 1) / 2;
81
+ const cy = (SIG_H - 1) / 2;
82
+ for (let y = 0; y < SIG_H; y++) {
83
+ const sy = Math.min(SIG_H - 1, Math.max(0, Math.round((y - cy - dy) / s + cy)));
84
+ for (let x = 0; x < SIG_W; x++) {
85
+ const sx = Math.min(SIG_W - 1, Math.max(0, Math.round((x - cx - dx) / s + cx)));
86
+ out[y * SIG_W + x] = f[sy * SIG_W + sx];
87
+ }
88
+ }
89
+ return out;
90
+ }
91
+ function movedChange(before, after) {
92
+ let least = meanAbsDiff(before, after);
93
+ for (let s = 0.8; s <= 1.25; s += 0.025)
94
+ for (let dx = -6; dx <= 6; dx++)
95
+ for (let dy = -4; dy <= 4; dy++)
96
+ least = Math.min(least, meanAbsDiff(moved(before, s, dx, dy), after));
97
+ return least;
98
+ }
99
+ function isMove(frames, diffs, c, end) {
100
+ const inMotion = Math.min(diffs[c.frame - 1] ?? 0, diffs[end] ?? 0) >= IN_MOTION * c.change;
101
+ return inMotion && movedChange(frames[c.frame - 1], frames[end - 1]) < RETURNED * c.change;
102
+ }
77
103
  function classifiedCuts(frames) {
78
104
  const diffs = frameChanges(frames);
79
105
  return cutsIn(diffs).map((c) => {
@@ -88,7 +114,8 @@ function classifiedCuts(frames) {
88
114
  const returns = Array.from({ length: FLASH_FRAMES }, (_, k) => k + 1).some(
89
115
  (k) => back(c.frame - 1, end - 1 + k) || back(c.frame - k, end)
90
116
  );
91
- return returns ? { ...c, kind: "flash" } : c;
117
+ if (returns) return { ...c, kind: "flash" };
118
+ return isMove(frames, diffs, c, end) ? { ...c, kind: "fast" } : c;
92
119
  });
93
120
  }
94
121
  function findCuts(frames) {
@@ -13,10 +13,10 @@ import {
13
13
  } from "./chunk-XQ26I3PL.js";
14
14
  import {
15
15
  createProjectConfig
16
- } from "./chunk-HRSZOW3U.js";
16
+ } from "./chunk-S2UKSI3C.js";
17
17
  import {
18
18
  isHyperframesProject
19
- } from "./chunk-N6O2RQLQ.js";
19
+ } from "./chunk-W5AUD5OL.js";
20
20
 
21
21
  // src/utils/desktopApp.ts
22
22
  import { spawn, spawnSync } from "child_process";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-J3OVTOVC.js";
17
17
  import {
18
18
  runEnvironmentChecks
19
- } from "./chunk-ZVERYNYS.js";
19
+ } from "./chunk-VZ5O7A77.js";
20
20
  import {
21
21
  OPTIONAL_PACKAGES,
22
22
  installedOptionalPackageVersion
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-2GICKZ3I.js";
30
30
  import {
31
31
  resolveExtractCacheDir
32
- } from "./chunk-IAZ2A7D6.js";
32
+ } from "./chunk-N6FGHJ7X.js";
33
33
  import {
34
34
  getFreeDiskMb,
35
35
  getShmSizeMb,
@@ -41,14 +41,14 @@ import {
41
41
  import {
42
42
  getUpdateMeta,
43
43
  withMeta
44
- } from "./chunk-6IW2HWYI.js";
44
+ } from "./chunk-TZBJEKKU.js";
45
45
  import {
46
46
  CONFIG_PATH,
47
47
  withFileLock
48
48
  } from "./chunk-BLBMPEBX.js";
49
49
  import {
50
50
  VERSION
51
- } from "./chunk-T252SG67.js";
51
+ } from "./chunk-AH6MUQQC.js";
52
52
  import {
53
53
  normalizeErrorMessage
54
54
  } from "./chunk-E63BDV4Z.js";
@@ -240,7 +240,7 @@ function checkEnvironment() {
240
240
  return { ok: true, detail: parts.join(" \xB7 ") };
241
241
  }
242
242
  async function checkWhisper() {
243
- const { findWhisper, getInstallInstructions } = await import("./manager-TUKVGY7O.js");
243
+ const { findWhisper, getInstallInstructions } = await import("./manager-ARXEX6OP.js");
244
244
  const result = findWhisper();
245
245
  if (result) {
246
246
  return { ok: true, detail: result.executablePath };
@@ -8,7 +8,7 @@ import {
8
8
  findFFmpeg,
9
9
  findFFprobe,
10
10
  getFFmpegInstallHint
11
- } from "./chunk-DZNJD7BH.js";
11
+ } from "./chunk-AVNF52HR.js";
12
12
 
13
13
  // src/measure/media.ts
14
14
  import { execFileSync } from "child_process";
@@ -34,6 +34,11 @@ function ffprobeBin() {
34
34
  if (!bin) throw new Fix("ffprobe is not installed", getFFmpegInstallHint());
35
35
  return bin;
36
36
  }
37
+ function sumOf(terms) {
38
+ if (terms.length <= 50) return terms.join("+");
39
+ const half = terms.length >> 1;
40
+ return `(${sumOf(terms.slice(0, half))})+(${sumOf(terms.slice(half))})`;
41
+ }
37
42
  function runFfmpeg(args, input, cwd) {
38
43
  return execFileSync(ffmpegBin(), [...FFMPEG_QUIET, ...args], {
39
44
  maxBuffer: MAX_BUFFER,
@@ -46,9 +51,22 @@ var rate = (text) => {
46
51
  const [a, b] = String(text ?? "0/1").split("/").map(Number);
47
52
  return b ? (a ?? 0) / b : a ?? 0;
48
53
  };
54
+ function probeSeconds(path) {
55
+ if (!existsSync(path)) throw new Fix(`no file at ${path}`, "pass a sound from the project");
56
+ const text = execFileSync(
57
+ ffprobeBin(),
58
+ ["-v", "error", "-show_entries", "format=duration", "-of", "csv=p=0", "--", path],
59
+ { maxBuffer: MAX_BUFFER, windowsHide: true }
60
+ ).toString();
61
+ return Number(text) || 0;
62
+ }
49
63
  function probeVideo(path) {
50
64
  if (!existsSync(path))
51
- throw new Fix(`no file at ${path}`, "pass the video's path from the project folder");
65
+ throw new Fix(
66
+ `no file at ${path}`,
67
+ // `D:video\clip.mp4` reached us as `D:videoclip.mp4`: an unquoted Windows path in bash.
68
+ /^[A-Za-z]:[^\\/]/.test(path) ? "the shell dropped the backslashes: quote the path or write it with / (D:/video/clip.mp4)" : "pass the video's path from the project folder"
69
+ );
52
70
  let json;
53
71
  try {
54
72
  json = JSON.parse(
@@ -234,7 +252,9 @@ function projectOf(from) {
234
252
  export {
235
253
  Fix,
236
254
  ffmpegBin,
255
+ sumOf,
237
256
  runFfmpeg,
257
+ probeSeconds,
238
258
  probeVideo,
239
259
  videoClip,
240
260
  readClip,
@@ -25,7 +25,7 @@ import {
25
25
  import {
26
26
  decodeUrlPathVariants,
27
27
  encodeUrlPath
28
- } from "./chunk-T5ELONXY.js";
28
+ } from "./chunk-JHILL4BN.js";
29
29
  import {
30
30
  parseHTML
31
31
  } from "./chunk-GWTIFRF5.js";
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/version.ts
9
- var VERSION = true ? "0.9.7" : "0.0.0-dev";
10
- var PRODUCER_VERSION = true ? "0.9.7" : "0.0.0-dev";
9
+ var VERSION = true ? "0.9.9" : "0.0.0-dev";
10
+ var PRODUCER_VERSION = true ? "0.9.9" : "0.0.0-dev";
11
11
 
12
12
  export {
13
13
  VERSION,
@@ -53,6 +53,7 @@ function pageUrl(kind, fields = {}) {
53
53
  }
54
54
 
55
55
  export {
56
+ billingBaseUrl,
56
57
  readPlan,
57
58
  pageUrl
58
59
  };
@@ -9,14 +9,14 @@ import {
9
9
  } from "./chunk-SWC3QIEH.js";
10
10
  import {
11
11
  stoppedByCancelSignal
12
- } from "./chunk-EG7FZSEF.js";
12
+ } from "./chunk-VM6T3Z6B.js";
13
13
  import {
14
14
  DEFAULT_MODEL,
15
15
  ensureModel,
16
16
  ensureWhisper,
17
17
  hasFFmpeg,
18
18
  pinnedWhisperModel
19
- } from "./chunk-GBEGZOP3.js";
19
+ } from "./chunk-ZLN3AJKT.js";
20
20
  import {
21
21
  sha256File
22
22
  } from "./chunk-RZ6CXJ56.js";
@@ -24,7 +24,7 @@ import {
24
24
  findFFmpeg,
25
25
  findFFprobe,
26
26
  getFFmpegInstallHint
27
- } from "./chunk-DZNJD7BH.js";
27
+ } from "./chunk-AVNF52HR.js";
28
28
  import {
29
29
  findWavChunk
30
30
  } from "./chunk-UOFAE5RF.js";