hyperframes 0.8.206 → 0.8.207

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 (213) hide show
  1. package/bin/hyperframes.mjs +1 -0
  2. package/dist/{add-FFMNAJXJ.js → add-LXFWHBE3.js} +19 -18
  3. package/dist/{agentPromptGenerator-KYO5MKTW.js → agentPromptGenerator-D2E62ZP5.js} +1 -1
  4. package/dist/{animatedGifPrep-BIIIIVWL.js → animatedGifPrep-VBPJZKFT.js} +12 -12
  5. package/dist/api.js +30 -30
  6. package/dist/{appHistory-QVCSAOI4.js → appHistory-HIBH6XZW.js} +3 -1
  7. package/dist/{asset-IPUHGZSL.js → asset-JX4RW3GO.js} +2 -2
  8. package/dist/{assetCataloger-M5FWXLAJ.js → assetCataloger-JKKOPBCF.js} +14 -13
  9. package/dist/{audio-VYWWM4DB.js → audio-OXQ3L6DW.js} +22 -22
  10. package/dist/{auth-GZQZCUPL.js → auth-JAL7P7ZA.js} +1 -1
  11. package/dist/{autoUpdate-GJUDDLLO.js → autoUpdate-MRI2AICE.js} +2 -2
  12. package/dist/{backgroundChecks-BTMSW34Z.js → backgroundChecks-ORR46PBY.js} +3 -3
  13. package/dist/backgroundChecksWorker.js +3 -3
  14. package/dist/{batchRender-LI2BJRGO.js → batchRender-IFZYPGIW.js} +9 -9
  15. package/dist/{beats-H73CSYT4.js → beats-UDLOEW6U.js} +19 -19
  16. package/dist/{benchmark-XT3A5REC.js → benchmark-VTVDNKSO.js} +14 -14
  17. package/dist/{browser-VIOK66YK.js → browser-QJC4BL2Y.js} +6 -6
  18. package/dist/{bundleWithLocalizedFonts-PFRVWYOO.js → bundleWithLocalizedFonts-Z2JTBNDS.js} +2 -2
  19. package/dist/{capture-252WNPCD.js → capture-2P4JERSX.js} +14 -3
  20. package/dist/{capture-KKD5GMAF.js → capture-GLM2ACPM.js} +73 -33
  21. package/dist/{captureCompositionFrame-YLYVGNN2.js → captureCompositionFrame-A2A5MGQB.js} +18 -18
  22. package/dist/{captureFile-LYOJOUIE.js → captureFile-RPUEOZO6.js} +1 -1
  23. package/dist/{catalog-6IJGNN3T.js → catalog-5ZLVUQVJ.js} +25 -24
  24. package/dist/{catch-up-BFW7Z35W.js → catch-up-FRMVYJHZ.js} +5 -5
  25. package/dist/{check-XUWBZASR.js → check-WVY7SM7C.js} +47 -47
  26. package/dist/{checkAudio-2NRR3VHQ.js → checkAudio-PLEQY3SZ.js} +16 -16
  27. package/dist/{checkBrowser-JW74KWTF.js → checkBrowser-XSZUA2DQ.js} +40 -40
  28. package/dist/{chunk-2S263R6D.js → chunk-526VSRZ4.js} +9 -9
  29. package/dist/{chunk-SFYLZX5C.js → chunk-5KBMYSF2.js} +54 -15
  30. package/dist/{chunk-2ST4WAFY.js → chunk-5PCALX6G.js} +13 -1
  31. package/dist/{chunk-AJSU6KGS.js → chunk-5PYRU5DT.js} +13 -13
  32. package/dist/{chunk-AYH5ANVS.js → chunk-5YHQBCWH.js} +52 -3
  33. package/dist/{chunk-QVTCXN42.js → chunk-63DP5CB2.js} +29 -3
  34. package/dist/{chunk-FNNGQ3DB.js → chunk-6IYIS2U7.js} +2 -2
  35. package/dist/{chunk-VDVVQNTK.js → chunk-6KCFVLO6.js} +5 -5
  36. package/dist/{chunk-DEVZJ4AL.js → chunk-6KOHY5EP.js} +7 -7
  37. package/dist/{chunk-CIHW6VM2.js → chunk-6Z7XDUUJ.js} +1 -1
  38. package/dist/{chunk-PQYWYBEQ.js → chunk-7PJ3AJB2.js} +1 -1
  39. package/dist/{chunk-VW2LVMKB.js → chunk-7RWUY3BJ.js} +47 -55
  40. package/dist/{chunk-3CISA3OS.js → chunk-AF3L5JJX.js} +1 -1
  41. package/dist/chunk-BDJIQZN2.js +4830 -0
  42. package/dist/{chunk-4CY5RXXC.js → chunk-C53ZNJDZ.js} +4 -4
  43. package/dist/{chunk-FULMZCDW.js → chunk-CVZO6TFE.js} +10 -10
  44. package/dist/{chunk-6ZFDNEMY.js → chunk-DJQZ7DEH.js} +15 -15
  45. package/dist/{chunk-E2ZZSDDQ.js → chunk-DML6BD4K.js} +2 -2
  46. package/dist/{chunk-PNKLOMHQ.js → chunk-EG3B2VWK.js} +2 -2
  47. package/dist/{chunk-XOM3XTJ4.js → chunk-EGRIVMCQ.js} +1 -1
  48. package/dist/{chunk-3CS6QYL7.js → chunk-FEO7YW7V.js} +8 -8
  49. package/dist/{chunk-H4JO7VSI.js → chunk-FVAI7AHF.js} +12 -12
  50. package/dist/{chunk-PLGGKTCB.js → chunk-GXUONASF.js} +13 -20
  51. package/dist/{chunk-CZYS6UKP.js → chunk-H3LQ5X6Q.js} +19 -19
  52. package/dist/{chunk-AXEEZKIL.js → chunk-HA3V4XAF.js} +6 -6
  53. package/dist/{chunk-G6W55MTX.js → chunk-HM7SUIQD.js} +38 -9
  54. package/dist/{chunk-VEA7Z4PZ.js → chunk-HVOTYAS4.js} +15 -7
  55. package/dist/{chunk-3R6SXPHD.js → chunk-I2TDHVFV.js} +2 -2
  56. package/dist/{chunk-36QE3P6B.js → chunk-I3TYUQLB.js} +1 -1
  57. package/dist/{chunk-63DGZRZP.js → chunk-IBZHSU2J.js} +1 -1
  58. package/dist/{chunk-AEC4T4IF.js → chunk-ID766OZB.js} +12 -12
  59. package/dist/{chunk-5QKJPCQ4.js → chunk-IK4JY2LI.js} +2 -2
  60. package/dist/{chunk-UMUVGNOH.js → chunk-IW5P4KK7.js} +3 -3
  61. package/dist/{chunk-AAX2A7LQ.js → chunk-IYZT62UR.js} +1 -1
  62. package/dist/chunk-JKE24AG7.js +62 -0
  63. package/dist/chunk-JLCAHJUO.js +91 -0
  64. package/dist/{chunk-N7ZMDVAK.js → chunk-JLGVBK5M.js} +1 -1
  65. package/dist/{chunk-2RT7MXFL.js → chunk-JQ32262N.js} +1 -1
  66. package/dist/{chunk-RW4DMP2Y.js → chunk-KDHHPJOG.js} +4 -4
  67. package/dist/{chunk-DZG565OO.js → chunk-LCCYYTEK.js} +1 -1
  68. package/dist/{chunk-RDDVQSNQ.js → chunk-LK6KPVX2.js} +167 -55
  69. package/dist/{chunk-42KN6I6A.js → chunk-LPI7HX4G.js} +2 -2
  70. package/dist/{chunk-WHD5IAHI.js → chunk-LXP6XWJL.js} +2 -2
  71. package/dist/{chunk-T6SD37JZ.js → chunk-MAUGXKSI.js} +4 -4
  72. package/dist/{chunk-ZTEKVSZ6.js → chunk-MMJAHBH2.js} +1 -1
  73. package/dist/{chunk-TSJVPPXT.js → chunk-MSHL6CF2.js} +1 -1
  74. package/dist/{chunk-OFRRUYBA.js → chunk-NHA4NRBE.js} +135 -24
  75. package/dist/{chunk-OZUAVHFE.js → chunk-NHL5CMO2.js} +3 -3
  76. package/dist/{chunk-7SXL476O.js → chunk-NJNC2DQV.js} +27 -26
  77. package/dist/{chunk-FMWACL3L.js → chunk-NSC5A4IR.js} +1 -1
  78. package/dist/{chunk-MRF4AMKD.js → chunk-NWGXTUYS.js} +32 -10
  79. package/dist/{chunk-X5HHHFTX.js → chunk-PL36HK3U.js} +3 -3
  80. package/dist/{chunk-BBUK6A7Q.js → chunk-PUIG6DHT.js} +5 -5
  81. package/dist/{chunk-CPSGXAYD.js → chunk-QE4WRS3N.js} +3 -3
  82. package/dist/{chunk-FJW757TF.js → chunk-QTWXVOZI.js} +1 -1
  83. package/dist/{chunk-WYB3VKLK.js → chunk-QZ2JQ6O4.js} +6 -6
  84. package/dist/{chunk-MFHYBSJC.js → chunk-RPZNQV6D.js} +3 -3
  85. package/dist/{chunk-2BGOB2QK.js → chunk-SE2MXV2N.js} +136 -25
  86. package/dist/{chunk-GAV56VJL.js → chunk-SXOD5J7T.js} +2 -2
  87. package/dist/{chunk-VHVSBOZH.js → chunk-T4JGFCXU.js} +3 -3
  88. package/dist/{chunk-HJAJ6W4V.js → chunk-TSTONNOD.js} +2 -2
  89. package/dist/chunk-TSYRN646.js +84 -0
  90. package/dist/{chunk-CNVHMLPI.js → chunk-U32PA6DI.js} +1 -1
  91. package/dist/{chunk-ZNAOBFU5.js → chunk-UAT2UMTP.js} +1 -1
  92. package/dist/{chunk-QL4ZYSIB.js → chunk-UKM3JYNB.js} +5 -71
  93. package/dist/{chunk-Z3XXLTVB.js → chunk-UUOIH4RW.js} +3 -3
  94. package/dist/{chunk-CMDVJP4T.js → chunk-UYPWH7PH.js} +10 -10
  95. package/dist/{chunk-3B2DBUQX.js → chunk-VAVDAOUA.js} +1 -1
  96. package/dist/{chunk-G6QDFWDN.js → chunk-VBPNCOD7.js} +2 -2
  97. package/dist/{chunk-NNLQTG3M.js → chunk-VH4PNYOS.js} +1 -1
  98. package/dist/{chunk-IXXVS2Z4.js → chunk-VQB7G5BM.js} +1 -1
  99. package/dist/{chunk-FLREUEHW.js → chunk-W4DMQZL5.js} +1 -1
  100. package/dist/{chunk-RXATE6FZ.js → chunk-WC4MTXGN.js} +22 -0
  101. package/dist/{chunk-F2ASNL2K.js → chunk-WL263XM2.js} +1 -1
  102. package/dist/{chunk-HEP5XMXV.js → chunk-XAGBSYIQ.js} +9 -2
  103. package/dist/{chunk-4DGLKB2H.js → chunk-XKW4Z7BU.js} +1 -1
  104. package/dist/chunk-XMRA7CQG.js +22 -0
  105. package/dist/{chunk-NVLPW3DG.js → chunk-XULJBZ7K.js} +2 -2
  106. package/dist/{chunk-X7RXXBYM.js → chunk-YJK6HOL5.js} +2 -2
  107. package/dist/{chunk-2MLMO25E.js → chunk-ZCJ5EGLU.js} +26 -6
  108. package/dist/{chunk-L5MFWGGU.js → chunk-ZYGIDXAK.js} +528 -327
  109. package/dist/{clean-N5VSKUVS.js → clean-TL3IPJDN.js} +27 -27
  110. package/dist/cli.js +55 -55
  111. package/dist/{cloud-74NF5FXC.js → cloud-EYMRPJNY.js} +4 -4
  112. package/dist/{cloudrun-7UOH335V.js → cloudrun-TOJ36NLX.js} +11 -11
  113. package/dist/commands/layout-audit.browser.js +3 -15
  114. package/dist/{compare-AY2LS2TZ.js → compare-MP5EOW4D.js} +41 -41
  115. package/dist/{compiler-4MHMC777.js → compiler-NOPVLJ2S.js} +8 -8
  116. package/dist/{component-CFWQOAZI.js → component-ASACDCZK.js} +3 -3
  117. package/dist/{compositions-DXLJTDSP.js → compositions-WKNZJY34.js} +16 -16
  118. package/dist/{contactSheet-5APX35L3.js → contactSheet-YOBPATEM.js} +2 -2
  119. package/dist/{delete-GB4MS7LM.js → delete-DQTFHP3G.js} +2 -2
  120. package/dist/{deploy-NXD3Q3KD.js → deploy-HHCFOUFM.js} +1 -1
  121. package/dist/{deterministicFonts-775YXAQ2.js → deterministicFonts-LKAGUNE5.js} +3 -3
  122. package/dist/{dist-ZY6IFESG.js → dist-L4Z4ZEYW.js} +6 -3
  123. package/dist/{dist-3ZJMZU75.js → dist-NQEYA4ZX.js} +36 -36
  124. package/dist/docs/rendering.md +3 -0
  125. package/dist/{doctor-CVY2XXKS.js → doctor-JDM65CP7.js} +19 -19
  126. package/dist/{events-T3CLIYRG.js → events-MBRNA3UF.js} +3 -3
  127. package/dist/{events-RYQYEWBV.js → events-RKRHRLJD.js} +2 -2
  128. package/dist/{feedback-K5ZMMLTA.js → feedback-LZWIWV5J.js} +17 -17
  129. package/dist/{ffmpeg-UNDAJ2IC.js → ffmpeg-4PZKSIGE.js} +14 -14
  130. package/dist/{figma-MYYCX635.js → figma-QFNYUT3F.js} +3 -3
  131. package/dist/fontLocalizeCli.js +19 -18
  132. package/dist/{get-JVIDYMVP.js → get-2B5ENJOH.js} +2 -2
  133. package/dist/{gpuPolicy-KEX7GDRJ.js → gpuPolicy-E5FB2GFR.js} +12 -12
  134. package/dist/{grade-compare-QEF6VASJ.js → grade-compare-4GUAPJHE.js} +39 -39
  135. package/dist/{gsapParserAcorn-LZJKCFQI.js → gsapParserAcorn-5YD4N6HQ.js} +2 -2
  136. package/dist/hangReport.js +47 -0
  137. package/dist/{heifImagePrep-A3ZPVQGU.js → heifImagePrep-C2RYIEER.js} +13 -13
  138. package/dist/{help-XPPSLIRY.js → help-XGDAXV67.js} +1 -1
  139. package/dist/{history-OFOPRD27.js → history-WNFF6HGU.js} +107 -59
  140. package/dist/hyperframe.manifest.json +1 -1
  141. package/dist/hyperframe.runtime.iife.js +74 -69
  142. package/dist/hyperframes-player.global.js +3 -3
  143. package/dist/{info-7RF6FQX5.js → info-BR2LKGJD.js} +16 -16
  144. package/dist/{init-NTIXWA3D.js → init-P6UWPUY3.js} +58 -57
  145. package/dist/{inspect-MYMCV5E7.js → inspect-MSRPF7ZO.js} +38 -38
  146. package/dist/{installer-PYJIJ3PJ.js → installer-MPUQS3ZX.js} +10 -10
  147. package/dist/{keyframes-UJ52PYE4.js → keyframes-J6K66QTO.js} +11 -11
  148. package/dist/{lambda-SBNUYEQE.js → lambda-LJ2OSWFJ.js} +32 -13
  149. package/dist/{layout-IOMCOABO.js → layout-CDY65XGA.js} +38 -38
  150. package/dist/{lint-AQWHHMPS.js → lint-CAUNBGPX.js} +12 -9
  151. package/dist/{lintProject-5A4SCW3S.js → lintProject-ZTSX3AWT.js} +6 -3
  152. package/dist/{list-WKAJ5SP3.js → list-33BYQNRZ.js} +2 -2
  153. package/dist/{login-3ZDK5JOA.js → login-5QMRKOHK.js} +4 -4
  154. package/dist/{manager-QYFYWZOK.js → manager-3JOHHPVR.js} +16 -16
  155. package/dist/{manager-F2YREC5X.js → manager-RMYSZ3KI.js} +7 -3
  156. package/dist/{media-treatment-4OLWVHUY.js → media-treatment-4WP22CFN.js} +22 -22
  157. package/dist/{models-MR55FAUX.js → models-HPWCHAZX.js} +27 -27
  158. package/dist/{motionShot-DC47S7BT.js → motionShot-I7GDIROQ.js} +22 -22
  159. package/dist/{normalize-audio-M2TK4NG5.js → normalize-audio-VTMXPSC7.js} +14 -14
  160. package/dist/{open-YXWBWTKL.js → open-SAO7OQTT.js} +19 -19
  161. package/dist/{parakeetRunner-J6QR3GTG.js → parakeetRunner-ZYPBIA73.js} +24 -24
  162. package/dist/{pipeline-7MJ5H4SW.js → pipeline-VNBMR6QU.js} +15 -15
  163. package/dist/{play-S562STR4.js → play-7VI6A7KN.js} +28 -28
  164. package/dist/{preflight-QWGXMISC.js → preflight-VWV7L45J.js} +16 -16
  165. package/dist/{present-PGOHZT3L.js → present-CSJGYOFF.js} +23 -23
  166. package/dist/{preview-JU75H4QN.js → preview-B246ZTVO.js} +48 -36
  167. package/dist/{producer-H66OMZLW.js → producer-WJLFDVQJ.js} +1 -1
  168. package/dist/{projectConfig-COSP24YT.js → projectConfig-OMR46ZWQ.js} +14 -13
  169. package/dist/{publication-J3XYHPGB.js → publication-AA7NNYET.js} +8 -8
  170. package/dist/{publish-7GCCEPJZ.js → publish-TJ4QVVSP.js} +17 -16
  171. package/dist/{remove-background-WRCGIU32.js → remove-background-LQ2V7W7N.js} +19 -19
  172. package/dist/{render-5J5PP3UK.js → render-AWEEPG3F.js} +34 -32
  173. package/dist/{render-QS3YJCBR.js → render-E5QJG74D.js} +14 -11
  174. package/dist/{render-VUVTK2JM.js → render-JLTNZ36U.js} +80 -48
  175. package/dist/{render-batch-Q2LQ3D4P.js → render-batch-U4T4VSCM.js} +14 -11
  176. package/dist/renderSetupWorker.js +10 -7
  177. package/dist/{resolver-QCBWPRSC.js → resolver-GXCTUKPV.js} +10 -10
  178. package/dist/{screenshotCapture-I5EDCITF.js → screenshotCapture-X6OKIXCB.js} +1 -1
  179. package/dist/{sherpa-IZ22SC5W.js → sherpa-4VZWVHWZ.js} +23 -23
  180. package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -0
  181. package/dist/skills/hyperframes-cli/references/lambda.md +3 -0
  182. package/dist/skills/hyperframes-cli/references/preview-render.md +3 -0
  183. package/dist/{skills-3RFMPMJA.js → skills-WUKR7SUE.js} +8 -8
  184. package/dist/{skillsUpdateCheck-DWBFVUBT.js → skillsUpdateCheck-YXRBY3JC.js} +3 -3
  185. package/dist/{snapshot-5PHA43DK.js → snapshot-Q7S2FTNG.js} +123 -70
  186. package/dist/{src-36BQVJL3.js → src-CLAALR5W.js} +20 -19
  187. package/dist/{src-4YJKYMNF.js → src-ZOXUSGAP.js} +19 -11
  188. package/dist/{staticProjectServer-3XFB76XS.js → staticProjectServer-DQ7PIDPA.js} +25 -25
  189. package/dist/studio/assets/hyperframes-player-Cm5aBiKq.js +478 -0
  190. package/dist/studio/assets/{index-CwreIGoq.js → index-BF9YeBnC.js} +131 -131
  191. package/dist/studio/assets/{index-BNuxGFZK.js → index-BrqAmMRt.js} +1 -1
  192. package/dist/studio/index.html +1 -1
  193. package/dist/{studio-api-WL6EZ4KE.js → studio-api-NUE227JM.js} +17 -17
  194. package/dist/{studioServer-ZS5RA6U3.js → studioServer-HVOKP4VI.js} +71 -69
  195. package/dist/{synthesize-QCRP3NI7.js → synthesize-QZHRXGRY.js} +26 -4
  196. package/dist/{telemetry-W3LRO3TB.js → telemetry-2Y5JXLDB.js} +3 -3
  197. package/dist/{timeline-BDO5DYWP.js → timeline-WOQGXFRV.js} +27 -27
  198. package/dist/{tokens-47CEMYFV.js → tokens-T3OHTWUC.js} +2 -2
  199. package/dist/{transcribe-XF3NL6JI.js → transcribe-4U74P5TG.js} +21 -21
  200. package/dist/{transcribe-GEPVJO3A.js → transcribe-JZ3BO546.js} +31 -31
  201. package/dist/{tts-QM4RFE7U.js → tts-AY4JO5NQ.js} +2 -2
  202. package/dist/{updateCheck-BON6ZFYP.js → updateCheck-6EUAGAM4.js} +2 -2
  203. package/dist/{upgrade-KIF5Z4J3.js → upgrade-55K6F4MP.js} +2 -2
  204. package/dist/upstreamProxy-W5FWAT5Z.js +17 -0
  205. package/dist/{urlDownloader-UDRHVUWR.js → urlDownloader-47JMOLNN.js} +11 -11
  206. package/dist/{validate-2OPSQT3W.js → validate-QBJ3SBS4.js} +31 -31
  207. package/dist/{video-ECWXMY4F.js → video-3ZAUNAR3.js} +16 -14
  208. package/dist/warmCheck.js +47 -47
  209. package/package.json +2 -1
  210. package/dist/chunk-4YYJOFKS.js +0 -28
  211. package/dist/chunk-KLIPVNCO.js +0 -4824
  212. package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +0 -478
  213. package/dist/{chunk-X7A7C4JS.js → chunk-EHFZEKQM.js} +3 -3
