hyperframes 0.8.199 → 0.8.201

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 (192) hide show
  1. package/dist/{add-7LA5CGDM.js → add-33XNCMY4.js} +15 -18
  2. package/dist/{animatedGifPrep-NB2MZTMQ.js → animatedGifPrep-MI7Z4OYQ.js} +9 -12
  3. package/dist/api.js +17 -20
  4. package/dist/{asset-4BIOI6GN.js → asset-RMRQN24O.js} +2 -2
  5. package/dist/{assetCataloger-TX5KL5VV.js → assetCataloger-KWTQNFUU.js} +9 -12
  6. package/dist/{audio-ZGMIIDNU.js → audio-SQDZZS6X.js} +34 -32
  7. package/dist/{auth-OQ5PWEUG.js → auth-PNC6K5ZD.js} +2 -2
  8. package/dist/{autoUpdate-QREPD6I4.js → autoUpdate-MBZFLUF2.js} +2 -2
  9. package/dist/{backgroundChecks-5CJPJX2O.js → backgroundChecks-ZMSPA6TK.js} +3 -3
  10. package/dist/backgroundChecksWorker.js +3 -3
  11. package/dist/{batchRender-BW2ZK4MA.js → batchRender-2MMOZRMW.js} +5 -7
  12. package/dist/{beats-I5XARMDB.js → beats-GDLNPR4A.js} +33 -24
  13. package/dist/{benchmark-S2WWY4U7.js → benchmark-AUKB3XDF.js} +12 -14
  14. package/dist/{browser-PAXVQYQZ.js → browser-C3AU5TST.js} +6 -6
  15. package/dist/{bundleWithLocalizedFonts-3ED26VCR.js → bundleWithLocalizedFonts-G3UT65XI.js} +2 -2
  16. package/dist/{capture-23574YLP.js → capture-EKNPCFPF.js} +16 -18
  17. package/dist/{capture-OVITDMKK.js → capture-XGBPNGC5.js} +2 -2
  18. package/dist/{captureCompositionFrame-KAUUHCOL.js → captureCompositionFrame-4HHLPTDH.js} +14 -17
  19. package/dist/{catalog-CM3VXSQE.js → catalog-HLDNEJX3.js} +15 -18
  20. package/dist/{catch-up-HMFREOC2.js → catch-up-LRFV4LJO.js} +6 -6
  21. package/dist/{check-CYJZ6CGT.js → check-XWHWGNYE.js} +40 -43
  22. package/dist/{checkBrowser-GZJ3W2OP.js → checkBrowser-KSOBXPJ3.js} +35 -38
  23. package/dist/{chunk-MMQ52NIZ.js → chunk-2BGOB2QK.js} +500 -17
  24. package/dist/{chunk-D5CZCYYT.js → chunk-2FA53V5S.js} +2 -2
  25. package/dist/{chunk-FV5GKRAO.js → chunk-3J5KO4EJ.js} +8 -10
  26. package/dist/{chunk-UMBCYIFE.js → chunk-47NZWTJL.js} +2 -2
  27. package/dist/{chunk-JFIEV2J4.js → chunk-53E45AKI.js} +60 -34
  28. package/dist/{chunk-BFYDVTD3.js → chunk-6UFEOVR5.js} +2 -2
  29. package/dist/{chunk-M6IMQBK6.js → chunk-6XGO7ZKS.js} +1 -1
  30. package/dist/{chunk-UVQLSMAR.js → chunk-74UH2KGI.js} +30 -6
  31. package/dist/{chunk-TVR744AS.js → chunk-7EJ7OZGC.js} +16 -3
  32. package/dist/{chunk-7QB46WTF.js → chunk-7WEGIXI3.js} +2 -2
  33. package/dist/{chunk-TTWFTEUG.js → chunk-A7YO6YSD.js} +6 -6
  34. package/dist/{chunk-HK45GJMI.js → chunk-AK2MOAJY.js} +192 -65
  35. package/dist/{chunk-TF7LCULS.js → chunk-B67P2WP3.js} +2 -2
  36. package/dist/chunk-B7CYKBXQ.js +36 -0
  37. package/dist/{chunk-DMRDGGNM.js → chunk-CD5ZU6PN.js} +9 -7
  38. package/dist/{chunk-IC6BO4GU.js → chunk-CV32PRH3.js} +65 -21
  39. package/dist/{chunk-UBSAHYWA.js → chunk-DS3XITZ5.js} +2 -2
  40. package/dist/{chunk-ILFDFMYJ.js → chunk-DWULQYOQ.js} +3 -3
  41. package/dist/{chunk-VHBBV5DH.js → chunk-ERUINDRT.js} +62 -25
  42. package/dist/{chunk-FMTJ4I6I.js → chunk-FDWN4XAD.js} +1 -1
  43. package/dist/{chunk-K5O6JTJQ.js → chunk-GC6N2LH5.js} +10 -12
  44. package/dist/{chunk-5CTORVUM.js → chunk-GHROWWUN.js} +32 -1
  45. package/dist/{chunk-T4IJMVCB.js → chunk-GKXH4C2B.js} +1 -1
  46. package/dist/{chunk-QYOUK3UO.js → chunk-GNX3BCQP.js} +2 -2
  47. package/dist/{chunk-IELYOY6S.js → chunk-I4DHHX7E.js} +3 -3
  48. package/dist/{chunk-FZ2VPLXL.js → chunk-IDRUJFT4.js} +2 -2
  49. package/dist/{chunk-KFZPWUPN.js → chunk-IFOZZYHK.js} +7 -7
  50. package/dist/{chunk-3CFTCM7X.js → chunk-IHQBTZHE.js} +3 -3
  51. package/dist/{chunk-OZVRCLEN.js → chunk-IIH24PKY.js} +2 -2
  52. package/dist/{chunk-K65XUUJX.js → chunk-ITJAHKYO.js} +1 -1
  53. package/dist/{chunk-6JR2XUEE.js → chunk-IXXVS2Z4.js} +1 -1
  54. package/dist/{chunk-IMVTN367.js → chunk-JOI7TNCX.js} +2 -2
  55. package/dist/{chunk-KG3BVLA4.js → chunk-JXLHLR26.js} +1 -1
  56. package/dist/{chunk-DY53XJ3P.js → chunk-K2AUGELJ.js} +1 -1
  57. package/dist/{chunk-VWPU6URV.js → chunk-L33EDCSR.js} +5 -5
  58. package/dist/{chunk-BYLC52GJ.js → chunk-LVEXHBSH.js} +1 -1
  59. package/dist/{chunk-XOTUPVIF.js → chunk-MSGWR7WP.js} +9 -1
  60. package/dist/{chunk-DWUOGV3M.js → chunk-ORMTNJBS.js} +3 -3
  61. package/dist/{chunk-Z6Q4ASCD.js → chunk-Q537KXWA.js} +153 -44
  62. package/dist/{chunk-YAMRODVV.js → chunk-Q6SHXSZX.js} +3 -2
  63. package/dist/{chunk-GQVTTWZF.js → chunk-QB4K2EWI.js} +1 -1
  64. package/dist/{chunk-T6AGUTZJ.js → chunk-QSFWGZG6.js} +7 -38
  65. package/dist/{chunk-XP55QWOB.js → chunk-QTWSMJ22.js} +15 -15
  66. package/dist/{chunk-M2GO2AAS.js → chunk-QXBZ6VBL.js} +1 -1
  67. package/dist/{chunk-65HUC64P.js → chunk-QYTGUWNF.js} +1 -1
  68. package/dist/{chunk-CMHVLASW.js → chunk-RVKJDAYE.js} +1 -1
  69. package/dist/{chunk-HRZ6ZBKO.js → chunk-SEAHCCQ4.js} +70 -51
  70. package/dist/{chunk-7SKOZHIY.js → chunk-SGKG7DNX.js} +3 -3
  71. package/dist/{chunk-6RRO4GE3.js → chunk-SIZYTGG4.js} +1 -1
  72. package/dist/{chunk-4QG64APO.js → chunk-SZNCAINN.js} +1 -1
  73. package/dist/{chunk-S5WSJVHP.js → chunk-T33GLS6C.js} +3 -3
  74. package/dist/{chunk-SQQZUUK6.js → chunk-TAXGZAXM.js} +10 -10
  75. package/dist/{chunk-GQACWAOC.js → chunk-TOT3CLUK.js} +1 -1
  76. package/dist/{chunk-2KZSKIYY.js → chunk-TYRDDIIH.js} +1 -1
  77. package/dist/{chunk-HOAXHVRR.js → chunk-U2EK5MFR.js} +10 -10
  78. package/dist/{chunk-QXPZGDTI.js → chunk-UIIGEPYY.js} +3 -3
  79. package/dist/{chunk-W2LGJSEN.js → chunk-UIOZIIB7.js} +33 -3
  80. package/dist/{chunk-L6FG62QM.js → chunk-UKB62QOT.js} +446 -151
  81. package/dist/{chunk-JN63IPHT.js → chunk-UOSTDTBF.js} +1 -1
  82. package/dist/{chunk-LPDNR3R4.js → chunk-VCVUEK65.js} +3 -3
  83. package/dist/{chunk-PO5PAROC.js → chunk-VF2VMKNI.js} +3 -3
  84. package/dist/{chunk-XVZZQVT4.js → chunk-VKTUZP7U.js} +1 -1
  85. package/dist/{chunk-NY2OH5XD.js → chunk-WO3XZ6HC.js} +1 -1
  86. package/dist/{chunk-7YZME6DE.js → chunk-X72DJZCM.js} +1 -1
  87. package/dist/{chunk-PGDWNIOK.js → chunk-XDMZY3H7.js} +57 -5
  88. package/dist/{chunk-QH4425AL.js → chunk-XG365L6T.js} +1 -1
  89. package/dist/{chunk-NUZMP7SV.js → chunk-XHVQIOOF.js} +19 -19
  90. package/dist/{chunk-FHDKRWQN.js → chunk-XONIZ5CH.js} +13 -13
  91. package/dist/{chunk-RYCANWOM.js → chunk-YBJECXQJ.js} +5 -5
  92. package/dist/{chunk-AHZLNYZY.js → chunk-YTBE4JCX.js} +1 -1
  93. package/dist/{chunk-VLVQQJOX.js → chunk-ZDVJXWEG.js} +22 -3
  94. package/dist/chunk-ZKHXN2BV.js +3983 -0
  95. package/dist/{clean-QX6LKOWJ.js → clean-EUKURSX2.js} +22 -25
  96. package/dist/cli.js +54 -54
  97. package/dist/{cloud-ASA7Y3HA.js → cloud-LJDRNQ2N.js} +4 -4
  98. package/dist/{cloudrun-LK4GJWUZ.js → cloudrun-AXVFD6KV.js} +7 -9
  99. package/dist/{compare-426Z2ND6.js → compare-T3LMATAF.js} +32 -35
  100. package/dist/{compiler-WER7FC5O.js → compiler-KH6DMHIJ.js} +6 -10
  101. package/dist/{component-HTDWZMEG.js → component-2FOHCMP2.js} +3 -3
  102. package/dist/{compositions-EKRLQ5TU.js → compositions-REQ6ARAO.js} +14 -17
  103. package/dist/{delete-KHXM6R7A.js → delete-KEPP2QAZ.js} +2 -2
  104. package/dist/{deploy-WJ5JQJBD.js → deploy-N756FEME.js} +1 -1
  105. package/dist/{deterministicFonts-RMA7GDJC.js → deterministicFonts-4FULD3AS.js} +2 -2
  106. package/dist/{dist-EYJATCTF.js → dist-5ULOGA6A.js} +30 -16
  107. package/dist/{dist-ONHJ6ZDA.js → dist-TFHABY7N.js} +2 -4
  108. package/dist/{doctor-NB3G2GDG.js → doctor-2SJPC4WZ.js} +15 -18
  109. package/dist/{dotEnv-64S3VKGH.js → dotEnv-RPHCAUBZ.js} +1 -1
  110. package/dist/{events-LH6W5ZCV.js → events-24ZE2PKB.js} +5 -5
  111. package/dist/{events-6EL5NIJV.js → events-U53QH4XZ.js} +4 -4
  112. package/dist/{feedback-2GNY725M.js → feedback-QFMLDLUN.js} +11 -13
  113. package/dist/{ffmpeg-XX3O53B3.js → ffmpeg-7XNWNO7M.js} +9 -12
  114. package/dist/{figma-X7KKOOXB.js → figma-B4JO44CV.js} +3 -3
  115. package/dist/fontLocalizeCli.js +12 -15
  116. package/dist/{get-M57U7QCX.js → get-7CFVCINR.js} +2 -2
  117. package/dist/{gpuPolicy-GIBBYBI5.js → gpuPolicy-MU7CFSAF.js} +9 -12
  118. package/dist/{grade-compare-XNY37UYQ.js → grade-compare-Q23U2HGS.js} +33 -36
  119. package/dist/{help-ZXSPZBUG.js → help-M67MEDV3.js} +1 -1
  120. package/dist/{history-G5B4IPBH.js → history-I2PZXOFL.js} +9 -9
  121. package/dist/hyperframe.manifest.json +1 -1
  122. package/dist/hyperframe.runtime.iife.js +66 -62
  123. package/dist/hyperframes-player.global.js +3 -3
  124. package/dist/{info-ZWZDG54W.js → info-Z2MX54IE.js} +11 -13
  125. package/dist/{init-F4XMU6SV.js → init-SWH5KZO2.js} +30 -33
  126. package/dist/{inspect-6VXFMQRR.js → inspect-WBBDB3YS.js} +33 -36
  127. package/dist/{installer-4M3Y5T5F.js → installer-DQIHGUBJ.js} +6 -9
  128. package/dist/{keyframes-3U466AWX.js → keyframes-PSNEUS6P.js} +8 -8
  129. package/dist/{lambda-OPSTAEF6.js → lambda-KSZFMQ3L.js} +9 -11
  130. package/dist/{layout-B3MXD3F3.js → layout-AAOI7W2M.js} +33 -36
  131. package/dist/{lint-TVOEGW63.js → lint-GGNVITIK.js} +10 -12
  132. package/dist/{lintProject-FKPKSU6M.js → lintProject-Q36Y3AHA.js} +2 -4
  133. package/dist/{list-M5GQSFVT.js → list-OFPDL2AM.js} +2 -2
  134. package/dist/{login-HBHGZIDN.js → login-MZAHGGP4.js} +4 -4
  135. package/dist/{manager-COSJVRAE.js → manager-F34TSFV6.js} +3 -3
  136. package/dist/{manager-VLIJARMF.js → manager-ZOFTZTRY.js} +10 -13
  137. package/dist/{media-treatment-RQZ437VS.js → media-treatment-PF67GSUD.js} +67 -43
  138. package/dist/{models-2CCKVBTR.js → models-WR7CL54R.js} +13 -16
  139. package/dist/{motionShot-3IFRSICA.js → motionShot-ISLDWLIU.js} +18 -21
  140. package/dist/{normalize-audio-23H2MBDP.js → normalize-audio-D7AH5GFZ.js} +45 -27
  141. package/dist/{open-J33KT3G7.js → open-HPVBB2CX.js} +15 -18
  142. package/dist/{parakeetRunner-QTXNEMVY.js → parakeetRunner-P6PE4WXG.js} +14 -17
  143. package/dist/{pipeline-2ECWWEBD.js → pipeline-XKBZG2CM.js} +10 -13
  144. package/dist/{play-G5777L7A.js → play-QXHO47ZH.js} +24 -27
  145. package/dist/{preflight-NVFB4HXQ.js → preflight-KZCU66ES.js} +12 -15
  146. package/dist/{present-4EI2BE4Z.js → present-ERGC5PR4.js} +20 -23
  147. package/dist/{preview-HYCIDZ52.js → preview-AGTOQIE7.js} +21 -24
  148. package/dist/{producer-6JAATJVD.js → producer-4ONVM5A2.js} +1 -1
  149. package/dist/{projectConfig-XPGN76VV.js → projectConfig-7T4VY6RJ.js} +8 -11
  150. package/dist/{publication-YRZ7EBUV.js → publication-J5TS5VR3.js} +4 -6
  151. package/dist/{publish-UIDHN7KD.js → publish-BSOVXRF4.js} +11 -14
  152. package/dist/{remove-background-LPQP4WBN.js → remove-background-645NVCGL.js} +11 -14
  153. package/dist/{render-LFJQNVCK.js → render-55TYPJ5U.js} +7 -9
  154. package/dist/{render-NZSNQFYW.js → render-IAVH33YG.js} +38 -34
  155. package/dist/{render-DT3OCUCV.js → render-R3L44QAP.js} +36 -38
  156. package/dist/{render-batch-QI2A45WH.js → render-batch-JWWLQ7ZC.js} +7 -9
  157. package/dist/renderSetupWorker.js +5 -7
  158. package/dist/{resolver-4YDXG4PP.js → resolver-DBAFWC4F.js} +6 -8
  159. package/dist/{sherpa-XLKWFYFO.js → sherpa-UPWG6TKY.js} +13 -16
  160. package/dist/skills/hyperframes/references/runtimes.md +26 -0
  161. package/dist/skills/media-use/references/mixing.md +1 -1
  162. package/dist/skills/media-use/scripts/lib/grade-analyzer.mjs +38 -26
  163. package/dist/{skills-OVVLZHF5.js → skills-ILH52UL4.js} +7 -7
  164. package/dist/{skillsUpdateCheck-Y2UQA7I5.js → skillsUpdateCheck-ZHFDGMEL.js} +3 -3
  165. package/dist/{snapshot-7NVB5WSO.js → snapshot-WMVHIQVQ.js} +94 -61
  166. package/dist/{src-ACAFJXAJ.js → src-46QTOHZE.js} +11 -14
  167. package/dist/{src-QQPHMIJ7.js → src-HPLELQRK.js} +12 -11
  168. package/dist/{staticProjectServer-JUN6BRTW.js → staticProjectServer-FHP2YQFV.js} +19 -22
  169. package/dist/{status-H5WLKQDS.js → status-LR7VXITS.js} +2 -2
  170. package/dist/studio/assets/{hyperframes-player-BDtBfwof.js → hyperframes-player-BNeO6YSP.js} +1 -1
  171. package/dist/studio/assets/{index-BFfBBQMu.js → index-CZWE0FI8.js} +162 -162
  172. package/dist/studio/assets/{index--W_0fuR8.js → index-DiNYtcMK.js} +1 -1
  173. package/dist/studio/index.html +1 -1
  174. package/dist/{studio-api-D76Q4Q2N.js → studio-api-5YHQ4Y2D.js} +12 -15
  175. package/dist/{studioServer-HG3RFAOY.js → studioServer-P6IC76SV.js} +54 -57
  176. package/dist/{system-7F3UEHQT.js → system-YD4AW5ZX.js} +4 -3
  177. package/dist/{telemetry-Q2EHWVO4.js → telemetry-WZ7OGFWQ.js} +5 -5
  178. package/dist/{timeline-WDQCCETQ.js → timeline-U6S7BGMI.js} +24 -26
  179. package/dist/{tokens-2GJWP2HY.js → tokens-FPUYNZSV.js} +2 -2
  180. package/dist/{transcribe-Z63Y53GQ.js → transcribe-DJX4E2PE.js} +19 -22
  181. package/dist/{transcribe-SRLAY6RG.js → transcribe-DZHTKXI5.js} +12 -15
  182. package/dist/{updateCheck-MJ6NDE3T.js → updateCheck-2LHWRDE7.js} +2 -2
  183. package/dist/{upgrade-D5XEX3XE.js → upgrade-WAQHCAUS.js} +2 -2
  184. package/dist/{urlDownloader-R7BZ47TY.js → urlDownloader-HZQPXQET.js} +8 -11
  185. package/dist/{validate-F5BIDZLN.js → validate-D6XJ7OSS.js} +27 -30
  186. package/dist/{video-QUG5OG5Q.js → video-A4CQ4WDL.js} +9 -12
  187. package/dist/warmCheck.js +40 -43
  188. package/package.json +1 -1
  189. package/dist/chunk-2ONVJ7NT.js +0 -3901
  190. package/dist/chunk-BSQ7XANM.js +0 -210
  191. package/dist/chunk-PKZ7RK5N.js +0 -281
  192. package/dist/chunk-X7HBSTCZ.js +0 -53
