hyperframes 0.9.13 → 0.9.14

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 (236) hide show
  1. package/dist/{add-PXF5OGLI.js → add-JNKCTPWJ.js} +16 -16
  2. package/dist/{agentPromptGenerator-DWNK722M.js → agentPromptGenerator-DSF7AEVE.js} +8 -8
  3. package/dist/{animatedGifPrep-FFBCFFIY.js → animatedGifPrep-BIEUMGB3.js} +8 -8
  4. package/dist/api.js +45 -23
  5. package/dist/{asset-FZVMLDSY.js → asset-V6JAJRCF.js} +2 -2
  6. package/dist/{assetCataloger-FXBZK55R.js → assetCataloger-SCLH2WAC.js} +9 -9
  7. package/dist/{audio-QYNPBNZQ.js → audio-JX76VDCY.js} +15 -15
  8. package/dist/{auth-2FBS4QC4.js → auth-TRE4ASYT.js} +2 -2
  9. package/dist/{autoUpdate-VFGRGQTO.js → autoUpdate-D5UUCIOR.js} +2 -2
  10. package/dist/{avatars-UVZFK2JR.js → avatars-26EUVWXR.js} +12 -12
  11. package/dist/{backgroundChecks-FN53YXTW.js → backgroundChecks-RM5GWZIW.js} +3 -3
  12. package/dist/backgroundChecksWorker.js +3 -3
  13. package/dist/{batchRender-JB3D6X7U.js → batchRender-5ZEQ6U4N.js} +5 -5
  14. package/dist/{beats-5BJMEGGA.js → beats-3YW7MGZY.js} +22 -14
  15. package/dist/{benchmark-MP4JGPYM.js → benchmark-MYQTWUO3.js} +10 -10
  16. package/dist/{billing-XSPWEAYT.js → billing-2X3JNNM4.js} +95 -19
  17. package/dist/{browser-V4EB7UNU.js → browser-CQSY36GL.js} +3 -3
  18. package/dist/bundleWithLocalizedFonts-Z6KCDBP2.js +23 -0
  19. package/dist/{capture-L5TGT4SW.js → capture-IK5GIWOS.js} +20 -23
  20. package/dist/{capture-SQHH4HBC.js → capture-NWBNWBIX.js} +3 -3
  21. package/dist/{captureCompositionFrame-BAYKFJMM.js → captureCompositionFrame-KR3PELMO.js} +13 -13
  22. package/dist/{catalog-OLP2O5W6.js → catalog-2Q73F42B.js} +16 -16
  23. package/dist/{catch-up-LJWHENVV.js → catch-up-JP3FL3FX.js} +4 -4
  24. package/dist/{check-KGAKP3H5.js → check-UIMXDUPK.js} +46 -46
  25. package/dist/{checkAudio-QWBAUBJ2.js → checkAudio-CSX4G35O.js} +12 -12
  26. package/dist/{checkBrowser-J5UUWIPK.js → checkBrowser-MTCJVJYJ.js} +39 -39
  27. package/dist/{chunk-5Z7YSZRF.js → chunk-2BDSLTEG.js} +9 -9
  28. package/dist/{chunk-NXQMN7YC.js → chunk-2L4HQ5K4.js} +1 -1
  29. package/dist/{chunk-SGLX72IQ.js → chunk-2NHPNI42.js} +10 -10
  30. package/dist/{chunk-2WGAXAM7.js → chunk-2OIONPKY.js} +3 -3
  31. package/dist/{chunk-MJEE2WSS.js → chunk-2SYOEZ2Z.js} +2 -2
  32. package/dist/{chunk-O4Q44I77.js → chunk-2YT656R2.js} +6 -6
  33. package/dist/{chunk-VIEMTLSI.js → chunk-35RZMUTX.js} +7 -7
  34. package/dist/{chunk-U7AB4D6T.js → chunk-3B7TDQEW.js} +3 -3
  35. package/dist/{bundleWithLocalizedFonts-Z23O7MZ3.js → chunk-3BHDAXDA.js} +4 -8
  36. package/dist/{chunk-BYWQQMTB.js → chunk-3CXUZSLE.js} +2 -2
  37. package/dist/{chunk-EP6GCDZ6.js → chunk-4MY6FPX4.js} +1 -1
  38. package/dist/{chunk-6U6KMYIV.js → chunk-4NE6CBMW.js} +1 -1
  39. package/dist/{chunk-N2SXD5EG.js → chunk-53UV2EUT.js} +3 -3
  40. package/dist/{chunk-AR6IO4RY.js → chunk-5ENBFVPD.js} +2 -2
  41. package/dist/{chunk-AW3XJY4S.js → chunk-6FDVPIOO.js} +1 -1
  42. package/dist/{chunk-NW5QHUZO.js → chunk-6FOO4QTU.js} +1 -1
  43. package/dist/{chunk-WCNUB6WU.js → chunk-6OSVMSGV.js} +9 -9
  44. package/dist/{chunk-XHY36WZF.js → chunk-6UM5C4R6.js} +2 -2
  45. package/dist/{chunk-SFS5BTQ3.js → chunk-6YPQSVVR.js} +1 -1
  46. package/dist/{chunk-AB6DKVKC.js → chunk-6ZRGEVAM.js} +85 -25
  47. package/dist/{chunk-2QMEP4LR.js → chunk-7AVR3VZE.js} +1 -1
  48. package/dist/{chunk-3BLPPIJA.js → chunk-7LQVFIO4.js} +4 -4
  49. package/dist/{chunk-4HGTJHKB.js → chunk-7NPHPQH5.js} +2 -2
  50. package/dist/{chunk-CLT3CJKG.js → chunk-AOJBIFKU.js} +1 -1
  51. package/dist/{chunk-MDMQD6BV.js → chunk-B6C33MNL.js} +41 -17
  52. package/dist/{chunk-QVW57TUW.js → chunk-BNUN7KXZ.js} +2 -2
  53. package/dist/{chunk-2YVIA2BX.js → chunk-BXCPOMS3.js} +9 -7
  54. package/dist/{chunk-H6FRRSHM.js → chunk-CMPHS5E6.js} +2 -2
  55. package/dist/{chunk-JHILL4BN.js → chunk-CUCP7FKH.js} +461 -1
  56. package/dist/{chunk-CKZVLS3K.js → chunk-CZ5NNJ6H.js} +50 -20
  57. package/dist/{chunk-F6PFZMQU.js → chunk-D3FZQL5R.js} +8 -8
  58. package/dist/{chunk-TX3JT67F.js → chunk-DD47NQJZ.js} +1 -1
  59. package/dist/{chunk-EQSUX64Q.js → chunk-DSIGJUNY.js} +1 -1
  60. package/dist/{chunk-ZPJVKYDL.js → chunk-DTU4XJNP.js} +3 -3
  61. package/dist/{chunk-BE7Y3PJZ.js → chunk-DTZSKJV5.js} +3 -3
  62. package/dist/{chunk-6PGTJG3M.js → chunk-DVJUBMS7.js} +1 -1
  63. package/dist/{chunk-KUXOAS4Z.js → chunk-DX4OFRBN.js} +41 -37
  64. package/dist/{chunk-Y3ICFPFK.js → chunk-EAO46VPT.js} +3 -3
  65. package/dist/{chunk-M6JFR7KF.js → chunk-EOCFNE53.js} +21 -32
  66. package/dist/{chunk-LTBBFLOM.js → chunk-FC2OXEBQ.js} +1 -1
  67. package/dist/{chunk-N43XGFAZ.js → chunk-FF3VKFCN.js} +126 -66
  68. package/dist/{chunk-WSZWPYRG.js → chunk-FQFWGAON.js} +2 -2
  69. package/dist/{chunk-OPOYDJEW.js → chunk-FZRTCVU6.js} +1 -1
  70. package/dist/{chunk-FJIN5OWZ.js → chunk-GY7D2OEQ.js} +2 -2
  71. package/dist/chunk-HNZ2FZIB.js +45 -0
  72. package/dist/{chunk-7S2LS53F.js → chunk-HVIQQCLM.js} +13 -13
  73. package/dist/{chunk-7WSL3PT3.js → chunk-HZSAOL5O.js} +2 -2
  74. package/dist/{chunk-UPI2MZ5L.js → chunk-I5PI43EI.js} +1 -1
  75. package/dist/{chunk-MGAGDEBC.js → chunk-IO3BC2ZK.js} +1 -1
  76. package/dist/{chunk-JGTJEQ5X.js → chunk-IPZ3QGDO.js} +2 -2
  77. package/dist/{chunk-GPHY5R35.js → chunk-K5CK4G75.js} +3 -3
  78. package/dist/{chunk-RBF3AF7R.js → chunk-L24GJQNZ.js} +16 -12
  79. package/dist/chunk-LSUM6RTW.js +20 -0
  80. package/dist/{chunk-KHF5WT6E.js → chunk-LZYXYJMX.js} +1 -1
  81. package/dist/{chunk-H4VII7WN.js → chunk-M34AOUVK.js} +5 -5
  82. package/dist/{chunk-ITDHT7AO.js → chunk-MWPPZOY5.js} +4 -4
  83. package/dist/{chunk-2IB3XVAR.js → chunk-MY2W7VWC.js} +14 -14
  84. package/dist/{chunk-W5AUD5OL.js → chunk-N7ZKI2CE.js} +5 -5
  85. package/dist/{chunk-3SZZLHHM.js → chunk-NBUPR3ZF.js} +1 -1
  86. package/dist/{chunk-YHID4CM3.js → chunk-NLEIM52W.js} +83 -21
  87. package/dist/{chunk-TBXV7O3Z.js → chunk-NWFIYKEI.js} +4 -4
  88. package/dist/{chunk-N7EA7GWU.js → chunk-O4ONYFY3.js} +1 -1
  89. package/dist/{chunk-AIK4ETUZ.js → chunk-O4ZD7TVR.js} +17 -1
  90. package/dist/{chunk-C2KEGBR3.js → chunk-OHQRQE7F.js} +1 -394
  91. package/dist/{chunk-ZMRRTWKP.js → chunk-PA27AW3Y.js} +1 -1
  92. package/dist/{chunk-YMP5FTA3.js → chunk-PCY67JUL.js} +303 -29
  93. package/dist/{chunk-RADODJYB.js → chunk-PYPW33ET.js} +2 -2
  94. package/dist/{chunk-C5VZTKW2.js → chunk-QSEHVJFA.js} +67 -211
  95. package/dist/{chunk-CPMTEWQM.js → chunk-RX2PFZ5W.js} +4 -4
  96. package/dist/{chunk-MBX3BHW3.js → chunk-SAAJ2O7A.js} +1 -1
  97. package/dist/{chunk-GAKRZZHQ.js → chunk-SQC4CTD2.js} +2 -2
  98. package/dist/{chunk-WGQW65DO.js → chunk-SSBAETRX.js} +5 -5
  99. package/dist/{chunk-LGVUQ4GC.js → chunk-T32JKZX3.js} +3 -3
  100. package/dist/{chunk-NR2W7HUH.js → chunk-T4FLVFQE.js} +1 -1
  101. package/dist/{chunk-KWGOABKQ.js → chunk-TESXTEV5.js} +1 -1
  102. package/dist/{chunk-2IATDUYU.js → chunk-TRK77R5G.js} +1 -1
  103. package/dist/{chunk-T5ZEMZ3K.js → chunk-TTBCQFRY.js} +2 -2
  104. package/dist/{chunk-7AMCGJDM.js → chunk-U22NZEQV.js} +1 -1
  105. package/dist/{chunk-2ASPXS4U.js → chunk-VD5G4Y6U.js} +1 -1
  106. package/dist/{chunk-RL52TNCM.js → chunk-W7ITBVJE.js} +2 -2
  107. package/dist/{chunk-SXAZR7M4.js → chunk-WAH2X7FF.js} +2 -2
  108. package/dist/{chunk-HTSVFS4G.js → chunk-WXYV47JX.js} +2 -2
  109. package/dist/{chunk-NWQFOHXF.js → chunk-WYXBJVM2.js} +1 -1
  110. package/dist/{chunk-SM4F4H3T.js → chunk-X46MRJYK.js} +1 -1
  111. package/dist/{chunk-EZCMP7NJ.js → chunk-XMOWL46H.js} +1 -1
  112. package/dist/{chunk-SFO4FLUG.js → chunk-YBR4L5JA.js} +1 -1
  113. package/dist/{chunk-7FMUTGOH.js → chunk-ZB2XGJSP.js} +152 -5
  114. package/dist/{chunk-7Z7SREEU.js → chunk-ZE2QZHUH.js} +1 -1
  115. package/dist/{chunk-RWQEWEOV.js → chunk-ZNHWAGMH.js} +1 -1
  116. package/dist/{chunk-NMYRVKIL.js → chunk-ZSAKJRZB.js} +5 -5
  117. package/dist/{chunk-472XCBCV.js → chunk-ZZBO3GF5.js} +2 -2
  118. package/dist/{clean-NNYMY7FD.js → clean-P3SZCIFU.js} +20 -20
  119. package/dist/cli.js +60 -60
  120. package/dist/{cloud-6FBCPI3B.js → cloud-G7YQIVI7.js} +4 -4
  121. package/dist/{cloudrun-D4V4TV6S.js → cloudrun-LXZT5UDK.js} +7 -7
  122. package/dist/{compare-J3JV4AZ3.js → compare-BHQHEOMX.js} +35 -35
  123. package/dist/{compiler-5ANBCHB7.js → compiler-V72QWKGC.js} +5 -5
  124. package/dist/{component-QFREWBT5.js → component-6GDCT3GK.js} +3 -3
  125. package/dist/{compositions-NUTRZGAZ.js → compositions-JM6HKCRF.js} +12 -12
  126. package/dist/{curve-LR4THVRF.js → curve-Y7JRXLIJ.js} +12 -12
  127. package/dist/{cuts-5WPLSRM2.js → cuts-LDVDQTRL.js} +13 -13
  128. package/dist/{delete-KLIVMSTG.js → delete-NCZIKWHU.js} +2 -2
  129. package/dist/{deploy-CDWKRTWY.js → deploy-R4OEJEB6.js} +5 -2
  130. package/dist/{describeProject-YJEOPIW7.js → describeProject-4GKZTYHA.js} +10 -10
  131. package/dist/{deterministicFonts-GQMT52JQ.js → deterministicFonts-HY5GWGQQ.js} +3 -3
  132. package/dist/{diff-KY6T2E32.js → diff-C53GPSNU.js} +42 -24
  133. package/dist/{dist-GUX66F7V.js → dist-R7SPMKEZ.js} +4 -4
  134. package/dist/{dist-TQKOMXXI.js → dist-TI44VPHO.js} +3 -3
  135. package/dist/{dist-GVCHAZJU.js → dist-TJZSSDR2.js} +13 -13
  136. package/dist/{doctor-HLG4AP3Q.js → doctor-V4RICWU2.js} +12 -12
  137. package/dist/{energy-3T3DDIEN.js → energy-S5Z7CGSB.js} +13 -13
  138. package/dist/{events-LB2RDZX3.js → events-6HROTYLC.js} +11 -3
  139. package/dist/{events-HZG5BWCQ.js → events-QKJE5XRN.js} +2 -2
  140. package/dist/{events-ZZNUYUCY.js → events-RAJGQK7Y.js} +14 -14
  141. package/dist/{extract-7STXIEDI.js → extract-RYGWEC5V.js} +13 -13
  142. package/dist/{face-3DWRLSWO.js → face-IWRDW2QO.js} +13 -13
  143. package/dist/{feedback-4V2HGHTZ.js → feedback-HQTDLLPE.js} +9 -9
  144. package/dist/{ffmpeg-5BWHEWVW.js → ffmpeg-BX334YEK.js} +8 -8
  145. package/dist/{figma-4SSCW6YU.js → figma-P6U76KGI.js} +3 -3
  146. package/dist/fontLocalizeCli.js +13 -13
  147. package/dist/{frames-V3OUCXX6.js → frames-G2WYTVWV.js} +14 -14
  148. package/dist/{generate-W4HW4MJQ.js → generate-ZUE2AVOB.js} +35 -16
  149. package/dist/{get-FXFV3VDQ.js → get-7C3UC46A.js} +2 -2
  150. package/dist/{gpuPolicy-X4BOE2HD.js → gpuPolicy-5ZVYYWXN.js} +8 -8
  151. package/dist/{grade-compare-PV62LISL.js → grade-compare-IS3OVI7R.js} +39 -39
  152. package/dist/{heifImagePrep-2K2I4SCP.js → heifImagePrep-FBLLKI3P.js} +9 -9
  153. package/dist/{help-R2ASMVJB.js → help-2MPB27YU.js} +1 -1
  154. package/dist/{history-X24EZSOO.js → history-Q5EBBFPW.js} +6 -6
  155. package/dist/hyperframe.manifest.json +1 -1
  156. package/dist/hyperframe.runtime.iife.js +7 -7
  157. package/dist/hyperframes-player.global.js +1 -1
  158. package/dist/{info-DJ6TZSEF.js → info-TNG5QGFC.js} +9 -9
  159. package/dist/{init-GQ2GRVQS.js → init-UFPBBWC7.js} +37 -32
  160. package/dist/{ink-L4VRIFJ7.js → ink-UTPJHGZR.js} +13 -13
  161. package/dist/{inspect-5IXDDOJN.js → inspect-KXKKPWKX.js} +37 -37
  162. package/dist/{installer-ZIBXFENP.js → installer-UTFXM6KP.js} +7 -7
  163. package/dist/{keyframes-ASFH5XYJ.js → keyframes-S6V36BW6.js} +6 -6
  164. package/dist/{lambda-ELYE5XIZ.js → lambda-XWHALRKM.js} +13 -13
  165. package/dist/{layout-NNGVQWY4.js → layout-SSVKZKCZ.js} +37 -37
  166. package/dist/{lint-GYJFRDI2.js → lint-OQWGRKG5.js} +9 -9
  167. package/dist/{lintProject-NGMRZDNT.js → lintProject-Z2TEXMY4.js} +3 -3
  168. package/dist/{list-UBFDCTVO.js → list-FYLBMEL7.js} +2 -2
  169. package/dist/{localPage-DHAVU3EM.js → localPage-4GSU6N3J.js} +8 -8
  170. package/dist/{login-OKJT7QWG.js → login-JKFCYHRS.js} +4 -4
  171. package/dist/{look-4GINLBBO.js → look-WQ2DOKXH.js} +13 -13
  172. package/dist/{manager-Q5X74T5D.js → manager-F4F4A734.js} +9 -9
  173. package/dist/{measure-LICRA4FH.js → measure-XIFLTAMC.js} +11 -11
  174. package/dist/{media-treatment-PM3WLJZ4.js → media-treatment-S3LHQSQQ.js} +16 -16
  175. package/dist/{media-use-NUORYIBQ.js → media-use-NFM3ZXCF.js} +3 -3
  176. package/dist/{models-V2XJYFY5.js → models-G4KNLV66.js} +12 -12
  177. package/dist/{motionShot-YBJB6L3C.js → motionShot-IJGA5CBH.js} +16 -16
  178. package/dist/{normalize-audio-LUAEDEUM.js → normalize-audio-UP54N6J4.js} +11 -11
  179. package/dist/{open-RTL2AU5C.js → open-TAEKCYDB.js} +16 -16
  180. package/dist/{parakeetRunner-FBEL64JM.js → parakeetRunner-WFA4K7BH.js} +13 -13
  181. package/dist/{pipeline-2VN2FDAL.js → pipeline-SNENB5MZ.js} +11 -11
  182. package/dist/{play-U3EXVEC7.js → play-QTYMY453.js} +27 -27
  183. package/dist/{preflight-Z3U5OGW3.js → preflight-CZUKW3CW.js} +9 -9
  184. package/dist/{present-NXEDFMC4.js → present-KVHQECWG.js} +19 -19
  185. package/dist/{preview-AUDJW3KE.js → preview-6U62DM4P.js} +24 -24
  186. package/dist/{probe-QQXAWDZG.js → probe-UCVL3JDC.js} +13 -13
  187. package/dist/{producer-DNWWPGFA.js → producer-A4RPG3XL.js} +1 -1
  188. package/dist/{projectConfig-FMXOJBJY.js → projectConfig-FIW6FPZW.js} +10 -10
  189. package/dist/{publication-K4XAMUI6.js → publication-CCIGDK2X.js} +4 -4
  190. package/dist/{publish-7HSXMQEF.js → publish-VKSABRA4.js} +18 -15
  191. package/dist/{remove-background-AIYMKXZW.js → remove-background-CJJ54SHA.js} +12 -12
  192. package/dist/{render-RMPWJTY4.js → render-2YY64XPU.js} +346 -64
  193. package/dist/{render-SAAQKFHE.js → render-G54RA46B.js} +202 -35
  194. package/dist/{render-FD7LHCCC.js → render-I2MWX5GH.js} +7 -7
  195. package/dist/{render-batch-WPHP27VT.js → render-batch-X562GNRH.js} +10 -10
  196. package/dist/renderSetupWorker.js +3 -3
  197. package/dist/{resolver-E7IHSWCQ.js → resolver-GC4ZLQPV.js} +7 -7
  198. package/dist/{reverse-GHX5LUSV.js → reverse-2KZQ65Y7.js} +1 -1
  199. package/dist/{sherpa-QQZMXXO5.js → sherpa-SLRKS4SR.js} +12 -12
  200. package/dist/skills/hyperframes/SKILL.md +3 -1
  201. package/dist/skills/hyperframes/references/format.md +1 -1
  202. package/dist/skills/hyperframes-cli/SKILL.md +2 -0
  203. package/dist/skills/media-use/SKILL.md +2 -0
  204. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +2 -2
  205. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +2 -2
  206. package/dist/{skills-WCXVUM6C.js → skills-SOXKW42T.js} +6 -6
  207. package/dist/{skillsUpdateCheck-PEVW2JO6.js → skillsUpdateCheck-4RUEBT6B.js} +3 -3
  208. package/dist/{snapshot-2ACZXDLZ.js → snapshot-KIWJWZGW.js} +48 -48
  209. package/dist/{src-WISBTYBV.js → src-ABVBEVVK.js} +12 -12
  210. package/dist/{src-DA2HOM3K.js → src-DYWF24IK.js} +7 -7
  211. package/dist/{start-DDOWW7K5.js → start-EADJCDST.js} +49 -27
  212. package/dist/{staticProjectServer-MQ7H4MGQ.js → staticProjectServer-UCHJYCR6.js} +24 -24
  213. package/dist/{status-74IZXJKQ.js → status-E4OUQSHN.js} +45 -2
  214. package/dist/studio/assets/{hyperframes-player-B2_9tPTr.js → hyperframes-player-CfYFgHV8.js} +1 -1
  215. package/dist/studio/assets/{index-DToBQdGg.js → index-COfhX0Gz.js} +4 -4
  216. package/dist/studio/assets/{index-BHe_y2lu.js → index-Cj5x3rVD.js} +1 -1
  217. package/dist/studio/index.html +1 -1
  218. package/dist/{studio-api-UABUZ3PZ.js → studio-api-RGOTUJXP.js} +13 -13
  219. package/dist/{studioServer-FGXZA75B.js → studioServer-72COILB5.js} +61 -61
  220. package/dist/{sync-AVGYYG4D.js → sync-5Z5OQFB3.js} +13 -13
  221. package/dist/{telemetry-7IM2NV22.js → telemetry-OQ2JM37Y.js} +3 -3
  222. package/dist/{templates-5CWKOSBX.js → templates-YH5CUHHN.js} +45 -2
  223. package/dist/{timeline-A7R54T7C.js → timeline-IWU2T2BX.js} +21 -21
  224. package/dist/{tokens-W6RQVKWV.js → tokens-F7IBDWGE.js} +2 -2
  225. package/dist/{transcribe-N2C2MYCG.js → transcribe-GL3J3JB3.js} +11 -11
  226. package/dist/{transcribe-GPOMREHS.js → transcribe-YXDOCF32.js} +32 -20
  227. package/dist/{update-X643YOPS.js → update-MR5NL567.js} +7 -7
  228. package/dist/{updateCheck-O7IUSOXN.js → updateCheck-ONT2ZVAF.js} +2 -2
  229. package/dist/{upgrade-6NWYJUFT.js → upgrade-BJEGLKQS.js} +3 -3
  230. package/dist/{urlDownloader-PFHIVGDF.js → urlDownloader-3PV5WURP.js} +7 -7
  231. package/dist/{validate-IIFU6OEG.js → validate-GTTWJYCS.js} +26 -26
  232. package/dist/{video-R6TSXZMN.js → video-VP6X6YL5.js} +9 -9
  233. package/dist/{voices-Y572PKNN.js → voices-3EO2NQ5Q.js} +33 -14
  234. package/dist/warmCheck.js +46 -46
  235. package/package.json +1 -1
  236. package/dist/chunk-TSCUYZ4B.js +0 -29
