hyperframes 0.8.214 → 0.8.216

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/dist/{add-U2N4ZWNB.js → add-2RWN7JAI.js} +17 -14
  2. package/dist/{agentPromptGenerator-EK7NEFV6.js → agentPromptGenerator-RVE5RWTH.js} +7 -6
  3. package/dist/{animatedGifPrep-X3FLFGCC.js → animatedGifPrep-I32BS5HI.js} +7 -6
  4. package/dist/api.js +18 -17
  5. package/dist/{asset-3CSXQ7JI.js → asset-YLZ5UGVE.js} +2 -2
  6. package/dist/{assetCataloger-FG2VTSSR.js → assetCataloger-B4KOZO3V.js} +8 -7
  7. package/dist/{audio-US7IUDFM.js → audio-VUOJ7MOJ.js} +177 -61
  8. package/dist/{auth-IMXNGPGR.js → auth-3UL65CN7.js} +4 -4
  9. package/dist/{autoUpdate-IGZP5HIX.js → autoUpdate-FEK5AHLP.js} +4 -3
  10. package/dist/{backgroundChecks-UGU6SRCU.js → backgroundChecks-VJSQ3REH.js} +5 -4
  11. package/dist/backgroundChecksWorker.js +6 -5
  12. package/dist/{batchRender-5JS4SAGR.js → batchRender-NC6SUDYN.js} +3 -3
  13. package/dist/{beats-2F7ZW7QB.js → beats-KSUZ23LE.js} +23 -17
  14. package/dist/{benchmark-Y25FBDO7.js → benchmark-TRVQ7EPQ.js} +14 -11
  15. package/dist/{browser-43AS35ZL.js → browser-3LJ3SLQ4.js} +10 -7
  16. package/dist/{bundleWithLocalizedFonts-6VHTVRO3.js → bundleWithLocalizedFonts-Y7VGIRFK.js} +2 -2
  17. package/dist/{capture-N5AMWY4S.js → capture-NC5OO4D2.js} +3 -3
  18. package/dist/{capture-CMP4DHPY.js → capture-NT2SOO5J.js} +15 -14
  19. package/dist/{captureCompositionFrame-PQT4GNR2.js → captureCompositionFrame-PAJRNURH.js} +13 -12
  20. package/dist/{catalog-SZPWUZ75.js → catalog-BOGZ2BQD.js} +18 -15
  21. package/dist/{catch-up-OYYHR2UB.js → catch-up-FGF5SAEW.js} +10 -7
  22. package/dist/{check-MBW4AYV6.js → check-IG6NIMSC.js} +43 -40
  23. package/dist/{checkAudio-DIJNBWAF.js → checkAudio-6B2FKTIU.js} +11 -10
  24. package/dist/{checkBrowser-NYBDUAT2.js → checkBrowser-D6MZRCTH.js} +36 -33
  25. package/dist/{chunk-3AAAA3KH.js → chunk-2JV6FKNZ.js} +3 -3
  26. package/dist/{chunk-7YUYG6S6.js → chunk-3AOXAXTA.js} +1 -1
  27. package/dist/{chunk-6LDHXB4Z.js → chunk-3F2DTPBD.js} +3 -2
  28. package/dist/{chunk-HVQDDVN4.js → chunk-3S2WWGJJ.js} +2 -2
  29. package/dist/{chunk-7W4DJKZA.js → chunk-43USF7JF.js} +11 -11
  30. package/dist/{chunk-EJCCJTUH.js → chunk-4EEVTNDU.js} +3 -3
  31. package/dist/{chunk-ZMKRQ4HE.js → chunk-4MWUMT3T.js} +2 -2
  32. package/dist/chunk-4WEWHZZO.js +24 -0
  33. package/dist/{chunk-S6WDNIUG.js → chunk-4YIKQM4K.js} +1 -1
  34. package/dist/{chunk-GSYZG4E7.js → chunk-557ZJMFI.js} +2 -2
  35. package/dist/{chunk-BRTWBGFE.js → chunk-5XTOAZMR.js} +1 -1
  36. package/dist/{chunk-QL7ITOPE.js → chunk-6HJUC2VX.js} +3 -3
  37. package/dist/{chunk-6UUPTWUG.js → chunk-6LQL2BVD.js} +1 -1
  38. package/dist/{chunk-YDHXPY23.js → chunk-7P76YIVS.js} +1 -1
  39. package/dist/{chunk-URD4QIQS.js → chunk-7RPXLY6U.js} +1 -1
  40. package/dist/{chunk-DFQM3XMK.js → chunk-ACAU2AK2.js} +4 -4
  41. package/dist/{chunk-HQRI2NT3.js → chunk-BHWXSO6T.js} +1 -1
  42. package/dist/{chunk-K4WIOZFP.js → chunk-BR2JQQC5.js} +3 -5
  43. package/dist/{chunk-FQO3RV6O.js → chunk-BTYR7Y3Z.js} +2 -2
  44. package/dist/{chunk-G7CFMNRO.js → chunk-BYHG2T5X.js} +2 -2
  45. package/dist/{chunk-G6HUXX3L.js → chunk-CBCZBHGK.js} +4 -2
  46. package/dist/{chunk-ENV35BSH.js → chunk-CX4TSC7T.js} +96 -35
  47. package/dist/{chunk-WJRYQYOM.js → chunk-DFA5GTRJ.js} +1 -1
  48. package/dist/{chunk-GFA5ZCVI.js → chunk-DYHAZFK3.js} +7 -3
  49. package/dist/{chunk-VAOROEWU.js → chunk-EB44YMQO.js} +2 -2
  50. package/dist/{chunk-MP7DZH5M.js → chunk-EJTVBW42.js} +2 -2
  51. package/dist/{chunk-32NEJ553.js → chunk-FBN2M2HK.js} +28 -0
  52. package/dist/{chunk-VEWR5HXT.js → chunk-FUSUFW2L.js} +1 -1
  53. package/dist/{chunk-L72RQ45A.js → chunk-G3AG7A42.js} +1 -1
  54. package/dist/{chunk-FKFGGAXN.js → chunk-GLC5XHN5.js} +13 -0
  55. package/dist/{chunk-XM3NMXLX.js → chunk-GTKUQUZ6.js} +1 -1
  56. package/dist/{chunk-HNYTTRLR.js → chunk-I3VXWMQW.js} +4 -4
  57. package/dist/chunk-IVRKWQTX.js +5061 -0
  58. package/dist/{chunk-TNKPBI63.js → chunk-JFFQWMNE.js} +5 -5
  59. package/dist/{chunk-I5LDGNYX.js → chunk-JOZQFSOV.js} +1 -1
  60. package/dist/{chunk-JMSS47CW.js → chunk-KBTXAUCZ.js} +1 -1
  61. package/dist/{chunk-7Y4TTOLE.js → chunk-KYXBPFI7.js} +7 -5
  62. package/dist/{chunk-5766TK7Q.js → chunk-LAGZGKKN.js} +1 -1
  63. package/dist/{chunk-MGUA3DUS.js → chunk-LGZP4IR2.js} +3 -3
  64. package/dist/{chunk-VC6GEQ7P.js → chunk-MKL6JGDL.js} +34 -29
  65. package/dist/{chunk-LRYNDYAE.js → chunk-MO6DJMZP.js} +1 -1
  66. package/dist/{chunk-LBS4AS7G.js → chunk-MU66MHZB.js} +2 -2
  67. package/dist/{chunk-3ZNAP65U.js → chunk-MYHAS5U2.js} +13 -17
  68. package/dist/{chunk-6CGYINE7.js → chunk-NOH32H42.js} +25 -0
  69. package/dist/{chunk-VW57BBGU.js → chunk-NWYJZAPP.js} +1 -1
  70. package/dist/{chunk-QCCPXMKP.js → chunk-OFJTXNRS.js} +2 -2
  71. package/dist/{chunk-MZHYAXUV.js → chunk-OPLEWQHF.js} +1 -1
  72. package/dist/{chunk-53ERMOK2.js → chunk-OWU2BURB.js} +2 -2
  73. package/dist/{chunk-UR6QODTY.js → chunk-PNE2Y42T.js} +1 -1
  74. package/dist/{chunk-VVDHSRKD.js → chunk-PPMLF76Z.js} +1 -1
  75. package/dist/chunk-PXVQOMKL.js +39 -0
  76. package/dist/{chunk-4HMG5CQJ.js → chunk-Q3OKLJ34.js} +1 -1
  77. package/dist/chunk-QBXDU24O.js +20 -0
  78. package/dist/{chunk-ISTUBRV3.js → chunk-QETCWXRM.js} +5 -5
  79. package/dist/{chunk-4NJ57TSE.js → chunk-QGMRSNG5.js} +8 -4
  80. package/dist/{chunk-ZE57TSS6.js → chunk-QRIC4WOO.js} +1 -1
  81. package/dist/{chunk-FJ646TIT.js → chunk-R4EWRIDL.js} +161 -21
  82. package/dist/{chunk-YLEEVMBV.js → chunk-RH5Y75UX.js} +2 -2
  83. package/dist/{chunk-VILE6GFD.js → chunk-RIGQABEL.js} +1 -1
  84. package/dist/{chunk-245CC6JT.js → chunk-RKS7GO4O.js} +1 -1
  85. package/dist/{chunk-XESW4XN7.js → chunk-RN7RQBW3.js} +2 -2
  86. package/dist/{chunk-GVHEOOGM.js → chunk-ROUK3OL2.js} +7 -7
  87. package/dist/{chunk-GRCS7WRH.js → chunk-RXQU3QM4.js} +9 -9
  88. package/dist/{chunk-YQCDSSIK.js → chunk-SBBYMUWY.js} +1 -1
  89. package/dist/{chunk-7J6LQ3SQ.js → chunk-SGTEKMJW.js} +19 -4
  90. package/dist/{chunk-PT47MVXR.js → chunk-SPFTXNKQ.js} +20 -15
  91. package/dist/{chunk-T6SMQ4L7.js → chunk-TBEU55KU.js} +1 -1
  92. package/dist/{chunk-FI3JWR34.js → chunk-TQSKEMSL.js} +48 -9
  93. package/dist/{chunk-XWMY7FIW.js → chunk-U54ZBLTF.js} +2 -2
  94. package/dist/{chunk-Q55JNFDV.js → chunk-UGQFQDSV.js} +1 -1
  95. package/dist/{chunk-A7UJGIMA.js → chunk-UIETUYFT.js} +1 -1
  96. package/dist/{chunk-CATLCEDQ.js → chunk-UJEEURID.js} +13 -13
  97. package/dist/{chunk-TYMD647L.js → chunk-URUUGFZD.js} +2 -2
  98. package/dist/{chunk-MYDM4PQL.js → chunk-USQTLRSD.js} +2 -2
  99. package/dist/{chunk-7TWX4Y7I.js → chunk-UVXIJYZY.js} +3 -15
  100. package/dist/{chunk-FC6BAQV5.js → chunk-VDFY4FE5.js} +12 -11
  101. package/dist/{chunk-A3ZRV44X.js → chunk-VPA5YKEY.js} +2 -2
  102. package/dist/{chunk-LIOE46OG.js → chunk-VZENYSX7.js} +90 -9
  103. package/dist/{chunk-DW35FX4I.js → chunk-X5EOH44V.js} +1 -1
  104. package/dist/{chunk-KSV2PMFA.js → chunk-YT4DR2UT.js} +7 -7
  105. package/dist/{chunk-ZXQNWUDY.js → chunk-Z4W7ND2L.js} +7 -7
  106. package/dist/{chunk-LWWTOBZ6.js → chunk-ZRK7ZEWI.js} +3 -3
  107. package/dist/{clean-RDKZTFDC.js → clean-WPLBDRSW.js} +20 -19
  108. package/dist/cli.js +61 -59
  109. package/dist/{cloud-2MGM3NSJ.js → cloud-VMSG2SJB.js} +4 -4
  110. package/dist/{cloudrun-YQONSO6B.js → cloudrun-AXB4G6X2.js} +4 -4
  111. package/dist/commands/layout-audit.browser.js +37 -0
  112. package/dist/{compare-HAMCTSXR.js → compare-NVW3E74E.js} +33 -30
  113. package/dist/{compiler-YUM2ODOP.js → compiler-GHX7QLHL.js} +2 -2
  114. package/dist/{component-2MDTLX6B.js → component-ZQAP7CBI.js} +3 -3
  115. package/dist/{compositions-EEXADRKF.js → compositions-FKHNCB6H.js} +15 -12
  116. package/dist/{delete-X4I63WKN.js → delete-XYC7FN6A.js} +8 -6
  117. package/dist/{deploy-BBGSS4I3.js → deploy-DOJS666X.js} +2 -2
  118. package/dist/{dist-ZE5X6MWG.js → dist-3Q2DNDSR.js} +2 -2
  119. package/dist/{doctor-BNZ6D33R.js → doctor-7CUFMW3Y.js} +14 -13
  120. package/dist/{events-6DI3CND6.js → events-K7HUJ4DO.js} +9 -6
  121. package/dist/{events-BYOF33UK.js → events-KGXVDZV7.js} +9 -6
  122. package/dist/{feedback-Z3JOC7TX.js → feedback-F7WLYJGJ.js} +16 -13
  123. package/dist/{ffmpeg-S44OTBCI.js → ffmpeg-ZFHN4YZ2.js} +7 -6
  124. package/dist/{figma-TVX2H5B3.js → figma-7QKRKT5Q.js} +3 -3
  125. package/dist/fontLocalizeCli.js +11 -10
  126. package/dist/{get-DWKTDVP7.js → get-XKPYG6IC.js} +8 -6
  127. package/dist/{gpuPolicy-GTBFSUHB.js → gpuPolicy-A74BROG6.js} +7 -6
  128. package/dist/{grade-compare-S4P6Z265.js → grade-compare-7SR62TE5.js} +34 -31
  129. package/dist/hangReport.js +1 -1
  130. package/dist/{heifImagePrep-RKQP2Y73.js → heifImagePrep-XTCBHE3B.js} +8 -7
  131. package/dist/{help-WIC6DHOF.js → help-B7CXC4J5.js} +3 -3
  132. package/dist/{history-UBRUPAHH.js → history-3INEHHZ4.js} +12 -9
  133. package/dist/hyperframe.manifest.json +1 -1
  134. package/dist/hyperframe.runtime.iife.js +71 -71
  135. package/dist/hyperframes-player.global.js +3 -3
  136. package/dist/{info-F5LTDQ6I.js → info-J3U63EFT.js} +13 -10
  137. package/dist/{init-6L4WQKOD.js → init-2IEXXRG2.js} +33 -30
  138. package/dist/{inspect-DUIBB263.js → inspect-IRJABR66.js} +34 -31
  139. package/dist/{installer-JKZ5N47B.js → installer-6JLQM6OJ.js} +4 -4
  140. package/dist/{keyframes-5FQNFJFE.js → keyframes-G2TSKZRL.js} +12 -9
  141. package/dist/{lambda-YTO6N2QH.js → lambda-QFFFCFK3.js} +11 -10
  142. package/dist/{layout-H3F2LW62.js → layout-INRUYIDJ.js} +34 -31
  143. package/dist/{lint-WUWLVCJQ.js → lint-BHPBD7Z3.js} +13 -10
  144. package/dist/{list-3EFECRWU.js → list-BGL5PH6J.js} +8 -6
  145. package/dist/{localPage-C3267GRQ.js → localPage-MLFDX4Y6.js} +7 -6
  146. package/dist/{login-W5L64YRM.js → login-ABDL65L6.js} +19 -18
  147. package/dist/{logout-C6P6ERZ3.js → logout-CXGSSQ4Q.js} +6 -4
  148. package/dist/{manager-46MZB3HK.js → manager-DEKPCPWH.js} +9 -8
  149. package/dist/{manager-IZIK7BHN.js → manager-LXWVBDLM.js} +3 -3
  150. package/dist/{media-treatment-XBQWOU5U.js → media-treatment-BQDTCBIT.js} +27 -15
  151. package/dist/{models-ZHNV44XV.js → models-SJIA5QDV.js} +11 -10
  152. package/dist/{motionShot-DO4EQ2U3.js → motionShot-46J3W5UJ.js} +17 -16
  153. package/dist/{normalize-audio-2EXTDNBF.js → normalize-audio-UXAJSQKI.js} +14 -11
  154. package/dist/{open-7ZOY3KI6.js → open-DHRYP3N3.js} +17 -14
  155. package/dist/{parakeetRunner-H3B4QP6W.js → parakeetRunner-WKMM4TYU.js} +13 -12
  156. package/dist/{pipeline-7OKHNKGP.js → pipeline-EIVKRUX2.js} +11 -10
  157. package/dist/{play-B5NNOJN7.js → play-J5A7KHNF.js} +24 -21
  158. package/dist/{preflight-R26JZQJU.js → preflight-GKIQIXFQ.js} +10 -9
  159. package/dist/{present-Y2SEWKGO.js → present-ZDXILGQJ.js} +20 -17
  160. package/dist/{preview-7CZX4A5T.js → preview-A2MLHZFF.js} +23 -20
  161. package/dist/{producer-WTO6XYGU.js → producer-NYWYRG4X.js} +1 -1
  162. package/dist/{projectConfig-SJ5NIYUO.js → projectConfig-DY6FHC7A.js} +6 -6
  163. package/dist/{publication-47KNSXP7.js → publication-N4WHPZOW.js} +2 -2
  164. package/dist/{publish-4J4EKKQN.js → publish-26W6VDND.js} +15 -13
  165. package/dist/{refresh-IYRGLHG5.js → refresh-VJ4FQVH2.js} +3 -2
  166. package/dist/{remove-background-UKC6NKDH.js → remove-background-JYUB75RB.js} +12 -11
  167. package/dist/{render-TABKCTMF.js → render-AQH2VMHO.js} +123 -70
  168. package/dist/{render-DBELH4AC.js → render-JZWO3VX3.js} +23 -20
  169. package/dist/{render-S2FJRE3H.js → render-YPI6CDRS.js} +5 -5
  170. package/dist/{render-batch-6YJMWHZ4.js → render-batch-GR2Y3F2S.js} +5 -5
  171. package/dist/renderSetupWorker.js +4 -4
  172. package/dist/{resolver-EDI3JND5.js → resolver-LTLSX6DR.js} +4 -4
  173. package/dist/{screenshotCapture-HDRHY4NN.js → screenshotCapture-U3IYWTDB.js} +1 -1
  174. package/dist/{sherpa-R6HDRJCA.js → sherpa-2DJ33LQP.js} +12 -11
  175. package/dist/sherpaWorker.js +1 -1
  176. package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -1
  177. package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +9 -0
  178. package/dist/skills/hyperframes-cli/references/preview-render.md +2 -2
  179. package/dist/skills/hyperframes-cli/references/upgrade-info-misc.md +2 -2
  180. package/dist/skills/media-use/references/meta.md +6 -5
  181. package/dist/skills/media-use/scripts/lib/telemetry.mjs +49 -15
  182. package/dist/skills/media-use/scripts/lib/telemetry.test.mjs +19 -5
  183. package/dist/{skills-2QIW3EOJ.js → skills-OF7XMPKX.js} +11 -8
  184. package/dist/{skillsUpdateCheck-XG5FPCU5.js → skillsUpdateCheck-E3HPT4PS.js} +5 -4
  185. package/dist/{snapshot-C5XBKYEF.js → snapshot-6F5XK22M.js} +57 -37
  186. package/dist/{src-E467QUBK.js → src-JUJFZ6GC.js} +10 -5
  187. package/dist/{src-CT2X45TD.js → src-UNN3TXHH.js} +9 -8
  188. package/dist/{staticProjectServer-G54Z4BH7.js → staticProjectServer-DLSH7DHS.js} +18 -17
  189. package/dist/{status-SLILCDBZ.js → status-TJFZFDGS.js} +5 -4
  190. package/dist/studio/assets/{hyperframes-player-H1DIJsJZ.js → hyperframes-player-D38lr2hR.js} +3 -3
  191. package/dist/studio/assets/{index-BftVE_0y.js → index-C-DCQ7nQ.js} +120 -120
  192. package/dist/studio/assets/{index-v_hWj6Kv.js → index-CJ28BLvq.js} +1 -1
  193. package/dist/studio/index.html +1 -1
  194. package/dist/{studio-api-O52RPXZC.js → studio-api-5YATSN7H.js} +8 -8
  195. package/dist/{studioServer-WDTS6ZDI.js → studioServer-O3FSLOUF.js} +54 -51
  196. package/dist/{synthesize-FQML2LN2.js → synthesize-IKSZPKFJ.js} +2 -2
  197. package/dist/{system-MVRF5UM2.js → system-FDPS57FU.js} +2 -2
  198. package/dist/{telemetry-NTO4FJFN.js → telemetry-CY7V7FIN.js} +6 -5
  199. package/dist/{telemetry-GEHWCV7C.js → telemetry-MMCJ2ORL.js} +9 -6
  200. package/dist/{timeline-IVQDNGWZ.js → timeline-ZBJTZK6E.js} +23 -20
  201. package/dist/{tokens-EN5PVV3Y.js → tokens-JFYRYRDK.js} +2 -2
  202. package/dist/{transcribe-HKS3PZAF.js → transcribe-QUMMQM34.js} +11 -10
  203. package/dist/{transcribe-NXMIBNLX.js → transcribe-UVQQ3OMR.js} +21 -18
  204. package/dist/{tts-K5HRN6NQ.js → tts-MQNOBHLH.js} +3 -3
  205. package/dist/{updateCheck-35TT5GRF.js → updateCheck-VMMBGLTI.js} +4 -3
  206. package/dist/{upgrade-G6EOHGUS.js → upgrade-4VYNPIFQ.js} +4 -3
  207. package/dist/{urlDownloader-X7V63HCF.js → urlDownloader-EAPV3CZL.js} +6 -5
  208. package/dist/{validate-4JUCRS64.js → validate-JJG6Q6IH.js} +28 -25
  209. package/dist/{video-SWQXDG7J.js → video-7MJZ7IYL.js} +8 -7
  210. package/dist/warmCheck.js +44 -41
  211. package/dist/warmCheckClient.js +1 -1
  212. package/package.json +2 -1
  213. package/dist/chunk-FBQVRYMD.js +0 -5061
