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
@@ -0,0 +1,570 @@
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
+ findCuts,
9
+ signatures
10
+ } from "./chunk-K3QT232E.js";
11
+ import {
12
+ jsonArg,
13
+ num,
14
+ runMeasure
15
+ } from "./chunk-F7T57BZZ.js";
16
+ import {
17
+ idempotencyKey,
18
+ runJob
19
+ } from "./chunk-5KAGTSLY.js";
20
+ import {
21
+ Fix,
22
+ probeVideo,
23
+ round,
24
+ runFfmpeg,
25
+ videoClip
26
+ } from "./chunk-BTK3T4HJ.js";
27
+ import {
28
+ defineCommand
29
+ } from "./chunk-DL4OD7IA.js";
30
+
31
+ // src/heygen/generate.ts
32
+ import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "fs";
33
+ import { tmpdir } from "os";
34
+ import { dirname, extname, join, relative, resolve } from "path";
35
+ var GENERATE_TYPES = [
36
+ "image",
37
+ "video",
38
+ "avatar",
39
+ "voice",
40
+ "music"
41
+ ];
42
+ function parseMask(text) {
43
+ const m = /^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?)\s*-\s*(\d+(?:\.\d+)?)\s*)?$/.exec(
44
+ text
45
+ );
46
+ if (!m || Number(m[3]) <= 0 || Number(m[4]) <= 0)
47
+ throw new Fix(`--mask ${text} is not x,y,w,h[,a-b]`, "--mask 190,405,700,175,1.0-2.7");
48
+ const box = [Number(m[1]), Number(m[2]), Number(m[3]), Number(m[4])];
49
+ return m[5] ? { box, window: [Number(m[5]), Number(m[6])] } : { box };
50
+ }
51
+ function maskFilters(masks, width, height) {
52
+ return masks.flatMap(({ box: [x, y, w, h], window }) => {
53
+ const [x0, y0] = [Math.max(1, x), Math.max(1, y)];
54
+ const [x1, y1] = [Math.min(width - 2, x + w), Math.min(height - 2, y + h)];
55
+ if (x1 - x0 < 1 || y1 - y0 < 1) return [];
56
+ const when = window ? `:enable='between(t,${window[0]},${window[1]})'` : "";
57
+ return [`delogo=x=${x0}:y=${y0}:w=${x1 - x0}:h=${y1 - y0}${when}`];
58
+ });
59
+ }
60
+ var DEFAULTS = { image: "nano-banana-2", video: "heygen-video-1", music: "lyria-3-pro" };
61
+ var VIDEO_RESOLUTION = "768p";
62
+ var GUIDE_MAX_S = 15;
63
+ var MUSIC_LENGTHS = [30, 60, 120, 180];
64
+ var need = (value, flag, example) => {
65
+ if (value === void 0 || value === "")
66
+ throw new Fix(`${flag} is required for this type`, example);
67
+ return value;
68
+ };
69
+ var ROUTES = {
70
+ image: {
71
+ path: "/v3/images",
72
+ poll: (id) => `/v3/images/${id}`,
73
+ body: (r, media) => ({
74
+ model: r.model ?? DEFAULTS.image,
75
+ prompt: need(r.prompt, "--prompt", '--prompt "the same room, empty, no text"'),
76
+ num_images: 1,
77
+ ...r.aspect ? { aspect_ratio: r.aspect } : {},
78
+ ...r.references?.length ? { reference_images: r.references.map((p) => media(p, "image")) } : {}
79
+ }),
80
+ urls: ["images.0.url", "image_url", "url"],
81
+ ledger: "image",
82
+ ext: [".png", ".jpg", ".jpeg", ".webp"]
83
+ },
84
+ video: {
85
+ path: "/v3/models/videos",
86
+ poll: (id) => `/v3/models/videos/${id}`,
87
+ // fallow-ignore-next-line complexity
88
+ body: (r, media) => {
89
+ const spoken = !!r.audio || !!r.references?.length || !!r.motion;
90
+ if (spoken && r.firstFrame)
91
+ throw new Fix(
92
+ "--first-frame cannot be used with --reference, --audio or --motion",
93
+ "a speaking shot takes the person as --reference and the voice as --audio"
94
+ );
95
+ return {
96
+ model: r.model ?? DEFAULTS.video,
97
+ mode: spoken ? "reference_to_video" : r.firstFrame ? "image_to_video" : "text_to_video",
98
+ prompt: need(r.prompt, "--prompt", '--prompt "slow push in on the desk"'),
99
+ duration: Math.min(15, Math.max(5, Math.round(r.seconds ?? 5))),
100
+ // 1080p bills about twice 768p (2026-10-23, 5 s 9:16 jobs: text $0.10 vs $0.20, a reference picture $0.25
101
+ // vs $0.45, a 1 s guide clip $0.30 vs $0.55), so every shot stays at 768p whatever the source's size.
102
+ resolution: VIDEO_RESOLUTION,
103
+ ...r.firstFrame ? { image: media(r.firstFrame, "image") } : {},
104
+ ...r.firstFrame ? {} : { aspect_ratio: r.aspect ?? "16:9" },
105
+ ...r.references?.length ? { reference_images: r.references.map((p) => media(p, "image")) } : {},
106
+ ...r.audio ? { reference_audio: [media(r.audio, "audio")] } : {},
107
+ // One guide clip: HeyGen follows its camera and body motion, and takes the face from the references.
108
+ ...r.motion ? { reference_videos: [media(r.motion, "video")] } : {}
109
+ };
110
+ },
111
+ urls: ["video_url", "output.video_url", "url"],
112
+ ledger: "video",
113
+ ext: [".mp4", ".mov", ".webm"]
114
+ },
115
+ avatar: {
116
+ path: "/v3/videos",
117
+ poll: (id) => `/v3/videos/${id}`,
118
+ body: (r, media) => ({
119
+ type: "image",
120
+ image: media(need(r.photo, "--photo", "--photo assets/presenter.png"), "image"),
121
+ script: need(r.script, "--script", '--script "What they say"'),
122
+ voice_id: need(
123
+ r.voice,
124
+ "--voice",
125
+ "--voice <voice id> (npx hyperframes media-use resolve --type voice lists voices)"
126
+ ),
127
+ ...r.aspect ? { aspect_ratio: r.aspect } : {},
128
+ output_format: "mp4"
129
+ }),
130
+ urls: ["video_url"],
131
+ ledger: "video",
132
+ ext: [".mp4"]
133
+ },
134
+ voice: {
135
+ path: "/v3/voices/speech",
136
+ poll: (id) => `/v3/voices/speech/${id}`,
137
+ body: (r) => ({
138
+ text: need(r.script, "--script", '--script "What the voice says"'),
139
+ voice_id: need(r.voice, "--voice", "--voice <voice id>")
140
+ }),
141
+ urls: ["audio_url"],
142
+ ledger: "voice",
143
+ ext: [".mp3", ".wav", ".m4a"]
144
+ },
145
+ music: {
146
+ path: "/v3/audio/music",
147
+ poll: (id) => `/v3/audio/music/${id}`,
148
+ body: (r) => ({
149
+ model: r.model ?? DEFAULTS.music,
150
+ prompt: need(r.prompt, "--prompt", '--prompt "warm lo-fi beat, soft keys"'),
151
+ duration_seconds: MUSIC_LENGTHS.find((s) => s >= (r.seconds ?? 30)) ?? 180,
152
+ instrumental: r.instrumental ?? true,
153
+ ...r.bpm ? { bpm: Math.round(r.bpm) } : {}
154
+ }),
155
+ urls: ["audio_url"],
156
+ ledger: "bgm",
157
+ ext: [".mp3"]
158
+ }
159
+ };
160
+ var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
161
+ function urlOf(job, paths) {
162
+ for (const p of paths) {
163
+ let v = job;
164
+ for (const key of p.split("."))
165
+ v = Array.isArray(v) ? v[Number(key)] : isRecord(v) ? v[key] : void 0;
166
+ if (typeof v === "string" && /^https?:\/\//.test(v)) return v;
167
+ }
168
+ return null;
169
+ }
170
+ function needFile(path) {
171
+ if (!existsSync(path))
172
+ throw new Fix(`no file at ${path}`, "pass a picture or sound from the project");
173
+ }
174
+ function inline(work, masks = []) {
175
+ return (path, kind) => {
176
+ needFile(path);
177
+ const out = join(
178
+ work,
179
+ `in-${Math.random().toString(36).slice(2)}.${{ image: "jpg", audio: "mp3", video: "mp4" }[kind]}`
180
+ );
181
+ if (kind === "image")
182
+ runFfmpeg([
183
+ "-y",
184
+ "-i",
185
+ path,
186
+ "-vf",
187
+ "scale='min(2048,iw)':'min(2048,ih)':force_original_aspect_ratio=decrease",
188
+ "-q:v",
189
+ "3",
190
+ "-frames:v",
191
+ "1",
192
+ out
193
+ ]);
194
+ else if (kind === "audio")
195
+ runFfmpeg(["-y", "-i", path, "-vn", "-ac", "1", "-c:a", "libmp3lame", "-b:a", "128k", out]);
196
+ else {
197
+ const { width, height } = masks.length ? probeVideo(path) : { width: 0, height: 0 };
198
+ const filters = [
199
+ ...maskFilters(masks, width, height),
200
+ "scale='if(gt(iw,ih),min(720,iw),-2)':'if(gt(iw,ih),-2,min(720,ih))'"
201
+ ];
202
+ runFfmpeg([
203
+ ...["-y", "-i", path, "-t", "15", "-an", "-vf", filters.join(",")],
204
+ ...["-c:v", "libx264", "-crf", "28", "-preset", "veryfast", "-pix_fmt", "yuv420p", out]
205
+ ]);
206
+ }
207
+ return {
208
+ type: "base64",
209
+ media_type: { image: "image/jpeg", audio: "audio/mpeg", video: "video/mp4" }[kind],
210
+ data: readFileSync(out).toString("base64")
211
+ };
212
+ };
213
+ }
214
+ function cutsInside(path, seconds) {
215
+ const info = probeVideo(path);
216
+ const clip = videoClip(info.path, 0, seconds, info);
217
+ const { frames } = signatures(clip.input, clip.filters);
218
+ const cuts = findCuts(frames).filter((c) => c.frame > 1 && c.frame < frames.length - 1).map((c) => round(c.frame / info.fps, 3));
219
+ return { cuts, length: round(frames.length / info.fps, 3) };
220
+ }
221
+ var COUNT = ["", "one", "two", "three", "four", "five", "six"];
222
+ function checkGuide(r) {
223
+ if (!r.motion) return;
224
+ const { cuts, length } = cutsInside(r.motion, GUIDE_MAX_S);
225
+ if (!cuts.length) return;
226
+ const s = (t) => t.toFixed(2);
227
+ const and = (items) => `${items.slice(0, -1).join(", ")} and ${items.at(-1)}`;
228
+ const at2 = cuts.length > 1 ? `cuts at ${and(cuts.map((t) => `${s(t)} s`))}` : `a cut at ${s(cuts[0])} s`;
229
+ const edges = [0, ...cuts, length];
230
+ const shots = edges.slice(1).map((e, i) => `${i ? s(edges[i]) : "0"}\u2013${s(e)} s`);
231
+ throw new Fix(
232
+ `--motion ${r.motion} has ${at2}`,
233
+ `guide has ${at2}: generate ${and(shots)} as ${COUNT[shots.length] ?? shots.length} shots, each with its own --motion clip`
234
+ );
235
+ }
236
+ function checkRequest(r) {
237
+ const route = ROUTES[r.type];
238
+ if (!route.ext.includes(extname(r.out).toLowerCase()))
239
+ throw new Fix(`--out ${r.out} does not fit a ${r.type}`, `--out assets/name${route.ext[0]}`);
240
+ if (r.masks?.length && !r.motion)
241
+ throw new Fix("--mask blanks regions of the --motion clip", "pass --motion with --mask");
242
+ route.body(r, (path) => {
243
+ needFile(path);
244
+ return { type: "base64", media_type: "", data: "" };
245
+ });
246
+ checkGuide(r);
247
+ }
248
+ function projectOf(from) {
249
+ for (let dir = resolve(from); ; dir = dirname(dir)) {
250
+ if (existsSync(join(dir, "index.html"))) return dir;
251
+ if (dirname(dir) === dir) return null;
252
+ }
253
+ }
254
+ async function generate(r, onWait, credits) {
255
+ checkRequest(r);
256
+ const route = ROUTES[r.type];
257
+ const out = resolve(r.out);
258
+ mkdirSync(dirname(out), { recursive: true });
259
+ const project = projectOf(dirname(out));
260
+ const work = mkdtempSync(join(tmpdir(), "hf-generate-"));
261
+ try {
262
+ const body = route.body(r, inline(work, r.masks));
263
+ const key = idempotencyKey(route.path, [JSON.stringify(body)]);
264
+ const job = await runJob(route.path, body, key, (id) => route.poll(encodeURIComponent(id)), {
265
+ log: {
266
+ projectDir: project ?? void 0,
267
+ what: `generate ${r.type} ${relative(project ?? ".", out)}`
268
+ },
269
+ onWait: (j) => onWait?.(j.status),
270
+ timeoutMs: 30 * 6e4,
271
+ credits
272
+ });
273
+ const url = urlOf(job, route.urls);
274
+ if (!url)
275
+ throw new Fix(
276
+ `HeyGen finished job ${job.id} without a file URL`,
277
+ "run the same command again; it re-reads the job"
278
+ );
279
+ const res = await fetch(url, { signal: AbortSignal.timeout(3e5) });
280
+ if (!res.ok)
281
+ throw new Fix(
282
+ `could not download the result (${res.status})`,
283
+ "run the same command again; it re-reads the job"
284
+ );
285
+ writeFileSync(out, Buffer.from(await res.arrayBuffer()));
286
+ let cuts;
287
+ if (r.type === "video")
288
+ try {
289
+ cuts = cutsInside(out).cuts;
290
+ } catch {
291
+ cuts = null;
292
+ }
293
+ let ledger;
294
+ if (project) {
295
+ const { recordInPlace } = await import("./manifest-QSJYVERU.js");
296
+ const { regenerateIndex } = await import("./index-gen-OPMQ5WSN.js");
297
+ const describe = (p) => p ? relative(project, resolve(p)).split("\\").join("/") : void 0;
298
+ ledger = recordInPlace(project, {
299
+ type: route.ledger,
300
+ path: relative(project, out).split("\\").join("/"),
301
+ source: "generated",
302
+ description: r.prompt ?? r.script ?? r.type,
303
+ provenance: {
304
+ provider: "heygen",
305
+ route: route.path,
306
+ model: body.model ?? null,
307
+ job: job.id,
308
+ prompt: r.prompt ?? null,
309
+ ...r.references?.length ? { references: r.references.map(describe) } : {},
310
+ ...r.firstFrame ? { first_frame: describe(r.firstFrame) } : {},
311
+ ...r.photo ? { photo: describe(r.photo) } : {},
312
+ ...r.audio ? { audio: describe(r.audio) } : {},
313
+ ...r.motion ? { motion: describe(r.motion) } : {},
314
+ ...r.masks?.length ? { motion_masks: r.masks.map((m) => [...m.box, ...m.window ?? []]) } : {},
315
+ ...r.voice ? { voice: r.voice } : {},
316
+ ...cuts !== void 0 ? { cuts_inside: cuts } : {}
317
+ }
318
+ }).id;
319
+ regenerateIndex(project);
320
+ }
321
+ return {
322
+ out,
323
+ type: r.type,
324
+ job: job.id,
325
+ route: route.path,
326
+ ...ledger ? { ledger } : {},
327
+ ...cuts !== void 0 ? { cuts_inside: cuts } : {}
328
+ };
329
+ } finally {
330
+ rmSync(work, { recursive: true, force: true });
331
+ }
332
+ }
333
+
334
+ // src/heygen/pricing.ts
335
+ var UNIT = 1 / 60;
336
+ var charged = (usd) => Math.ceil(usd / UNIT - 1e-9) * UNIT;
337
+ var cents = (usd) => Math.ceil(charged(usd) * 100 - 1e-9) / 100;
338
+ var HF_CREDITS_PER_USD = 1e3;
339
+ var at = (list, basis, credits = list * HF_CREDITS_PER_USD) => ({
340
+ usd: cents(list),
341
+ list,
342
+ credits,
343
+ basis
344
+ });
345
+ var GPT_IMAGE = {
346
+ "1:1": 0.05268,
347
+ "16:9": 0.0396,
348
+ "9:16": 0.0396,
349
+ "4:3": 0.03612,
350
+ "3:4": 0.03612
351
+ };
352
+ var NANO_IMAGE = 0.067;
353
+ var VIDEO_768P_PER_S = 0.018;
354
+ var VIDEO_REF_768P_PER_S = 0.05;
355
+ var VIDEO_INCLUDED_IMAGES = 2;
356
+ var VIDEO_EXTRA_IMAGE = 0.02;
357
+ var HF_VIDEO_768P_PER_S = 12;
358
+ var HF_VIDEO_REF_768P_PER_S = 100 / 3;
359
+ var HF_VIDEO_EXTRA_IMAGE = 40 / 3;
360
+ var HF_AVATAR_IV_PHOTO_PER_S = 800 / 60;
361
+ var MUSIC_PER_TRACK = 0.08;
362
+ var AVATAR_IV_PER_MIN = 4.83;
363
+ var SCRIPT_WORDS_PER_S = 2;
364
+ function priceOf(r) {
365
+ switch (r.type) {
366
+ case "image": {
367
+ const refs = r.references?.length ?? 0;
368
+ if ((r.model ?? "nano-banana-2") === "nano-banana-2")
369
+ return at(NANO_IMAGE, "nano-banana-2, $0.067 an image");
370
+ const each = GPT_IMAGE[r.aspect ?? "16:9"] ?? GPT_IMAGE["16:9"];
371
+ return at(
372
+ each + Math.max(0, refs - 1) * 82e-4,
373
+ `gpt-image-2.5 at ${r.aspect ?? "16:9"}, $0.0082 a reference after the first`
374
+ );
375
+ }
376
+ case "video": {
377
+ const seconds = Math.min(15, Math.max(5, Math.round(r.seconds ?? 5)));
378
+ if (r.audio || r.references?.length || r.motion) {
379
+ const guide = r.motion ? Math.min(GUIDE_MAX_S, probeVideo(r.motion).pictureDuration) : 0;
380
+ const extra = Math.max(0, (r.references?.length ?? 0) - VIDEO_INCLUDED_IMAGES);
381
+ const billed = seconds + guide;
382
+ return at(
383
+ billed * VIDEO_REF_768P_PER_S + extra * VIDEO_EXTRA_IMAGE,
384
+ `heygen-video-1 reference shot at 768p, ${seconds} s${guide ? ` and the ${round(guide, 2)} s guide` : ""} at $0.05 a second${extra ? `, ${extra} extra pictures at $0.02` : ""}`,
385
+ billed * HF_VIDEO_REF_768P_PER_S + extra * HF_VIDEO_EXTRA_IMAGE
386
+ );
387
+ }
388
+ return at(
389
+ seconds * VIDEO_768P_PER_S,
390
+ `heygen-video-1 at 768p, ${seconds} s at $0.018 a second`,
391
+ seconds * HF_VIDEO_768P_PER_S
392
+ );
393
+ }
394
+ case "avatar": {
395
+ const words = (r.script ?? "").split(/\s+/).filter(Boolean).length;
396
+ const seconds = Math.max(1, Math.floor(words / SCRIPT_WORDS_PER_S));
397
+ return at(
398
+ Math.ceil(seconds * AVATAR_IV_PER_MIN) / 60,
399
+ `avatar video, about ${seconds} s from ${words} words at $4.83 a minute`,
400
+ seconds * HF_AVATAR_IV_PHOTO_PER_S
401
+ );
402
+ }
403
+ case "music":
404
+ return at(MUSIC_PER_TRACK, "lyria-3-pro, $0.08 a track");
405
+ case "voice":
406
+ return {
407
+ usd: null,
408
+ list: null,
409
+ credits: null,
410
+ basis: "HeyGen does not price catalog speech ahead; it is charged per character"
411
+ };
412
+ }
413
+ }
414
+ var creditsOf = (p) => p.credits === null ? null : Math.ceil(p.credits - 1e-9);
415
+ function checkLimit(credits, limit) {
416
+ if (limit === void 0) return;
417
+ const fix = "tell the person what their limit leaves out, then ask whether to raise it or make the video without this piece";
418
+ if (credits === null)
419
+ throw new Fix(
420
+ `this call cannot be priced ahead, so it cannot be kept under --max-credits ${limit}; nothing was made`,
421
+ fix
422
+ );
423
+ if (credits > limit)
424
+ throw new Fix(
425
+ `this call is about ${credits} credits, over --max-credits ${limit}; nothing was made or charged`,
426
+ fix
427
+ );
428
+ }
429
+
430
+ // src/commands/media-use/generate.ts
431
+ var examples = [
432
+ [
433
+ "Price a clean plate of a frame, then make it",
434
+ 'hyperframes media-use generate --type image --reference f120.png --prompt "the same shot with no text" --out assets/plate.png --plan'
435
+ ],
436
+ [
437
+ "A 6 s shot that starts from the original's first frame",
438
+ 'hyperframes media-use generate --type video --first-frame assets/s03-first.png --prompt "slow push in" --seconds 6 --out assets/s03.mp4'
439
+ ],
440
+ [
441
+ "The original's presenter re-shot clean, saying an 8 s stretch of the original voice",
442
+ 'hyperframes media-use generate --type video --reference assets/presenter-clean.png --audio assets/s02-voice.m4a --motion assets/s02-original.mp4 --mask 110,615,390,165 --prompt "the woman talks to camera, seated, soft daylight" --seconds 8 --aspect 9:16 --out assets/s02-presenter.mp4'
443
+ ],
444
+ [
445
+ "The person in a photo saying a script in a chosen voice",
446
+ 'hyperframes media-use generate --type avatar --photo assets/presenter.png --script "Hi, I am Ana" --voice <voice-id> --out assets/ana.mp4'
447
+ ]
448
+ ];
449
+ var isType = (v) => GENERATE_TYPES.some((t) => t === v);
450
+ function repeated(raw, flag) {
451
+ return raw.flatMap(
452
+ (a, i) => a === flag && raw[i + 1] !== void 0 ? [raw[i + 1]] : a.startsWith(`${flag}=`) ? [a.slice(flag.length + 1)] : []
453
+ );
454
+ }
455
+ var generate_default = defineCommand({
456
+ meta: {
457
+ name: "generate",
458
+ description: "Make new media on HeyGen: an image (edited from references), a video shot (from a first frame), a person speaking from a photo, a voice, or music. --plan prices it first"
459
+ },
460
+ args: {
461
+ type: {
462
+ type: "string",
463
+ description: `What to make: ${GENERATE_TYPES.join(", ")}`,
464
+ required: true
465
+ },
466
+ out: {
467
+ type: "string",
468
+ description: "The project file to write, e.g. assets/plate.png",
469
+ required: true
470
+ },
471
+ prompt: { type: "string", description: "What it shows or sounds like (image, video, music)" },
472
+ reference: {
473
+ type: "string",
474
+ description: "image: comma-separated pictures to edit from or follow; video: the person to show speaking"
475
+ },
476
+ audio: {
477
+ type: "string",
478
+ description: "video: speech the referenced person says, lips in sync (5\u201315 s)"
479
+ },
480
+ motion: {
481
+ type: "string",
482
+ description: "video: a clip whose camera and body motion the shot follows (up to 15 s)"
483
+ },
484
+ mask: {
485
+ type: "string",
486
+ description: "video: x,y,w,h[,a-b] of the --motion clip to blank before sending (its drawn text; a-b in the clip's seconds); repeat for more"
487
+ },
488
+ "first-frame": { type: "string", description: "video: the picture the shot starts from" },
489
+ photo: { type: "string", description: "avatar: the person's photo" },
490
+ script: { type: "string", description: "avatar, voice: the words spoken" },
491
+ voice: { type: "string", description: "avatar, voice: a HeyGen voice id" },
492
+ seconds: {
493
+ type: "string",
494
+ description: "video 5\u201315 (default 5); music: 30, 60, 120 or 180 (default 30)"
495
+ },
496
+ aspect: {
497
+ type: "string",
498
+ description: "Aspect ratio, e.g. 9:16 (image, video without a first frame, avatar)"
499
+ },
500
+ model: { type: "string", description: "image: nano-banana-2 (default) or gpt-image-2.5" },
501
+ bpm: { type: "string", description: "music: tempo, 60\u2013180" },
502
+ vocals: {
503
+ type: "boolean",
504
+ description: "music: allow singing (default instrumental)",
505
+ default: false
506
+ },
507
+ "max-credits": {
508
+ type: "string",
509
+ description: "The person's credit limit, less what earlier calls used: make nothing when this call would cost more"
510
+ },
511
+ plan: {
512
+ type: "boolean",
513
+ description: "Print the price and what would be sent; make nothing",
514
+ default: false
515
+ },
516
+ json: jsonArg
517
+ },
518
+ async run({ args, rawArgs }) {
519
+ await runMeasure(async () => {
520
+ const type = String(args.type);
521
+ if (!isType(type))
522
+ throw new Fix(`unknown --type ${type}`, `--type ${GENERATE_TYPES.join("|")}`);
523
+ const request = {
524
+ type,
525
+ out: String(args.out),
526
+ prompt: args.prompt,
527
+ references: args.reference?.split(",").map((p) => p.trim()).filter(Boolean),
528
+ firstFrame: args["first-frame"],
529
+ audio: args.audio,
530
+ motion: args.motion,
531
+ masks: repeated(rawArgs, "--mask").map(parseMask),
532
+ photo: args.photo,
533
+ script: args.script,
534
+ voice: args.voice,
535
+ seconds: num(args.seconds, "--seconds"),
536
+ aspect: args.aspect,
537
+ model: args.model,
538
+ bpm: num(args.bpm, "--bpm"),
539
+ instrumental: !args.vocals
540
+ };
541
+ const price = priceOf(request);
542
+ const credits = creditsOf(price);
543
+ if (args.plan) {
544
+ checkRequest(request);
545
+ return {
546
+ plan: true,
547
+ type,
548
+ out: request.out,
549
+ price,
550
+ credits,
551
+ next: "run the same command without --plan to make it"
552
+ };
553
+ }
554
+ checkLimit(credits, num(args["max-credits"], "--max-credits"));
555
+ const made = await generate(
556
+ request,
557
+ (status) => console.error(`generate: ${status}\u2026`),
558
+ credits ?? void 0
559
+ );
560
+ return { ...made, price, credits };
561
+ });
562
+ }
563
+ });
564
+
565
+ export {
566
+ parseMask,
567
+ examples,
568
+ repeated,
569
+ generate_default
570
+ };
@@ -6,10 +6,10 @@ 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
  failUsage
12
- } from "./chunk-DP5LF7GF.js";
12
+ } from "./chunk-66W5IWLO.js";
13
13
 
