hyperframes 0.8.207 → 0.8.209

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 (225) hide show
  1. package/dist/{add-LXFWHBE3.js → add-VZKUIZEH.js} +17 -15
  2. package/dist/{agentPromptGenerator-D2E62ZP5.js → agentPromptGenerator-4NJ252MR.js} +6 -2
  3. package/dist/{animatedGifPrep-VBPJZKFT.js → animatedGifPrep-PN4G4YPJ.js} +10 -7
  4. package/dist/api.js +24 -20
  5. package/dist/{appHistory-HIBH6XZW.js → appHistory-OHYU5ZBQ.js} +3 -2
  6. package/dist/{asset-JX4RW3GO.js → asset-I4PHGE57.js} +2 -2
  7. package/dist/{assetCataloger-JKKOPBCF.js → assetCataloger-LRAUXQ46.js} +12 -8
  8. package/dist/{audio-OXQ3L6DW.js → audio-T7SAVYED.js} +424 -133
  9. package/dist/{auth-JAL7P7ZA.js → auth-GP6HTQT3.js} +4 -4
  10. package/dist/{autoUpdate-MRI2AICE.js → autoUpdate-Z6GFPZAG.js} +4 -4
  11. package/dist/{backgroundChecks-ORR46PBY.js → backgroundChecks-ZJ7JV52S.js} +5 -5
  12. package/dist/backgroundChecksWorker.js +5 -5
  13. package/dist/{batchRender-IFZYPGIW.js → batchRender-J3ETE23Y.js} +5 -4
  14. package/dist/{beats-UDLOEW6U.js → beats-WF4FJCM5.js} +25 -15
  15. package/dist/{benchmark-VTVDNKSO.js → benchmark-B7UPP4PQ.js} +10 -10
  16. package/dist/{browser-QJC4BL2Y.js → browser-SIUYD43U.js} +8 -8
  17. package/dist/{bundleWithLocalizedFonts-Z2JTBNDS.js → bundleWithLocalizedFonts-RRGFY3XV.js} +3 -3
  18. package/dist/{capture-2P4JERSX.js → capture-J3GLHUKI.js} +52 -17
  19. package/dist/{capture-GLM2ACPM.js → capture-VYS4PCCJ.js} +66 -39
  20. package/dist/{captureCompositionFrame-A2A5MGQB.js → captureCompositionFrame-SVLMPQYC.js} +16 -14
  21. package/dist/{captureFile-RPUEOZO6.js → captureFile-VIVGKFY4.js} +2 -1
  22. package/dist/{catalog-5ZLVUQVJ.js → catalog-DVBNR422.js} +17 -15
  23. package/dist/{catch-up-FRMVYJHZ.js → catch-up-OBPMV7KG.js} +9 -8
  24. package/dist/{check-WVY7SM7C.js → check-MEALXNZK.js} +47 -44
  25. package/dist/{checkAudio-PLEQY3SZ.js → checkAudio-RZ7WQYVN.js} +23 -13
  26. package/dist/{checkBrowser-XSZUA2DQ.js → checkBrowser-2LEQ2LSX.js} +39 -36
  27. package/dist/{chunk-526VSRZ4.js → chunk-3A4SB326.js} +6 -6
  28. package/dist/{chunk-GXUONASF.js → chunk-3PTZ2TD4.js} +25 -2
  29. package/dist/{chunk-JQ32262N.js → chunk-3PUXUIWB.js} +1 -1
  30. package/dist/chunk-3RATCY3W.js +205 -0
  31. package/dist/{chunk-MAUGXKSI.js → chunk-4BXEPVSA.js} +113 -20
  32. package/dist/{chunk-C6KE4AFW.js → chunk-56ANHX5U.js} +1 -1
  33. package/dist/{chunk-VBPNCOD7.js → chunk-5T4DP25D.js} +5 -3
  34. package/dist/{chunk-IBZHSU2J.js → chunk-66PNSZ7K.js} +1 -1
  35. package/dist/{chunk-WL263XM2.js → chunk-6PWQH77E.js} +1 -1
  36. package/dist/chunk-7VZEOCUY.js +98 -0
  37. package/dist/{chunk-VAVDAOUA.js → chunk-A7GDBL6D.js} +1 -1
  38. package/dist/{chunk-UAT2UMTP.js → chunk-AQTODJWP.js} +1 -1
  39. package/dist/{chunk-5KBMYSF2.js → chunk-BYPDKF36.js} +7 -2
  40. package/dist/{chunk-EG3B2VWK.js → chunk-CA3PXWN4.js} +16 -21
  41. package/dist/{chunk-FEO7YW7V.js → chunk-CBM4ZUVN.js} +6 -6
  42. package/dist/{chunk-6KCFVLO6.js → chunk-CIDCNE2D.js} +21 -5
  43. package/dist/{chunk-C53ZNJDZ.js → chunk-D2CE2J2A.js} +1 -1
  44. package/dist/chunk-D3MUHMFG.js +16 -0
  45. package/dist/{chunk-5PYRU5DT.js → chunk-D6T5BNSK.js} +18 -17
  46. package/dist/{chunk-PUIG6DHT.js → chunk-DR47DSOY.js} +7 -7
  47. package/dist/chunk-DROFHVQD.js +240 -0
  48. package/dist/{chunk-YJK6HOL5.js → chunk-DVIX7UPH.js} +2 -2
  49. package/dist/{chunk-QTWXVOZI.js → chunk-EA5FUMJN.js} +2 -2
  50. package/dist/{chunk-NWGXTUYS.js → chunk-EQBDKYXR.js} +3 -30
  51. package/dist/{chunk-4UMPIPCQ.js → chunk-ERUQ3S6D.js} +2 -2
  52. package/dist/{chunk-T2EUWCJE.js → chunk-EU7MVORF.js} +13 -1
  53. package/dist/{chunk-IW5P4KK7.js → chunk-EVYDKSML.js} +3 -3
  54. package/dist/{chunk-FVAI7AHF.js → chunk-F4O4G4ZW.js} +5 -5
  55. package/dist/{chunk-6KOHY5EP.js → chunk-FB5BXGGF.js} +17 -11
  56. package/dist/{chunk-HTIUNMTP.js → chunk-GDZA4ALG.js} +8 -2
  57. package/dist/{chunk-DJQZ7DEH.js → chunk-GQZHLF5P.js} +15 -15
  58. package/dist/{chunk-ZYGIDXAK.js → chunk-H7B526GH.js} +114 -65
  59. package/dist/{chunk-P2I4RLJE.js → chunk-HTZJNQYI.js} +1 -1
  60. package/dist/{chunk-I2TDHVFV.js → chunk-I3ICHLHV.js} +2 -2
  61. package/dist/{chunk-CVZO6TFE.js → chunk-IJPFVMIE.js} +11 -11
  62. package/dist/{chunk-LK6KPVX2.js → chunk-IQNS7O4W.js} +403 -290
  63. package/dist/{chunk-XDMZY3H7.js → chunk-J7A73K2B.js} +43 -35
  64. package/dist/{chunk-RPZNQV6D.js → chunk-JC6BAQOG.js} +4 -10
  65. package/dist/{chunk-HA3V4XAF.js → chunk-JJRMN2RV.js} +63 -200
  66. package/dist/{chunk-XMRA7CQG.js → chunk-KCLBO65Y.js} +1 -1
  67. package/dist/{chunk-QE4WRS3N.js → chunk-KGBFHYHX.js} +4 -4
  68. package/dist/{chunk-HM7SUIQD.js → chunk-KTWGVEN6.js} +3 -3
  69. package/dist/{chunk-7PJ3AJB2.js → chunk-L5XVBFUM.js} +1 -1
  70. package/dist/{chunk-NSC5A4IR.js → chunk-L7MGVFR4.js} +7 -2
  71. package/dist/{chunk-I3TYUQLB.js → chunk-LJ7H2A2C.js} +1 -1
  72. package/dist/{chunk-VH4PNYOS.js → chunk-LV4NWCJS.js} +2 -2
  73. package/dist/{chunk-ELP5QZWL.js → chunk-M4QZFUMW.js} +1 -1
  74. package/dist/{chunk-7RWUY3BJ.js → chunk-MI4V4HPE.js} +1 -1
  75. package/dist/{chunk-SXOD5J7T.js → chunk-MKALOCDV.js} +1 -1
  76. package/dist/{chunk-UKM3JYNB.js → chunk-MVNTJGDX.js} +3 -3
  77. package/dist/{chunk-PSX5SF2N.js → chunk-NEASABW6.js} +1 -1
  78. package/dist/{chunk-H3LQ5X6Q.js → chunk-NJZRXELC.js} +68 -34
  79. package/dist/{chunk-EOVYQ3IG.js → chunk-NQ2INEHX.js} +17 -17
  80. package/dist/{chunk-LCCYYTEK.js → chunk-NXNDHV26.js} +1 -1
  81. package/dist/{chunk-JKE24AG7.js → chunk-OK3QLJSF.js} +1 -1
  82. package/dist/{chunk-63DP5CB2.js → chunk-OML6HQQN.js} +4 -4
  83. package/dist/{chunk-UUOIH4RW.js → chunk-P2FSCR5B.js} +2 -2
  84. package/dist/{chunk-ZCJ5EGLU.js → chunk-P327BIJR.js} +66 -1
  85. package/dist/{chunk-HVOTYAS4.js → chunk-P3OKYRGA.js} +3 -3
  86. package/dist/{chunk-U32PA6DI.js → chunk-PYVYF64E.js} +1 -1
  87. package/dist/{chunk-EHFZEKQM.js → chunk-Q43YUROE.js} +1 -1
  88. package/dist/{chunk-CZUAX3BV.js → chunk-QIDN4ML5.js} +1 -1
  89. package/dist/{chunk-NHL5CMO2.js → chunk-QIKZ2HZJ.js} +3 -3
  90. package/dist/{chunk-IK4JY2LI.js → chunk-R52YM6ZK.js} +2 -2
  91. package/dist/{chunk-DML6BD4K.js → chunk-RAONLDN5.js} +2 -2
  92. package/dist/{chunk-MSHL6CF2.js → chunk-RJO4X3AA.js} +1 -1
  93. package/dist/{chunk-6IYIS2U7.js → chunk-RVG2JNDU.js} +2 -2
  94. package/dist/{chunk-UYPWH7PH.js → chunk-SE6S4SGZ.js} +13 -15
  95. package/dist/{chunk-NJNC2DQV.js → chunk-SNLXWCET.js} +105 -46
  96. package/dist/{chunk-TSTONNOD.js → chunk-SOXQXX2M.js} +2 -2
  97. package/dist/{chunk-EGRIVMCQ.js → chunk-SPMKVI6H.js} +2 -2
  98. package/dist/{chunk-PL36HK3U.js → chunk-SWHCYFEF.js} +27 -5
  99. package/dist/{chunk-ID766OZB.js → chunk-TF7YE7J5.js} +3 -3
  100. package/dist/{chunk-XAGBSYIQ.js → chunk-TSM67ADU.js} +1 -1
  101. package/dist/{chunk-KDHHPJOG.js → chunk-U5IZUWBW.js} +4 -4
  102. package/dist/{chunk-T4JGFCXU.js → chunk-V4VXWOIF.js} +4 -4
  103. package/dist/{chunk-6N65ZMC5.js → chunk-VYRJAQGC.js} +1 -1
  104. package/dist/{chunk-LXP6XWJL.js → chunk-W32DVMX3.js} +2 -2
  105. package/dist/{chunk-LPI7HX4G.js → chunk-WLVHSGVL.js} +2 -2
  106. package/dist/chunk-XCIHCPJK.js +106 -0
  107. package/dist/chunk-XFMO3BEN.js +71 -0
  108. package/dist/{chunk-XKW4Z7BU.js → chunk-Y2EVJBR6.js} +1 -1
  109. package/dist/{chunk-QZ2JQ6O4.js → chunk-YCGLT5B4.js} +3 -3
  110. package/dist/{chunk-5PCALX6G.js → chunk-YIFEK3UD.js} +1 -1
  111. package/dist/{chunk-ZF3R2IPC.js → chunk-YRO3PXWU.js} +2 -85
  112. package/dist/chunk-Z5J67X44.js +40 -0
  113. package/dist/{chunk-XULJBZ7K.js → chunk-Z67J3TTU.js} +5 -3
  114. package/dist/{chunk-7JAD4MEW.js → chunk-ZA5TNF4R.js} +1 -0
  115. package/dist/{chunk-6Z7XDUUJ.js → chunk-ZMIRSWN6.js} +1 -1
  116. package/dist/{chunk-IYZT62UR.js → chunk-ZPILPVYU.js} +2 -2
  117. package/dist/chunk-ZXTSUXSL.js +4870 -0
  118. package/dist/{clean-TL3IPJDN.js → clean-VWCYLOVI.js} +26 -22
  119. package/dist/cli.js +58 -58
  120. package/dist/{cloud-EYMRPJNY.js → cloud-HU3RXCVE.js} +4 -4
  121. package/dist/{cloudrun-TOJ36NLX.js → cloudrun-OST6QBYD.js} +6 -5
  122. package/dist/commands/layout-audit.browser.js +1 -0
  123. package/dist/{compare-MP5EOW4D.js → compare-U2MJWZAH.js} +38 -35
  124. package/dist/{compiler-NOPVLJ2S.js → compiler-DSP4MVEC.js} +5 -3
  125. package/dist/{component-ASACDCZK.js → component-EC5XU6KR.js} +3 -3
  126. package/dist/{compositions-WKNZJY34.js → compositions-AKYCTF4G.js} +16 -13
  127. package/dist/{contactSheet-YOBPATEM.js → contactSheet-RYAE7Y5D.js} +3 -2
  128. package/dist/{delete-DQTFHP3G.js → delete-Z5MOEZM2.js} +10 -9
  129. package/dist/{deploy-HHCFOUFM.js → deploy-Y4LFVYXT.js} +6 -6
  130. package/dist/{dist-L4Z4ZEYW.js → dist-73YTUT3W.js} +1 -1
  131. package/dist/{dist-NQEYA4ZX.js → dist-JJL4QUDL.js} +2 -2
  132. package/dist/docker/Dockerfile.render +1 -1
  133. package/dist/{doctor-JDM65CP7.js → doctor-7234U557.js} +18 -15
  134. package/dist/{events-RKRHRLJD.js → events-RUIZNTG3.js} +4 -4
  135. package/dist/{events-MBRNA3UF.js → events-SII53QYO.js} +5 -5
  136. package/dist/{feedback-LZWIWV5J.js → feedback-6CCDDQ36.js} +12 -12
  137. package/dist/{ffmpeg-4PZKSIGE.js → ffmpeg-C4VWK4M2.js} +12 -9
  138. package/dist/{figma-QFNYUT3F.js → figma-GAN63U5U.js} +3 -3
  139. package/dist/fontLocalizeCli.js +13 -10
  140. package/dist/{get-2B5ENJOH.js → get-RZGUHZB4.js} +10 -9
  141. package/dist/{gpuPolicy-E5FB2GFR.js → gpuPolicy-BGJRCLP4.js} +10 -7
  142. package/dist/{grade-compare-4GUAPJHE.js → grade-compare-XOBN52WV.js} +38 -35
  143. package/dist/{heifImagePrep-C2RYIEER.js → heifImagePrep-DCHSYGW7.js} +11 -8
  144. package/dist/{help-XGDAXV67.js → help-O2IV6PUC.js} +1 -1
  145. package/dist/{history-WNFF6HGU.js → history-GPTEM4UX.js} +11 -10
  146. package/dist/hyperframe.manifest.json +1 -1
  147. package/dist/hyperframe.runtime.iife.js +67 -67
  148. package/dist/hyperframes-player.global.js +3 -3
  149. package/dist/{info-BR2LKGJD.js → info-7Y3JPN7C.js} +9 -9
  150. package/dist/{init-P6UWPUY3.js → init-L6W5WG5K.js} +40 -34
  151. package/dist/{inspect-MSRPF7ZO.js → inspect-MQZANGQY.js} +37 -34
  152. package/dist/{installer-MPUQS3ZX.js → installer-DCIMLYB6.js} +4 -4
  153. package/dist/{keyframes-J6K66QTO.js → keyframes-WNJIKL4G.js} +8 -8
  154. package/dist/{lambda-LJ2OSWFJ.js → lambda-FEA4SSFK.js} +16 -13
  155. package/dist/{layout-CDY65XGA.js → layout-AUQAYDJU.js} +37 -34
  156. package/dist/{lint-CAUNBGPX.js → lint-A33IHYID.js} +9 -9
  157. package/dist/{lintProject-ZTSX3AWT.js → lintProject-KCN7MRBN.js} +1 -1
  158. package/dist/{list-33BYQNRZ.js → list-56JHCET6.js} +10 -9
  159. package/dist/localPage-V3HBGM3Z.js +27 -0
  160. package/dist/{login-5QMRKOHK.js → login-HUOM4GNP.js} +7 -7
  161. package/dist/{logout-JYFWWUGK.js → logout-3IID4KXD.js} +3 -3
  162. package/dist/{manager-3JOHHPVR.js → manager-SDRJOMPR.js} +13 -10
  163. package/dist/{manager-RMYSZ3KI.js → manager-Z7W4GQGF.js} +4 -4
  164. package/dist/{media-treatment-4WP22CFN.js → media-treatment-5TGZOD67.js} +27 -22
  165. package/dist/{models-HPWCHAZX.js → models-ABDX6TXI.js} +17 -14
  166. package/dist/{motionShot-I7GDIROQ.js → motionShot-AV2WRH2C.js} +20 -18
  167. package/dist/{normalize-audio-VTMXPSC7.js → normalize-audio-M7T25DST.js} +12 -9
  168. package/dist/{open-SAO7OQTT.js → open-IRNZY5XN.js} +17 -16
  169. package/dist/{parakeetRunner-ZYPBIA73.js → parakeetRunner-2EJUIMOJ.js} +21 -17
  170. package/dist/{pipeline-VNBMR6QU.js → pipeline-QGKOJKXS.js} +13 -10
  171. package/dist/{play-7VI6A7KN.js → play-2SQLHM5B.js} +26 -23
  172. package/dist/{policies-GHVXA5PE.js → policies-PKLD4UW5.js} +1 -1
  173. package/dist/{preflight-VWV7L45J.js → preflight-ZHXMG2SM.js} +14 -11
  174. package/dist/{present-CSJGYOFF.js → present-RERVL6R7.js} +21 -18
  175. package/dist/{preview-B246ZTVO.js → preview-S6RQOMHE.js} +28 -25
  176. package/dist/{producer-WJLFDVQJ.js → producer-DBRGH2FI.js} +1 -1
  177. package/dist/{projectConfig-OMR46ZWQ.js → projectConfig-TUMDULTL.js} +9 -8
  178. package/dist/{publication-AA7NNYET.js → publication-7VGXIFVZ.js} +2 -2
  179. package/dist/{publish-TJ4QVVSP.js → publish-KJB2AGHL.js} +18 -15
  180. package/dist/{refresh-USSFPJAU.js → refresh-3IRHJEQA.js} +3 -3
  181. package/dist/{remove-background-LQ2V7W7N.js → remove-background-EFWXPLS4.js} +14 -11
  182. package/dist/{render-AWEEPG3F.js → render-5O5ARP6C.js} +65 -62
  183. package/dist/{render-JLTNZ36U.js → render-7S6UBLOE.js} +50 -48
  184. package/dist/{render-E5QJG74D.js → render-HV6AA22W.js} +6 -5
  185. package/dist/{render-batch-U4T4VSCM.js → render-batch-7UEOULJJ.js} +7 -6
  186. package/dist/renderSetupWorker.js +6 -6
  187. package/dist/{resolver-GXCTUKPV.js → resolver-HFTEER5V.js} +4 -4
  188. package/dist/{screenshotCapture-X6OKIXCB.js → screenshotCapture-HOW4VSV6.js} +3 -2
  189. package/dist/{sherpa-4VZWVHWZ.js → sherpa-HSSM76FL.js} +20 -16
  190. package/dist/skills/hyperframes/SKILL.md +1 -1
  191. package/dist/skills/hyperframes/references/format.md +1 -0
  192. package/dist/skills/hyperframes-cli/references/beats.md +2 -0
  193. package/dist/skills/media-use/references/grading.md +2 -0
  194. package/dist/skills/media-use/references/local.md +1 -0
  195. package/dist/{skills-WUKR7SUE.js → skills-RQO5K6WL.js} +7 -7
  196. package/dist/{skillsUpdateCheck-YXRBY3JC.js → skillsUpdateCheck-S5WL2YLZ.js} +5 -5
  197. package/dist/{snapshot-Q7S2FTNG.js → snapshot-4RGI235E.js} +119 -66
  198. package/dist/{src-ZOXUSGAP.js → src-ALOV4D57.js} +26 -10
  199. package/dist/{src-CLAALR5W.js → src-D75YYW2M.js} +12 -9
  200. package/dist/{staticProjectServer-DQ7PIDPA.js → staticProjectServer-DIHWPJ6B.js} +21 -18
  201. package/dist/{status-LR7VXITS.js → status-DTP6ZYDU.js} +3 -3
  202. package/dist/studio/assets/{hyperframes-player-Cm5aBiKq.js → hyperframes-player-CMH8OeX2.js} +3 -3
  203. package/dist/studio/assets/{index-BF9YeBnC.js → index-DQam8zzE.js} +71 -71
  204. package/dist/studio/assets/{index-BrqAmMRt.js → index-DjHzuJGR.js} +1 -1
  205. package/dist/studio/index.html +1 -1
  206. package/dist/{studio-api-NUE227JM.js → studio-api-A2VSWTVF.js} +13 -10
  207. package/dist/{studioServer-HVOKP4VI.js → studioServer-PECYWZHS.js} +60 -57
  208. package/dist/{synthesize-QZHRXGRY.js → synthesize-RVE7IUOJ.js} +3 -2
  209. package/dist/{telemetry-IHU4HL3R.js → telemetry-6BPSGY5W.js} +2 -2
  210. package/dist/{telemetry-2Y5JXLDB.js → telemetry-YDGXGOLH.js} +5 -5
  211. package/dist/{timeline-WOQGXFRV.js → timeline-5WUEEKZ3.js} +27 -23
  212. package/dist/{tokens-T3OHTWUC.js → tokens-XVFZPIUZ.js} +2 -2
  213. package/dist/{transcribe-JZ3BO546.js → transcribe-QWDUIJWK.js} +26 -22
  214. package/dist/{transcribe-4U74P5TG.js → transcribe-TTJ6CDQT.js} +17 -13
  215. package/dist/{tts-AY4JO5NQ.js → tts-AGMCPQXE.js} +1 -1
  216. package/dist/{updateCheck-6EUAGAM4.js → updateCheck-P7STSJ6Q.js} +4 -4
  217. package/dist/{upgrade-55K6F4MP.js → upgrade-NEIZ3KVL.js} +4 -4
  218. package/dist/{urlDownloader-47JMOLNN.js → urlDownloader-ZZFNGZNG.js} +9 -6
  219. package/dist/{validate-QBJ3SBS4.js → validate-T2SLBOXG.js} +30 -27
  220. package/dist/{video-3ZAUNAR3.js → video-7OHSBSRT.js} +12 -8
  221. package/dist/warmCheck.js +47 -44
  222. package/package.json +1 -1
  223. package/dist/chunk-BDJIQZN2.js +0 -4830
  224. package/dist/chunk-DKPNNYBZ.js +0 -44
  225. package/dist/{destroy-SSPAKADI.js → destroy-CGAZIL2C.js} +4 -4