@@ -4,9 +4,15 @@ import { dirname as __hf_dirname } from "node:path";
4
4
  var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ heygenUserId
9
+ } from "./chunk-PXVQOMKL.js";
7
10
  import {
8
11
  diag
9
12
  } from "./chunk-EQGKUPBJ.js";
13
+ import {
14
+ credentialPath
15
+ } from "./chunk-4WEWHZZO.js";
10
16
  import {
11
17
  getInvocationId
12
18
  } from "./chunk-54HJ63Q2.js";
@@ -23,10 +29,10 @@ import {
23
29
  } from "./chunk-FXMKHHPO.js";
24
30
  import {
25
31
  getSystemMeta
26
- } from "./chunk-5766TK7Q.js";
32
+ } from "./chunk-LAGZGKKN.js";
27
33
  import {
28
34
  hostAnswers
29
- } from "./chunk-K4WIOZFP.js";
35
+ } from "./chunk-BR2JQQC5.js";
30
36
  import {
31
37
  POSTHOG_API_KEY,
32
38
  getIdentityPersistence,
@@ -37,7 +43,7 @@ import {
37
43
  } from "./chunk-ZCHULPJZ.js";
38
44
  import {
39
45
  VERSION
40
- } from "./chunk-A3ZRV44X.js";
46
+ } from "./chunk-VPA5YKEY.js";
41
47
 