14
14
  // src/utils/compositionEntry.ts
15
15
  import { realpathSync } from "fs";
@@ -6,23 +6,26 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  gotoWhenSent
9
- } from "./chunk-HOTXWVVP.js";
9
+ } from "./chunk-R2C5EON5.js";
10
10
  import {
11
11
  pageNavigationTimeoutMs,
12
12
  windowsChromeCrashRemediation
13
- } from "./chunk-DNTPNSH5.js";
13
+ } from "./chunk-E2ZY4GWH.js";
14
+ import {
15
+ SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
16
+ } from "./chunk-YGGZ23BB.js";
14
17
  import {
15
18
  resolveCompositionViewportFromHtml
16
- } from "./chunk-52VXA3SC.js";
19
+ } from "./chunk-OZMZFJDW.js";
17
20
  import {
18
21
  launchManagedBrowser,
19
22
  resolveManagedGpuMode,
20
23
  rethrowAfterBrowserCleanup
21
- } from "./chunk-L37AZWB2.js";
24
+ } from "./chunk-HIPW4JXL.js";
22
25
  import {
23
26
  resolveLocalBrowserGpuMode,
24
27
  resolveLocalWebGpu
25
- } from "./chunk-F6QV5N3A.js";
28
+ } from "./chunk-53JEHQBW.js";
26
29
  import {
27
30
  c
28
31
  } from "./chunk-2GICKZ3I.js";