@@ -8,7 +8,7 @@ import {
8
8
  flush,
9
9
  shouldTrack,
10
10
  trackEvent
11
- } from "./chunk-QTWXVOZI.js";
11
+ } from "./chunk-EA5FUMJN.js";
12
12
  import {
13
13
  CliRuntimeError
14
14
  } from "./chunk-JVBRJMOP.js";
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-QSFWGZG6.js";
21
21
  import {
22
22
  readConfig
23
- } from "./chunk-PSX5SF2N.js";
23
+ } from "./chunk-NEASABW6.js";
24
24
 
25
25
  // src/utils/feedbackRating.ts
26
26
  var FEEDBACK_RATING_SCALE = 10;
@@ -554,8 +554,13 @@ function trackCheckReport(props) {
554
554
  contrast_warnings: props.contrastWarnings,
555
555
  craft_warnings: props.craftWarnings,
556
556
  launch_settle_ms: props.launchSettleMs,
557
+ render_ready_timed_out: props.renderReadyTimedOut,
557
558
  seek_loop_ms: props.seekLoopMs,
558
559
  contrast_ms: props.contrastMs,
560
+ grid_ms: props.gridMs,
561
+ craft_ms: props.craftMs,
562
+ overlap_ms: props.overlapMs,
563
+ composition_s: props.durationSec,
559
564
  grid_points: props.gridPoints,
560
565
  contrast_points: props.contrastPoints,
561
566
  ok: props.ok,
@@ -10,7 +10,7 @@ import {
10
10
  isDevice,
11
11
  isQuality,
12
12
  render
13
- } from "./chunk-KDHHPJOG.js";
13
+ } from "./chunk-U5IZUWBW.js";
14
14
 