42
48
  // src/telemetry/transport.ts
43
49
  import { spawn } from "child_process";
@@ -155,8 +161,8 @@ function resolveCanary(name) {
155
161
  decisions.clear();
156
162
  decisionsTelemetryPosture = posture;
157
163
  }
158
- const cached = decisions.get(name);
159
- if (cached) return cached;
164
+ const cached2 = decisions.get(name);
165
+ if (cached2) return cached2;
160
166
  const decision = decideCanary(name);
161
167
  decisions.set(name, decision);
162
168
  return decision;
@@ -186,6 +192,35 @@ function canaryEventProperties() {
186
192
  );
187
193
  }
188
194
 
195
+ // src/telemetry/signedInUser.ts
196
+ import { closeSync, fstatSync, openSync, readFileSync } from "fs";
197
+ var cached;
198
+ function usernameOf(parsed) {
199
+ if (!parsed || typeof parsed !== "object") return void 0;
200
+ const { user, api_key, oauth } = parsed;
201
+ if (!api_key && !oauth) return void 0;
202
+ if (!user || typeof user !== "object") return void 0;
203
+ const name = user.username;
204
+ return typeof name === "string" && name.trim() ? name : void 0;
205
+ }
206
+ function signedInHeygenUsername() {
207
+ const path = credentialPath();
208
+ let fd;
209
+ try {
210
+ fd = openSync(path, "r");
211
+ const { mtimeMs } = fstatSync(fd);
212
+ if (cached?.path === path && cached.mtimeMs === mtimeMs) return cached.username;
213
+ const username = usernameOf(JSON.parse(readFileSync(fd, "utf8")));
214
+ cached = { path, mtimeMs, username };
215
+ return username;
216
+ } catch {
217
+ cached = void 0;
218
+ return void 0;
219
+ } finally {
220
+ if (fd !== void 0) closeSync(fd);
221
+ }
222
+ }
223
+
189
224
  // src/telemetry/client.ts