@@ -19,7 +19,7 @@ import {
19
19
  splitElementInHtml,
20
20
  unwrapElementsFromHtml,
21
21
  wrapElementsInHtml
22
- } from "./chunk-O4Q44I77.js";
22
+ } from "./chunk-2YT656R2.js";
23
23
  import {
24
24
  DEFAULT_TARGET_LUFS,
25
25
  absoluteLoudnessPlan,
@@ -28,11 +28,11 @@ import {
28
28
  requestedProjectPath,
29
29
  requiredFfmpeg,
30
30
  resolveLocalAudioPath
31
- } from "./chunk-CPMTEWQM.js";
31
+ } from "./chunk-RX2PFZ5W.js";
32
32
  import {
33
33
  MEDIA_LINK_ATTR,
34
34
  relinkSplitHalves
35
- } from "./chunk-AW3XJY4S.js";
35
+ } from "./chunk-6FDVPIOO.js";
36
36
  import {
37
37
  HistoryBusyError,
38
38
  MAX_WINDOW_IDLE_MS,
@@ -71,11 +71,11 @@ import {
71
71
  scanProjectMedia,
72
72
  shouldPrewarmProxy,
73
73
  waitForProxy
74
- } from "./chunk-MDMQD6BV.js";
74
+ } from "./chunk-B6C33MNL.js";
75
75
  import {
76
76
  probeAudioTrack,
77
77
  probeMediaMetadata
78
- } from "./chunk-2QMEP4LR.js";
78
+ } from "./chunk-7AVR3VZE.js";
79
79
  import {
80
80
  STUDIO_MOTION_PATH,
81
81
  createStudioMotionRenderBodyScript,
@@ -108,7 +108,7 @@ import {
108
108
  collectFontFileEntries,
109
109
  fontDirectories,
110
110
  locateSystemFont
111
- } from "./chunk-7FMUTGOH.js";
111
+ } from "./chunk-ZB2XGJSP.js";
112
112
  import {
113
113
  decodableAudioStream
114
114
  } from "./chunk-D3MUHMFG.js";
