hyperframes 0.8.214 → 0.8.217

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 (217) hide show
  1. package/dist/{add-U2N4ZWNB.js → add-AXTSRFNT.js} +19 -16
  2. package/dist/{agentPromptGenerator-EK7NEFV6.js → agentPromptGenerator-52346WSZ.js} +8 -7
  3. package/dist/{animatedGifPrep-X3FLFGCC.js → animatedGifPrep-WZHO7ZUA.js} +8 -7
  4. package/dist/api.js +19 -18
  5. package/dist/{asset-3CSXQ7JI.js → asset-T2CE34TV.js} +2 -2
  6. package/dist/{assetCataloger-FG2VTSSR.js → assetCataloger-2KABZLU3.js} +9 -8
  7. package/dist/{audio-US7IUDFM.js → audio-6I2AK3TZ.js} +179 -63
  8. package/dist/{auth-IMXNGPGR.js → auth-B3LLOMAG.js} +4 -4
  9. package/dist/{autoUpdate-IGZP5HIX.js → autoUpdate-TTY4BTMM.js} +5 -4
  10. package/dist/{backgroundChecks-UGU6SRCU.js → backgroundChecks-WKW5CTCV.js} +6 -5
  11. package/dist/backgroundChecksWorker.js +7 -6
  12. package/dist/{batchRender-5JS4SAGR.js → batchRender-ESAPNTE3.js} +4 -4
  13. package/dist/{beats-2F7ZW7QB.js → beats-5WAAC5HT.js} +25 -19
  14. package/dist/{benchmark-Y25FBDO7.js → benchmark-KFYDNWZ7.js} +16 -13
  15. package/dist/{browser-43AS35ZL.js → browser-LK4FYQXO.js} +12 -9
  16. package/dist/{bundleWithLocalizedFonts-6VHTVRO3.js → bundleWithLocalizedFonts-NRY45OIW.js} +2 -2
  17. package/dist/{capture-CMP4DHPY.js → capture-DXRZI2WW.js} +19 -18
  18. package/dist/{capture-N5AMWY4S.js → capture-SCXKM2WO.js} +3 -3
  19. package/dist/{captureCompositionFrame-PQT4GNR2.js → captureCompositionFrame-NDQEZBHR.js} +14 -13
  20. package/dist/{catalog-SZPWUZ75.js → catalog-7WRGMHVI.js} +20 -17
  21. package/dist/{catch-up-OYYHR2UB.js → catch-up-6QEJHTFF.js} +12 -9
  22. package/dist/{check-MBW4AYV6.js → check-HNONMHQD.js} +45 -42
  23. package/dist/{checkAudio-DIJNBWAF.js → checkAudio-OLNSZWWX.js} +12 -11
  24. package/dist/{checkBrowser-NYBDUAT2.js → checkBrowser-L2L2EEJD.js} +38 -35
  25. package/dist/{chunk-LBS4AS7G.js → chunk-2JUNPJUM.js} +2 -2
  26. package/dist/{chunk-4HMG5CQJ.js → chunk-2Q4CL6AB.js} +1 -1
  27. package/dist/{chunk-CATLCEDQ.js → chunk-3C6O5HV2.js} +13 -13
  28. package/dist/{chunk-6LDHXB4Z.js → chunk-3F2DTPBD.js} +3 -2
  29. package/dist/{chunk-DFQM3XMK.js → chunk-3MUFCWGK.js} +5 -5
  30. package/dist/{chunk-VC6GEQ7P.js → chunk-3YCAGPZK.js} +72 -31
  31. package/dist/{chunk-MZHYAXUV.js → chunk-42K4JLQO.js} +1 -1
  32. package/dist/chunk-4I7KQWZS.js +5061 -0
  33. package/dist/{chunk-ZMKRQ4HE.js → chunk-4JHZBIBW.js} +3 -3
  34. package/dist/chunk-4WEWHZZO.js +24 -0
  35. package/dist/{chunk-53ERMOK2.js → chunk-5CXGDO74.js} +2 -2
  36. package/dist/{chunk-245CC6JT.js → chunk-5HGUY24Y.js} +1 -1
  37. package/dist/{chunk-LRYNDYAE.js → chunk-5SZ2HRCW.js} +1 -1
  38. package/dist/{chunk-GRCS7WRH.js → chunk-5XDKFCEI.js} +9 -9
  39. package/dist/{chunk-3AAAA3KH.js → chunk-62ER6HGC.js} +3 -3
  40. package/dist/{chunk-ZXQNWUDY.js → chunk-64TWYU4M.js} +8 -8
  41. package/dist/{chunk-BRTWBGFE.js → chunk-6YGTOBXW.js} +1 -1
  42. package/dist/{chunk-GFA5ZCVI.js → chunk-AU7VGKCP.js} +7 -3
  43. package/dist/{chunk-ZCHULPJZ.js → chunk-BLBMPEBX.js} +6 -0
  44. package/dist/{chunk-K4WIOZFP.js → chunk-BR2JQQC5.js} +3 -5
  45. package/dist/{chunk-VEWR5HXT.js → chunk-BRYOYBO5.js} +1 -1
  46. package/dist/{chunk-G6HUXX3L.js → chunk-CBCZBHGK.js} +4 -2
  47. package/dist/{chunk-TNKPBI63.js → chunk-CH4RRRGC.js} +5 -5
  48. package/dist/{chunk-GSYZG4E7.js → chunk-DEWCAOOL.js} +2 -2
  49. package/dist/{chunk-YLEEVMBV.js → chunk-DOZGTBDV.js} +2 -2
  50. package/dist/{chunk-GHROWWUN.js → chunk-DWTFLQ3P.js} +33 -6
  51. package/dist/{chunk-HVQDDVN4.js → chunk-EAUUGY4R.js} +2 -2
  52. package/dist/{chunk-FQO3RV6O.js → chunk-ESZ6YPQM.js} +2 -2
  53. package/dist/{chunk-32NEJ553.js → chunk-FBN2M2HK.js} +28 -0
  54. package/dist/{chunk-MGUA3DUS.js → chunk-G35NVFZF.js} +3 -3
  55. package/dist/{chunk-L72RQ45A.js → chunk-G3AG7A42.js} +1 -1
  56. package/dist/{chunk-6UUPTWUG.js → chunk-GHWV6PIS.js} +1 -1
  57. package/dist/{chunk-FKFGGAXN.js → chunk-GLC5XHN5.js} +13 -0
  58. package/dist/{chunk-XWMY7FIW.js → chunk-H47FQDFU.js} +3 -3
  59. package/dist/{chunk-PT47MVXR.js → chunk-HPRR3WD7.js} +23 -17
  60. package/dist/{chunk-TYMD647L.js → chunk-JMGMOK4Z.js} +2 -2
  61. package/dist/{chunk-YQCDSSIK.js → chunk-JY27IRDR.js} +1 -1
  62. package/dist/{chunk-VW57BBGU.js → chunk-K2666FKT.js} +1 -1
  63. package/dist/{chunk-S6WDNIUG.js → chunk-K5GGTJJV.js} +1 -1
  64. package/dist/{chunk-XESW4XN7.js → chunk-KH5XMMSM.js} +2 -2
  65. package/dist/{chunk-FI3JWR34.js → chunk-KLGJ2R4V.js} +49 -10
  66. package/dist/{chunk-KSV2PMFA.js → chunk-L4BRJVGC.js} +7 -7
  67. package/dist/{chunk-5766TK7Q.js → chunk-LAGZGKKN.js} +1 -1
  68. package/dist/{chunk-I5LDGNYX.js → chunk-LJB2PF6K.js} +1 -1
  69. package/dist/{chunk-ISTUBRV3.js → chunk-LPJMACTI.js} +5 -5
  70. package/dist/{chunk-T6SMQ4L7.js → chunk-MGZKDR6R.js} +1 -1
  71. package/dist/{chunk-G7CFMNRO.js → chunk-MK4R3APQ.js} +2 -2
  72. package/dist/{chunk-6CGYINE7.js → chunk-NOH32H42.js} +25 -0
  73. package/dist/{chunk-VILE6GFD.js → chunk-NWD2KKM5.js} +1 -1
  74. package/dist/{chunk-QCCPXMKP.js → chunk-O44FYXH5.js} +2 -2
  75. package/dist/{chunk-HNYTTRLR.js → chunk-OQRO2MEK.js} +4 -4
  76. package/dist/{chunk-A3ZRV44X.js → chunk-OV6MUGZI.js} +2 -2
  77. package/dist/{chunk-LWWTOBZ6.js → chunk-P42DLWIY.js} +3 -3
  78. package/dist/{chunk-MP7DZH5M.js → chunk-PNBH4ZY7.js} +2 -2
  79. package/dist/{chunk-VVDHSRKD.js → chunk-PPMLF76Z.js} +1 -1
  80. package/dist/chunk-PXVQOMKL.js +39 -0
  81. package/dist/chunk-QBXDU24O.js +20 -0
  82. package/dist/{chunk-ZE57TSS6.js → chunk-QRIC4WOO.js} +1 -1
  83. package/dist/{chunk-4NJ57TSE.js → chunk-QY7RG6K3.js} +11 -6
  84. package/dist/{chunk-FJ646TIT.js → chunk-R4EWRIDL.js} +161 -21
  85. package/dist/{chunk-FC6BAQV5.js → chunk-R7EB4M5P.js} +12 -11
  86. package/dist/{chunk-WJRYQYOM.js → chunk-RLT45AWC.js} +1 -1
  87. package/dist/{chunk-XM3NMXLX.js → chunk-RYBFHEMZ.js} +1 -1
  88. package/dist/{chunk-7J6LQ3SQ.js → chunk-SGTEKMJW.js} +19 -4
  89. package/dist/{chunk-HQRI2NT3.js → chunk-ST5EBZTO.js} +1 -1
  90. package/dist/{chunk-URD4QIQS.js → chunk-TCVI4ZGS.js} +1 -1
  91. package/dist/{chunk-LIOE46OG.js → chunk-TDNZIFJ2.js} +130 -38
  92. package/dist/{chunk-634HSJ3J.js → chunk-TK7THLRO.js} +10 -3
  93. package/dist/{chunk-Q55JNFDV.js → chunk-UGQFQDSV.js} +1 -1
  94. package/dist/{chunk-7Y4TTOLE.js → chunk-UQSBVZ3H.js} +7 -5
  95. package/dist/{chunk-VAOROEWU.js → chunk-URKDBFZV.js} +2 -2
  96. package/dist/{chunk-7TWX4Y7I.js → chunk-UVXIJYZY.js} +3 -15
  97. package/dist/{chunk-JMSS47CW.js → chunk-UWV753SJ.js} +1 -1
  98. package/dist/{chunk-A7UJGIMA.js → chunk-UZPWLXO6.js} +1 -1
  99. package/dist/{chunk-QL7ITOPE.js → chunk-V4AS2BNU.js} +3 -3
  100. package/dist/{chunk-YDHXPY23.js → chunk-VS7G457O.js} +1 -1
  101. package/dist/{chunk-MYDM4PQL.js → chunk-VTLIN7XN.js} +2 -2
  102. package/dist/{chunk-7W4DJKZA.js → chunk-W2LKSBX5.js} +11 -11
  103. package/dist/{chunk-ENV35BSH.js → chunk-WGHUHNXI.js} +125 -53
  104. package/dist/{chunk-EJCCJTUH.js → chunk-WKNWKORX.js} +3 -3
  105. package/dist/{chunk-DW35FX4I.js → chunk-X5EOH44V.js} +1 -1
  106. package/dist/{chunk-7YUYG6S6.js → chunk-XN22HGE7.js} +1 -1
  107. package/dist/{chunk-UR6QODTY.js → chunk-YATFRFNH.js} +1 -1
  108. package/dist/{chunk-3ZNAP65U.js → chunk-YQY4KVP4.js} +13 -17
  109. package/dist/{chunk-GVHEOOGM.js → chunk-Z3HHAFEP.js} +7 -7
  110. package/dist/{clean-RDKZTFDC.js → clean-2CK4S5ES.js} +22 -21
  111. package/dist/cli.js +63 -70
  112. package/dist/{cloud-2MGM3NSJ.js → cloud-QRSJMVGW.js} +4 -4
  113. package/dist/{cloudrun-YQONSO6B.js → cloudrun-5XEDIP77.js} +5 -5
  114. package/dist/commands/layout-audit.browser.js +44 -1
  115. package/dist/{compare-HAMCTSXR.js → compare-ASV5QBD2.js} +35 -32
  116. package/dist/{compiler-YUM2ODOP.js → compiler-CG2EXM75.js} +2 -2
  117. package/dist/{component-2MDTLX6B.js → component-24XLTKUQ.js} +3 -3
  118. package/dist/{compositions-EEXADRKF.js → compositions-AN7ETEKG.js} +17 -14
  119. package/dist/{delete-X4I63WKN.js → delete-OMKQ3XTL.js} +9 -7
  120. package/dist/{deploy-BBGSS4I3.js → deploy-3M6QRT2H.js} +2 -2
  121. package/dist/{dist-ZE5X6MWG.js → dist-VNOJCTQR.js} +3 -3
  122. package/dist/{doctor-BNZ6D33R.js → doctor-ABYFP2LY.js} +16 -15
  123. package/dist/{dotEnv-RPHCAUBZ.js → dotEnv-BGFXSQOA.js} +7 -5
  124. package/dist/{events-6DI3CND6.js → events-64QVWKTU.js} +10 -7
  125. package/dist/{events-BYOF33UK.js → events-P5AFL2VZ.js} +11 -8
  126. package/dist/{feedback-Z3JOC7TX.js → feedback-LQ2TT4XL.js} +31 -16
  127. package/dist/{ffmpeg-S44OTBCI.js → ffmpeg-Y6NMFQ5J.js} +8 -7
  128. package/dist/{figma-TVX2H5B3.js → figma-R75KTFW4.js} +3 -3
  129. package/dist/fontLocalizeCli.js +12 -11
  130. package/dist/{get-DWKTDVP7.js → get-KB67C2T7.js} +9 -7
  131. package/dist/{gpuPolicy-GTBFSUHB.js → gpuPolicy-4ERRTA5U.js} +8 -7
  132. package/dist/{grade-compare-S4P6Z265.js → grade-compare-NPVETP7T.js} +36 -33
  133. package/dist/hangReport.js +1 -1
  134. package/dist/{heifImagePrep-RKQP2Y73.js → heifImagePrep-ABLYQMTO.js} +9 -8
  135. package/dist/{help-WIC6DHOF.js → help-ZNJG5OJO.js} +3 -3
  136. package/dist/{history-UBRUPAHH.js → history-HUBQPMLX.js} +14 -11
  137. package/dist/hyperframe.manifest.json +1 -1
  138. package/dist/hyperframe.runtime.iife.js +71 -71
  139. package/dist/hyperframes-player.global.js +3 -3
  140. package/dist/{info-F5LTDQ6I.js → info-KDSQGWE5.js} +15 -12
  141. package/dist/{init-6L4WQKOD.js → init-QEPNUQB2.js} +35 -32
  142. package/dist/{inspect-DUIBB263.js → inspect-27GJ5ZUI.js} +36 -33
  143. package/dist/{installer-JKZ5N47B.js → installer-OFIDWMYR.js} +5 -5
  144. package/dist/{keyframes-5FQNFJFE.js → keyframes-E2NNHMNK.js} +14 -11
  145. package/dist/{lambda-YTO6N2QH.js → lambda-QQ2VVPRQ.js} +12 -11
  146. package/dist/{layout-H3F2LW62.js → layout-NQQZ5KR7.js} +36 -33
  147. package/dist/{lint-WUWLVCJQ.js → lint-DUYKX36O.js} +15 -12
  148. package/dist/{list-3EFECRWU.js → list-HIZY6RSP.js} +9 -7
  149. package/dist/{localPage-C3267GRQ.js → localPage-U2RMKIMN.js} +8 -7
  150. package/dist/{login-W5L64YRM.js → login-CLP2ZTEW.js} +19 -18
  151. package/dist/{logout-C6P6ERZ3.js → logout-CXGSSQ4Q.js} +6 -4
  152. package/dist/{manager-46MZB3HK.js → manager-CXRLWAKH.js} +10 -9
  153. package/dist/{manager-IZIK7BHN.js → manager-LXWVBDLM.js} +3 -3
  154. package/dist/{media-treatment-XBQWOU5U.js → media-treatment-GSWIAGS4.js} +29 -17
  155. package/dist/{models-ZHNV44XV.js → models-TPHYQXOL.js} +12 -11
  156. package/dist/{motionShot-DO4EQ2U3.js → motionShot-7UX4TKHZ.js} +18 -17
  157. package/dist/{normalize-audio-2EXTDNBF.js → normalize-audio-WBTJDFS7.js} +16 -13
  158. package/dist/{open-7ZOY3KI6.js → open-P7Z2PIPR.js} +19 -16
  159. package/dist/{parakeetRunner-H3B4QP6W.js → parakeetRunner-F2OX525D.js} +14 -13
  160. package/dist/{pipeline-7OKHNKGP.js → pipeline-2ZDZGL4J.js} +12 -11
  161. package/dist/{play-B5NNOJN7.js → play-YCH7MRNX.js} +26 -23
  162. package/dist/{preflight-R26JZQJU.js → preflight-MTMSPVCR.js} +11 -10
  163. package/dist/{present-Y2SEWKGO.js → present-L4HNZ2HU.js} +22 -19
  164. package/dist/{preview-7CZX4A5T.js → preview-RWX74O5J.js} +25 -22
  165. package/dist/{producer-WTO6XYGU.js → producer-UI4FXLPQ.js} +1 -1
  166. package/dist/{projectConfig-SJ5NIYUO.js → projectConfig-I6QNMRVV.js} +7 -7
  167. package/dist/{publication-47KNSXP7.js → publication-JET7ZBWG.js} +3 -3
  168. package/dist/{publish-4J4EKKQN.js → publish-T56AYTZU.js} +16 -14
  169. package/dist/{refresh-IYRGLHG5.js → refresh-VJ4FQVH2.js} +3 -2
  170. package/dist/{remove-background-UKC6NKDH.js → remove-background-4Y56FLXV.js} +13 -12
  171. package/dist/{render-S2FJRE3H.js → render-33TSTTN7.js} +6 -6
  172. package/dist/{render-TABKCTMF.js → render-IJ7L24RF.js} +169 -72
  173. package/dist/{render-DBELH4AC.js → render-UBDIHGEG.js} +25 -22
  174. package/dist/{render-batch-6YJMWHZ4.js → render-batch-SDDZ3LM7.js} +6 -6
  175. package/dist/renderSetupWorker.js +4 -4
  176. package/dist/{resolver-EDI3JND5.js → resolver-VLOUQ7I6.js} +5 -5
  177. package/dist/{screenshotCapture-HDRHY4NN.js → screenshotCapture-U3IYWTDB.js} +1 -1
  178. package/dist/{sherpa-R6HDRJCA.js → sherpa-6GOUBSP2.js} +13 -12
  179. package/dist/sherpaWorker.js +1 -1
  180. package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -1
  181. package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +9 -0
  182. package/dist/skills/hyperframes-cli/references/preview-render.md +2 -2
  183. package/dist/skills/hyperframes-cli/references/upgrade-info-misc.md +2 -2
  184. package/dist/skills/media-use/references/meta.md +6 -5
  185. package/dist/skills/media-use/scripts/lib/telemetry.mjs +49 -15
  186. package/dist/skills/media-use/scripts/lib/telemetry.test.mjs +19 -5
  187. package/dist/{skills-2QIW3EOJ.js → skills-MAJGGJKJ.js} +13 -10
  188. package/dist/{skillsUpdateCheck-XG5FPCU5.js → skillsUpdateCheck-X6AIBUUG.js} +6 -5
  189. package/dist/{snapshot-C5XBKYEF.js → snapshot-JKKWQSMQ.js} +62 -45
  190. package/dist/{src-E467QUBK.js → src-LAO5IGRI.js} +11 -6
  191. package/dist/{src-CT2X45TD.js → src-RIL5PHI6.js} +12 -9
  192. package/dist/{staticProjectServer-G54Z4BH7.js → staticProjectServer-YF5AZXGR.js} +19 -18
  193. package/dist/{status-SLILCDBZ.js → status-TJFZFDGS.js} +5 -4
  194. package/dist/studio/assets/{hyperframes-player-H1DIJsJZ.js → hyperframes-player-Cf9gtxqa.js} +3 -3
  195. package/dist/studio/assets/{index-v_hWj6Kv.js → index-CW5fPxU8.js} +1 -1
  196. package/dist/studio/assets/{index-BftVE_0y.js → index-zVoFhoyD.js} +120 -120
  197. package/dist/studio/index.html +1 -1
  198. package/dist/{studio-api-O52RPXZC.js → studio-api-Q2U6752S.js} +9 -9
  199. package/dist/{studioServer-WDTS6ZDI.js → studioServer-SPU4MINT.js} +56 -53
  200. package/dist/{synthesize-FQML2LN2.js → synthesize-IKSZPKFJ.js} +2 -2
  201. package/dist/{system-MVRF5UM2.js → system-FDPS57FU.js} +2 -2
  202. package/dist/{telemetry-NTO4FJFN.js → telemetry-QHYJJAJU.js} +7 -6
  203. package/dist/{telemetry-GEHWCV7C.js → telemetry-W7CBBWIN.js} +11 -8
  204. package/dist/{timeline-IVQDNGWZ.js → timeline-L26OBLW2.js} +25 -22
  205. package/dist/{tokens-EN5PVV3Y.js → tokens-PNNCTOYV.js} +2 -2
  206. package/dist/{transcribe-HKS3PZAF.js → transcribe-PPZFOWMB.js} +12 -11
  207. package/dist/{transcribe-NXMIBNLX.js → transcribe-XZCZTOPU.js} +23 -20
  208. package/dist/{tts-K5HRN6NQ.js → tts-MQNOBHLH.js} +3 -3
  209. package/dist/{updateCheck-35TT5GRF.js → updateCheck-SNRZKRO2.js} +5 -4
  210. package/dist/{upgrade-G6EOHGUS.js → upgrade-WEU5MYWF.js} +5 -4
  211. package/dist/{urlDownloader-X7V63HCF.js → urlDownloader-55NQFDIH.js} +7 -6
  212. package/dist/{validate-4JUCRS64.js → validate-4QEMOBFD.js} +30 -27
  213. package/dist/{video-SWQXDG7J.js → video-VYOWJDYM.js} +9 -8
  214. package/dist/warmCheck.js +46 -43
  215. package/dist/warmCheckClient.js +1 -1
  216. package/package.json +2 -1
  217. package/dist/chunk-FBQVRYMD.js +0 -5061
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-X6JUUQCM.js";
11
11
  import {
12
12
  getFreeDiskMb
13
- } from "./chunk-5766TK7Q.js";
13
+ } from "./chunk-LAGZGKKN.js";
14
14
  import {
15
15
  browserPathFromEnv,
16
16
  managedChromeVersion,
@@ -8,16 +8,16 @@ import {
8
8
  flush,
9
9
  shouldTrack,
10
10
  trackEvent
11
- } from "./chunk-FI3JWR34.js";
11
+ } from "./chunk-KLGJ2R4V.js";
12
12
  import {
13
13
  redactTelemetryString
14
- } from "./chunk-634HSJ3J.js";
14
+ } from "./chunk-TK7THLRO.js";
15
15
  import {
16
16
  getPowerState
17
- } from "./chunk-5766TK7Q.js";
17
+ } from "./chunk-LAGZGKKN.js";
18
18
  import {
19
19
  readConfig
20
- } from "./chunk-ZCHULPJZ.js";
20
+ } from "./chunk-BLBMPEBX.js";
21
21
  import {
22
22
  CliRuntimeError
23
23
  } from "./chunk-DP5LF7GF.js";