@@ -5,7 +5,7 @@ var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
 
8
- // ../studio-server/dist/chunk-2GPN2OSU.js
8
+ // ../studio-server/dist/chunk-ZR3T4TKU.js
9
9
  var CRF_MAX_BY_FORMAT = { mp4: 51, webm: 63 };
10
10
  var VIDEO_BITRATE = /^\d+(\.\d+)?[kKmMgG]?$/;
11
11
  var VIDEO_FRAME_FORMATS = ["auto", "jpg", "png"];
@@ -36,10 +36,46 @@ function parseRateControl(body, format) {
36
36
  if (isSet(body.videoBitrate)) return parseVideoBitrate(body.videoBitrate);
37
37
  return { ok: true, options: {} };
38
38
  }
39
+ function parseKeyframeInterval(value) {
40
+ if (typeof value !== "number" || !(value > 0)) {
41
+ return { ok: false, error: "keyframeIntervalSeconds must be a positive number of seconds" };
42
+ }
43
+ return { ok: true, options: { keyframeIntervalSeconds: value } };
44
+ }
45
+ function parseBitrateField(name, value) {
46
+ if (typeof value !== "string" || !VIDEO_BITRATE.test(value)) {
47
+ return { ok: false, error: `${name} must look like "8M", "5000k" or "8000000"` };
48
+ }
49
+ return { ok: true, options: { [name]: value } };
50
+ }
51
+ var DELIVERY_FIELDS = [
52
+ ["keyframeIntervalSeconds", parseKeyframeInterval],
53
+ ["maxBitrate", (value) => parseBitrateField("maxBitrate", value)],
54
+ ["bufferSize", (value) => parseBitrateField("bufferSize", value)]
55
+ ];
56
+ function parseDelivery(body, format) {
57
+ const present = DELIVERY_FIELDS.filter(([name]) => isSet(body[name]));
58
+ if (present.length === 0) return { ok: true, options: {} };
59
+ if (format !== "mp4") {
60
+ return { ok: false, error: "keyframeIntervalSeconds and maxBitrate apply to mp4 renders" };
61
+ }
62
+ if (isSet(body.bufferSize) && !isSet(body.maxBitrate)) {
63
+ return { ok: false, error: "bufferSize requires maxBitrate" };
64
+ }
65
+ const options = {};
66
+ for (const [name, parse] of present) {
67
+ const parsed = parse(body[name]);
68
+ if (!parsed.ok) return parsed;
69
+ Object.assign(options, parsed.options);
70
+ }
71
+ return { ok: true, options };
72
+ }
39
73
  function parseEncoderOptions(body, format) {
40
74
  const rate = parseRateControl(body, format);
41
75
  if (!rate.ok) return rate;
42
- const options = { ...rate.options };
76
+ const delivery = parseDelivery(body, format);
77
+ if (!delivery.ok) return delivery;
78
+ const options = { ...rate.options, ...delivery.options };
43
79
  if (isSet(body.gifLoop)) {
44
80
  if (typeof body.gifLoop !== "number" || !Number.isInteger(body.gifLoop) || body.gifLoop < 0 || body.gifLoop > 65535) {
45
81
  return { ok: false, error: "gifLoop must be an integer from 0 to 65535" };
@@ -63,7 +99,20 @@ function parseEncoderOptions(body, format) {
63
99
  }
64
100
  return { ok: true, options };
65
101
  }
102
+ function encoderJobOptions(opts) {
103
+ const { crf, videoBitrate, keyframeIntervalSeconds, maxBitrate, bufferSize } = opts;
104
+ return {
105
+ ...crf !== void 0 ? { crf } : {},
106
+ ...videoBitrate ? { videoBitrate } : {},
107
+ ...keyframeIntervalSeconds !== void 0 ? { keyframeIntervalSeconds } : {},
108
+ ...maxBitrate ? { maxBitrate } : {},
109
+ ...bufferSize ? { bufferSize } : {},
110
+ ...opts.videoFrameFormat ? { videoFrameFormat: opts.videoFrameFormat } : {},
111
+ ...opts.hdrMode ? { hdrMode: opts.hdrMode } : {}
112
+ };
113
+ }
66
114
 
67
115
  export {
68
- parseEncoderOptions
116
+ parseEncoderOptions,
117
+ encoderJobOptions
69
118
  };
@@ -11,14 +11,14 @@ import {
11
11
  distroLabel,
12
12
  getFFmpegInstallHint,
13
13
  parseLddMissingLibs
14
- } from "./chunk-5QKJPCQ4.js";
14
+ } from "./chunk-IK4JY2LI.js";
15
15
  import {
16
16
  ensureBrowser,
17
17
  findBrowser
18
- } from "./chunk-G6W55MTX.js";
18
+ } from "./chunk-HM7SUIQD.js";
19
19
  import {
20
20
  runCancellableProcess
21
- } from "./chunk-X7A7C4JS.js";
21
+ } from "./chunk-EHFZEKQM.js";
22
22
  import {
23
23
  getFreeDiskMb
24
24
  } from "./chunk-QSFWGZG6.js";