@@ -117,7 +117,7 @@ import {
117
117
  ensureHfIds,
118
118
  stampHfIdsInPlace,
119
119
  stripSdrPngColourTags
120
- } from "./chunk-N2SXD5EG.js";
120
+ } from "./chunk-53UV2EUT.js";
121
121
  import {
122
122
  PREVIEW_PROXY_BOX_PARAM,
123
123
  PREVIEW_PROXY_LIGHT_PARAM,
@@ -130,7 +130,7 @@ import {
130
130
  fpsToNumber,
131
131
  parseFps,
132
132
  parsePreviewProxyBox
133
- } from "./chunk-W5AUD5OL.js";
133
+ } from "./chunk-N7ZKI2CE.js";
134
134
  import {
135
135
  GSAP_BASE_URL_META,
136
136
  gsapCdnDist,
@@ -152,7 +152,7 @@ import {
152
152
  resolveRateSpec,
153
153
  sourceTimeAt,
154
154
  stripEmbeddedRuntimeScripts
155
- } from "./chunk-Y3ICFPFK.js";
155
+ } from "./chunk-EAO46VPT.js";
156
156
  import {
157
157
  ProjectRootMissingError,
158
158
  folderGone,
@@ -179,7 +179,7 @@ import {
179
179
  rewriteCssAssetUrls,
180
180
  rewriteInlineStyleAssetUrls,
181
181
  sameInstant
182
- } from "./chunk-C2KEGBR3.js";
182
+ } from "./chunk-OHQRQE7F.js";
183
183
  import {
184
184
  HTML_ATTRIBUTE_ENTITIES,
185
185
  MagicString,
@@ -187,7 +187,7 @@ import {
187
187
  decodeAuthoredAttribute,
188
188
  scanHtmlOpeningTags,
189
189
  unrollComputedTimeline
190
- } from "./chunk-JHILL4BN.js";
190
+ } from "./chunk-CUCP7FKH.js";
191
191
  import {
192
192
  parseHTML
193
193
  } from "./chunk-GWTIFRF5.js";