190
225
  var telemetryEnabled = null;
191
226
  function shouldTrack() {
@@ -204,6 +239,7 @@ function resetTelemetryPostureCache() {
204
239
  function trackEvent(event, properties = {}, distinctId) {
205
240
  if (!shouldTrack()) return;
206
241
  const sys = getSystemMeta();
242
+ const heygenUsername = signedInHeygenUsername();
207
243
  enqueue(
208
244
  event,
209
245
  {
@@ -259,9 +295,10 @@ function trackEvent(event, properties = {}, distinctId) {
259
295
  // never pay for it. See telemetry/canary.ts.
260
296
  ...canaryEventProperties(),
261
297
  agent_env_hints: sys.agent_env_hints ?? void 0,
262
- client: sys.client ?? void 0
298
+ client: sys.client ?? void 0,
299
+ heygen_username: heygenUsername
263
300
  },
264
- distinctId
301
+ distinctId ?? (heygenUsername ? heygenUserId(heygenUsername) : void 0)
265
302
  );
266
303
  }
267
304
  function showTelemetryNotice() {
@@ -271,10 +308,12 @@ function showTelemetryNotice() {
271
308
  config.telemetryNoticeShown = true;
272
309
  writeConfig(config);
273
310
  diag.notice();
274
- diag.notice(` ${c.dim("Hyperframes collects anonymous usage data to improve the tool.")}`);
311
+ diag.notice(
312
+ ` ${c.dim("Hyperframes collects usage data to improve the tool, anonymous until you sign in.")}`
313
+ );
275
314
  diag.notice(` ${c.dim("File paths and composition content are never collected.")}`);
276
315
  diag.notice(
277
- ` ${c.dim("If you sign in to HeyGen, your account (email, or username) is linked to your usage.")}`
316
+ ` ${c.dim("If you sign in to HeyGen, your account (email and username) is linked to your usage.")}`
278
317
  );
279
318
  diag.notice();
280
319
  diag.notice(` ${c.dim("Disable anytime:")} ${c.accent("hyperframes telemetry disable")}`);
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  hostAnswers
9
- } from "./chunk-K4WIOZFP.js";
9
+ } from "./chunk-BR2JQQC5.js";
10
10
  import {
11
11
  readConfig,
12
12
  readConfigFresh,
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-J3RXEDR2.js";
25
25
  import {
26
26
  VERSION
27
- } from "./chunk-A3ZRV44X.js";
27
+ } from "./chunk-VPA5YKEY.js";
28
28
 
29
29
  // src/utils/updateCheck.ts
30
30
  import { existsSync, readFileSync } from "fs";
@@ -12,7 +12,7 @@ import {
12
12
  forceRefreshCredentials,
13
13
  resolveCloudAuthHeaders,
14
14
  resolveCloudBaseUrl
15
- } from "./chunk-VVDHSRKD.js";
15
+ } from "./chunk-PPMLF76Z.js";
16
16
  import {
17
17
  errorBox
18
18
  } from "./chunk-5ZBMHUY2.js";
@@ -11,7 +11,7 @@ import {
11
11
  PRORES_PROFILE_NAMES,
12
12
  appendRateCapArgs,
13
13
  isProresProfile
14
- } from "./chunk-LIOE46OG.js";
14
+ } from "./chunk-VZENYSX7.js";
15
15
  import {
16
16
  failUsage
17
17
  } from "./chunk-DP5LF7GF.js";
@@ -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-VILE6GFD.js";
9
+ } from "./chunk-RIGQABEL.js";
10
10
  import {
11
11
  installPageFunctionGuard,
12
12
  resolveCliChromeGpuMode,
13
13
  seekCompositionTimeline,
14
14
  waitForRuntimeReady
15
- } from "./chunk-FC6BAQV5.js";
15
+ } from "./chunk-VDFY4FE5.js";
16
16
  import {
17
17
  pageNavigationTimeoutMs
18
- } from "./chunk-3AAAA3KH.js";
18
+ } from "./chunk-2JV6FKNZ.js";
19
19
  import {
20
20
  resolveCompositionViewportFromHtml
21
- } from "./chunk-XM3NMXLX.js";
21
+ } from "./chunk-GTKUQUZ6.js";
22
22
  import {
23
23
  launchManagedBrowser,
24
24
  resolveManagedGpuMode
25
- } from "./chunk-53ERMOK2.js";
25
+ } from "./chunk-OWU2BURB.js";
26
26
  import {
27
27
  defineCommand
28
28
  } from "./chunk-DL4OD7IA.js";