@@ -209,9 +209,35 @@ function chromeLaunchFailureDetails(error) {
209
209
  typeof code === "string" ? code : ""
210
210
  ].filter(Boolean).join(", ");
211
211
  }
212
+ async function windowsChromeVersionMajor(executablePath, signal) {
213
+ try {
214
+ const { stdout } = await runCancellableProcess(
215
+ "powershell.exe",
216
+ [
217
+ "-NoProfile",
218
+ "-NonInteractive",
219
+ "-Command",
220
+ "(Get-Item -LiteralPath $env:HF_CHROME).VersionInfo.ProductVersion"
221
+ ],
222
+ {
223
+ signal,
224
+ timeoutMs: 1e4,
225
+ maxBufferBytes: 4 * 1024,
226
+ env: { ...process.env, HF_CHROME: executablePath }
227
+ }
228
+ );
229
+ return extractMajorVersion(stdout);
230
+ } catch {
231
+ if (signal?.aborted) signal.throwIfAborted();
232
+ return void 0;
233
+ }
234
+ }
212
235
  async function chromeLaunchOutcome(executablePath, found, signal) {
213
236
  const libraries = await chromeSharedLibOutcome(executablePath, found, signal);
214
237
  if (!libraries.ok) return libraries;
238
+ if (process.platform === "win32") {
239
+ return { ...found, versionMajor: await windowsChromeVersionMajor(executablePath, signal) };
240
+ }
215
241
  try {
216
242
  const { stdout } = await runCancellableProcess(executablePath, ["--version"], {
217
243
  signal,
@@ -6,12 +6,12 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  setHostHandlesSigint
9
- } from "./chunk-RDDVQSNQ.js";
9
+ } from "./chunk-LK6KPVX2.js";
10
10
  import {
11
11
  processAncestorSnapshot,
12
12
  processIdentity,
13
13
  processParentPid
14
- } from "./chunk-4CY5RXXC.js";
14
+ } from "./chunk-C53ZNJDZ.js";
15
15
  import {
16
16
  processIsAlive
17
17
  } from "./chunk-KGPLIH7B.js";
@@ -11,10 +11,7 @@ import {
11
11
  MAX_AUDIO_GAIN_DB,
12
12
  formatAudioGain,
13
13
  isAudibleVideoElement
14
- } from "./chunk-KLIPVNCO.js";
15
- import {
16
- decodeAuthoredAttribute
17
- } from "./chunk-OFRRUYBA.js";
14
+ } from "./chunk-BDJIQZN2.js";
18
15
  import {
19
16
  findFfBinary
20
17
  } from "./chunk-VAS6HQX3.js";