@@ -367,7 +367,7 @@ function clearElementScreenshotIsolation() {
367
367
  page.__hfThumbnailFaded = [];
368
368
  }
369
369
 
370
- // ../studio-server/dist/chunk-J4SRRKQU.js
370
+ // ../studio-server/dist/chunk-GTQ6S4O5.js
371
371
  import { resolve } from "path";
372
372
  function isAutoProxyEnabled(adapter) {
373
373
  return adapter.autoProxy !== false;
@@ -5623,7 +5623,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
5623
5623
  let block = extractGsapScriptBlock(html);
5624
5624
  if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
5625
5625
  const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
5626
- const { GSAP_CDN } = await import("./dist-GUX66F7V.js");
5626
+ const { GSAP_CDN } = await import("./dist-R7SPMKEZ.js");
5627
5627
  const bootstrap = [
5628
5628
  `<script src="${GSAP_CDN}"></script>`,
5629
5629
  "<script>",
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveCaptureBrowserGpuMode
9
- } from "./chunk-SXAZR7M4.js";
9
+ } from "./chunk-WAH2X7FF.js";
10
10
  import {
11
11
  explainChromeLaunchFailure,
12
12
  inAgentSandbox,
@@ -15,7 +15,7 @@ import {
15
15
  oneProcessOverPipe,
16
16
  pipeLaunchClosedOnMac,
17
17
  sandboxDeniedRemediation
18
- } from "./chunk-AB6DKVKC.js";
18
+ } from "./chunk-6ZRGEVAM.js";
19
19
  import {
20
20
  processIsAlive
21
21
  } from "./chunk-KGPLIH7B.js";