@@ -31,14 +31,14 @@ import {
31
31
  } from "./chunk-2GICKZ3I.js";
32
32
  import {
33
33
  resolveNaturalMediaTimelineDuration
34
- } from "./chunk-FBQVRYMD.js";
34
+ } from "./chunk-IVRKWQTX.js";
35
35
  import {
36
36
  decodeWellFormedEscapes
37
37
  } from "./chunk-KSC4O2RY.js";
38
38
  import {
39
39
  printDeprecationNotice,
40
40
  withMeta
41
- } from "./chunk-XWMY7FIW.js";
41
+ } from "./chunk-U54ZBLTF.js";
42
42
  import {
43
43
  failureMessage,
44
44
  jsonFailure
@@ -252,7 +252,7 @@ function extractCompositionErrorsFromLint(lintResult) {
252
252
  async function localizeRemoteAssets(html) {
253
253
  let dir;
254
254
  try {
255
- const { loadProducer } = await import("./producer-WTO6XYGU.js");
255
+ const { loadProducer } = await import("./producer-NYWYRG4X.js");
256
256
  const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
257
257
  dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
258
258
  const assetDir = dir;
@@ -273,9 +273,9 @@ async function localizeRemoteAssets(html) {
273
273
  }
274
274
  async function validateInBrowser(project, opts) {
275
275
  const projectDir = project.dir;
276
- const { bundleToSingleHtml } = await import("./compiler-YUM2ODOP.js");
277
- const { ensureBrowser } = await import("./manager-IZIK7BHN.js");
278
- const { serveStaticProjectHtml } = await import("./staticProjectServer-G54Z4BH7.js");
276
+ const { bundleToSingleHtml } = await import("./compiler-GHX7QLHL.js");
277
+ const { ensureBrowser } = await import("./manager-LXWVBDLM.js");
278
+ const { serveStaticProjectHtml } = await import("./staticProjectServer-DLSH7DHS.js");
279
279
  const { lintProject } = await import("./lintProject-SZIPPOJR.js");
280
280
  const lintResult = await lintProject(projectDir);
281
281
  const compositionErrors = extractCompositionErrorsFromLint(lintResult);
@@ -297,9 +297,9 @@ async function validateInBrowser(project, opts) {
297
297
  try {
298
298
  const browser = await ensureBrowser();
299
299
  const puppeteer = await import("puppeteer-core");
300
- const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-E467QUBK.js");
300
+ const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-JUJFZ6GC.js");
301
301
  const requestedGpuMode = resolveCliChromeGpuMode();
302
- const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-GTBFSUHB.js");
302
+ const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-A74BROG6.js");
303
303
  const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
304
304
  const requiresWebGpu = compositionRequiresWebGpu(html);
305
305
  const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  probeAudioTrack
9
- } from "./chunk-LRYNDYAE.js";
9
+ } from "./chunk-MO6DJMZP.js";
10
10
  import {
11
11
  resolveWithinProject
12
12
  } from "./chunk-ALVXFXUG.js";
@@ -14,7 +14,7 @@ import {
14
14
  MAX_AUDIO_GAIN_DB,
15
15
  formatAudioGain,
16
16
  isAudibleVideoElement
17
- } from "./chunk-FBQVRYMD.js";
17
+ } from "./chunk-IVRKWQTX.js";
18
18
  import {
19
19
  findFfBinary
20
20
  } from "./chunk-VAS6HQX3.js";
@@ -8,14 +8,14 @@ import {
8
8
  DEFAULT_REGISTRY_URL,
9
9
  fetchItemFile,
10
10
  validRegistryItem
11
- } from "./chunk-UR6QODTY.js";
11
+ } from "./chunk-PNE2Y42T.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-GFA5ZCVI.js";
18
+ } from "./chunk-DYHAZFK3.js";
19
19
  import {
20
20
  realProjectRoot
21
21
  } from "./chunk-OFQWTKPW.js";
@@ -4,6 +4,9 @@ import { dirname as __hf_dirname } from "node:path";
4
4
  var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ credentialPath
9
+ } from "./chunk-4WEWHZZO.js";
7
10
  import {
8
11
  c
9
12
  } from "./chunk-2GICKZ3I.js";
@@ -14,19 +17,6 @@ import {
14
17
  normalizeErrorMessage
15
18
  } from "./chunk-E63BDV4Z.js";
16
19
 
17
- // src/auth/paths.ts
18
- import { homedir } from "os";
19
- import { join } from "path";
20
- var CREDENTIAL_FILENAME = "credentials";
21
- function configDir() {
22
- const override = process.env["HEYGEN_CONFIG_DIR"];
23
- if (override && override.length > 0) return override;
24
- return join(homedir(), ".heygen");
25
- }
26
- function credentialPath() {
27
- return join(configDir(), CREDENTIAL_FILENAME);
28
- }
29
-
30
20
  // src/auth/errors.ts
31
21
  var AuthError = class extends Error {
32
22
  code;
@@ -1201,8 +1191,6 @@ async function safeText2(res) {
1201
1191
  }
1202
1192
 
1203
1193
  export {
1204
- configDir,
1205
- credentialPath,
1206
1194
  isAuthError,
1207
1195
  readStore,
1208
1196
  writeStore,
@@ -6,23 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  gotoWhenSent
9
- } from "./chunk-7J6LQ3SQ.js";
9
+ } from "./chunk-SGTEKMJW.js";
10
10
  import {
11
11
  pageNavigationTimeoutMs,
12
12
  windowsChromeCrashRemediation
13
- } from "./chunk-3AAAA3KH.js";
13
+ } from "./chunk-2JV6FKNZ.js";
14
14
  import {
15
15
  resolveCompositionViewportFromHtml
16
- } from "./chunk-XM3NMXLX.js";
16
+ } from "./chunk-GTKUQUZ6.js";
17
17
  import {
18
18
  launchManagedBrowser,
19
19
  resolveManagedGpuMode,
20
20
  rethrowAfterBrowserCleanup
21
- } from "./chunk-53ERMOK2.js";
21
+ } from "./chunk-OWU2BURB.js";
22
22
  import {
23
23
  resolveLocalBrowserGpuMode,
24
24
  resolveLocalWebGpu
25
- } from "./chunk-MP7DZH5M.js";
25
+ } from "./chunk-EJTVBW42.js";
26
26
  import {
27
27
  c
28
28
  } from "./chunk-2GICKZ3I.js";