15
15
  // src/api/removeBackground.ts
16
16
  import { resolve } from "path";
@@ -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-EGRIVMCQ.js";
9
+ } from "./chunk-SPMKVI6H.js";
10
10
  import {
11
11
  hostAnswers
12
12
  } from "./chunk-K4WIOZFP.js";
@@ -14,7 +14,7 @@ import {
14
14
  readConfig,
15
15
  readConfigFresh,
16
16
  writeConfig
17
- } from "./chunk-PSX5SF2N.js";
17
+ } from "./chunk-NEASABW6.js";
18
18
 
19
19
  // src/utils/skillsManifest.ts
20
20
  import { execFile } from "child_process";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-ZTZA4UWZ.js";
13
13
  import {
14
14
  normalizeErrorMessage
15
- } from "./chunk-T2EUWCJE.js";
15
+ } from "./chunk-EU7MVORF.js";
16
16
 
17
17
  // src/auth/paths.ts
18
18
  import { homedir } from "os";
@@ -9,7 +9,7 @@ import {
9
9
  parseStrictFiniteTimingNumber,
10
10
  resolveNaturalMediaTimelineDuration,
11
11
  resolveTimedImageDurationSeconds
12
- } from "./chunk-BDJIQZN2.js";
12
+ } from "./chunk-ZXTSUXSL.js";
13
13
  import {
14
14
  COMPOSITION_ATTRIBUTES,
15
15
  MEDIA_START_BASIS_ATTR,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  findCompositionDimensions
9
- } from "./chunk-IBZHSU2J.js";
9
+ } from "./chunk-66PNSZ7K.js";
10
10
  import {
11
11
  outputResolutionForSize
12
12
  } from "./chunk-NHA4NRBE.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  readCompositionFps