@@ -22,7 +19,10 @@ import {
22
19
  decodeWellFormedEscapes,
23
20
  decodedUrlPath,
24
21
  readMediaOffsetSeconds
25
- } from "./chunk-2BGOB2QK.js";
22
+ } from "./chunk-SE2MXV2N.js";
23
+ import {
24
+ decodeAuthoredAttribute
25
+ } from "./chunk-NHA4NRBE.js";
26
26
 
27
27
  // ../studio-server/dist/chunk-QZWVJKLI.js
28
28
  import { execFile } from "child_process";
@@ -7,29 +7,29 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  RegistryCompatibilityError,
9
9
  gateRegistryItemsCompatibility
10
- } from "./chunk-CIHW6VM2.js";
10
+ } from "./chunk-6Z7XDUUJ.js";
11
11
  import {
12
12
  DEFAULT_PROJECT_CONFIG,
13
13
  createProjectConfig,
14
14
  loadProjectConfig,
15
15
  projectConfigPath,
16
16
  recordProjectRegistryItems
17
- } from "./chunk-WHD5IAHI.js";
17
+ } from "./chunk-LXP6XWJL.js";
18
18
  import {
19
19
  resolveItemWithDependencies,
20
20
  resolveItemsByTag
21
- } from "./chunk-3B2DBUQX.js";
21
+ } from "./chunk-VAVDAOUA.js";
22
22
  import {
23
23
  InvalidVariableValuesError,
24
24
  prepareItem,
25
25
  publishItem
26
- } from "./chunk-Z3XXLTVB.js";
26
+ } from "./chunk-UUOIH4RW.js";
27
27
  import {
28
28
  DEFAULT_REGISTRY_URL
29
- } from "./chunk-4DGLKB2H.js";
29
+ } from "./chunk-XKW4Z7BU.js";
30
30
  import {
31
31
  trackRegistryItemAdded
32
- } from "./chunk-FMWACL3L.js";
32
+ } from "./chunk-NSC5A4IR.js";
33
33
  import {
34
34
  defineCommand
35
35
  } from "./chunk-S3S4TGEH.js";