@@ -10,7 +10,7 @@ import {
10
10
  ratioOf,
11
11
  readClip,
12
12
  round
13
- } from "./chunk-NR2W7HUH.js";
13
+ } from "./chunk-T4FLVFQE.js";
14
14
 
15
15
  // src/measure/energy.ts
16
16
  var ENERGY_RATE = 12;
@@ -25,7 +25,7 @@ import {
25
25
  } from "./chunk-FYZFURBN.js";
26
26
  import {
27
27
  VERSION
28
- } from "./chunk-WSZWPYRG.js";
28
+ } from "./chunk-FQFWGAON.js";
29
29
 
30
30
  // src/utils/updateCheck.ts
31
31
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-TSYRN646.js";
12
12
  import {
13
13
  fetchLocalPageUrl
14
- } from "./chunk-KHF5WT6E.js";
14
+ } from "./chunk-LZYXYJMX.js";
15
15
  import {
16
16
  ensureCaptureDirSync,
17
17
  writeCaptureFileSync
@@ -25,7 +25,7 @@ import {
25
25
  } from "./chunk-AWDFDFI3.js";
26
26
  import {
27
27
  isBlockedNetworkHost
28
- } from "./chunk-AB6DKVKC.js";
28
+ } from "./chunk-6ZRGEVAM.js";
29
29
  import {
30
30
  DOMParser,
31
31
  parseHTML
@@ -8,20 +8,20 @@ import {
8
8
  DEFAULT_REGISTRY_URL,
9
9
  fetchItemFile,
10
10
  validRegistryItem
11
- } from "./chunk-3BLPPIJA.js";
11
+ } from "./chunk-7LQVFIO4.js";
12
12
  import {
13
13
  publishRegistryFile,
14
14
  registryTargetPath
15
15
  } from "./chunk-T2WJO4XM.js";
16
16
  import {
17
17
  validateVariables
18
- } from "./chunk-W5AUD5OL.js";
18
+ } from "./chunk-N7ZKI2CE.js";
19
19
  import {
20
20
  realProjectRoot
21
21
  } from "./chunk-OFQWTKPW.js";
22
22
  import {
23
23
  isCompositionVariable
24
- } from "./chunk-C2KEGBR3.js";
24
+ } from "./chunk-CUCP7FKH.js";
25
25
 
26
26
  // src/registry/installer.ts
27
27
  import { createHash } from "crypto";