9
- } from "./chunk-7PJ3AJB2.js";
9
+ } from "./chunk-L5XVBFUM.js";
10
10
  import {
11
11
  errorBox
12
12
  } from "./chunk-K2FLNJVB.js";
@@ -16,10 +16,10 @@ import {
16
16
  import {
17
17
  DEFAULT_CONFIG,
18
18
  resolvePageNavigationTimeout
19
- } from "./chunk-LK6KPVX2.js";
19
+ } from "./chunk-IQNS7O4W.js";
20
20
  import {
21
21
  parseFps
22
- } from "./chunk-7RWUY3BJ.js";
22
+ } from "./chunk-MI4V4HPE.js";
23
23
 
24
24
  // src/browser/windowsCrash.ts
25
25
  var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-ISN5GRYI.js";
13
13
  import {
14
14
  normalizeErrorMessage
15
- } from "./chunk-T2EUWCJE.js";
15
+ } from "./chunk-EU7MVORF.js";
16
16
 
17
17
  // src/telemetry/posthogKey.ts
18
18
  var POSTHOG_API_KEY = "phc_zjjbX0PnWxERXrMHhkEJWj9A9BhGVLRReICgsfTMmpx";
@@ -5,28 +5,29 @@ var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
+ parseTimeoutMs,
8
9
  pngDimensions,
9
10
  readToolContext,
10
11
  reportArtifacts,
11
12
  withProjectLock