@@ -41,7 +41,7 @@ import {
41
41
  } from "./chunk-ZTZA4UWZ.js";
42
42
  import {
43
43
  ITEM_TYPE_DIRS
44
- } from "./chunk-VW2LVMKB.js";
44
+ } from "./chunk-7RWUY3BJ.js";
45
45
  import {
46
46
  isProjectRootMissing,
47
47
  realpath
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  VERSION
9
- } from "./chunk-E2ZZSDDQ.js";
9
+ } from "./chunk-DML6BD4K.js";
10
10
 
11
11
  // src/registry/compatibility.ts
12
12
  import { compareVersions } from "compare-versions";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  DISTRIBUTED_FPS,
12
12
  isDistributedFps
13
- } from "./chunk-VW2LVMKB.js";
13
+ } from "./chunk-7RWUY3BJ.js";
14
14
  import {
15
15
  parseHTML
16
16
  } from "./chunk-GWTIFRF5.js";
@@ -9,15 +9,7 @@ import {
9
9
  parseStrictFiniteTimingNumber,
10
10
  resolveNaturalMediaTimelineDuration,
11
11
  resolveTimedImageDurationSeconds
12
- } from "./chunk-KLIPVNCO.js";
13
- import {
14
- CANVAS_DIMENSIONS,
15
- isCompositionElement,
16
- isMediaElement,
17
- isTextElement,
18
- keyframesToGsapAnimations,
19
- serializeGsapAnimations
20
- } from "./chunk-OFRRUYBA.js";
12
+ } from "./chunk-BDJIQZN2.js";
21
13
  import {
22
14
  COMPOSITION_ATTRIBUTES,
23
15
  MEDIA_START_BASIS_ATTR,
@@ -29,7 +21,15 @@ import {
29
21
  parseStartExpression,
30
22
  resolveMediaStartSeconds,
31
23
  sameInstant
32
- } from "./chunk-2BGOB2QK.js";
24
+ } from "./chunk-SE2MXV2N.js";
25
+ import {
26
+ CANVAS_DIMENSIONS,
27
+ isCompositionElement,
28
+ isMediaElement,
29
+ isTextElement,
30
+ keyframesToGsapAnimations,
31
+ serializeGsapAnimations
32
+ } from "./chunk-NHA4NRBE.js";
33
33
  import {
34
34
  parseHTML
35
35
  } from "./chunk-GWTIFRF5.js";