@@ -6,11 +6,11 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  findStageProxyBox
9
- } from "./chunk-LTBBFLOM.js";
9
+ } from "./chunk-FC2OXEBQ.js";
10
10
  import {
11
11
  getMimeType,
12
12
  injectMediaCodecMapIntoHtml
13
- } from "./chunk-7S2LS53F.js";
13
+ } from "./chunk-HVIQQCLM.js";
14
14
  import {
15
15
  PROXY_VARIANT_CONFIG,
16
16
  ProxyCapacityError,
@@ -21,26 +21,26 @@ import {
21
21
  recordProxyRequest,
22
22
  resolveProxy,
23
23
  resolveProxyVariantRequest
24
- } from "./chunk-MDMQD6BV.js";
24
+ } from "./chunk-B6C33MNL.js";
25
25
  import {
26
26
  resolveAutoProxy
27
- } from "./chunk-ZMRRTWKP.js";
27
+ } from "./chunk-PA27AW3Y.js";
28
28
  import {
29
29
  openRangeEnd
30
30
  } from "./chunk-VEIGTKYZ.js";
31
31
  import {
32
32
  listenOnBrowserSafePort
33
- } from "./chunk-AB6DKVKC.js";
33
+ } from "./chunk-6ZRGEVAM.js";
34
34
  import {
35
35
  stripSdrPngColourTags
36
- } from "./chunk-N2SXD5EG.js";
36
+ } from "./chunk-53UV2EUT.js";
37
37
  import {
38
38
  PREVIEW_PROXY_BOX_PARAM,
39
39
  parsePreviewProxyBox
40
- } from "./chunk-W5AUD5OL.js";
40
+ } from "./chunk-N7ZKI2CE.js";
41
41
  import {
42
42
  decodeWellFormedEscapes
43
- } from "./chunk-C2KEGBR3.js";
43
+ } from "./chunk-OHQRQE7F.js";
44
44
 
45
45
  // src/utils/staticProjectServer.ts
46
46
  import { createServer, request as httpRequest } from "http";
@@ -166,7 +166,7 @@ function writeProxyError(err, res) {
166
166
  res.writeHead(500);
167
167
  res.end();
168
168
  }
169
- async function serveProxyRequest(projectDir, filePath, request, box, autoProxy, rangeHeader, res, signal) {
169
+ async function serveProxyRequest(projectDir, filePath, request, box, autoProxy, rangeHeader, res, signal, limitSeconds) {
170
170
  const contentType = getMimeType(filePath);
171
171
  if (!autoProxy || !contentType.startsWith("video/")) {
172
172
  res.writeHead(404);
@@ -193,14 +193,17 @@ async function serveProxyRequest(projectDir, filePath, request, box, autoProxy,
193
193
  return;
194
194
  }
195
195
  recordProxyRequest();
196
- const proxyPath = await resolveProxy(projectDir, filePath, variant, box, { signal });
196
+ const proxyPath = await resolveProxy(projectDir, filePath, variant, box, {
197
+ signal,
198
+ limitSeconds
199
+ });
197
200
  if (res.writableEnded || res.destroyed) return;
198
201
  serveFileWithRange(proxyPath, rangeHeader, res, PROXY_VARIANT_CONFIG[variant].contentType);
199
202
  } catch (err) {
200
203
  writeProxyError(err, res);
201
204
  }
202
205
  }
203
- async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Failed to bind local HTTP server", assetRoots = [], autoProxyOverride) {
206
+ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Failed to bind local HTTP server", assetRoots = [], autoProxyOverride, proxyLimits = /* @__PURE__ */ new Map()) {
204
207
  const roots = [projectDir, ...assetRoots];
205
208
  const autoProxy = resolveAutoProxy(projectDir, autoProxyOverride);
206
209
  const copies = new AbortController();
@@ -247,7 +250,8 @@ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Fail
247
250
  autoProxy,
248
251
  req.headers.range,
249
252
  res,
250
- copies.signal
253
+ copies.signal,
254
+ proxyLimits.get(filePath)
251
255
  );
252
256
  } else {
253
257
  if (!serveUntaggedPng(filePath, res))
@@ -0,0 +1,20 @@
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
+
8
+ // src/utils/sourceTag.ts
9
+ var OUR_HOST = /(^|\.)(hyperframes\.studio|hyperframes\.heygen\.com|heygen\.com)$/;
10
+ function cliSourced(url) {
11
+ if (!URL.canParse(url)) return url;
12
+ const parsed = new URL(url);
13
+ if (!OUR_HOST.test(parsed.hostname) || parsed.searchParams.has("utm_source")) return url;
14
+ parsed.searchParams.set("utm_source", "cli");
15
+ return parsed.toString();
16
+ }
17
+
18
+ export {
19
+ cliSourced
20
+ };
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-EQBDKYXR.js";
10
10
  import {
11
11
  listenOnBrowserSafePort
12
- } from "./chunk-AB6DKVKC.js";
12
+ } from "./chunk-6ZRGEVAM.js";
13
13
 
14
14
  // src/capture/localPage.ts
15
15
  import {
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-J3OVTOVC.js";
17
17
  import {
18
18
  runEnvironmentChecks
19
- } from "./chunk-6U6KMYIV.js";
19
+ } from "./chunk-4NE6CBMW.js";
20
20
  import {
21
21
  OPTIONAL_PACKAGES,
22
22
  installedOptionalPackageVersion
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-HOCC4J5C.js";
30
30
  import {
31
31
  resolveExtractCacheDir
32
- } from "./chunk-AB6DKVKC.js";
32
+ } from "./chunk-6ZRGEVAM.js";
33
33
  import {
34
34
  getFreeDiskMb,
35
35
  getShmSizeMb,
@@ -44,14 +44,14 @@ import {
44
44
  runningInstall,
45
45
  updateCommandFor,
46
46
  withMeta
47
- } from "./chunk-MGAGDEBC.js";
47
+ } from "./chunk-IO3BC2ZK.js";
48
48
  import {
49
49
  CONFIG_PATH,
50
50
  withFileLock
51
51
  } from "./chunk-CKEOCCMK.js";
52
52
  import {
53
53
  VERSION
54
- } from "./chunk-WSZWPYRG.js";
54
+ } from "./chunk-FQFWGAON.js";
55
55
  import {
56
56
  normalizeErrorMessage
57
57
  } from "./chunk-E63BDV4Z.js";
@@ -249,7 +249,7 @@ function checkEnvironment() {
249
249
  return { ok: true, detail: parts.join(" \xB7 ") };
250
250
  }
251
251
  async function checkWhisper() {
252
- const { findWhisper, getInstallInstructions } = await import("./manager-Q5X74T5D.js");
252
+ const { findWhisper, getInstallInstructions } = await import("./manager-F4F4A734.js");
253
253
  const result = findWhisper();
254
254
  if (result) {
255
255
  return { ok: true, detail: result.executablePath };
@@ -15,16 +15,16 @@ import {
15
15
  findFFmpeg,
16
16
  findFFprobe,
17
17
  getFFmpegInstallHint
18
- } from "./chunk-RWQEWEOV.js";
18
+ } from "./chunk-ZNHWAGMH.js";
19
19
  import {
20
20
  registerBrowserSessionCleanup
21
- } from "./chunk-7WSL3PT3.js";
21
+ } from "./chunk-HZSAOL5O.js";
22
22
  import {
23
23
  DEFAULT_VP9_CPU_USED,
24
24
  SDR_RGB_TO_BT709_FILTER,
25
25
  SDR_RGB_TO_TAGGED_BT709_FILTER,
26
26
  renderProvenanceArgs
27
- } from "./chunk-AB6DKVKC.js";
27
+ } from "./chunk-6ZRGEVAM.js";
28
28
  import {
29
29
  runCancellableProcess
30
30
  } from "./chunk-X6JUUQCM.js";