12
- } from "./chunk-GXUONASF.js";
13
+ } from "./chunk-3PTZ2TD4.js";
13
14
  import {
14
15
  beginCheckSnapshots,
15
16
  checkSnapshotDirectory,
16
17
  finishCheckSnapshots,
17
18
  preResolveHostileMediaProxies,
18
19
  rectToBbox
19
- } from "./chunk-5PYRU5DT.js";
20
+ } from "./chunk-D6T5BNSK.js";
20
21
  import {
21
22
  collectProjectMedia,
22
23
  mediaPath
23
- } from "./chunk-YJK6HOL5.js";
24
+ } from "./chunk-DVIX7UPH.js";
24
25
  import {
25
26
  captureArtifactRevision
26
- } from "./chunk-IYZT62UR.js";
27
+ } from "./chunk-ZPILPVYU.js";
27
28
  import {
28
29
  trackLintRun
29
- } from "./chunk-IW5P4KK7.js";
30
+ } from "./chunk-EVYDKSML.js";
30
31
  import {
31
32
  CONTENT_OVERLAP_HELD_ERROR_MS,
32
33
  DEFAULT_MAX_STATIC_SEC,
@@ -47,7 +48,7 @@ import {
47
48
  mergeSampleTimes,
48
49
  parseAt,
49
50
  readMotionSpec
50
- } from "./chunk-CVZO6TFE.js";
51
+ } from "./chunk-IJPFVMIE.js";
51
52
  import {
52
53
  findingAtRoot,
53
54
  findingElementKey,
@@ -56,29 +57,29 @@ import {
56
57
  } from "./chunk-TQBQYO4L.js";
57
58
  import {
58
59
  resolveProject
59
- } from "./chunk-XAGBSYIQ.js";
60
+ } from "./chunk-TSM67ADU.js";
60
61
  import {
61
62
  recordArtifacts
62
- } from "./chunk-XDMZY3H7.js";
63
+ } from "./chunk-J7A73K2B.js";
63
64
  import {
64
65
  BrowserCleanupError,
65
66
  closeManagedBrowser,
66
67
  onStopSignal,
67
68
  registerBrowserSessionCleanup
68
- } from "./chunk-MAUGXKSI.js";
69
+ } from "./chunk-4BXEPVSA.js";
69
70
  import {
70
71
  withRemainingBudget
71
72
  } from "./chunk-EHSBBBR2.js";
72
73
  import {
73
74
  resolveLocalBrowserGpuMode
74
- } from "./chunk-LPI7HX4G.js";
75
+ } from "./chunk-WLVHSGVL.js";
75
76
  import {
76
77
  trackCheckReport,
77
78
  trackCommandFailure
78
- } from "./chunk-NSC5A4IR.js";
79
+ } from "./chunk-L7MGVFR4.js";
79
80
  import {
80
81
  swallowedFlagUsageError
81
- } from "./chunk-HTIUNMTP.js";
82
+ } from "./chunk-GDZA4ALG.js";
82
83
  import {
83
84
  defineCommand,
84
85
  parseArgs
@@ -95,17 +96,17 @@ import {
95
96
  import {
96
97
  extractMediaMetadata,
97
98
  findHdrAutoPromotion
98
- } from "./chunk-LK6KPVX2.js";
99
+ } from "./chunk-IQNS7O4W.js";
99
100
  import {
100
101
  lintProject,
101
102
  shouldBlockRender
102
- } from "./chunk-ZCJ5EGLU.js";
103
+ } from "./chunk-P327BIJR.js";
103
104
  import {
104
105
  withMeta
105
- } from "./chunk-EGRIVMCQ.js";
106
+ } from "./chunk-SPMKVI6H.js";
106
107
  import {
107
108
  normalizeErrorMessage
108
- } from "./chunk-T2EUWCJE.js";
109
+ } from "./chunk-EU7MVORF.js";
109
110
 
110
111
  // src/commands/check.ts
111
112
  import { randomUUID } from "crypto";
@@ -166,11 +167,11 @@ var CheckDeadline = class {
166
167
  partialResult() {
167
168
  return Object.assign({}, ...this.partials.map((read) => read()));
168
169
  }
169
- enter = (phase) => {
170
+ enter = (phase, detail) => {
170
171
  if (this.expired) return;
171
172
  const now = Date.now();
172
173
  if (this.work) this.spend(this.work.phase, now - this.work.since);
173
- this.work = { phase, since: now };
174
+ this.work = { phase, since: now, detail };
174
175
  this.spend(phase, 0);
175
176
  this.rearm();
176
177
  };
@@ -184,7 +185,7 @@ var CheckDeadline = class {
184
185
  const seconds2 = ((phase === this.work?.phase ? ms + open : ms) / 1e3).toFixed(1);
185
186
  return `${PHASE_LABELS[phase]} ${seconds2}${BEFORE_DEADLINE.has(phase) ? " (before the deadline)" : ""}`;
186
187
  });
187
- return ` (no progress for ${CHECK_IDLE_MS / 1e3} s after Chrome was ready), while ${PHASE_LABELS[this.work.phase]}. Seconds per phase: ${parts.join(", ")}.`;
188
+ return ` (no progress for ${CHECK_IDLE_MS / 1e3} s after Chrome was ready), while ${PHASE_LABELS[this.work.phase]}${this.work.detail ? ` (${this.work.detail})` : ""}. Seconds per phase: ${parts.join(", ")}.`;
188
189
  }