@@ -357,6 +357,7 @@ function trackRenderError(props) {
357
357
  failed_stage: props.failedStage,
358
358
  error_name: props.errorName,
359
359
  failed_stage_code: props.failedStageCode,
360
+ missing_path_kind: props.missingPathKind,
360
361
  error_message: props.errorMessage ? redactTelemetryMessage(props.errorMessage) : void 0,
361
362
  elapsed_ms: props.elapsedMs,
362
363
  ...renderOutputShapeEventProperties(props),
@@ -431,9 +432,13 @@ function trackAuthLoginCompleted(method, distinctId) {
431
432
  function trackAuthLoginFailed(method, reason, distinctId) {
432
433
  trackEvent("auth_login_failed", { method, reason }, distinctId);
433
434
  }
434
- function identifyUser(distinctId) {
435
+ function identifyUser(distinctId, traits = {}) {
435
436
  if (!distinctId) return;
436
- trackEvent("$identify", { $anon_distinct_id: readConfig().anonymousId }, distinctId);
437
+ trackEvent(
438
+ "$identify",
439
+ { $anon_distinct_id: readConfig().anonymousId, $set: traits },
440
+ distinctId
441
+ );
437
442
  }
438
443
  function trackRenderPreflightRejected(props) {
439
444
  trackEvent("render_preflight_rejected", { kind: props.kind });
@@ -6,13 +6,28 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
 
8
8
  // src/utils/download.ts
9
- import { randomUUID } from "crypto";
10
- import { createWriteStream, renameSync, statSync, unlinkSync } from "fs";
9
+ import {
10
+ closeSync,
11
+ createWriteStream,
12
+ existsSync,
13
+ openSync,
14
+ readdirSync,
15
+ readFileSync,
16
+ renameSync,
17
+ statSync,
18
+ unlinkSync,
19
+ writeFileSync,
20
+ writeSync
21
+ } from "fs";
11
22
  import { get as httpsGet } from "https";
12
23
  import { once } from "events";
13
24
  import { Transform } from "stream";
25
+ import { basename, dirname, join } from "path";
14
26
  import { pipeline } from "stream/promises";
27
+ import { setTimeout as sleep } from "timers/promises";
28
+ import { randomUUID } from "crypto";
15
29
  var DEFAULT_DOWNLOAD_TIMEOUT_MS = 3e4;
30
+ var LOCK_POLL_MS = 500;
16
31
  var REDIRECT_CODES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
17
32
  function redirectTarget(location, from) {
18
33
  return new URL(location, from).toString();
@@ -49,8 +64,8 @@ function measureDownload(options, startBytes, totalBytes) {
49
64
  complete: () => options.onProgress?.(receivedBytes, totalBytes)
50
65
  };
51
66
  }
52
- function getUrl(url, signal, offset, onResponse) {
53
- const headers = offset > 0 ? { Range: `bytes=${offset}-` } : void 0;
67
+ function getUrl(url, signal, offset, etag, onResponse) {
68
+ const headers = offset > 0 ? { Range: `bytes=${offset}-`, ...etag ? { "If-Range": etag } : {} } : void 0;
54
69
  if (!signal && !headers) return httpsGet(url, onResponse);
55
70
  return httpsGet(
56
71
  url,
@@ -94,6 +109,11 @@ function planResponse(res, offset) {
94
109
  async function writeBody(res, tmp, plan, state, options) {
95
110
  state.received = plan.start;
96
111
  state.total = plan.total;
112
+ if (!plan.append) {
113
+ const etag = res.headers.etag;
114
+ state.etag = typeof etag === "string" ? etag : null;
115
+ state.onFreshBody?.(state.etag);
116
+ }
97
117
  const meter = measureDownload(options, plan.start, plan.total);
98
118
  const file = createWriteStream(tmp, { flags: plan.append ? "a" : "w" });
99
119
  try {
@@ -151,7 +171,7 @@ function downloadAttempt(url, tmp, state, options) {
151
171
  };
152
172
  let request;
153
173
  try {
154
- request = getUrl(u, options.signal, offset, onResponse);
174
+ request = getUrl(u, options.signal, offset, state.etag, onResponse);
155
175
  } catch (error) {
156
176
  reject(error);
157
177
  return;
@@ -172,28 +192,148 @@ function downloadAttempt(url, tmp, state, options) {
172
192
  follow(url);
173
193
  });
174
194
  }
175
- async function downloadFile(url, dest, options = {}) {
176
- const tmp = `${dest}.${process.pid}.${randomUUID()}.tmp`;
177
- const state = { received: 0, total: null };
195
+ function processAlive(pid) {
196
+ try {
197
+ process.kill(pid, 0);
198
+ return true;
199
+ } catch (error) {
200
+ return error.code === "EPERM";
201
+ }
202
+ }
203
+ var heldLocks = /* @__PURE__ */ new Set();
204
+ function readLock(lock) {
205
+ try {
206
+ return readFileSync(lock, "utf8");
207
+ } catch {
208
+ return "";
209
+ }
210
+ }
211
+ function lockIsStale(owner) {
212
+ const pid = Number(owner.split(" ")[0]);
213
+ if (!(pid > 0)) return false;
214
+ return pid === process.pid ? !heldLocks.has(owner) : !processAlive(pid);
215
+ }
216
+ async function acquireLock(lock, signal) {
217
+ const owner = `${process.pid} ${randomUUID()}`;
218
+ let waited = false;
219
+ for (; ; ) {
220
+ try {
221
+ const fd = openSync(lock, "wx");
222
+ writeSync(fd, owner);
223
+ closeSync(fd);
224
+ heldLocks.add(owner);
225
+ return { owner, waited };
226
+ } catch (error) {
227
+ if (error.code !== "EEXIST") throw error;
228
+ }
229
+ const seen = readLock(lock);
230
+ if (lockIsStale(seen) && readLock(lock) === seen) {
231
+ removePartialFile(lock);
232
+ continue;
233
+ }
234
+ signal?.throwIfAborted();
235
+ waited = true;
236
+ await sleep(LOCK_POLL_MS);
237
+ }
238
+ }
239
+ function removeStrayPartials(dest) {
240
+ const prefix = `${basename(dest)}.`;
241
+ let names = [];
242
+ try {
243
+ names = readdirSync(dirname(dest));
244
+ } catch {
245
+ return;
246
+ }
247
+ for (const name of names) {
248
+ const pid = name.startsWith(prefix) && name.endsWith(".tmp") ? Number(name.slice(prefix.length).split(".")[0]) : 0;
249
+ if (pid > 0 && !processAlive(pid)) removePartialFile(join(dirname(dest), name));
250
+ }
251
+ }
252
+ function resumableEtag(meta, url) {
253
+ try {
254
+ const recorded = JSON.parse(readFileSync(meta, "utf8"));
255
+ return recorded.url === url && typeof recorded.etag === "string" ? recorded.etag : null;
256
+ } catch {
257
+ return null;
258
+ }
259
+ }
260
+ function afterFailure(error, attempt) {
261
+ const message = error instanceof Error ? error.message : "";
262
+ if (attempt.aborted || message.startsWith("Download exceeded")) return "discard";
263
+ if (attempt.progressed) return "continue";
264
+ if (attempt.resumed && message.startsWith("Download failed: HTTP")) return "restart";
265
+ return attempt.resumable ? "keep" : "discard";
266
+ }
267
+ function discardPart(part) {
268
+ removePartialFile(part);
269
+ removePartialFile(`${part}.json`);
270
+ }
271
+ function openPart(url, dest) {
272
+ const part = `${dest}.part`;
273
+ removeStrayPartials(dest);
274
+ const etag = resumableEtag(`${part}.json`, url);
275
+ if (!etag) removePartialFile(part);
276
+ return {
277
+ received: etag ? fileSize(part) : 0,
278
+ total: null,
279
+ etag,
280
+ onFreshBody: (fresh) => {
281
+ if (fresh) writeFileSync(`${part}.json`, JSON.stringify({ url, etag: fresh }));
282
+ else removePartialFile(`${part}.json`);
283
+ }
284
+ };
285
+ }
286
+ function assertComplete(part, state) {
287
+ const size = fileSize(part);
288
+ if (state.total !== null && size !== state.total) {
289
+ state.received = size;
290
+ throw new Error(`Download incomplete: ${size} of ${state.total} bytes`);
291
+ }
292
+ }
293
+ async function publishPart(part, dest, options) {
294
+ try {
295
+ await options.verify?.(part);
296
+ } catch (error) {
297
+ discardPart(part);
298
+ throw error;
299
+ }
300
+ renameSync(part, dest);
301
+ removePartialFile(`${part}.json`);
302
+ }
303
+ async function downloadToPart(url, dest, options) {
304
+ const part = `${dest}.part`;
305
+ const state = openPart(url, dest);
178
306
  for (; ; ) {
179
307
  const before = state.received;
180
308
  try {
181
- await downloadAttempt(url, tmp, state, options);
182
- const size = fileSize(tmp);
183
- if (state.total !== null && size !== state.total) {
184
- state.received = size;
185
- throw new Error(`Download incomplete: ${size} of ${state.total} bytes`);
186
- }
187
- renameSync(tmp, dest);
188
- return;
309
+ await downloadAttempt(url, part, state, options);
310
+ assertComplete(part, state);
311
+ break;
189
312
  } catch (error) {
190
- const overLimit = error instanceof Error && error.message.startsWith("Download exceeded");
191
- if (options.signal?.aborted || overLimit || state.received <= before) {
192
- removePartialFile(tmp);
193
- throw error;
194
- }
313
+ const step = afterFailure(error, {
314
+ aborted: options.signal?.aborted === true,
315
+ progressed: state.received > before,
316
+ resumed: before > 0,
317
+ resumable: state.etag !== null && state.received > 0
318
+ });
319
+ if (step === "continue") continue;
320
+ if (step !== "keep") discardPart(part);
321
+ if (step !== "restart") throw error;
322
+ state.received = 0;
323
+ state.etag = null;
195
324
  }
196
325
  }
326
+ await publishPart(part, dest, options);
327
+ }
328
+ async function downloadFile(url, dest, options = {}) {
329
+ const lock = `${dest}.lock`;
330
+ const { owner, waited } = await acquireLock(lock, options.signal);
331
+ try {
332
+ if (!(waited && existsSync(dest))) await downloadToPart(url, dest, options);
333
+ } finally {
334
+ heldLocks.delete(owner);
335
+ if (readLock(lock) === owner) removePartialFile(lock);
336
+ }
197
337
  }
198
338
 
199
339
  export {
@@ -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-62ER6HGC.js";
14
14
  import {
15
15
  resolveCompositionViewportFromHtml
16
- } from "./chunk-XM3NMXLX.js";
16
+ } from "./chunk-RYBFHEMZ.js";
17
17
  import {
18
18
  launchManagedBrowser,
19
19
  resolveManagedGpuMode,
20
20
  rethrowAfterBrowserCleanup
21
- } from "./chunk-53ERMOK2.js";
21
+ } from "./chunk-5CXGDO74.js";
22
22
  import {
23
23
  resolveLocalBrowserGpuMode,
24
24
  resolveLocalWebGpu
25
- } from "./chunk-MP7DZH5M.js";
25
+ } from "./chunk-PNBH4ZY7.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-TDNZIFJ2.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-LAO5IGRI.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-YF5AZXGR.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-LAO5IGRI.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-LAO5IGRI.js");
222
223
  const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
223
224
  const requiresWebGpu = compositionRequiresWebGpu(html);
224
225
  let softwareWebGpu = false;
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
1278
1278
  } catch (err) {
1279
1279
  if (err instanceof Error) {
1280
1280
  try {
1281
- const { trackCommandFailure } = await import("./events-BYOF33UK.js");
1281
+ const { trackCommandFailure } = await import("./events-P5AFL2VZ.js");
1282
1282
  trackCommandFailure(
1283
1283
  command,
1284
1284
  err,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  quantizePreviewProxyBox
9
- } from "./chunk-GFA5ZCVI.js";
9
+ } from "./chunk-AU7VGKCP.js";
10
10
  import {
11
11
  parseHTML
12
12
  } from "./chunk-GWTIFRF5.js";
@@ -12,6 +12,22 @@ import {
12
12
 
13
13
  // src/capture/navigateForCapture.ts
14
14
  var NETWORK_IDLE_ATTEMPT_MS = 3e4;
15
+ var PROXY_FAILURES = {
16
+ "net::ERR_TUNNEL_CONNECTION_FAILED": (host) => `Your network's proxy refused the connection to ${host}. Ask whoever runs it to allow ${host}.`,
17
+ "net::ERR_PROXY_CONNECTION_FAILED": () => "Could not reach your network's proxy. Check the proxy address and that the proxy is running, or ask whoever runs it."
18
+ };
19
+ var PROXY_FAILURE = new RegExp(Object.keys(PROXY_FAILURES).join("|"));
20
+ function explainProxyRefusal(err, url) {
21
+ const said = err instanceof Error ? err.message : String(err);
22
+ const code = PROXY_FAILURE.exec(said)?.[0];
23
+ if (!code) return err;
24
+ let host = "the site";
25
+ try {
26
+ host = new URL(url).host;
27
+ } catch {
28
+ }
29
+ return new Error(`${PROXY_FAILURES[code](host)} (${code})`, { cause: err });
30
+ }
15
31
  function networkIdleAttemptTimeoutMs(totalTimeoutMs) {
16
32
  return Math.min(NETWORK_IDLE_ATTEMPT_MS, Math.max(0, totalTimeoutMs));
17
33
  }
@@ -30,13 +46,12 @@ async function navigateForCapture(page, url, totalTimeoutMs) {
30
46
  };
31
47
  } catch (err) {
32
48
  if (!isNavigationTimeoutError(err) || networkIdleTimeoutMs >= totalTimeoutMs) {
33
- throw err;
49
+ throw explainProxyRefusal(err, url);
34
50
  }
35
51
  }
36
52
  const fallbackTimeoutMs = totalTimeoutMs - networkIdleTimeoutMs;
37
- const response = await page.goto(url, {
38
- waitUntil: "domcontentloaded",
39
- timeout: fallbackTimeoutMs
53
+ const response = await page.goto(url, { waitUntil: "domcontentloaded", timeout: fallbackTimeoutMs }).catch((err) => {
54
+ throw explainProxyRefusal(err, url);
40
55
  });
41
56
  return {
42
57
  response,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getCachedGpuEncoder
9
- } from "./chunk-LIOE46OG.js";
9
+ } from "./chunk-TDNZIFJ2.js";
10
10
  import {
11
11
  runCancellableProcess
12
12
  } from "./chunk-X6JUUQCM.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  sherpaParakeetInstalled,
9
9
  sherpaUnsupportedReason
10
- } from "./chunk-EJCCJTUH.js";
10
+ } from "./chunk-WKNWKORX.js";
11
11
  import {
12
12
  findParakeet
13
13
  } from "./chunk-JZIEZCQM.js";