@@ -432,7 +432,7 @@ async function decoderTransposesDimensions(inputPath) {
432
432
  }
433
433
  async function probeMedia(inputPath) {
434
434
  const isImage = inferInputKind(inputPath) === "image";
435
- const engine = await import("./src-DA2HOM3K.js");
435
+ const engine = await import("./src-DYWF24IK.js");
436
436
  const meta = await engine.extractMediaMetadata(inputPath);
437
437
  if (isImage) {
438
438
  return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
@@ -6,23 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-CLT3CJKG.js";
9
+ } from "./chunk-AOJBIFKU.js";
10
10
  import {
11
11
  installPageFunctionGuard,
12
12
  resolveCliChromeGpuMode,
13
13
  seekCompositionTimeline,
14
14
  waitForRuntimeReady
15
- } from "./chunk-WCNUB6WU.js";
15
+ } from "./chunk-6OSVMSGV.js";
16
16
  import {
17
17
  pageNavigationTimeoutMs
18
- } from "./chunk-ZPJVKYDL.js";
18
+ } from "./chunk-DTU4XJNP.js";
19
19
  import {
20
20
  resolveCompositionViewportFromHtml
21
- } from "./chunk-LTBBFLOM.js";
21
+ } from "./chunk-FC2OXEBQ.js";
22
22
  import {
23
23
  launchManagedBrowser,
24
24
  resolveManagedGpuMode
25
- } from "./chunk-7WSL3PT3.js";
25
+ } from "./chunk-HZSAOL5O.js";
26
26
  import {
27
27
  defineCommand
28
28
  } from "./chunk-DL4OD7IA.js";
@@ -31,14 +31,14 @@ import {
31
31
  } from "./chunk-HOCC4J5C.js";