189
190
  start = () => {
190
191
  if (this.phase !== "waiting") return;
@@ -796,7 +797,7 @@ var DEFAULT_CHECK_OPTIONS = {
796
797
  maxIssues: 80,
797
798
  collapseStatic: true,
798
799
  tolerance: 2,
799
- timeout: 3e3,
800
+ timeout: 1e4,
800
801
  contrast: true,
801
802
  strict: false,
802
803
  snapshots: false,
@@ -1024,6 +1025,9 @@ function emptyGridSamples() {
1024
1025
  contrastEntries: [],
1025
1026
  screenshots: [],
1026
1027
  contrastMs: 0,
1028
+ gridMs: 0,
1029
+ craftMs: 0,
1030
+ overlapMs: 0,
1027
1031
  layoutStateSignatures: [],
1028
1032
  rotationSamples: [],
1029
1033
  indicatorFrames: [],
@@ -1079,6 +1083,7 @@ async function collectGridSamples(driver, options, grid, motion, helpers, enter,
1079
1083
  contrast: new Set(grid.contrastSamples),
1080
1084
  canvas: geometryEnabled ? await driver.getCanvas() : null
1081
1085
  };
1086
+ const gridStart = performance.now();
1082
1087
  const times = mergeSampleTimes(grid.layoutSamples, motion.times);
1083
1088
  const pending = times.map((_, index) => index);
1084
1089
  const perTime = [];
@@ -1098,6 +1103,7 @@ async function collectGridSamples(driver, options, grid, motion, helpers, enter,
1098
1103
  for (let index = pending.shift(); index !== void 0; index = pending.shift()) {
1099
1104
  taken.push(index);
1100
1105
  const time = times[index] ?? 0;
1106
+ enter("samples", `layout sample at ${time}s`);
1101
1107
  perTime[index] = await collectSampleAt(worker, options, grid, motion, sets, time);
1102
1108
  enter("samples");
1103
1109
  report("samples", ++finished, times.length);
@@ -1129,6 +1135,7 @@ async function collectGridSamples(driver, options, grid, motion, helpers, enter,
1129
1135
  driver.markSamples?.("end");
1130
1136
  const collected = emptyGridSamples();
1131
1137
  for (const samples of perTime) appendGridSamples(collected, samples);
1138
+ collected.gridMs = Math.round(performance.now() - gridStart);
1132
1139
  enter("overlap");
1133
1140
  await collectMotionOverlapSamples(
1134
1141
  driver,
@@ -1136,7 +1143,7 @@ async function collectGridSamples(driver, options, grid, motion, helpers, enter,
1136
1143
  collected,
1137
1144
  options.range,
1138
1145
  craftEnabled(driver, options),
1139
- () => enter("overlap"),
1146
+ (detail) => enter("overlap", detail),
1140
1147
  report
1141
1148
  );
1142
1149
  enter("samples");
@@ -1226,6 +1233,7 @@ async function collectOverlapGridInBatches(driver, times, progress, report) {
1226
1233
  const issues = [];
1227
1234
  const batches = Math.ceil(times.length / OVERLAP_BATCH);
1228
1235
  for (let from = 0; from < times.length; from += OVERLAP_BATCH) {
1236
+ progress(`overlap probes from ${times[from]}s`);
1229
1237
  issues.push(...await driver.collectOverlapGrid(times.slice(from, from + OVERLAP_BATCH)));
1230
1238
  progress();
1231
1239
  report("overlap", from / OVERLAP_BATCH + 1, batches);
@@ -1236,14 +1244,18 @@ async function collectMotionOverlapSamples(driver, grid, collected, range, craft
1236
1244
  const baseTimes = new Set(grid.layoutSamples);
1237
1245
  const shiftedTimes = await denseOverlapTimes(driver, grid, range);
1238
1246
  if (craft) {
1247
+ const craftStart = performance.now();
1239
1248
  const craftTimes = buildCraftSampleTimes(grid.duration).filter((time) => time < grid.duration);
1240
1249
  for (const [index, time] of craftTimes.entries()) {
1250
+ progress(`craft frame at ${time}s`);
1241
1251
  await driver.seekGeometry(time);
1242
1252
  collected.craftFrames.push(...await collectCraftFrame(driver, time));
1243
1253
  progress();
1244
1254
  report("craft", index + 1, craftTimes.length);
1245
1255
  }
1256
+ collected.craftMs = Math.round(performance.now() - craftStart);
1246
1257
  }
1258
+ const overlapStart = performance.now();
1247
1259
  const probeHold = holdProber(driver, collected, range ? range[1] : grid.duration);
1248
1260
  const gridTimes = shiftedTimes.filter((t) => !baseTimes.has(t));
1249
1261
  const gridIssues = await collectOverlapGridInBatches(driver, gridTimes, progress, report);
@@ -1255,6 +1267,7 @@ async function collectMotionOverlapSamples(driver, grid, collected, range, craft
1255
1267
  await probeHold(time, shiftedTimes[index + 1] ?? Number.POSITIVE_INFINITY, issues);
1256
1268
  progress();
1257
1269
  }
1270
+ collected.overlapMs = Math.round(performance.now() - overlapStart);
1258
1271
  }
1259
1272
  var CRAFT_SAMPLE_FPS = 8;
1260
1273
  var CRAFT_MAX_SAMPLES = 600;
@@ -1816,8 +1829,16 @@ async function runAuditGrid(driver, options, motion, helpers = Promise.resolve([
1816
1829
  contrastPassed: contrast.passed,
1817
1830
  craft,
1818
1831
  screenshots: collected.screenshots,
1819
- timings: { launchSettleMs: 0, seekLoopMs, contrastMs: collected.contrastMs },
1820
- skipped: false
1832
+ timings: {
1833
+ launchSettleMs: 0,
1834
+ seekLoopMs,
1835
+ contrastMs: collected.contrastMs,
1836
+ gridMs: collected.gridMs,
1837
+ craftMs: collected.craftMs,
1838
+ overlapMs: collected.overlapMs
1839
+ },
1840
+ skipped: false,
1841
+ renderReadyTimedOut: false
1821
1842
  };
1822
1843
  }
1823
1844
  async function runCheckPipeline(project, options, dependencies = DEFAULT_DEPENDENCIES) {
@@ -2154,8 +2175,13 @@ function buildReport(options, lint, browser, motion, extraMotionFindings, snapsh
2154
2175
  contrastWarnings: contrastSection.warningCount,
2155
2176
  craftWarnings: craftSection.warningCount,
2156
2177
  launchSettleMs: browser.timings.launchSettleMs,
2178
+ renderReadyTimedOut: browser.renderReadyTimedOut,
2157
2179
  seekLoopMs: browser.timings.seekLoopMs,
2158
2180
  contrastMs: browser.timings.contrastMs,
2181
+ gridMs: browser.timings.gridMs,
2182
+ craftMs: browser.timings.craftMs,
2183
+ overlapMs: browser.timings.overlapMs,
2184
+ durationSec: browser.duration,
2159
2185
  gridPoints: browser.layoutSamples.length,
2160
2186
  contrastPoints: browser.contrastChecked,
2161
2187
  ok: report.ok,
@@ -2263,8 +2289,16 @@ function emptyBrowserResult() {
2263
2289
  contrastPassed: 0,
2264
2290
  craft: disabledCraft(),
2265
2291
  screenshots: [],
2266
- timings: { launchSettleMs: 0, seekLoopMs: 0, contrastMs: 0 },
2267
- skipped: true
2292
+ timings: {
2293
+ launchSettleMs: 0,
2294
+ seekLoopMs: 0,
2295
+ contrastMs: 0,
2296
+ gridMs: 0,
2297
+ craftMs: 0,
2298
+ overlapMs: 0
2299
+ },
2300
+ skipped: true,
2301
+ renderReadyTimedOut: false
2268
2302
  };
2269
2303
  }
2270
2304
  function runtimeFailure(error, code = "check_runtime_failure") {
@@ -2300,7 +2334,7 @@ function resolveMotionSpec(projectDir) {
2300
2334
  };
2301
2335
  }
2302
2336
  async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
2303
- const module = await import("./checkBrowser-XSZUA2DQ.js");
2337
+ const module = await import("./checkBrowser-2LEQ2LSX.js");
2304
2338
  return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
2305
2339
  }
2306
2340
  var adoptedBrowser;
@@ -2314,7 +2348,7 @@ async function prelaunchBrowser(project, options) {
2314
2348
  if (adopted) return adopted;
2315
2349
  const html = await readFile(project.indexPath, "utf8").catch(() => void 0);
2316
2350
  if (html === void 0) return void 0;
2317
- const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-A2A5MGQB.js");
2351
+ const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-SVLMPQYC.js");
2318
2352
  return prelaunchCompositionBrowser(html, options.browserGpuMode);
2319
2353
  }
2320
2354
  async function writeSnapshot(projectDir, index, time, pngBase64) {
@@ -2326,11 +2360,11 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
2326
2360
  return relative(projectDir, path);
2327
2361
  }
2328
2362
  async function captureFindingFrames(project, options, requests, deadline) {
2329
- const module = await import("./checkBrowser-XSZUA2DQ.js");
2363
+ const module = await import("./checkBrowser-2LEQ2LSX.js");
2330
2364
  return module.captureFindingFrames(project, options, requests, deadline);
2331
2365
  }
2332
2366
  async function captureFindingCrops(project, options, requests, deadline) {
2333
- const module = await import("./checkBrowser-XSZUA2DQ.js");
2367
+ const module = await import("./checkBrowser-2LEQ2LSX.js");
2334
2368
  return module.captureFindingCrops(project, options, requests, deadline);
2335
2369
  }
2336
2370
  async function inspectProjectMedia(project, dependencies) {
@@ -2352,7 +2386,7 @@ function collectMedia(project) {
2352
2386
  return collectProjectMedia(project.dir);
2353
2387
  }
2354
2388
  async function inspectAudio(project, media) {
2355
- const module = await import("./checkAudio-PLEQY3SZ.js");
2389
+ const module = await import("./checkAudio-RZ7WQYVN.js");
2356
2390
  return module.inspectAudio(project.dir, relative(project.dir, project.indexPath), media);
2357
2391
  }
2358
2392
  function audioCheckFailure(project, error) {
@@ -2404,7 +2438,7 @@ var DEFAULT_COMMAND_DEPENDENCIES = {
2404
2438
  }
2405
2439
  },
2406
2440
  async prepareMedia(project, options) {
2407
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-Z2JTBNDS.js");
2441
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-RRGFY3XV.js");
2408
2442
  const html = await bundleWithLocalizedFonts(project.dir);
2409
2443
  return (await preResolveHostileMediaProxies(project.dir, html, options.autoProxy)).files;
2410
2444
  },
@@ -2520,8 +2554,8 @@ var CHECK_COMMAND_ARGS = {
2520
2554
  },
2521
2555
  timeout: {
2522
2556
  type: "string",
2523
- description: "Initial render-ready timeout in ms; also sets the navigation minimum (10s floor, default: 3000)",
2524
- default: "3000"
2557
+ description: "Initial render-ready timeout in ms, or with a unit (45s, 2m); also sets the navigation minimum (10s floor, default: 10000)",
2558
+ default: "10000"
2525
2559
  },
2526
2560
  contrast: {
2527
2561
  type: "boolean",
@@ -2687,7 +2721,7 @@ function parseCheckOptions(args) {
2687
2721
  maxIssues: positiveInteger(args["max-issues"], DEFAULT_CHECK_OPTIONS.maxIssues),
2688
2722
  collapseStatic: args["collapse-static"] !== false,
2689
2723
  tolerance: nonNegativeNumber(args.tolerance, DEFAULT_CHECK_OPTIONS.tolerance),
2690
- timeout: Math.max(500, positiveInteger(args.timeout, DEFAULT_CHECK_OPTIONS.timeout)),
2724
+ timeout: parseTimeoutMs(args.timeout, DEFAULT_CHECK_OPTIONS.timeout, 500),
2691
2725
  contrast: args.contrast !== false,
2692
2726
  ...checkReview()?.skipContrastInMotion ? { skipContrastInMotion: true } : {},
2693
2727
  strict: args.strict === true,
@@ -4,17 +4,18 @@ 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
+ renameWithRetry
9
+ } from "./chunk-XCIHCPJK.js";
7
10
  import {
8
11
  realpath
9
12
  } from "./chunk-OFQWTKPW.js";
10
13
 
11
14
  // ../core/dist/atomicFile.js
12
15
  import * as fs from "fs";
13
- import { randomBytes } from "crypto";
16
+ import { createHash, randomBytes } from "crypto";
14
17
  import { basename, dirname, isAbsolute, join, resolve, sep } from "path";
15
18
  var NO_HARD_LINKS = /* @__PURE__ */ new Set(["EPERM", "ENOTSUP", "EOPNOTSUPP", "EXDEV", "EISDIR"]);
16
- var BUSY_RENAME = /* @__PURE__ */ new Set(["EPERM", "EBUSY", "EACCES"]);
17
- var RENAME_RETRY_DELAYS_MS = [10, 20, 30, 40];
18
19
  var MAX_LINK_HOPS = 40;
19
20
  var TEMP_NAME_TRIES = 3;
20
21
  var TEMP_SUFFIX = /\.hf[0-9a-f]{6}\.tmp$/;
@@ -24,8 +25,20 @@ function atomicTempPath(filePath) {
24
25
  function isAtomicTempPath(path) {
25
26
  return TEMP_SUFFIX.test(path);
26
27
  }
28
+ function traceWrite(filePath, content) {
29
+ const out = process.env.HF_WRITE_TRACE;
30
+ if (!out || !filePath.endsWith(".html"))
31
+ return;
32
+ const text = typeof content === "string" ? content : Buffer.from(content).toString("utf8");
33
+ const hash = createHash("sha256").update(text).digest("hex").slice(0, 8);
34
+ const stack = (new Error().stack ?? "").split("\n").slice(2, 7).map((line) => line.trim());
35
+ const file = basename(filePath);
36
+ fs.appendFileSync(out, `${JSON.stringify({ t: Date.now(), kind: "write", file, hash, size: text.length, stack })}
37
+ `);
38
+ }
27
39
  function replaceFileAtomically(filePath, content, mode, operations = fs) {
28
- publishSibling(filePath, content, mode, operations, (tempPath) => renameWithRetry(operations, tempPath, filePath));
40
+ traceWrite(filePath, content);
41
+ publishSibling(filePath, content, mode, operations, (tempPath) => renameWithRetry(tempPath, filePath, { rename: operations.renameSync }));
29
42
  }
30
43
  function createFileAtomically(filePath, content, operations = fs) {
31
44
  publishSibling(filePath, content, void 0, operations, (tempPath) => {
@@ -117,19 +130,6 @@ function writeTempSibling(filePath, content, mode, operations) {
117
130
  }
118
131
  }
119
132
  }
120
- function renameWithRetry(operations, from, to) {
121
- for (let attempt = 0; ; attempt++) {
122
- try {
123
- operations.renameSync(from, to);
124
- return;
125
- } catch (error) {
126
- const delay = RENAME_RETRY_DELAYS_MS[attempt];
127
- if (delay === void 0 || !BUSY_RENAME.has(errorCode(error)))
128
- throw error;
129
- Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, delay);
130
- }
131
- }
132
- }
133
133
  function errorCode(error) {
134
134
  return String(error?.code);
135
135
  }
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  sherpaParakeetInstalled,
9
9
  sherpaUnsupportedReason
10
- } from "./chunk-QE4WRS3N.js";
10
+ } from "./chunk-KGBFHYHX.js";
11
11
  import {
12
12
  findParakeet
13
13
  } from "./chunk-JZIEZCQM.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-JVBRJMOP.js";
13
13
  import {
14
14
  appendRateCapArgs
15
- } from "./chunk-LK6KPVX2.js";
15
+ } from "./chunk-IQNS7O4W.js";
16
16
 
17
17
  // src/utils/deliveryFlags.ts
18
18
  var deliveryFlagArgs = {
@@ -11,14 +11,14 @@ import {
11
11
  distroLabel,
12
12
  getFFmpegInstallHint,
13
13
  parseLddMissingLibs
14
- } from "./chunk-IK4JY2LI.js";
14
+ } from "./chunk-R52YM6ZK.js";
15
15
  import {
16
16
  ensureBrowser,
17
17
  findBrowser
18
- } from "./chunk-HM7SUIQD.js";
18
+ } from "./chunk-KTWGVEN6.js";
19
19
  import {
20
20
  runCancellableProcess
21
- } from "./chunk-EHFZEKQM.js";
21
+ } from "./chunk-Q43YUROE.js";
22
22
  import {
23
23
  getFreeDiskMb
24
24
  } from "./chunk-QSFWGZG6.js";
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-VAS6HQX3.js";
30
30
  import {
31
31
  normalizeErrorMessage
32
- } from "./chunk-T2EUWCJE.js";
32
+ } from "./chunk-EU7MVORF.js";
33
33
 
34
34
  // src/browser/preflight.ts
35
35
  import { existsSync } from "fs";
@@ -8,14 +8,14 @@ import {
8
8
  DEFAULT_REGISTRY_URL,
9
9
  fetchItemFile,
10
10
  validRegistryItem
11
- } from "./chunk-XKW4Z7BU.js";
11
+ } from "./chunk-Y2EVJBR6.js";
12
12
  import {
13
13
  publishRegistryFile,
14
14
  registryTargetPath
15
15
  } from "./chunk-GMECXFAN.js";
16
16
  import {
17
17
  validateVariables
18
- } from "./chunk-7RWUY3BJ.js";
18
+ } from "./chunk-MI4V4HPE.js";
19
19
  import {
20
20
  realProjectRoot
21
21
  } from "./chunk-OFQWTKPW.js";
@@ -7965,6 +7965,23 @@ ${allInlineStyles}`.replace(/\/\*[\s\S]*?\*\//g, "");
7965
7965
  snippet: truncateSnippet(rootTag.raw)
7966
7966
  }
7967
7967
  ];
7968
+ },
7969
+ // subcomposition_linked_style_names_root_id
7970
+ // The compiler flattens a sub-composition root into its host and rewrites inline <style>
7971
+ // selectors to match; a linked stylesheet is not rewritten, so `#root-id` in it matches nothing.
7972
+ ({ styles, rootTag, options }) => {
7973
+ if (!options.isSubComposition || !rootTag) return [];
7974
+ const rootId = readAttr(rootTag.raw, "id");
7975
+ if (!rootId) return [];
7976
+ const escaped = rootId.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
7977
+ const names = new RegExp(`#${escaped}(?![\\w-])`);
7978
+ return styles.filter((style) => style.index === -1 && names.test(stripCssComments(style.content))).map((style) => ({
7979
+ code: "subcomposition_linked_style_names_root_id",
7980
+ severity: "warning",
7981
+ message: `The linked stylesheet "${style.rootRelativePath ?? style.file}" has a rule on #${rootId}, the id of this sub-composition's root. The root is merged into its host when the composition is compiled, so that selector matches nothing (the same rule in an inline <style> is rewritten and works).`,
7982
+ fixHint: `Move the #${rootId} rules into a <style> inside the <template>, where they are rewritten for the merged root, or select a child element of the root in the linked file instead of the root itself.`,
7983
+ snippet: truncateSnippet(style.content.slice(0, 120))
7984
+ }));
7968
7985
  }
7969
7986
  ];
7970
7987
  var CLIP_MEDIA_TAGS = /* @__PURE__ */ new Set(["img", "video", "audio"]);
@@ -10687,6 +10704,53 @@ var shaderRules = [
10687
10704
  }));
10688
10705
  })