@@ -59,7 +59,7 @@ function resolveAuthoredTimingWindow(values) {
59
59
  return { start, duration: end == null ? null : end - start, end };
60
60
  }
61
61
 
62
- // ../core/dist/core.types.js
62
+ // ../core/dist/fps.js
63
63
  function toFps(input) {
64
64
  if (typeof input === "number") {
65
65
  return { num: input, den: 1 };
@@ -72,53 +72,45 @@ function fpsToNumber(fps) {
72
72
  function fpsToFfmpegArg(fps) {
73
73
  return fps.den === 1 ? String(fps.num) : `${fps.num}/${fps.den}`;
74
74
  }
75
+ var fail = (reason) => ({ ok: false, reason });
76
+ function rangedFps(num, den) {
77
+ if (num <= 0)
78
+ return fail("non-positive");
79
+ const decimal = num / den;
80
+ if (decimal < 1 || decimal > 240)
81
+ return fail("out-of-range");
82
+ return { ok: true, value: { num, den } };
83
+ }
84
+ function numericFps(input) {
85
+ if (!Number.isFinite(input))
86
+ return fail("not-a-number");
87
+ if (!Number.isInteger(input))
88
+ return fail("ambiguous-decimal");
89
+ return rangedFps(input, 1);
90
+ }
91
+ function fractionFps(raw) {
92
+ const parts = raw.split("/");
93
+ if (parts.length !== 2)
94
+ return fail("invalid-fraction");
95
+ const num = Number(parts[0]);
96
+ const den = Number(parts[1]);
97
+ if (!Number.isFinite(num) || !Number.isFinite(den))
98
+ return fail("not-a-number");
99
+ if (!Number.isInteger(num) || !Number.isInteger(den) || den <= 0)
100
+ return fail("invalid-fraction");
101
+ return rangedFps(num, den);
102
+ }
75
103
  function parseFps(input) {
76
- if (typeof input === "number") {
77
- if (!Number.isFinite(input))
78
- return { ok: false, reason: "not-a-number" };
79
- if (!Number.isInteger(input))
80
- return { ok: false, reason: "ambiguous-decimal" };
81
- if (input <= 0)
82
- return { ok: false, reason: "non-positive" };
83
- if (input > 240)
84
- return { ok: false, reason: "out-of-range" };
85
- return { ok: true, value: { num: input, den: 1 } };
86
- }
104
+ if (typeof input === "number")
105
+ return numericFps(input);
87
106
  const raw = input.trim();
88
107
  if (raw === "")
89
- return { ok: false, reason: "empty" };
90
- if (raw.includes("/")) {
91
- const parts = raw.split("/");
92
- if (parts.length !== 2)
93
- return { ok: false, reason: "invalid-fraction" };
94
- const num = Number(parts[0]);
95
- const den = Number(parts[1]);
96
- if (!Number.isFinite(num) || !Number.isFinite(den)) {
97
- return { ok: false, reason: "not-a-number" };
98
- }
99
- if (!Number.isInteger(num) || !Number.isInteger(den)) {
100
- return { ok: false, reason: "invalid-fraction" };
101
- }
102
- if (den <= 0)
103
- return { ok: false, reason: "invalid-fraction" };
104
- if (num <= 0)
105
- return { ok: false, reason: "non-positive" };
106
- const decimal = num / den;
107
- if (decimal < 1 || decimal > 240)
108
- return { ok: false, reason: "out-of-range" };
109
- return { ok: true, value: { num, den } };
110
- }
111
- if (!/^-?\d+$/.test(raw)) {
112
- if (/^-?\d*\.\d+$/.test(raw))
113
- return { ok: false, reason: "ambiguous-decimal" };
114
- return { ok: false, reason: "not-a-number" };
115
- }
116
- const n = Number(raw);
117
- if (n <= 0)
118
- return { ok: false, reason: "non-positive" };
119
- if (n > 240)
120
- return { ok: false, reason: "out-of-range" };
121
- return { ok: true, value: { num: n, den: 1 } };
108
+ return fail("empty");
109
+ if (raw.includes("/"))
110
+ return fractionFps(raw);
111
+ if (/^-?\d+$/.test(raw))
112
+ return rangedFps(Number(raw), 1);
113
+ return fail(/^-?\d*\.\d+$/.test(raw) ? "ambiguous-decimal" : "not-a-number");
122
114
  }
123
115
  function parseFpsWithDefault(input) {
124
116
  if (input === void 0 || input === "")
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  isPathInside
9
- } from "./chunk-2BGOB2QK.js";
9
+ } from "./chunk-SE2MXV2N.js";
10
10
  import {
11
11
  parseHTML
12
12
  } from "./chunk-GWTIFRF5.js";