32
32
  import {
33
33
  resolveNaturalMediaTimelineDuration
34
- } from "./chunk-Y3ICFPFK.js";
34
+ } from "./chunk-EAO46VPT.js";
35
35
  import {
36
36
  decodeWellFormedEscapes
37
- } from "./chunk-C2KEGBR3.js";
37
+ } from "./chunk-OHQRQE7F.js";
38
38
  import {
39
39
  printDeprecationNotice,
40
40
  withMeta
41
- } from "./chunk-MGAGDEBC.js";
41
+ } from "./chunk-IO3BC2ZK.js";
42
42
  import {
43
43
  failureMessage,
44
44
  jsonFailure
@@ -253,7 +253,7 @@ function extractCompositionErrorsFromLint(lintResult) {
253
253
  async function localizeRemoteAssets(html) {
254
254
  let dir;
255
255
  try {
256
- const { loadProducer } = await import("./producer-DNWWPGFA.js");
256
+ const { loadProducer } = await import("./producer-A4RPG3XL.js");
257
257
  const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
258
258
  dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
259
259
  const assetDir = dir;
@@ -274,10 +274,10 @@ async function localizeRemoteAssets(html) {
274
274
  }
275
275
  async function validateInBrowser(project, opts) {
276
276
  const projectDir = project.dir;
277
- const { bundleToSingleHtml } = await import("./compiler-5ANBCHB7.js");
277
+ const { bundleToSingleHtml } = await import("./compiler-V72QWKGC.js");
278
278
  const { ensureBrowser } = await import("./manager-SAXHANEY.js");
279
- const { serveStaticProjectHtml } = await import("./staticProjectServer-MQ7H4MGQ.js");
280
- const { lintProject } = await import("./lintProject-NGMRZDNT.js");
279
+ const { serveStaticProjectHtml } = await import("./staticProjectServer-UCHJYCR6.js");
280
+ const { lintProject } = await import("./lintProject-Z2TEXMY4.js");
281
281
  const lintResult = await lintProject(projectDir);
282
282
  const compositionErrors = extractCompositionErrorsFromLint(lintResult);
283
283
  const html = await bundleToSingleHtml(projectDir);
@@ -298,9 +298,9 @@ async function validateInBrowser(project, opts) {
298
298
  try {
299
299
  const browser = await ensureBrowser();
300
300
  const puppeteer = await import("puppeteer-core");
301
- const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-DA2HOM3K.js");
301
+ const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-DYWF24IK.js");
302
302
  const requestedGpuMode = resolveCliChromeGpuMode();
303
- const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-X4BOE2HD.js");
303
+ const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-5ZVYYWXN.js");
304
304
  const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
305
305
  const requiresWebGpu = compositionRequiresWebGpu(html);
306
306
  const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
@@ -25,7 +25,7 @@ import {
25
25
  resolveNaturalMediaTimelineDuration,
26
26
  resolveTimedImageDurationSeconds,
27
27
  unitFloatToByte
28
- } from "./chunk-Y3ICFPFK.js";
28
+ } from "./chunk-EAO46VPT.js";
29
29
  import {
30
30
  COLOR_GROUP_ATTR,
31
31
  COLOR_GROUP_TAG,
@@ -33,21 +33,21 @@ import {
33
33
  MEDIA_START_BASIS_ATTR,
34
34
  compositionOriginSeconds,
35
35
  hostInPointSeconds,
36
- isFontValue,
37
- isImageValue,
38
36
  isRootGlobalMediaStart,
39
37
  parseStartExpression,
40
38
  resolveMediaStartSeconds,
41
39
  sameInstant
42
- } from "./chunk-C2KEGBR3.js";
40
+ } from "./chunk-OHQRQE7F.js";
43
41
  import {
44
42
  CANVAS_DIMENSIONS,
45
43
  isCompositionElement,
44
+ isFontValue,
45
+ isImageValue,
46
46
  isMediaElement,
47
47
  isTextElement,
48
48
  keyframesToGsapAnimations,
49
49
  serializeGsapAnimations
50
- } from "./chunk-JHILL4BN.js";
50
+ } from "./chunk-CUCP7FKH.js";
51
51
  import {
52
52
  parseHTML
53
53
  } from "./chunk-GWTIFRF5.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/utils/producer.ts
9
9
  async function loadProducer() {
10
- return await import("./src-WISBTYBV.js");
10
+ return await import("./src-ABVBEVVK.js");
11
11
  }
12
12
 
13
13
  export {
@@ -8,6 +8,15 @@ import {
8
8
  resolveCloudAuthHeaders,
9
9
  resolveCloudBaseUrl
10
10
  } from "./chunk-BY7PZB6H.js";
11
+ import {
12
+ readProjectConfig
13
+ } from "./chunk-PA27AW3Y.js";
14
+ import {
15
+ normalizeSkillSlug
16
+ } from "./chunk-HVW7ABXD.js";
17
+ import {
18
+ trackBillingCheckoutReturnRefused
19
+ } from "./chunk-O4ZD7TVR.js";
11
20
 
12
21
  // src/heygen/plan.ts
13
22
  import { randomUUID } from "crypto";
@@ -57,9 +66,24 @@ async function signedInSpace() {
57
66
  return void 0;
58
67
  }
59
68
  }
69
+ function checkoutSkill(named, projectDir = process.cwd()) {
70
+ return normalizeSkillSlug(named) ?? readProjectConfig(projectDir)?.authoringSkill;
71
+ }
72
+ function cliCheckoutLink(link, skill = checkoutSkill()) {
73
+ if (!URL.canParse(link)) return link;
74
+ const url = new URL(link);
75
+ if (url.hostname !== new URL(webBase()).hostname) return link;
76
+ if (!url.searchParams.has("from")) url.searchParams.set("from", "cli");
77
+ if (skill && !url.searchParams.has("skill")) url.searchParams.set("skill", skill);
78
+ if (!url.searchParams.has("utm_source")) url.searchParams.set("utm_source", "cli");
79
+ return url.toString();
80
+ }
60
81
  async function pageUrl(kind, fields = {}) {
61
82
  const url = new URL(fields.base ?? (kind === "plans" ? plansUrl() : creditsUrl()));
62
83
  url.searchParams.set("from", "cli");
84
+ url.searchParams.set("utm_source", "cli");
85
+ const skill = checkoutSkill(fields.skill);
86
+ if (skill) url.searchParams.set("skill", skill);
63
87
  if (fields.needed) url.searchParams.set("needed_credits", String(fields.needed));
64
88
  if (fields.tool) url.searchParams.set("tool", fields.tool);
65
89
  if (fields.feature) url.searchParams.set("feature", fields.feature);
@@ -117,42 +141,80 @@ function stripeCheckoutUrl(value) {
117
141
  const url = new URL(value);
118
142
  return url.protocol === "https:" && url.hostname === "checkout.stripe.com" ? url.toString() : void 0;
119
143
  }
120
- async function createCheckout(kind, offer, missing) {
144
+ var CheckoutError = class extends Error {
145
+ constructor(reason, message) {
146
+ super(message);
147
+ this.reason = reason;
148
+ this.name = "CheckoutError";
149
+ }
150
+ reason;
151
+ };
152
+ function cliCheckoutReturn(skill, baseline) {
153
+ const url = new URL(plansUrl());
154
+ url.searchParams.set("from", "cli");
155
+ if (skill) url.searchParams.set("skill", skill);
156
+ url.searchParams.set("checkout", "pro");
157
+ url.searchParams.set("from_credits", String(Math.max(0, Math.trunc(baseline ?? 0))));
158
+ return url.toString();
159
+ }
160
+ var RETURN_REFUSED = /return address is not allowed/i;
161
+ async function createCheckout(kind, offer, missing, source = {}) {
121
162
  const addon = kind === "credits" ? offer.addon : void 0;
122
163
  if (kind === "credits" && !addon)
123
- throw new Error("Credits are not on sale for this account right now.");
124
- const body = addon ? {
125
- quantity: addonBlocks(addon, missing),
126
- currency: addon.currency,
127
- unit_amount: addon.unitAmount
128
- } : { plan_name: "pro", period: "month", request_id: randomUUID() };
129
- const res = await fetch(
130
- `${billingBaseUrl()}/v1/payment/hyperframes/${addon ? "addon.checkout" : "checkout"}`,
131
- {
132
- method: "POST",
133
- headers: {
134
- ...await resolveCloudAuthHeaders(),
135
- accept: "application/json",
136
- "content-type": "application/json"
137
- },
138
- body: JSON.stringify(body),
139
- signal: AbortSignal.timeout(2e4)
140
- }
141
- );
164
+ throw new CheckoutError(
165
+ "checkout_unavailable",
166
+ "Credits are not on sale for this account right now."
167
+ );
168
+ if (addon)
169
+ return postCheckout("addon.checkout", {
170
+ quantity: addonBlocks(addon, missing),
171
+ currency: addon.currency,
172
+ unit_amount: addon.unitAmount
173
+ });
174
+ const pro = () => ({ plan_name: "pro", period: "month", request_id: randomUUID() });
175
+ const returnUrl = cliCheckoutReturn(checkoutSkill(source.skill), source.baseline);
176
+ try {
177
+ return await postCheckout("checkout", { ...pro(), return_url: returnUrl });
178
+ } catch (error) {
179
+ const refused = error instanceof CheckoutError && error.reason === "checkout_rejected";
180
+ if (!refused || !RETURN_REFUSED.test(error.message)) throw error;
181
+ trackBillingCheckoutReturnRefused();
182
+ return postCheckout("checkout", pro());
183
+ }
184
+ }
185
+ async function postCheckout(route, body) {
186
+ const res = await fetch(`${billingBaseUrl()}/v1/payment/hyperframes/${route}`, {
187
+ method: "POST",
188
+ headers: {
189
+ ...await resolveCloudAuthHeaders(),
190
+ accept: "application/json",
191
+ "content-type": "application/json"
192
+ },
193
+ body: JSON.stringify(body),
194
+ signal: AbortSignal.timeout(2e4)
195
+ }).catch((error) => {
196
+ throw new CheckoutError(
197
+ "checkout_network",
198
+ `Could not reach HeyGen to open a checkout: ${error instanceof Error ? error.message : String(error)}`
199
+ );
200
+ });
142
201
  const reply = await res.json().catch(() => null);
143
202
  const data = isRecord(reply) && isRecord(reply.data) ? reply.data : reply;
144
203
  const url = res.ok && isRecord(data) ? stripeCheckoutUrl(data.url) : void 0;
145
204
  if (url) return url;
146
205
  const why = isRecord(reply) && typeof reply.message === "string" ? reply.message.slice(0, 200) : `HTTP ${res.status}`;
147
- throw new Error(`HeyGen would not open a checkout: ${why}`);
206
+ throw new CheckoutError("checkout_rejected", `HeyGen would not open a checkout: ${why}`);
148
207
  }
149
208
 
150
209
  export {
151
210
  billingBaseUrl,
152
211
  readPlan,
212
+ checkoutSkill,
213
+ cliCheckoutLink,
153
214
  pageUrl,
154
215
  readOffer,
155
216
  addonBlocks,
156
217
  money,
218
+ CheckoutError,
157
219
  createCheckout
158
220
  };