10689
10706
  ];
10707
+ var CSS_ROOT_URL = /\burl\(\s*["']?(\/(?!\/)[^"')\s]*)/g;
10708
+ var SCRIPT_ROOT_URL = /\b(?:fetch|new\s+URL)\(\s*(["'`])(\/(?!\/)[^"'`$]*)\1/g;
10709
+ function relativeForm(path, cssFile) {
10710
+ const depth = (cssFile ?? "").split("/").filter(Boolean).length - 1;
10711
+ return `${"../".repeat(Math.max(depth, 0))}${path.slice(1)}`;
10712
+ }
10713
+ function rootPathFinding(path, cssFile, snippet) {
10714
+ return {
10715
+ code: "root_path_missing_in_preview",
10716
+ severity: "warning",
10717
+ message: `"${path}" starts at the server's root. Render and snapshot serve the project there, but Studio's preview serves it under the project's own path, so the preview cannot find this file.`,
10718
+ fixHint: `Use "${relativeForm(path, cssFile)}" instead.`,
10719
+ snippet: truncateSnippet(snippet)
10720
+ };
10721
+ }
10722
+ function cssRootPaths(css, cssFile) {
10723
+ return [...css.matchAll(CSS_ROOT_URL)].map(
10724
+ (match) => rootPathFinding(match[1] ?? "", cssFile, match[0])
10725
+ );
10726
+ }
10727
+ var scriptRootPaths = (script) => [...script.matchAll(SCRIPT_ROOT_URL)].map(
10728
+ (match) => rootPathFinding(match[2] ?? "", void 0, match[0])
10729
+ );
10730
+ function invalidImportMap(script) {
10731
+ if (!/\btype\s*=\s*["']?importmap\b/i.test(script.attrs)) return [];
10732
+ try {
10733
+ JSON.parse(script.content);
10734
+ return [];
10735
+ } catch (error) {
10736
+ return [
10737
+ {
10738
+ code: "import_map_invalid",
10739
+ severity: "warning",
10740
+ message: `This import map is not valid JSON (${error instanceof Error ? error.message : String(error)}). The browser ignores it, and preview cannot map root module paths ("/assets/x.js") to the project.`,
10741
+ fixHint: "Make the import map valid JSON: double-quoted keys and values, no trailing commas.",
10742
+ snippet: truncateSnippet(script.content)
10743
+ }
10744
+ ];
10745
+ }
10746
+ }
10747
+ var rootPathRules = [
10748
+ (ctx) => [
10749
+ ...ctx.styles.filter((style) => style.rootRelativePath).flatMap((style) => cssRootPaths(style.content, style.rootRelativePath)),
10750
+ ...ctx.scripts.flatMap((script) => scriptRootPaths(script.content)),
10751
+ ...ctx.scripts.flatMap(invalidImportMap)
10752
+ ]
10753
+ ];
10690
10754
  var RULE_GROUPS = [
10691
10755
  { group: "core", rules: coreRules },
10692
10756
  { group: "media", rules: mediaRules },
@@ -10698,7 +10762,8 @@ var RULE_GROUPS = [
10698
10762
  { group: "fonts", rules: fontRules },
10699
10763
  { group: "slideshow", rules: slideshowRules },
10700
10764
  { group: "structure", rules: structureRules },
10701
- { group: "shaders", rules: shaderRules }
10765
+ { group: "shaders", rules: shaderRules },
10766
+ { group: "rootPaths", rules: rootPathRules }
10702
10767
  ];
10703
10768
  var LINT_RULE_COUNT = RULE_GROUPS.reduce((n, g) => n + g.rules.length, 0);
10704
10769
  var LINT_RULE_GROUP_COUNTS = Object.fromEntries(