@@ -30,7 +33,7 @@ import {
30
33
  assertWebGpuAdapterAvailable,
31
34
  compositionRequiresWebGpu,
32
35
  oneProcessOverPipe
33
- } from "./chunk-AIXH3V5A.js";
36
+ } from "./chunk-NFUR6NNT.js";
34
37
  import {
35
38
  normalizeErrorMessage
36
39
  } from "./chunk-E63BDV4Z.js";
@@ -138,7 +141,7 @@ async function waitForCompositionSettle(page, options) {
138
141
  console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
139
142
  });
140
143
  await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
141
- const { resolveConfig, waitForImagesReady } = await import("./src-EPOGDJTT.js");
144
+ const { resolveConfig, waitForImagesReady } = await import("./src-LNSJHD25.js");
142
145
  const imageTimeoutMs = resolveConfig().playerReadyTimeout;
143
146
  await waitForImagesReady(
144
147
  page,
@@ -187,7 +190,7 @@ async function installPageFunctionGuard(page) {
187
190
  async function openSettledCompositionPage(html, url, options) {
188
191
  const viewport = resolveCompositionViewportFromHtml(html);
189
192
  const requiresWebGpu = compositionRequiresWebGpu(html);
190
- const answer = (await import("./staticProjectServer-ERKLMZVM.js")).inProcessAnswer(url);
193
+ const answer = (await import("./staticProjectServer-TTJSAB2Q.js")).inProcessAnswer(url);
191
194
  const noListen = answer !== void 0;
192
195
  let chromeBrowser;
193
196
  try {
@@ -198,7 +201,7 @@ async function openSettledCompositionPage(html, url, options) {
198
201
  options.onBrowserReady?.();
199
202
  const page = await chromeBrowser.newPage();
200
203
  await installPageFunctionGuard(page);
201
- const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-EPOGDJTT.js");
204
+ const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-LNSJHD25.js");
202
205
  await installMediaRenderIdBridge(page);
203
206
  await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
204
207
  await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
@@ -219,7 +222,7 @@ async function launchCompositionBrowser(html, noListen, options) {
219
222
  const { ensureBrowser, findSystemBrowser } = await import("./manager-ENFYM32B.js");
220
223
  const browser = await ensureBrowser({ signal: options.signal });
221
224
  const puppeteer = await import("puppeteer-core");
222
- const { buildChromeArgs } = await import("./src-EPOGDJTT.js");
225
+ const { buildChromeArgs } = await import("./src-LNSJHD25.js");
223
226
  const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
224
227
  const requiresWebGpu = compositionRequiresWebGpu(html);
225
228
  let softwareWebGpu = false;
@@ -381,7 +384,10 @@ async function settleCompositionSeek(page, options = {}) {
381
384
  await Reflect.apply(waitForCompletion, window, [barrier]);
382
385
  }
383
386
  },
384
- { videoFrames: options.waitForVideoFrames !== false }
387
+ {
388
+ videoFrames: options.waitForVideoFrames !== false,
389
+ timeoutMs: SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
390
+ }
385
391
  );
386
392
  const animationFrameSettle = options.animationFrameSettle ?? "race";
387
393
  const waitForFontsMs = options.waitForFontsMs ?? DEFAULT_POST_SEEK_FONT_WAIT_MS;
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  shouldTrack
9
- } from "./chunk-NUE44RN2.js";
9
+ } from "./chunk-QOI46C6F.js";
10
10
 
11
11
  // src/telemetry/renderObservability.ts
12
12
  function renderObservabilityTelemetryPayload(observability) {