@@ -19,11 +19,11 @@ import {
19
19
  splitElementInHtml,
20
20
  unwrapElementsFromHtml,
21
21
  wrapElementsInHtml
22
- } from "./chunk-FV5GKRAO.js";
22
+ } from "./chunk-3J5KO4EJ.js";
23
23
  import {
24
24
  MEDIA_LINK_ATTR,
25
25
  relinkSplitHalves
26
- } from "./chunk-6JR2XUEE.js";
26
+ } from "./chunk-IXXVS2Z4.js";
27
27
  import {
28
28
  DEFAULT_TARGET_LUFS,
29
29
  absoluteLoudnessPlan,
@@ -32,7 +32,7 @@ import {
32
32
  requestedProjectPath,
33
33
  requiredFfmpeg,
34
34
  resolveLocalAudioPath
35
- } from "./chunk-QXPZGDTI.js";
35
+ } from "./chunk-UIIGEPYY.js";
36
36
  import {
37
37
  HistoryBusyError,
38
38
  MAX_WINDOW_IDLE_MS,
@@ -46,7 +46,7 @@ import {
46
46
  resolveProjectAndSignature,
47
47
  resolveProjectSignature,
48
48
  settledFileTag
49
- } from "./chunk-PGDWNIOK.js";
49
+ } from "./chunk-XDMZY3H7.js";
50
50
  import {
51
51
  PROXY_PARAMS_VERSION,
52
52
  PROXY_PENDING_RETRY_AFTER_SECONDS,
@@ -65,10 +65,10 @@ import {
65
65
  recordProxyRequest,
66
66
  resolveProxy,
67
67
  resolveProxyVariantRequest,
68
- scanProjectMediaCodecMap,
68
+ scanProjectMedia,
69
69
  shouldPrewarmProxy,
70
70
  waitForProxy
71
- } from "./chunk-Z6Q4ASCD.js";
71
+ } from "./chunk-Q537KXWA.js";
72
72
  import {
73
73
  STUDIO_MOTION_PATH,
74
74
  createStudioMotionRenderBodyScript,
@@ -104,6 +104,7 @@ import {
104
104
  import {
105
105
  GSAP_BASE_URL_META,
106
106
  PREVIEW_PROXY_BOX_PARAM,
107
+ PREVIEW_PROXY_LIGHT_PARAM,
107
108
  formatPreviewProxyBox,
108
109
  formatRenderOutputTimestamp,
109
110
  gsapCdnDist,
@@ -112,12 +113,12 @@ import {
112
113
  normalizeGsapLocalRoot,
113
114
  parseFps,
114
115
  parsePreviewProxyBox
115
- } from "./chunk-UVQLSMAR.js";
116
+ } from "./chunk-74UH2KGI.js";
116
117
  import {
117
118
  addScenePartsManifest,
118
119
  ensureHfIds,
119
120
  stampHfIdsInPlace
120
- } from "./chunk-HRZ6ZBKO.js";
121
+ } from "./chunk-SEAHCCQ4.js";
121
122
  import {
122
123
  AFTER_FONTS_SCRIPT_TYPE,
123
124
  RUNTIME_BOOTSTRAP_ATTR,
@@ -131,7 +132,7 @@ import {
131
132
  resolveRateSpec,
132
133
  sourceTimeAt,
133
134
  stripEmbeddedRuntimeScripts
134
- } from "./chunk-2ONVJ7NT.js";
135
+ } from "./chunk-ZKHXN2BV.js";
135
136
  import {
136
137
  HTML_ATTRIBUTE_ENTITIES,
137
138
  MagicString,
@@ -139,7 +140,7 @@ import {
139
140
  decodeAuthoredAttribute,
140
141
  scanHtmlOpeningTags,
141
142
  unrollComputedTimeline
142
- } from "./chunk-XOTUPVIF.js";
143
+ } from "./chunk-MSGWR7WP.js";
143
144
  import {
144
145
  ProjectRootMissingError,
145
146
  folderGone,
@@ -156,9 +157,6 @@ import {
156
157
  isWithinProjectRoot,
157
158
  readProjectFile
158
159
  } from "./chunk-6BNTGNGD.js";
159
- import {
160
- sameInstant
161
- } from "./chunk-MMQ52NIZ.js";
162
160
  import {
163
161
  decodeCssEscapes,
164
162
  decodeWellFormedEscapes,
@@ -167,8 +165,9 @@ import {
167
165
  readMediaOffsetSeconds,
168
166
  rewriteAssetPaths,
169
167
  rewriteCssAssetUrls,
170
- rewriteInlineStyleAssetUrls
171
- } from "./chunk-BSQ7XANM.js";
168
+ rewriteInlineStyleAssetUrls,
169
+ sameInstant
170
+ } from "./chunk-2BGOB2QK.js";
172
171
  import {
173
172
  parseHTML
174
173
  } from "./chunk-SDYDNHEE.js";
@@ -308,7 +307,7 @@ function clearElementScreenshotIsolation() {
308
307
  page.__hfThumbnailFaded = [];
309
308
  }
310
309
 
311
- // ../studio-server/dist/chunk-ZCCJNXS7.js
310
+ // ../studio-server/dist/chunk-HZCA2O76.js
312
311
  import { resolve } from "path";
313
312
  function isAutoProxyEnabled(adapter) {
314
313
  return adapter.autoProxy !== false;
@@ -321,17 +320,15 @@ function proxyEtagSalt(raw, box) {
321
320
  return `:proxy:${raw}:${PROXY_PARAMS_VERSION}${box ? `:${formatPreviewProxyBox(box)}` : ""}`;
322
321
  }
323
322
  async function injectMediaCodecMapIntoHtml(html, projectDir, htmlSources, probeCache, prewarm = true, signal, box) {
324
- let map;
323
+ let scan;
325
324
  try {
326
- map = await scanProjectMediaCodecMap(
327
- projectDir,
328
- htmlSources,
329
- probeCache ? { cache: probeCache } : {}
330
- );
325
+ scan = await scanProjectMedia(projectDir, htmlSources, probeCache ? { cache: probeCache } : {});
331
326
  } catch {
332
327
  return html;
333
328
  }
334
- if (Object.keys(map).length === 0) return html;
329
+ const { codecMap: map, sourceFacts } = scan;
330
+ const hasMap = Object.keys(map).length > 0;
331
+ if (!hasMap && Object.keys(sourceFacts).length === 0) return html;
335
332
  for (const [rootRelativePathname, facts] of Object.entries(map)) {
336
333
  if (!prewarm || !shouldPrewarmProxy(facts)) continue;
337
334
  recordProxyPrewarm();
@@ -344,8 +341,12 @@ async function injectMediaCodecMapIntoHtml(html, projectDir, htmlSources, probeC
344
341
  ).catch(() => {
345
342
  });
346
343
  }
347
- const json = JSON.stringify(map).replace(/</g, "\\u003c").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
348
- const tag = `<script data-hf-media-codec-map>window.__HF_MEDIA_CODEC_MAP__=${json};</script>`;
344
+ const safeJson = (value) => JSON.stringify(value).replace(/</g, "\\u003c").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
345
+ const assignments = [
346
+ ...hasMap ? [`window.__HF_MEDIA_CODEC_MAP__=${safeJson(map)};`] : [],
347
+ `window.__HF_MEDIA_SOURCE_FACTS__=${safeJson(sourceFacts)};`
348
+ ];
349
+ const tag = `<script data-hf-media-codec-map>${assignments.join("")}</script>`;
349
350
  return insertBeforeCloseTag(html, "head", `${tag}
350
351
  `) ?? `${tag}
351
352
  ${html}`;
@@ -5544,7 +5545,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
5544
5545
  let block = extractGsapScriptBlock(html);
5545
5546
  if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
5546
5547
  const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
5547
- const { GSAP_CDN } = await import("./dist-EYJATCTF.js");
5548
+ const { GSAP_CDN } = await import("./dist-5ULOGA6A.js");
5548
5549
  const bootstrap = [
5549
5550
  `<script src="${GSAP_CDN}"></script>`,
5550
5551
  "<script>",
@@ -7864,7 +7865,8 @@ ${etag}`;
7864
7865
  const proxyParam = c.req.query("hf-proxy");
7865
7866
  const boxParam = c.req.query(PREVIEW_PROXY_BOX_PARAM);
7866
7867
  const proxyBox = boxParam === void 0 ? void 0 : parsePreviewProxyBox(boxParam);
7867
- if (proxyBox === null || proxyBox && proxyParam === void 0) {
7868
+ const lightRequested = c.req.query(PREVIEW_PROXY_LIGHT_PARAM) !== void 0;
7869
+ if (proxyBox === null || proxyBox && proxyParam === void 0 || lightRequested && !proxyBox) {
7868
7870
  return c.text("not found", 404);
7869
7871
  }
7870
7872
  let proxyVariant;
@@ -7873,7 +7875,7 @@ ${etag}`;
7873
7875
  return c.text("not found", 404);
7874
7876
  }
7875
7877
  const facts = await probeAssetCodec(file, void 0, mediaCodecProbeCache);
7876
- const eligibility = decideMediaProxyEligibility(facts);
7878
+ const eligibility = decideMediaProxyEligibility(facts, lightRequested ? proxyBox : void 0);
7877
7879
  if (!eligibility.eligible) {
7878
7880
  return c.text(`media proxy unavailable: ${eligibility.reason}`, 422);
7879
7881
  }
@@ -9908,8 +9910,25 @@ function registerHistoryRoutes(api, adapter) {
9908
9910
  })
9909
9911
  );
9910
9912
  }
9913
+ function previewErrorPage(status) {
9914
+ const message = `The preview page could not be loaded (HTTP ${status}).`;
9915
+ return `<!doctype html><meta charset="utf-8"><script>window.${STUDIO_PREVIEW_ERRORS}=[${JSON.stringify(message)}]</script><p>${message}</p>`;
9916
+ }
9917
+ async function answerRefusedFrameWithPage(c, next) {
9918
+ await next();
9919
+ if (c.req.header("sec-fetch-dest") !== "iframe" || c.res.status < 400) return;
9920
+ const headers = new Headers(c.res.headers);
9921
+ headers.set("content-type", "text/html; charset=utf-8");
9922
+ headers.delete("content-length");
9923
+ c.res = new Response(previewErrorPage(c.res.status), {
9924
+ status: c.res.status,
9925
+ headers
9926
+ });
9927
+ }
9911
9928
  function createStudioApi(adapter) {
9912
9929
  const api = new Hono();
9930
+ api.use("/projects/:id/preview/*", answerRefusedFrameWithPage);
9931
+ api.use("/projects/:id/preview", answerRefusedFrameWithPage);
9913
9932
  api.use(async function answerProjectDirMissingAfterErrorHandlers(c, next) {
9914
9933
  const hostHeaders = new Headers(c.res.headers);
9915
9934
  await next();
@@ -9956,13 +9975,14 @@ function createStudioApi(adapter) {
9956
9975
  registerHistoryRoutes(api, adapter);
9957
9976
  return api;
9958
9977
  }
9959
- function duplicateElementInHtml(source, target, newId, at) {
9978
+ function duplicateElementInHtml(source, target, newId, at, fallbackDuration = 0) {
9960
9979
  const { document: document2, wrappedFragment } = parseSourceDocument(source);
9961
9980
  const element = findTargetElement(document2, target);
9962
9981
  if (!element || !element.parentElement) return { html: source, matched: false, newId: null };
9963
- const duration = numericAttribute(element, "data-duration");
9982
+ const duration = element.hasAttribute("data-duration") ? numericAttribute(element, "data-duration") : fallbackDuration;
9983
+ const start = numericAttribute(element, "data-start");
9964
9984
  const track = numericAttribute(element, "data-track-index") ?? 0;
9965
- if (duration === null || numericAttribute(element, "data-start") === null) {
9985
+ if (duration === null || start === null) {
9966
9986
  return { html: source, matched: false, newId: null };
9967
9987
  }
9968
9988
  const uniqueId = nextUniqueId(document2, newId);
@@ -9972,13 +9992,13 @@ function duplicateElementInHtml(source, target, newId, at) {
9972
9992
  clone.setAttribute("id", uniqueId);
9973
9993
  dedupeClonedCompositionId(document2, clone);
9974
9994
  stripStableIds(clone);
9975
- clone.setAttribute("data-start", String(at));
9995
+ moveElementStart(clone, start, at);
9976
9996
  element.parentElement.insertBefore(clone, element.nextSibling);
9977
9997
  const html = wrappedFragment ? document2.body.innerHTML || "" : document2.toString();
9978
9998
  return { html: ensureHfIds(html), matched: true, newId: uniqueId };
9979
9999
  }
9980
10000
  function rippleElements(document2, element, at, duration, track) {
9981
- for (const candidate of Array.from(document2.querySelectorAll("[data-start][data-duration]"))) {
10001
+ for (const candidate of Array.from(document2.querySelectorAll("[data-start]"))) {
9982
10002
  if (candidate === element || candidate.getAttribute("data-track-index") !== String(track)) {
9983
10003
  continue;
9984
10004
  }
@@ -9986,9 +10006,15 @@ function rippleElements(document2, element, at, duration, track) {
9986
10006
  if (start === null) continue;
9987
10007
  const metInsertionPoint = sameInstant(start, at);
9988
10008
  if (start < at && !metInsertionPoint) continue;
9989
- candidate.setAttribute("data-start", String((metInsertionPoint ? at : start) + duration));
10009
+ moveElementStart(candidate, start, (metInsertionPoint ? at : start) + duration);
9990
10010
  }
9991
10011
  }
10012
+ function moveElementStart(element, start, nextStart) {
10013
+ element.setAttribute("data-start", String(nextStart));
10014
+ if (!element.hasAttribute("data-end")) return;
10015
+ const end = numericAttribute(element, "data-end");
10016
+ if (end !== null) element.setAttribute("data-end", String(end + (nextStart - start)));
10017
+ }
9992
10018
  function stripStableIds(element) {
9993
10019
  element.removeAttribute("data-hf-id");
9994
10020
  for (const child of Array.from(element.querySelectorAll("[data-hf-id]"))) {
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-K65XUUJX.js";
9
+ } from "./chunk-ITJAHKYO.js";
10
10
  import {
11
11
  DEFAULT_HISTORY_ROOT,
12
12
  HistoryBusyError,
13
13
  MAX_WINDOW_IDLE_MS,
14
14
  openProjectHistory,
15
15
  readProjectHistory
16
- } from "./chunk-PGDWNIOK.js";
16
+ } from "./chunk-XDMZY3H7.js";
17
17
  import {
18
18
  findPreviewServerForProject,
19
19
  studioApiUrl
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-WQ6ZXHFQ.js";
10
10
  import {
11
11
  findFFmpeg
12
- } from "./chunk-QYOUK3UO.js";
12
+ } from "./chunk-GNX3BCQP.js";
13
13
  import {
14
14
  stoppableExecFile
15
15
  } from "./chunk-HU2SPFNG.js";
@@ -9,7 +9,7 @@ import {
9
9
  parseStrictFiniteTimingNumber,
10
10
  resolveNaturalMediaTimelineDuration,
11
11
  resolveTimedImageDurationSeconds
12
- } from "./chunk-2ONVJ7NT.js";
12
+ } from "./chunk-ZKHXN2BV.js";
13
13
  import {
14
14
  CANVAS_DIMENSIONS,
15
15
  isCompositionElement,
@@ -17,17 +17,19 @@ import {
17
17
  isTextElement,
18
18
  keyframesToGsapAnimations,
19
19
  serializeGsapAnimations
20
- } from "./chunk-XOTUPVIF.js";
20
+ } from "./chunk-MSGWR7WP.js";
21
21
  import {
22
22
  COMPOSITION_ATTRIBUTES,
23
23
  MEDIA_START_BASIS_ATTR,
24
24
  compositionOriginSeconds,
25
25
  hostInPointSeconds,
26
+ isFontValue,
27
+ isImageValue,
26
28
  isRootGlobalMediaStart,
27
29
  parseStartExpression,
28
30
  resolveMediaStartSeconds,
29
31
  sameInstant
30
- } from "./chunk-MMQ52NIZ.js";
32
+ } from "./chunk-2BGOB2QK.js";
31
33
  import {
32
34
  parseHTML
33
35
  } from "./chunk-SDYDNHEE.js";
@@ -1226,6 +1228,7 @@ function parseFirstFrameColour(stderr) {
1226
1228
 
1227
1229
  // ../core/dist/previewProxyBox.js
1228
1230
  var PREVIEW_PROXY_BOX_PARAM = "hf-proxy-box";
1231
+ var PREVIEW_PROXY_LIGHT_PARAM = "hf-proxy-light";
1229
1232
  var RUNGS = [
1230
1233
  256,
1231
1234
  304,
@@ -1270,6 +1273,18 @@ function parsePreviewProxyBox(raw) {
1270
1273
  const height = Number(match[2]);
1271
1274
  return RUNGS.includes(width) && RUNGS.includes(height) ? { width, height } : null;
1272
1275
  }
1276
+ var PREVIEW_QUALITY_LEVELS = [1, 0.5, 0.25, 0.125];
1277
+ function isPreviewQuality(value) {
1278
+ return PREVIEW_QUALITY_LEVELS.some((level) => level === value);
1279
+ }
1280
+ var HEAVY_PIXEL_SHARE = 0.5;
1281
+ var HEAVY_BITRATE = 4e7;
1282
+ function scalePreviewProxyBox(box, level) {
1283
+ return quantizePreviewProxyBox(box.width * level, box.height * level) ?? box;
1284
+ }
1285
+ function isHeavyForPreview(facts, copyBox) {
1286
+ return copyBox.width * copyBox.height <= HEAVY_PIXEL_SHARE * facts.width * facts.height || facts.bitDepth > 8 || facts.bitrate >= HEAVY_BITRATE;
1287
+ }
1273
1288
 
1274
1289
  // ../core/dist/inline-scripts/hyperframesRuntime.engine.js
1275
1290
  import { existsSync } from "fs";
@@ -4464,6 +4479,7 @@ function getDebugSurface() {
4464
4479
  }
4465
4480
 
4466
4481
  // ../core/dist/runtime/diagnostics.js
4482
+ var SCENE_CALLBACK_ERROR_PREFIX = "[hyperframes] scene timeline callback threw:";
4467
4483
  function swallow(label, error) {
4468
4484
  if (typeof window === "undefined")
4469
4485
  return;
@@ -4719,7 +4735,7 @@ function checkType(value, decl) {
4719
4735
  actual: jsTypeOf(value)
4720
4736
  };
4721
4737
  }
4722
- if (typeof value.name !== "string" || typeof value.source !== "string") {
4738
+ if (!isFontValue(value)) {
4723
4739
  return {
4724
4740
  kind: "type-mismatch",
4725
4741
  variableId: decl.id,
@@ -4740,12 +4756,12 @@ function checkType(value, decl) {
4740
4756
  actual: jsTypeOf(value)
4741
4757
  };
4742
4758
  }
4743
- if (typeof value.url !== "string") {
4759
+ if (!isImageValue(value)) {
4744
4760
  return {
4745
4761
  kind: "type-mismatch",
4746
4762
  variableId: decl.id,
4747
4763
  expected: "image object {url: string}",
4748
- actual: "object missing string url"
4764
+ actual: typeof value.url !== "string" ? "object missing string url" : "object with invalid alt/fit"
4749
4765
  };
4750
4766
  }
4751
4767
  return null;
@@ -5628,9 +5644,16 @@ export {
5628
5644
  firstFrameColourArgs,
5629
5645
  parseFirstFrameColour,
5630
5646
  PREVIEW_PROXY_BOX_PARAM,
5647
+ PREVIEW_PROXY_LIGHT_PARAM,
5631
5648
  quantizePreviewProxyBox,
5632
5649
  formatPreviewProxyBox,
5633
5650
  parsePreviewProxyBox,
5651
+ PREVIEW_QUALITY_LEVELS,
5652
+ isPreviewQuality,
5653
+ HEAVY_PIXEL_SHARE,
5654
+ HEAVY_BITRATE,
5655
+ scalePreviewProxyBox,
5656
+ isHeavyForPreview,
5634
5657
  buildHyperframesRuntimeScript,
5635
5658
  HYPERFRAME_RUNTIME_GLOBALS,
5636
5659
  HYPERFRAME_BRIDGE_SOURCES,
@@ -5648,6 +5671,7 @@ export {
5648
5671
  createGSAPFrameAdapter,
5649
5672
  fitTextFontSize,
5650
5673
  formatRenderOutputTimestamp,
5674
+ SCENE_CALLBACK_ERROR_PREFIX,
5651
5675
  createRuntimeStartTimeResolver,
5652
5676
  byStart,
5653
5677
  hasClipStarted,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  updateCheckDisabled
9
- } from "./chunk-4QG64APO.js";
9
+ } from "./chunk-SZNCAINN.js";
10
10
  import {
11
11
  hostAnswers
12
12
  } from "./chunk-K4WIOZFP.js";
@@ -41,6 +41,7 @@ var TEXT_EXT = /* @__PURE__ */ new Set([
41
41
  ".yaml"
42
42
  ]);
43
43
  var DEFAULT_REPO_SLUG = "heygen-com/hyperframes";
44
+ var REPO_SLUG_PATTERN = /^[\w.-]+\/[\w.-]+$/;
44
45
  var MANIFEST_FILE = "skills-manifest.json";
45
46
  var FETCH_TIMEOUT_MS = 4e3;
46
47
  var ENTRY_SKILL = "hyperframes";
@@ -297,13 +298,25 @@ async function fetchManifest(url) {
297
298
  }
298
299
  }
299
300
  async function remoteHeadSha(repoSlug2) {
301
+ if (!REPO_SLUG_PATTERN.test(repoSlug2)) return null;
300
302
  try {
301
303
  const { stdout } = await execFileAsync(
302
304
  "git",
303
- ["ls-remote", `https://github.com/${repoSlug2}.git`, "refs/heads/main"],
305
+ [
306
+ "-c",
307
+ "credential.helper=",
308
+ "ls-remote",
309
+ `https://github.com/${repoSlug2}.git`,
310
+ "refs/heads/main"
311
+ ],
304
312
  {
305
313
  timeout: FETCH_TIMEOUT_MS,
306
- env: { ...process.env, GIT_TERMINAL_PROMPT: "0" },
314
+ env: {
315
+ ...process.env,
316
+ GIT_TERMINAL_PROMPT: "0",
317
+ GIT_ASKPASS: "",
318
+ GCM_INTERACTIVE: "never"
319
+ },
307
320
  windowsHide: true
308
321
  }
309
322
  );
@@ -6,11 +6,11 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  withOwner
9
- } from "./chunk-BFYDVTD3.js";
9
+ } from "./chunk-6UFEOVR5.js";
10
10
  import {
11
11
  HistoryBusyError,
12
12
  beginArtifactCapture
13
- } from "./chunk-PGDWNIOK.js";
13
+ } from "./chunk-XDMZY3H7.js";
14
14
 
15
15
  // src/utils/artifactCapture.ts
16
16
  var SKIP_BUSY_HISTORY = { ownerWaitMs: 0 };
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType,
9
9
  injectMediaCodecMapIntoHtml
10
- } from "./chunk-JFIEV2J4.js";
10
+ } from "./chunk-53E45AKI.js";
11
11
  import {
12
12
  PROXY_VARIANT_CONFIG,
13
13
  ProxyCapacityError,
@@ -18,20 +18,20 @@ import {
18
18
  recordProxyRequest,
19
19
  resolveProxy,
20
20
  resolveProxyVariantRequest
21
- } from "./chunk-Z6Q4ASCD.js";
21
+ } from "./chunk-Q537KXWA.js";
22
22
  import {
23
23
  findStageProxyBox
24
- } from "./chunk-T4IJMVCB.js";
24
+ } from "./chunk-GKXH4C2B.js";
25
25
  import {
26
26
  resolveAutoProxy
27
- } from "./chunk-JN63IPHT.js";
27
+ } from "./chunk-UOSTDTBF.js";
28
28
  import {
29
29
  PREVIEW_PROXY_BOX_PARAM,
30
30
  parsePreviewProxyBox
31
- } from "./chunk-UVQLSMAR.js";
31
+ } from "./chunk-74UH2KGI.js";
32
32
  import {
33
33
  decodeWellFormedEscapes
34
- } from "./chunk-BSQ7XANM.js";
34
+ } from "./chunk-2BGOB2QK.js";
35
35
 
36
36
  // src/utils/staticProjectServer.ts
37
37
  import { createServer, request as httpRequest } from "http";