@@ -30,7 +30,7 @@ import {
30
30
  assertWebGpuAdapterAvailable,
31
31
  compositionRequiresWebGpu,
32
32
  oneProcessOverPipe
33
- } from "./chunk-LIOE46OG.js";
33
+ } from "./chunk-VZENYSX7.js";
34
34
  import {
35
35
  normalizeErrorMessage
36
36
  } from "./chunk-E63BDV4Z.js";
@@ -138,7 +138,7 @@ async function waitForCompositionSettle(page, options) {
138
138
  console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
139
139
  });
140
140
  await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
141
- const { resolveConfig, waitForImagesReady } = await import("./src-E467QUBK.js");
141
+ const { resolveConfig, waitForImagesReady } = await import("./src-JUJFZ6GC.js");
142
142
  const imageTimeoutMs = resolveConfig().playerReadyTimeout;
143
143
  await waitForImagesReady(
144
144
  page,
@@ -187,7 +187,7 @@ async function installPageFunctionGuard(page) {
187
187
  async function openSettledCompositionPage(html, url, options) {
188
188
  const viewport = resolveCompositionViewportFromHtml(html);
189
189
  const requiresWebGpu = compositionRequiresWebGpu(html);
190
- const answer = (await import("./staticProjectServer-G54Z4BH7.js")).inProcessAnswer(url);
190
+ const answer = (await import("./staticProjectServer-DLSH7DHS.js")).inProcessAnswer(url);
191
191
  const noListen = answer !== void 0;
192
192
  let chromeBrowser;
193
193
  try {
@@ -198,9 +198,10 @@ async function openSettledCompositionPage(html, url, options) {
198
198
  options.onBrowserReady?.();
199
199
  const page = await chromeBrowser.newPage();
200
200
  await installPageFunctionGuard(page);
201
- const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-E467QUBK.js");
201
+ const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-JUJFZ6GC.js");
202
202
  await installMediaRenderIdBridge(page);
203
203
  await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
204
+ await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
204
205
  await page.setViewport(viewport);
205
206
  if (answer) await answerPageInProcess(page, url, answer);
206
207
  await options.beforeNavigate?.(page);
@@ -215,10 +216,10 @@ async function openSettledCompositionPage(html, url, options) {
215
216
  }
216
217
  async function launchCompositionBrowser(html, noListen, options) {
217
218
  const viewport = resolveCompositionViewportFromHtml(html);
218
- const { ensureBrowser, findSystemBrowser } = await import("./manager-IZIK7BHN.js");
219
+ const { ensureBrowser, findSystemBrowser } = await import("./manager-LXWVBDLM.js");
219
220
  const browser = await ensureBrowser({ signal: options.signal });
220
221
  const puppeteer = await import("puppeteer-core");
221
- const { buildChromeArgs } = await import("./src-E467QUBK.js");
222
+ const { buildChromeArgs } = await import("./src-JUJFZ6GC.js");
222
223
  const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
223
224
  const requiresWebGpu = compositionRequiresWebGpu(html);
224
225
  let softwareWebGpu = false;
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/version.ts
9
- var VERSION = true ? "0.8.214" : "0.0.0-dev";
10
- var PRODUCER_VERSION = true ? "0.8.214" : "0.0.0-dev";
9
+ var VERSION = true ? "0.8.216" : "0.0.0-dev";
10
+ var PRODUCER_VERSION = true ? "0.8.216" : "0.0.0-dev";
11
11
 
12
12
  export {
13
13
  VERSION,
@@ -42,7 +42,7 @@ import {
42
42
  renderFrameIdForRenderId,
43
43
  resolveAuthoredTimingWindow,
44
44
  toFps
45
- } from "./chunk-GFA5ZCVI.js";
45
+ } from "./chunk-DYHAZFK3.js";
46
46
  import {
47
47
  AUDIO_GROUP_RENDER_ID_ATTR,
48
48
  AUTHORED_SOURCE_BEGIN,
@@ -85,7 +85,7 @@ import {
85
85
  sourceTimeAt,
86
86
  timeAtSourceTime,
87
87
  volumeSegmentSampleCount
88
- } from "./chunk-FBQVRYMD.js";
88
+ } from "./chunk-IVRKWQTX.js";
89
89
  import {
90
90
  redactTelemetryString,
91
91
  redactUrlQueryStrings
@@ -122,9 +122,13 @@ import {
122
122
  import {
123
123
  LOW_MEMORY_TOTAL_MB_THRESHOLD,
124
124
  getAvailableMemoryMb,
125
+ getCgroupCpuLimit,
125
126
  getSystemTotalMb,
126
127
  isLowMemorySystem
127
- } from "./chunk-32NEJ553.js";
128
+ } from "./chunk-FBN2M2HK.js";
129
+ import {
130
+ fetchGoesThroughEnvProxy
131
+ } from "./chunk-QBXDU24O.js";
128
132
  import {
129
133
  describeWslGpuAccess,
130
134
  detectWsl
@@ -197,6 +201,7 @@ var OPTIONAL_ENGINE_CONFIG_FIELDS = [
197
201
  "expectedChromiumMajor",
198
202
  "pageSideCompositingAutoDisabled",
199
203
  "forceScreenshotExplicitlyOptedOut",
204
+ "beginFrameFirstFrameDeadlineMs",
200
205
  "streamingEncodeAutoDisabledOnWin32Compound",
201
206
  "runtimeManifestPath",
202
207
  "extractCacheDir"
@@ -279,6 +284,9 @@ function validateEngineConfigScalars(config) {
279
284
  if (typeof config.jpegQuality === "number" && config.jpegQuality > 100) {
280
285
  throw new Error("Engine config jpegQuality must be <= 100");
281
286
  }
287
+ if (config.beginFrameFirstFrameDeadlineMs !== void 0) {
288
+ assertEngineConfigNumber(config, "beginFrameFirstFrameDeadlineMs", 1, true);
289
+ }
282
290
  }
283
291
  function validateEngineConfigParallelism(config) {
284
292
  if (config.concurrency !== "auto" && (typeof config.concurrency !== "number" || !Number.isInteger(config.concurrency) || config.concurrency < 1)) {
@@ -8228,6 +8236,10 @@ async function getCompositionDuration(session) {
8228
8236
  return window.__hf?.duration ?? 0;
8229
8237
  });
8230
8238
  }
8239
+ async function getCompositionLengthSource(session) {
8240
+ if (!session.isInitialized) throw new Error("[FrameCapture] Session not initialized");
8241
+ return session.page.evaluate(() => window.__hf?.lengthSource ?? null);
8242
+ }
8231
8243
  function computeDeVerifySampleFractions(k) {
8232
8244
  if (k <= 0) return [];
8233
8245
  if (k === 1) return [0.95];
@@ -9941,6 +9953,7 @@ function appendSoftwareEncoderThreadsArg(args, encoder, parallelism = availableP
9941
9953
 
9942
9954
  // ../engine/src/utils/renderProvenance.ts
9943
9955
  import { readFileSync as readFileSync2 } from "fs";
9956
+ import { createRequire } from "module";
9944
9957
  import { dirname, join as join7 } from "path";
9945
9958
  import { fileURLToPath } from "url";
9946
9959
  var PROVENANCE_RENDERER_TAG = "hyperframes_renderer";
@@ -9968,9 +9981,23 @@ function resolveOwnVersionFrom(startDir) {
9968
9981
  if (parent === dir) break;
9969
9982
  dir = parent;
9970
9983
  }
9984
+ const installed = installedEngineVersion(startDir);
9985
+ if (installed) return installed;
9971
9986
  reportUnresolved(`no package.json matching ${OWN_PACKAGE_NAME} within ${MAX_WALK_DEPTH} levels`);
9972
9987
  return UNRESOLVED_VERSION;
9973
9988
  }
9989
+ function installedEngineVersion(fromDir) {
9990
+ try {
9991
+ const path = createRequire(join7(fromDir, "index.js")).resolve(
9992
+ "@hyperframes/engine/package.json"
9993
+ );
9994
+ const pkg = JSON.parse(readFileSync2(path, "utf8"));
9995
+ if (pkg.name === "@hyperframes/engine" && typeof pkg.version === "string" && pkg.version)
9996
+ return pkg.version;
9997
+ } catch {
9998
+ }
9999
+ return void 0;
10000
+ }
9974
10001
  function reportUnresolved(reason) {
9975
10002
  console.warn(
9976
10003
  `[renderProvenance] could not resolve the engine version (${reason}); stamping ${PROVENANCE_VERSION_TAG}="${UNRESOLVED_VERSION}". This is a lookup failure, not a version - do not treat it as one.`
@@ -10014,7 +10041,7 @@ function readRenderProvenance(tags) {
10014
10041
  var ENCODER_PRESETS = {
10015
10042
  draft: { preset: "ultrafast", quality: 28, codec: "h264" },
10016
10043
  standard: { preset: "medium", quality: 18, codec: "h264" },
10017
- high: { preset: "slow", quality: 15, codec: "h264" }
10044
+ high: { preset: "fast", quality: 15, codec: "h264" }
10018
10045
  };
10019
10046
  function appendEncodeTimeoutMessage(error, timedOut, timeoutMs) {
10020
10047
  if (!timedOut) return error;
@@ -11336,6 +11363,7 @@ import {
11336
11363
  unlinkSync
11337
11364
  } from "fs";
11338
11365
  import { createHash, randomUUID as randomUUID2 } from "crypto";
11366
+ import dns from "dns";
11339
11367
  import { BlockList, isIP } from "net";
11340
11368
  import { dirname as dirname4, extname as extname2, join as join10 } from "path";
11341
11369
  import { Readable, Transform } from "stream";
@@ -11634,6 +11662,42 @@ async function acquireCachePathLock(localPath, timeoutMs, signal) {
11634
11662
  }
11635
11663
  var REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
11636
11664
  var MAX_REDIRECTS = 5;
11665
+ var NON_PUBLIC_ADDRESS_CODE = "HF_NON_PUBLIC_ADDRESS";
11666
+ var publicOnlyLookup = (hostname, options, callback) => {
11667
+ dns.lookup(hostname, { ...options, all: true }, (error, answers) => {
11668
+ if (error) return callback(error, "", 0);
11669
+ if (answers.length === 0 || answers.some((a) => isBlockedNetworkHost(a.address.split("%")[0]))) {
11670
+ const refused = Object.assign(new Error("host resolves to a non-public address"), {
11671
+ code: NON_PUBLIC_ADDRESS_CODE
11672
+ });
11673
+ return callback(refused, "", 0);
11674
+ }
11675
+ if (options.all) return callback(null, answers);
11676
+ return callback(null, answers[0].address, answers[0].family);
11677
+ });
11678
+ };
11679
+ var undiciTransport;
11680
+ var fetchPublic = async (url, init) => {
11681
+ if (fetchGoesThroughEnvProxy()) return fetch(url, init);
11682
+ undiciTransport ??= import("undici").then(({ Agent, fetch: undiciFetch }) => {
11683
+ const dispatcher = new Agent({ connect: { lookup: publicOnlyLookup } });
11684
+ return (target, options) => undiciFetch(target, { ...options, dispatcher });
11685
+ });
11686
+ return (await undiciTransport)(url, init);
11687
+ };
11688
+ var downloadFetch = fetchPublic;
11689
+ function _setDownloadFetchForTests(replacement) {
11690
+ downloadFetch = replacement ?? fetchPublic;
11691
+ }
11692
+ function refusedNonPublicAddress(error) {
11693
+ for (let depth = 0; error && depth < 4; depth += 1) {
11694
+ if (typeof error === "object" && "code" in error && error.code === NON_PUBLIC_ADDRESS_CODE) {
11695
+ return true;
11696
+ }
11697
+ error = typeof error === "object" && "cause" in error ? error.cause : void 0;
11698
+ }
11699
+ return false;
11700
+ }
11637
11701
  function assertAllowedDownloadUrl(url, redirect) {
11638
11702
  try {
11639
11703
  assertPublicHttpsUrl(url);
@@ -11673,10 +11737,17 @@ async function fetchWithValidatedRedirects(initialUrl, controller) {
11673
11737
  let currentUrl = initialUrl;
11674
11738
  for (let redirects = 0; ; redirects += 1) {
11675
11739
  assertAllowedDownloadUrl(currentUrl, redirects > 0);
11676
- const response = await fetch(currentUrl, {
11740
+ const response = await downloadFetch(currentUrl, {
11677
11741
  signal: controller.signal,
11678
11742
  redirect: "manual",
11679
11743
  headers: { "accept-encoding": "identity" }
11744
+ }).catch((error) => {
11745
+ if (!refusedNonPublicAddress(error)) throw error;
11746
+ throw new UrlDownloadError(
11747
+ "http_rejected",
11748
+ false,
11749
+ redirects > 0 ? "Download redirect target is not permitted" : "Download URL is not permitted"
11750
+ );
11680
11751
  });
11681
11752
  if (!REDIRECT_STATUSES.has(response.status)) return { response, finalUrl: currentUrl };
11682
11753
  await cancelResponseBody(response);
@@ -14690,7 +14761,9 @@ async function measureVideoShownBoxes(page, videoIds, times) {
14690
14761
  const fullSize = /* @__PURE__ */ new Set();
14691
14762
  const gradedThroughGroup = (video) => {
14692
14763
  const groupId = video.getAttribute(groupAttr);
14693
- const group = groupId ? document.getElementById(groupId) : null;
14764
+ if (!groupId) return false;
14765
+ const scope = video.closest("[data-composition-id]");
14766
+ const group = scope && Array.from(scope.getElementsByTagName(groupTag)).find((g) => g.id === groupId) || document.getElementById(groupId);
14694
14767
  return group?.localName === groupTag && group.hasAttribute(gradingAttr);
14695
14768
  };
14696
14769
  const keepsFullSize = (video) => {
@@ -17606,7 +17679,9 @@ async function readWebGlVendorInfoFromCanvas(page) {
17606
17679
  // ../engine/src/services/parallelCoordinator.ts
17607
17680
  var MEMORY_PER_WORKER_MB = 1536;
17608
17681
  var HEAP_RESERVED_MB = 1024;
17609
- var HEAP_PER_WORKER_MB = 640;
17682
+ var HEAP_PER_WORKER_MB = 320;
17683
+ var DESKTOP_HEAP_PER_WORKER_MB = 640;
17684
+ var inDesktopApp = () => Boolean(process.versions.electron) || /^desktop\//.test(process.env.HYPERFRAMES_CLIENT ?? "");
17610
17685
  var APPLE_DISK_HEAP_PER_WORKER_MB = 128;
17611
17686
  var APPLE_DISK_CORES_PER_WORKER = 1.75;
17612
17687
  var APPLE_DISK_MAX_WORKERS = 8;
@@ -17661,10 +17736,14 @@ function computeWorkerSizing(totalFrames, requested, config) {
17661
17736
  const heapBasedWorkers = Math.max(
17662
17737
  1,
17663
17738
  Math.floor(
17664
- (heapLimitMb - HEAP_RESERVED_MB) / (appleDisk ? APPLE_DISK_HEAP_PER_WORKER_MB : HEAP_PER_WORKER_MB)
17739
+ (heapLimitMb - HEAP_RESERVED_MB) / (appleDisk ? APPLE_DISK_HEAP_PER_WORKER_MB : inDesktopApp() ? DESKTOP_HEAP_PER_WORKER_MB : HEAP_PER_WORKER_MB)
17665
17740
  )
17666
17741
  );
17667
- const cpuBasedWorkers = Math.max(1, cpuCount - 2);
17742
+ const cpuQuota = getCgroupCpuLimit();
17743
+ const cpuBasedWorkers = Math.max(
17744
+ 1,
17745
+ cpuQuota === null ? cpuCount - 2 : Math.min(cpuCount - 2, Math.floor(cpuQuota))
17746
+ );
17668
17747
  const memoryBasedWorkers = Math.max(1, Math.floor(totalMemoryMb * 0.5 / MEMORY_PER_WORKER_MB));
17669
17748
  const frameBasedWorkers = Math.floor(totalFrames / MIN_FRAMES_PER_WORKER);
17670
17749
  const captureCostMultiplier = Math.max(1, config?.captureCostMultiplier ?? 1);
@@ -18891,6 +18970,7 @@ export {
18891
18970
  closeCaptureSession,
18892
18971
  prepareCaptureSessionForReuse,
18893
18972
  getCompositionDuration,
18973
+ getCompositionLengthSource,
18894
18974
  percentileOf,
18895
18975
  getCapturePerfSummary,
18896
18976
  frameSequencePath,
@@ -18961,6 +19041,7 @@ export {
18961
19041
  writeUrlDownloadTelemetry,
18962
19042
  isBlockedNetworkHost,
18963
19043
  assertPublicHttpsUrl,
19044
+ _setDownloadFetchForTests,
18964
19045
  fetchPublicHttpsText,
18965
19046
  downloadToTemp,
18966
19047
  isHttpUrl,
@@ -53,7 +53,7 @@ function formatLintCounts(totalErrors, totalWarnings, totalInfos, verbose) {
53
53
  function formatLintStartupMessage(lintResult, mode) {
54
54
  if (mode.kind === "verbose") return formatLintFindings(lintResult, mode.options);
55
55
  const counts = formatLintCounts(lintResult.totalErrors, lintResult.totalWarnings, 0, false);
56
- const hint = mode.pointer === "studio" ? "see the Lint badge in Studio, or run `hyperframes lint` for full output" : "run with --lint-verbose for full output";
56
+ const hint = mode.pointer === "studio" ? "see the Lint badge in Studio, or run `hyperframes lint` for full output" : "run `hyperframes lint` for full output";
57
57
  return [` Lint: ${counts} \u2014 ${hint}.`];
58
58
  }
59
59
  function findingFileLabel(file, finding, multiFile) {