hyperframes 0.9.25 → 0.9.27

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 (298) hide show
  1. package/dist/{add-FIQ7X2UM.js → add-K5J5XWLL.js} +22 -23
  2. package/dist/{agentPromptGenerator-BZDDAACV.js → agentPromptGenerator-PGIEEJLJ.js} +10 -10
  3. package/dist/{animatedGifPrep-QHKEBSEG.js → animatedGifPrep-MLZOHCTS.js} +9 -9
  4. package/dist/api.js +46 -46
  5. package/dist/{appHistory-FVDSCS64.js → appHistory-DLDRURHW.js} +2 -3
  6. package/dist/{asset-GI2GUGHA.js → asset-OS5AB3SQ.js} +6 -6
  7. package/dist/{assetCataloger-UVEETMYY.js → assetCataloger-DMVL5X2P.js} +11 -11
  8. package/dist/{audio-XS7JJBFM.js → audio-23FMLVOJ.js} +30 -30
  9. package/dist/{auth-4HA6L5RV.js → auth-2DIXO5OO.js} +7 -7
  10. package/dist/{autoUpdate-P2WTCGD5.js → autoUpdate-NP2CBKFP.js} +5 -5
  11. package/dist/{avatars-ZUEC4VQX.js → avatars-LULUZMLI.js} +19 -19
  12. package/dist/{backgroundChecks-23MDYVVG.js → backgroundChecks-3MXY6FNF.js} +6 -6
  13. package/dist/backgroundChecksWorker.js +6 -6
  14. package/dist/{batchRender-BN4H7CRS.js → batchRender-AL6DO5IA.js} +9 -9
  15. package/dist/{beats-BPMY6WVU.js → beats-U4Q76QWK.js} +16 -16
  16. package/dist/{benchmark-MTWV4OKR.js → benchmark-QANZ2IRX.js} +17 -17
  17. package/dist/{billing-O2UNQICC.js → billing-PX54B6T7.js} +23 -24
  18. package/dist/{browser-G762CJHD.js → browser-P36XPIWA.js} +15 -15
  19. package/dist/{bundleWithLocalizedFonts-GR4BQHS5.js → bundleWithLocalizedFonts-QY6JAKLF.js} +4 -4
  20. package/dist/{capture-H6DPERYY.js → capture-S5DURUCT.js} +6 -6
  21. package/dist/{capture-QKS2OOSF.js → capture-ZZWXDUH2.js} +20 -21
  22. package/dist/{captureCompositionFrame-PSLV3E4Y.js → captureCompositionFrame-VTN6VB5N.js} +19 -19
  23. package/dist/{captureFile-VIVGKFY4.js → captureFile-O7JMINHC.js} +3 -1
  24. package/dist/{catalog-J5P4XZOY.js → catalog-TTBH4Y6Z.js} +23 -24
  25. package/dist/{catch-up-GAQ7GZUY.js → catch-up-M3CF57PU.js} +16 -17
  26. package/dist/{check-KXMAFDHW.js → check-K7ZBDKBZ.js} +54 -54
  27. package/dist/{checkAudio-CHPYLUDB.js → checkAudio-HZ3Z5BTZ.js} +16 -16
  28. package/dist/{checkBrowser-BBOMHS32.js → checkBrowser-TO5M2QL2.js} +46 -47
  29. package/dist/{chunk-ZZFYEYKR.js → chunk-2SX2EOPM.js} +8 -8
  30. package/dist/{chunk-TXMXWJNZ.js → chunk-2WKG7HXZ.js} +2 -2
  31. package/dist/{chunk-JNU4OO4L.js → chunk-3JFV42QB.js} +4 -4
  32. package/dist/{chunk-6YPQSVVR.js → chunk-3LIMD4YP.js} +1 -1
  33. package/dist/{chunk-H6676SHA.js → chunk-4N3UVDIJ.js} +1 -1
  34. package/dist/{chunk-CXUT4XVT.js → chunk-54FVSPRH.js} +1 -1
  35. package/dist/{chunk-OUQO3DKO.js → chunk-5AULMCSV.js} +3 -3
  36. package/dist/{chunk-AWFYCJXZ.js → chunk-5FWOWZAB.js} +8 -8
  37. package/dist/{chunk-DBEE7F7W.js → chunk-5PL4LZYF.js} +269 -272
  38. package/dist/{chunk-Z4GE5BXC.js → chunk-5SDUQLZ3.js} +4 -3
  39. package/dist/{chunk-254HMQ7B.js → chunk-5TD7HBR3.js} +2 -2
  40. package/dist/{chunk-WRFETVZF.js → chunk-5WI3VKQW.js} +3 -3
  41. package/dist/{chunk-XE4BDJBH.js → chunk-5ZEBQO7Y.js} +15 -10
  42. package/dist/chunk-63HHKYU2.js +413 -0
  43. package/dist/{chunk-7TMYYSPM.js → chunk-6FHIR4KD.js} +2 -2
  44. package/dist/{chunk-ELMZM2QX.js → chunk-6IMVGVA4.js} +1 -1
  45. package/dist/{chunk-FSCPSJBA.js → chunk-6LCIO2YY.js} +2 -2
  46. package/dist/{chunk-OHQRQE7F.js → chunk-6MKM2RVL.js} +8 -1
  47. package/dist/{chunk-NGO2HYW6.js → chunk-6NVZYXDT.js} +8 -8
  48. package/dist/{chunk-LISUH6KH.js → chunk-6OQPKRPJ.js} +1 -1
  49. package/dist/{chunk-2OKM5V4N.js → chunk-6PHVIKCJ.js} +10 -6
  50. package/dist/{chunk-WW7Z2W73.js → chunk-72GTIFAI.js} +20 -1
  51. package/dist/{chunk-NZTYGWRK.js → chunk-7DGBOZ4N.js} +1 -1
  52. package/dist/{chunk-32VBJHBI.js → chunk-7JK2YE2G.js} +4 -4
  53. package/dist/{chunk-UMHSIUAC.js → chunk-7VHSPFBH.js} +2 -2
  54. package/dist/{chunk-B2RMMRJB.js → chunk-B4TLQLGI.js} +1 -1
  55. package/dist/{chunk-US2SO6O4.js → chunk-BF6RWOUF.js} +82 -18
  56. package/dist/{chunk-AZO2YY3U.js → chunk-BIQJKM2O.js} +2 -2
  57. package/dist/{chunk-RT6MI3TZ.js → chunk-BJYCLZBQ.js} +1 -1
  58. package/dist/{chunk-P7DCQJ6N.js → chunk-BMDABBHG.js} +1 -1
  59. package/dist/{chunk-7LUVPCIB.js → chunk-BZFVS36G.js} +1 -1
  60. package/dist/{chunk-W4DMQZL5.js → chunk-BZULWFMJ.js} +11 -2
  61. package/dist/{chunk-54Q3H2UQ.js → chunk-CDNVZEGQ.js} +9 -2
  62. package/dist/{chunk-LXFCCGHN.js → chunk-CGUAZCPL.js} +12 -12
  63. package/dist/{chunk-7GILET6T.js → chunk-CZ43ZZFS.js} +1 -1
  64. package/dist/{chunk-YO3ZE7KU.js → chunk-D5QT3ORV.js} +1 -1
  65. package/dist/{chunk-UHOZCI3W.js → chunk-DC5ZRTHD.js} +2 -2
  66. package/dist/{chunk-LLUKDUVS.js → chunk-DJVSNDF3.js} +26 -4
  67. package/dist/{chunk-6FDVPIOO.js → chunk-DONVZZLV.js} +1 -1
  68. package/dist/chunk-F24B2PLD.js +5049 -0
  69. package/dist/{chunk-T2WJO4XM.js → chunk-F2GWIWHN.js} +4 -3
  70. package/dist/{chunk-S4KPXQ6H.js → chunk-F4ROYQPH.js} +7 -4
  71. package/dist/{chunk-CMQZP52Y.js → chunk-F5QBIIFT.js} +6 -1
  72. package/dist/{chunk-M3JU24AI.js → chunk-FGFVUKPP.js} +1 -1
  73. package/dist/{chunk-DUOZSML3.js → chunk-FKSUSFRT.js} +15 -15
  74. package/dist/{chunk-NJ3H7N4T.js → chunk-FNSWA4FK.js} +1 -1
  75. package/dist/{chunk-LAGZGKKN.js → chunk-FOZBANEN.js} +3 -2
  76. package/dist/{chunk-5YPMCCCA.js → chunk-FRBQ3FIM.js} +1 -1
  77. package/dist/{chunk-J4CMGJ6U.js → chunk-GGDJLN5I.js} +1 -21
  78. package/dist/{chunk-MS6S66B6.js → chunk-GQTNVE7U.js} +4 -4
  79. package/dist/{chunk-3ARWVNNK.js → chunk-HGHBQDM5.js} +7 -7
  80. package/dist/{chunk-A4ZTSQLW.js → chunk-IEXRKKHC.js} +119 -4
  81. package/dist/{chunk-XSXLFVDI.js → chunk-IIS57Z3R.js} +3 -3
  82. package/dist/{chunk-YTGKCGLT.js → chunk-INVBU7DY.js} +7 -3
  83. package/dist/{chunk-CUCP7FKH.js → chunk-IOPIOX5K.js} +78 -16
  84. package/dist/{chunk-4FNJ2QNP.js → chunk-IQKMIYLG.js} +6 -2
  85. package/dist/{chunk-FEHGZTE5.js → chunk-IX3K55NA.js} +6 -6
  86. package/dist/{chunk-W6PKKBDA.js → chunk-IYYZMZD2.js} +2 -2
  87. package/dist/{chunk-D6AC6N7X.js → chunk-J237HI2F.js} +38 -26
  88. package/dist/{chunk-IOPE4LJ2.js → chunk-J3X2RZON.js} +1 -1
  89. package/dist/chunk-JJ47LVJ7.js +58 -0
  90. package/dist/{chunk-AXFYCH7S.js → chunk-JLUOG6S2.js} +9 -6
  91. package/dist/{chunk-M7VAMZQW.js → chunk-JNHJX2BZ.js} +4 -2
  92. package/dist/{chunk-XKMKXORV.js → chunk-K6UG4VWT.js} +3 -3
  93. package/dist/{chunk-VN33543F.js → chunk-KUBXGMHI.js} +31 -29
  94. package/dist/{chunk-ADJCNH7M.js → chunk-L2GOO2UY.js} +1 -1
  95. package/dist/{chunk-DL7R6DWU.js → chunk-LI2TX7SN.js} +23 -5
  96. package/dist/{chunk-EARKC4ZO.js → chunk-LLLNVEUF.js} +1 -1
  97. package/dist/{chunk-MCDUWW36.js → chunk-LMCFILEY.js} +4 -4
  98. package/dist/{chunk-G7VEYUZ2.js → chunk-LW33P24U.js} +210 -51
  99. package/dist/{chunk-2VW2MOD2.js → chunk-M3UU4QRH.js} +4 -4
  100. package/dist/{chunk-KBHBSWEE.js → chunk-M457GQGR.js} +1 -1
  101. package/dist/{chunk-Z6XLJVZW.js → chunk-MVJ7AX6W.js} +2 -2
  102. package/dist/{chunk-2GHQMVYE.js → chunk-NFUXYBOR.js} +1 -1
  103. package/dist/{chunk-T6QQOGLJ.js → chunk-NHJ5YUBZ.js} +5 -9
  104. package/dist/{chunk-3DYZRZFI.js → chunk-NMOWXTCB.js} +2 -2
  105. package/dist/{chunk-PPOJMJR5.js → chunk-NURN5W6M.js} +37 -8
  106. package/dist/{chunk-M2PGYJG3.js → chunk-OSDNRYQJ.js} +1 -1
  107. package/dist/{chunk-TPBDABHP.js → chunk-OT2KF34N.js} +12 -12
  108. package/dist/{chunk-4FUWA4QW.js → chunk-PBDBD4BY.js} +2 -2
  109. package/dist/{chunk-FYZFURBN.js → chunk-PQYICV7O.js} +1 -1
  110. package/dist/{chunk-6BSSCAC3.js → chunk-Q73OZV2V.js} +16 -16
  111. package/dist/{chunk-Q5JX74IM.js → chunk-QBNHYXV3.js} +4 -4
  112. package/dist/{chunk-NAI4ID2Q.js → chunk-QISOTHEQ.js} +8 -8
  113. package/dist/{chunk-FPQAQS64.js → chunk-QTBRVJ6N.js} +3 -3
  114. package/dist/{chunk-GXYGI5FG.js → chunk-QYPS3UYP.js} +3 -3
  115. package/dist/{chunk-MGQTL7M3.js → chunk-RSNZEWNW.js} +1 -1
  116. package/dist/{chunk-2ZHD474U.js → chunk-RVXE24LQ.js} +3 -3
  117. package/dist/{chunk-ANURCSEW.js → chunk-RYT22J4V.js} +3 -3
  118. package/dist/{chunk-ZNFYQMFN.js → chunk-SCNC7YPB.js} +1 -1
  119. package/dist/{chunk-3LC6GDR7.js → chunk-SODLRBNC.js} +1 -1
  120. package/dist/{chunk-NHSCE2XY.js → chunk-STQGPDO4.js} +3 -3
  121. package/dist/{chunk-EQBDKYXR.js → chunk-SWOAB4GM.js} +5 -2
  122. package/dist/{chunk-MFDNMTOP.js → chunk-T37WJWV2.js} +1 -1
  123. package/dist/{chunk-WYXBJVM2.js → chunk-TCQKCUDA.js} +1 -1
  124. package/dist/{chunk-J2ZNX2OY.js → chunk-TKFKOWRI.js} +3 -3
  125. package/dist/{chunk-6TDAOOGV.js → chunk-TM6HH2VV.js} +2 -2
  126. package/dist/{chunk-GDGHSVGP.js → chunk-TMYY4DV4.js} +3 -3
  127. package/dist/{chunk-7XQENYJK.js → chunk-TRXIWZTM.js} +1 -1
  128. package/dist/{chunk-WEWXIQPN.js → chunk-U46YQL7E.js} +1 -1
  129. package/dist/{chunk-DEU4JCIF.js → chunk-U5RXCKWJ.js} +2 -2
  130. package/dist/{chunk-XZJ7A6YM.js → chunk-UPG4MMIA.js} +51 -11
  131. package/dist/{chunk-7PZLR2JZ.js → chunk-UPR5TMLG.js} +2 -2
  132. package/dist/{chunk-FQOOOFTF.js → chunk-UXJAMAZK.js} +2 -2
  133. package/dist/{chunk-BVOTSOAS.js → chunk-V4Z37HFN.js} +4 -4
  134. package/dist/{chunk-XG4YPYXX.js → chunk-V6EVV3XC.js} +5 -5
  135. package/dist/{chunk-2L6V6535.js → chunk-V7Q4XKRJ.js} +22 -23
  136. package/dist/{chunk-HOCC4J5C.js → chunk-VU4EPKFI.js} +1 -1
  137. package/dist/{chunk-CS7DHCRZ.js → chunk-VXWASGGT.js} +5 -5
  138. package/dist/{chunk-4HOYUG34.js → chunk-W5QBSRPF.js} +3 -3
  139. package/dist/{chunk-JPCUTMUU.js → chunk-WZTOPKVO.js} +8 -8
  140. package/dist/{chunk-OHN3OJQQ.js → chunk-X7NFWMWW.js} +1 -1
  141. package/dist/chunk-XDKEKXV4.js +29 -0
  142. package/dist/{chunk-FRBQYFUV.js → chunk-XEPGN46Q.js} +1 -1
  143. package/dist/{chunk-XB77ZA5A.js → chunk-XZ2MQF7V.js} +1 -1
  144. package/dist/{chunk-PB3N3LBM.js → chunk-Y67RJDEB.js} +1 -1
  145. package/dist/{chunk-Y24YPVDN.js → chunk-YNIADMNZ.js} +4 -4
  146. package/dist/{chunk-BHG3PLDI.js → chunk-YPRU66CC.js} +2 -2
  147. package/dist/{chunk-NSCS6HX2.js → chunk-YSJKA52M.js} +2 -2
  148. package/dist/{chunk-EBPXSOT7.js → chunk-YU5QNJMA.js} +25 -7
  149. package/dist/{chunk-Z3PD7V6K.js → chunk-Z5THPTQ2.js} +3 -3
  150. package/dist/{chunk-6BI4ESZH.js → chunk-ZDQNMNFE.js} +6 -6
  151. package/dist/{chunk-SG7NQ7BI.js → chunk-ZGIPMCML.js} +1 -1
  152. package/dist/{chunk-DIWUWYQZ.js → chunk-ZNTYIJ5K.js} +2 -2
  153. package/dist/{chunk-XLCHFZWB.js → chunk-ZUXES5HA.js} +4 -4
  154. package/dist/{clean-AZC2XGXK.js → clean-LCQH4HFU.js} +29 -30
  155. package/dist/cli.js +103 -70
  156. package/dist/{cloud-ID5WI6WX.js → cloud-34YHQNNB.js} +7 -7
  157. package/dist/{cloud-D7DFYONW.js → cloud-QJMPTQ3N.js} +8 -9
  158. package/dist/{cloudrun-K7KBTFWT.js → cloudrun-T7VVPRDG.js} +12 -12
  159. package/dist/{colors-CRTWLZ5S.js → colors-SS2KTOKM.js} +3 -3
  160. package/dist/{compare-V452YQTT.js → compare-5EBDE5ZT.js} +45 -46
  161. package/dist/{compiler-RWPIYAIS.js → compiler-ZSIKBZBR.js} +5 -5
  162. package/dist/{component-PKMWRCKF.js → component-7TIFLFYC.js} +7 -7
  163. package/dist/{compositions-4HLQE34P.js → compositions-TLCEVGBC.js} +19 -19
  164. package/dist/{contactSheet-RWRMLRZI.js → contactSheet-PZXG3REG.js} +4 -2
  165. package/dist/{curve-LWNXGZIR.js → curve-YABHYRHK.js} +19 -19
  166. package/dist/{cuts-FCG44VKV.js → cuts-UFRBSLDQ.js} +20 -20
  167. package/dist/{delete-PGIQL57A.js → delete-5OABQGPL.js} +14 -15
  168. package/dist/{deploy-OYXYGAN7.js → deploy-2OYZWP74.js} +5 -5
  169. package/dist/{describeProject-EPJ36LZS.js → describeProject-TX2WQLQ5.js} +14 -14
  170. package/dist/{destroy-6XY4WQWY.js → destroy-YAMTVR2W.js} +3 -3
  171. package/dist/{deterministicFonts-IXXU76SA.js → deterministicFonts-SKRN3TCP.js} +4 -2
  172. package/dist/{diff-X6UP4FGI.js → diff-2CKZ2QR7.js} +43 -44
  173. package/dist/{dist-5ITUK4AA.js → dist-EFXKPJJT.js} +3 -3
  174. package/dist/{dist-QMZNV55J.js → dist-O45G7NET.js} +15 -16
  175. package/dist/{dist-G6COMUG7.js → dist-QRXJMFI7.js} +4 -4
  176. package/dist/docs/motion-blur.md +1 -1
  177. package/dist/{docs-WYJSJGSF.js → docs-ZSVK3VZD.js} +3 -3
  178. package/dist/{doctor-ALNW7CR5.js → doctor-Y436MAQR.js} +19 -19
  179. package/dist/{energy-OWXBHU5V.js → energy-UKLKTH7A.js} +18 -18
  180. package/dist/{events-VP7QSKHQ.js → events-73W2IO3W.js} +22 -22
  181. package/dist/{events-LAWAINM2.js → events-MC5XLD2Z.js} +14 -12
  182. package/dist/{events-UO3BS6F2.js → events-NKRFVAY3.js} +7 -7
  183. package/dist/{extract-VYOS4QCN.js → extract-ZG3MHNYX.js} +19 -19
  184. package/dist/{face-JR3YIVEB.js → face-CFBT42SW.js} +19 -20
  185. package/dist/{feedback-7YNW4VXQ.js → feedback-QGDEE3RB.js} +19 -19
  186. package/dist/{ffmpeg-CJZTY5IK.js → ffmpeg-UXHRG3MW.js} +9 -9
  187. package/dist/{figma-GOKUTU7D.js → figma-BD7RROGK.js} +6 -6
  188. package/dist/fontLocalizeCli.js +13 -13
  189. package/dist/{frames-2DEBHVNX.js → frames-ZF756HF3.js} +30 -23
  190. package/dist/{generate-NF5SUHZJ.js → generate-LEUO4VVQ.js} +33 -34
  191. package/dist/{get-6VOIQACT.js → get-4BL6VXKX.js} +14 -15
  192. package/dist/{gpuPolicy-JDSWBFRQ.js → gpuPolicy-K2JHXORZ.js} +9 -9
  193. package/dist/{grade-compare-4NO3FHH4.js → grade-compare-4UBZJQ7F.js} +44 -45
  194. package/dist/{gsapParserAcorn-5YD4N6HQ.js → gsapParserAcorn-SKGP4R4N.js} +1 -1
  195. package/dist/{heifImagePrep-D7YHH6FO.js → heifImagePrep-O2WGVMAP.js} +10 -10
  196. package/dist/{help-6E3RFPDW.js → help-M55BSV4I.js} +4 -4
  197. package/dist/{history-KIR6V7S3.js → history-UIQBTMXZ.js} +18 -19
  198. package/dist/hyperframe.manifest.json +1 -1
  199. package/dist/hyperframe.runtime.iife.js +67 -67
  200. package/dist/hyperframes-player.global.js +1 -1
  201. package/dist/{info-BJEIZI5W.js → info-X4VTZ7PT.js} +21 -21
  202. package/dist/{init-Z6JOMO7M.js → init-3Y5XMH6I.js} +44 -42
  203. package/dist/{ink-DUTQDEIF.js → ink-QKIGMWUR.js} +18 -18
  204. package/dist/{inspect-SZMIZOV3.js → inspect-BUKYJF6N.js} +44 -45
  205. package/dist/{installer-JTF7JFPQ.js → installer-VPGNKCEU.js} +8 -8
  206. package/dist/{keyframes-47SSIBNC.js → keyframes-6HO56WZG.js} +20 -17
  207. package/dist/{lambda-J5TLTIWN.js → lambda-XDVNHACQ.js} +23 -23
  208. package/dist/{layout-FV6F6OLX.js → layout-WELYAXO3.js} +44 -45
  209. package/dist/{lint-56PDOTYV.js → lint-6R3E6Q5V.js} +18 -18
  210. package/dist/{lintProject-BC5ISNKQ.js → lintProject-5CBL7VFV.js} +3 -3
  211. package/dist/{list-CQIDKSYA.js → list-SIL4TALK.js} +15 -16
  212. package/dist/{localPage-ABSGRIBA.js → localPage-6VW25RGJ.js} +10 -10
  213. package/dist/{login-DDZ4F5VD.js → login-3AFKZLIK.js} +10 -10
  214. package/dist/{logout-EKDVIU6Y.js → logout-FJ444652.js} +5 -5
  215. package/dist/{look-N6DDKZV5.js → look-RYLQYXNN.js} +20 -20
  216. package/dist/{manager-MKDNQ5KZ.js → manager-IAXYSRG5.js} +3 -3
  217. package/dist/{manager-N2AZZQPD.js → manager-T4ZHIMMY.js} +11 -10
  218. package/dist/{measure-SE6XHU7X.js → measure-XUK4GNAC.js} +16 -13
  219. package/dist/{media-treatment-F72G2PIT.js → media-treatment-SR5TX7CH.js} +23 -23
  220. package/dist/{media-use-4YR7SBNR.js → media-use-3LOSIEZM.js} +7 -7
  221. package/dist/{models-GPILZH33.js → models-5SPPZN2E.js} +18 -18
  222. package/dist/{motionShot-3DAZIVN7.js → motionShot-IFAFFPZF.js} +23 -23
  223. package/dist/{normalize-MBNGRVQA.js → normalize-PGMS24I2.js} +3 -1
  224. package/dist/{normalize-audio-26EV5GAR.js → normalize-audio-LQDUTXFM.js} +17 -17
  225. package/dist/{open-7XG6SFXL.js → open-XX2L2YSZ.js} +25 -26
  226. package/dist/{parakeetRunner-HPQ5OZLX.js → parakeetRunner-R5WK6AJN.js} +18 -16
  227. package/dist/{pipeline-OPKQDBOS.js → pipeline-NMCWG5AA.js} +12 -12
  228. package/dist/{play-PVR6FKX3.js → play-Q2AYSHPW.js} +35 -36
  229. package/dist/{policies-EV7XPSQC.js → policies-5G7G26ZX.js} +3 -3
  230. package/dist/{preflight-LFUR4JRE.js → preflight-WG2O5KUQ.js} +13 -13
  231. package/dist/{present-4TCPMLYQ.js → present-AOU7HG3N.js} +28 -29
  232. package/dist/{preview-2MFKI2FY.js → preview-PMGF6AQB.js} +33 -34
  233. package/dist/{probe-WWO4BBQZ.js → probe-SESDMQ4Q.js} +18 -18
  234. package/dist/{producer-5SH42ZJI.js → producer-TGF2N7GF.js} +1 -1
  235. package/dist/{progress-FWJJMPIQ.js → progress-OOEHTBBU.js} +3 -3
  236. package/dist/{projectConfig-L7F2OHVX.js → projectConfig-UHYPGWD5.js} +12 -13
  237. package/dist/{prompts-27EPTM64.js → prompts-RYVLXI7Q.js} +3 -3
  238. package/dist/{publication-MUEYZCG5.js → publication-5KOANEHK.js} +6 -6
  239. package/dist/{publish-5QFFN6D4.js → publish-C3ARXH6D.js} +24 -25
  240. package/dist/{refresh-ZHLUUENK.js → refresh-YY4K2RWR.js} +5 -5
  241. package/dist/{remove-background-XFB5SJX5.js → remove-background-ZHAYTN7D.js} +17 -17
  242. package/dist/{render-JBUASSHE.js → render-TSV3XTQV.js} +11 -11
  243. package/dist/{render-ARJA4MYF.js → render-UNWC5ZIO.js} +50 -48
  244. package/dist/{render-E2CLPC3P.js → render-XYWARHW5.js} +75 -299
  245. package/dist/{render-batch-EEXJI6KV.js → render-batch-ISMXAG7F.js} +11 -11
  246. package/dist/renderSetupWorker.js +6 -6
  247. package/dist/{resolver-TLZQ7CQV.js → resolver-ZWNLOG6O.js} +9 -9
  248. package/dist/{reverse-LKIVLBZ7.js → reverse-Q76RJRN5.js} +1 -1
  249. package/dist/{run-IQLZHH6D.js → run-UPKPPRV7.js} +7 -6
  250. package/dist/{screenshotCapture-E5RMPWZS.js → screenshotCapture-N6BXDAMK.js} +11 -11
  251. package/dist/{sherpa-PZFB6QRE.js → sherpa-5YE5FIOR.js} +17 -15
  252. package/dist/{sites-O7A7G3ZQ.js → sites-NWEJJNAZ.js} +3 -3
  253. package/dist/skills/hyperframes/SKILL.md +4 -1
  254. package/dist/skills/hyperframes/references/motion.md +1 -1
  255. package/dist/skills/hyperframes/references/skill-lifecycle.md +2 -2
  256. package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +2 -2
  257. package/dist/skills/hyperframes-cli/references/preview-render.md +2 -0
  258. package/dist/{skills-4AMSNW3U.js → skills-U4NHFYH4.js} +17 -16
  259. package/dist/{skillsUpdateCheck-FMPVRPJ2.js → skillsUpdateCheck-XJA6VEZZ.js} +6 -6
  260. package/dist/{snapshot-N3JIF3KN.js → snapshot-V4BSRUXI.js} +60 -59
  261. package/dist/{src-LPL3NISU.js → src-FNXCLKWN.js} +8 -8
  262. package/dist/{src-OBVQCCNO.js → src-JVYKW7RE.js} +12 -12
  263. package/dist/{start-VAVEAA42.js → start-TSIACBUA.js} +46 -34
  264. package/dist/{staticProjectServer-KKBIEFAQ.js → staticProjectServer-NTSNYFWQ.js} +26 -27
  265. package/dist/{status-WMMWZJR4.js → status-53Z4YLQ7.js} +32 -27
  266. package/dist/studio/assets/{codec-DkDSuF26.js → codec-YP1ZxmPt.js} +1 -1
  267. package/dist/studio/assets/{hyperframes-player-DqHhPw_M.js → hyperframes-player-Cy3KqtCh.js} +1 -1
  268. package/dist/studio/assets/{index-Tf9fkNRM.js → index-BNTUBT5h.js} +78 -78
  269. package/dist/studio/assets/{index-BeQCqWc3.js → index-C4B6p8IF.js} +1 -1
  270. package/dist/studio/assets/{pausedVideoDecoder-CmNTruVA.js → pausedVideoDecoder-52lsHc7p.js} +1 -1
  271. package/dist/studio/index.html +1 -1
  272. package/dist/{studio-api-MRSPHRP3.js → studio-api-2I44WB4P.js} +15 -16
  273. package/dist/{studioServer-VBZYMPMI.js → studioServer-HSYYGQU3.js} +94 -78
  274. package/dist/{sync-WTM2VGNV.js → sync-B2HPDX37.js} +20 -20
  275. package/dist/{synthesize-GX74JPPZ.js → synthesize-MDW4ZWTN.js} +2 -3
  276. package/dist/{system-FDPS57FU.js → system-W2ZTDOLV.js} +2 -2
  277. package/dist/{telemetry-BMPRZBBX.js → telemetry-5CLJMTHU.js} +4 -4
  278. package/dist/{telemetry-XH6HM2GM.js → telemetry-L4KX6ADA.js} +12 -12
  279. package/dist/templates/_shared/AGENTS.md +2 -2
  280. package/dist/templates/_shared/CLAUDE.md +2 -2
  281. package/dist/{templates-QIN3YHRE.js → templates-MKR4FTPR.js} +50 -35
  282. package/dist/{timeline-TASNQMKL.js → timeline-VDFI4ABH.js} +32 -33
  283. package/dist/{tokens-BROTCLH4.js → tokens-XYVGSKDY.js} +6 -6
  284. package/dist/{transcribe-BXGVSXD4.js → transcribe-3QGLLMEQ.js} +15 -12
  285. package/dist/{transcribe-X2KMHAYJ.js → transcribe-A7QZYVNX.js} +39 -39
  286. package/dist/{tts-QW53FBKW.js → tts-HOZ6X3MD.js} +6 -6
  287. package/dist/{update-BVAZOPFL.js → update-AWSCA73T.js} +18 -17
  288. package/dist/{updateCheck-LVXDS36Z.js → updateCheck-ATDIIE24.js} +5 -5
  289. package/dist/{upgrade-A34X4BHN.js → upgrade-RJNDUCWP.js} +8 -8
  290. package/dist/{urlDownloader-EIV6N7BL.js → urlDownloader-RE6IIDWK.js} +8 -8
  291. package/dist/{validate-PUSI5TDW.js → validate-YWO6GA5Q.js} +35 -36
  292. package/dist/{video-U2IL2IAE.js → video-RKEUBWJI.js} +14 -14
  293. package/dist/{voices-URE43KUH.js → voices-GESP52KZ.js} +31 -32
  294. package/dist/warmCheck.js +54 -54
  295. package/package.json +1 -1
  296. package/dist/chunk-OQXVY3HI.js +0 -5035
  297. package/dist/chunk-QV3RFTLC.js +0 -173
  298. package/dist/chunk-YWRUQ7XZ.js +0 -107
@@ -8,11 +8,12 @@ import {
8
8
  makeOutputFolder
9
9
  } from "./chunk-3S27CPV7.js";
10
10
  import {
11
+ createStagingDir,
11
12
  resolveWritePath
12
- } from "./chunk-A4ZTSQLW.js";
13
+ } from "./chunk-IEXRKKHC.js";
13
14
 
14
15
  // src/cloud/download.ts
15
- import { chmodSync, mkdtempSync, renameSync, rmSync, statSync } from "fs";
16
+ import { chmodSync, renameSync, rmSync, statSync } from "fs";
16
17
  import { open } from "fs/promises";
17
18
  import { dirname, join } from "path";
18
19
  import { setTimeout as sleep } from "timers/promises";
@@ -36,7 +37,7 @@ async function downloadToFile(url, destPath, options = {}) {
36
37
  makeOutputFolder(dirname(destPath));
37
38
  const destination = resolveWritePath(destPath);
38
39
  const previous = statSync(destination, { throwIfNoEntry: false });
39
- const stage = mkdtempSync(join(dirname(destination), ".hf-download-"));
40
+ const stage = createStagingDir(dirname(destination), ".hf-download-");
40
41
  const stagedFile = join(stage, "download");
41
42
  let bytes = 0;
42
43
  let firstError;
@@ -6,12 +6,12 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  errorBox
9
- } from "./chunk-M3JU24AI.js";
9
+ } from "./chunk-FGFVUKPP.js";
10
10
  import {
11
11
  PRORES_PROFILE_NAMES,
12
12
  appendRateCapArgs,
13
13
  isProresProfile
14
- } from "./chunk-2L6V6535.js";
14
+ } from "./chunk-V7Q4XKRJ.js";
15
15
  import {
16
16
  failUsage
17
17
  } from "./chunk-66W5IWLO.js";
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  trackLintReport,
9
9
  trackLintRuleStreak
10
- } from "./chunk-DL7R6DWU.js";
10
+ } from "./chunk-LI2TX7SN.js";
11
11
  import {
12
12
  shouldTrack
13
- } from "./chunk-32VBJHBI.js";
13
+ } from "./chunk-7JK2YE2G.js";
14
14
  import {
15
15
  LINT_RULE_COUNT,
16
16
  LINT_RULE_GROUP_COUNTS
17
- } from "./chunk-LLUKDUVS.js";
17
+ } from "./chunk-DJVSNDF3.js";
18
18
 
19
19
  // src/telemetry/lintStreaks.ts
20
20
  import { createHash } from "crypto";
@@ -6,13 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  TEXT_FILE_EXTS,
9
+ archiveKey,
9
10
  assertUnchanged,
10
11
  readChecked,
11
12
  rewriteCssUrls,
12
13
  rewriteHtmlAttributes,
13
14
  rewriteStyleBlocks,
14
15
  stagedSize
15
- } from "./chunk-PPOJMJR5.js";
16
+ } from "./chunk-NURN5W6M.js";
16
17
  import {
17
18
  probeAudio
18
19
  } from "./chunk-SWC3QIEH.js";
@@ -20,13 +21,13 @@ import {
20
21
  findFFmpeg,
21
22
  findFFprobe,
22
23
  getFFmpegInstallHint
23
- } from "./chunk-7GILET6T.js";
24
+ } from "./chunk-CZ43ZZFS.js";
24
25
  import {
25
26
  formatBytes
26
- } from "./chunk-M3JU24AI.js";
27
+ } from "./chunk-FGFVUKPP.js";
27
28
  import {
28
29
  parseAnimatedGifMetadata
29
- } from "./chunk-ANURCSEW.js";
30
+ } from "./chunk-RYT22J4V.js";
30
31
  import {
31
32
  cleanAssetUrl,
32
33
  isRemoteOrInlineUrl,
@@ -37,7 +38,7 @@ import {
37
38
  readMediaOffsetSeconds,
38
39
  readPlaybackRate,
39
40
  rewriteAssetPath
40
- } from "./chunk-OHQRQE7F.js";
41
+ } from "./chunk-6MKM2RVL.js";
41
42
  import {
42
43
  parseHTML
43
44
  } from "./chunk-GWTIFRF5.js";
@@ -655,7 +656,7 @@ async function prepareEntryGifs(ctx, fileMap) {
655
656
  if (!html || !/\.gif\b/i.test(html)) return;
656
657
  const sourceAssets = entryGifSources(ctx, entryPath, html);
657
658
  if (!sourceAssets) return;
658
- const prep = ctx.opts.gifPrep ?? (await import("./src-OBVQCCNO.js")).prepareAnimatedGifInputs;
659
+ const prep = ctx.opts.gifPrep ?? (await import("./src-JVYKW7RE.js")).prepareAnimatedGifInputs;
659
660
  const outputDir = mkdtempSync(join(tmpdir(), "hf-offload-gif-"));
660
661
  ctx.tempFiles.push(outputDir);
661
662
  const result = await prep(html, {
@@ -774,9 +775,9 @@ function isStillMentioned(fileMap, path, code, withoutUrls) {
774
775
  function htmlSrcKey(absDir, entryPath, raw, fileMap) {
775
776
  const clean = cleanAssetUrl(raw);
776
777
  if (!clean || isRemoteOrInlineUrl(clean)) return null;
777
- const rootRelative = clean.startsWith("/") ? clean : rewriteAssetPath(entryPath, clean, (p) => fileMap.has(p));
778
+ const rootRelative = clean.startsWith("/") ? clean : rewriteAssetPath(entryPath, clean, (p) => fileMap.has(archiveKey(p)));
778
779
  for (const candidate of resolveLocalAssetCandidates(absDir, rootRelative)) {
779
- const key = relative(absDir, candidate).replaceAll("\\", "/");
780
+ const key = archiveKey(relative(absDir, candidate).replaceAll("\\", "/"));
780
781
  if (fileMap.has(key)) return key;
781
782
  }
782
783
  return null;
@@ -792,7 +793,7 @@ function referencedFiles(absDir, fileMap) {
792
793
  function rewriteReferences(absDir, fileMap, urlForKey) {
793
794
  const urlFor = (rootRelative) => {
794
795
  for (const candidate of resolveLocalAssetCandidates(absDir, rootRelative)) {
795
- const url = urlForKey(relative(absDir, candidate).replaceAll("\\", "/"));
796
+ const url = urlForKey(archiveKey(relative(absDir, candidate).replaceAll("\\", "/")));
796
797
  if (url) return url;
797
798
  }
798
799
  return null;
@@ -840,7 +841,11 @@ function rewriteHtmlEntry(absDir, entryPath, source, urlFor, fileMap) {
840
841
  }
841
842
  function rewriteHtmlDocument(absDir, entryPath, html, urlFor, fileMap) {
842
843
  const referrerAbsDir = resolve(absDir, dirname(entryPath));
843
- const resolveTarget = (raw) => localTarget(raw, (clean) => rewriteAssetPath(entryPath, clean, (p) => fileMap.has(p)), urlFor);
844
+ const resolveTarget = (raw) => localTarget(
845
+ raw,
846
+ (clean) => rewriteAssetPath(entryPath, clean, (p) => fileMap.has(archiveKey(p))),
847
+ urlFor
848
+ );
844
849
  const { document } = parseHTML(html);
845
850
  const attrs = rewriteHtmlAttributes(document, referrerAbsDir, entryPath, resolveTarget, {
846
851
  attrs: ["src", "poster", "href"]
@@ -0,0 +1,413 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ alive,
9
+ readHolder,
10
+ release
11
+ } from "./chunk-GGDJLN5I.js";
12
+ import {
13
+ shouldTrack
14
+ } from "./chunk-7JK2YE2G.js";
15
+ import {
16
+ createFileAtomically
17
+ } from "./chunk-IEXRKKHC.js";
18
+ import {
19
+ processIdentity
20
+ } from "./chunk-PV4XID2A.js";
21
+ import {
22
+ hyperframesCacheDir
23
+ } from "./chunk-JOQR4AP6.js";
24
+
25
+ // src/telemetry/renderObservability.ts
26
+ function renderObservabilityTelemetryPayload(observability) {
27
+ if (!observability) return {};
28
+ const diagnostics = observability.browserDiagnostics;
29
+ const capture = observability.capture;
30
+ const extraction = observability.extraction;
31
+ const init = observability.init;
32
+ return {
33
+ observabilityRenderJobId: observability.renderJobId,
34
+ observabilityCompositionHash: observability.compositionHash,
35
+ observabilityEventCount: observability.eventCount,
36
+ observabilityLastPhase: observability.lastEvent?.phase,
37
+ observabilityLastStatus: observability.lastEvent?.status,
38
+ observabilityFailedPhase: observability.failedPhase,
39
+ browserDiagnosticCount: diagnostics.total,
40
+ browserDiagnosticErrors: diagnostics.errors,
41
+ browserDiagnosticPageErrors: diagnostics.pageErrors,
42
+ browserDiagnosticRequestFailed: diagnostics.requestFailed,
43
+ browserDiagnosticHttpErrors: diagnostics.httpErrors,
44
+ browserDiagnosticNavigationStarts: diagnostics.navigationStarts,
45
+ browserDiagnosticNavigationFailures: diagnostics.navigationFailures,
46
+ browserDiagnosticConsoleErrors: diagnostics.consoleErrors,
47
+ browserDiagnosticConsoleWarnings: diagnostics.consoleWarnings,
48
+ captureMode: capture.captureMode,
49
+ captureForceScreenshot: capture.forceScreenshot,
50
+ captureWorkerCount: capture.workerCount,
51
+ captureUseStreamingEncode: capture.useStreamingEncode,
52
+ captureUseLayeredComposite: capture.useLayeredComposite,
53
+ captureUsePageSideCompositing: capture.usePageSideCompositing,
54
+ captureHasHdrContent: capture.hasHdrContent,
55
+ captureBrowserGpuMode: capture.browserGpuMode,
56
+ captureProtocolTimeoutMs: capture.protocolTimeoutMs,
57
+ capturePageNavigationTimeoutMs: capture.pageNavigationTimeoutMs,
58
+ capturePlayerReadyTimeoutMs: capture.playerReadyTimeoutMs,
59
+ captureTransientRetries: capture.transientRetries,
60
+ captureMemoryExhaustionDetected: capture.memoryExhaustionDetected,
61
+ captureDeWorkerInversion: capture.deWorkerInversion,
62
+ captureDePreInversionWorkers: capture.dePreInversionWorkers,
63
+ captureCompositionElementCount: capture.compositionElementCount,
64
+ captureCompositionElementCountSource: capture.compositionElementCountSource,
65
+ captureCompositionElementTags: capture.compositionElementTags,
66
+ captureArollVideoCount: capture.arollVideoCount,
67
+ captureHeygenVideoCount: capture.heygenVideoCount,
68
+ captureAdaptersUsed: capture.adaptersUsed,
69
+ captureAudioCount: capture.audioCount,
70
+ captureImageCount: capture.imageCount,
71
+ captureSubCompositionCount: capture.subCompositionCount,
72
+ captureAudioGroupCount: capture.audioGroupCount,
73
+ captureColorGradingCount: capture.colorGradingCount,
74
+ captureHasLut: capture.hasLut,
75
+ captureRootBodyMismatch: capture.rootBodyMismatch,
76
+ captureRootBodyDeltaPxBucket: capture.rootBodyDeltaPxBucket,
77
+ captureDeShortBand: capture.deShortBand,
78
+ captureDeParallelRouter: capture.deParallelRouter,
79
+ captureDeGpuRenderer: capture.deGpuRenderer,
80
+ captureDePreRouterWorkers: capture.dePreRouterWorkers,
81
+ captureDeSelfVerifyFallback: capture.deSelfVerifyFallback,
82
+ captureDeFallbackReason: capture.deFallbackReason,
83
+ captureDeFallbackFailedDb: capture.deFallbackFailedDb,
84
+ captureDeFallbackFrameIndex: capture.deFallbackFrameIndex,
85
+ captureDeFallbackThresholdDb: capture.deFallbackThresholdDb,
86
+ captureParallelStream: capture.captureParallelStream,
87
+ captureChromeBrowserRssPeakMb: capture.chromeBrowserRssPeakMb,
88
+ captureChromeRendererRssPeakMb: capture.chromeRendererRssPeakMb,
89
+ captureChromeRssLastMb: capture.chromeRssLastMb,
90
+ captureChromeGpuProcessSeenLastSample: capture.chromeGpuProcessSeenLastSample,
91
+ captureChromeMemorySamples: capture.chromeMemorySamples,
92
+ captureCapturePath: capture.capturePath,
93
+ captureSegmentIndex: capture.segmentIndex,
94
+ captureSegmentRetries: capture.segmentRetries,
95
+ observabilityExtractVideoCount: extraction?.videoCount,
96
+ observabilityExtractedVideoCount: extraction?.extractedVideoCount,
97
+ observabilityExtractTotalFrames: extraction?.totalFramesExtracted,
98
+ observabilityExtractMaxFramesPerVideo: extraction?.maxFramesPerVideo,
99
+ observabilityExtractAvgFramesPerVideo: extraction?.avgFramesPerExtractedVideo,
100
+ observabilityExtractVfrProbeMs: extraction?.vfrProbeMs,
101
+ observabilityExtractVfrPreflightMs: extraction?.vfrPreflightMs,
102
+ observabilityExtractVfrPreflightCount: extraction?.vfrPreflightCount,
103
+ observabilityExtractCacheHits: extraction?.cacheHits,
104
+ observabilityExtractCacheMisses: extraction?.cacheMisses,
105
+ observabilityInitDurationMs: init?.initDurationMs,
106
+ observabilityInitTweenCount: init?.tweenCount,
107
+ observabilityInitElementCount: init?.elementCount
108
+ };
109
+ }
110
+ function renderJobObservabilityTelemetryPayload(job) {
111
+ return {
112
+ ...renderObservabilityTelemetryPayload(
113
+ job?.errorDetails?.observability ?? job?.perfSummary?.observability
114
+ ),
115
+ subTimelineWait: job?.errorDetails?.subTimelineWait ?? job?.perfSummary?.subTimelineWait
116
+ };
117
+ }
118
+
119
+ // src/telemetry/renderCpu.ts
120
+ import { cpus, loadavg, platform } from "os";
121
+ var SAMPLE_INTERVAL_MS = 2e3;
122
+ var BUSY_CORE_PCT = 80;
123
+ function readCoreTimes() {
124
+ return cpus().map(({ times }) => {
125
+ const total = times.user + times.nice + times.sys + times.idle + times.irq;
126
+ return { busy: total - times.idle, total };
127
+ });
128
+ }
129
+ function busyBetween(from, to) {
130
+ let busy = 0;
131
+ let total = 0;
132
+ let coresBusy = 0;
133
+ to.forEach((core, i) => {
134
+ const before = from[i];
135
+ if (!before) return;
136
+ const dBusy = core.busy - before.busy;
137
+ const dTotal = core.total - before.total;
138
+ if (dTotal <= 0) return;
139
+ busy += dBusy;
140
+ total += dTotal;
141
+ if (dBusy / dTotal * 100 >= BUSY_CORE_PCT) coresBusy++;
142
+ });
143
+ return total > 0 ? { pct: Math.round(busy / total * 100), coresBusy } : null;
144
+ }
145
+ function readLoadAvg() {
146
+ if (platform() === "win32") return void 0;
147
+ return Math.round((loadavg()[0] ?? 0) * 100) / 100;
148
+ }
149
+ var DISABLED = { stop: () => ({}) };
150
+ function startRenderCpuSampler(requesterOptedIn = true) {
151
+ if (!requesterOptedIn || !shouldTrack()) return DISABLED;
152
+ const start = readCoreTimes();
153
+ const loadAvgStart = readLoadAvg();
154
+ let last = start;
155
+ let peak = null;
156
+ const sample = () => {
157
+ const now = readCoreTimes();
158
+ const window = busyBetween(last, now);
159
+ if (window && (!peak || window.pct > peak.pct)) peak = window;
160
+ last = now;
161
+ };
162
+ const timer = setInterval(sample, SAMPLE_INTERVAL_MS);
163
+ timer.unref?.();
164
+ let result;
165
+ return {
166
+ stop() {
167
+ if (result) return result;
168
+ clearInterval(timer);
169
+ sample();
170
+ const avg = busyBetween(start, last);
171
+ result = {
172
+ cpuBusyAvgPct: avg?.pct,
173
+ cpuBusyPeakPct: peak?.pct,
174
+ cpuCoresBusyPeak: peak?.coresBusy,
175
+ loadAvgStart,
176
+ loadAvgEnd: readLoadAvg()
177
+ };
178
+ return result;
179
+ }
180
+ };
181
+ }
182
+
183
+ // src/utils/renderLock.ts
184
+ import { existsSync as existsSync2 } from "fs";
185
+ import { dirname as dirname2 } from "path";
186
+
187
+ // src/utils/renderLockClaim.ts
188
+ import { chmodSync, existsSync, mkdirSync, unlinkSync as unlinkSync2 } from "fs";
189
+
190
+ // src/utils/renderLockOwners.ts
191
+ import { randomBytes } from "crypto";
192
+ import { readdirSync, readFileSync, unlinkSync, writeFileSync } from "fs";
193
+ import { basename, dirname, join } from "path";
194
+ var markerPrefix = (lockPath) => `${basename(lockPath)}.owner-`;
195
+ var HELD_CODES = new Set(process.platform === "win32" ? ["EPERM", "EBUSY", "EACCES"] : ["EBUSY"]);
196
+ var UNREMOVABLE_CODES = /* @__PURE__ */ new Set(["ENOENT", "EPERM", "EACCES", "EBUSY"]);
197
+ var errorCode = (error) => error.code ?? "";
198
+ function isHeldError(error) {
199
+ return HELD_CODES.has(errorCode(error));
200
+ }
201
+ function startToken(pid) {
202
+ return process.platform === "win32" ? null : processIdentity(pid);
203
+ }
204
+ function writeOwnerMarker(lockPath, owner) {
205
+ const name = `${markerPrefix(lockPath)}${owner.pid}-${randomBytes(6).toString("hex")}`;
206
+ const marker = join(dirname(lockPath), name);
207
+ writeFileSync(marker, JSON.stringify(owner), { flag: "wx" });
208
+ return marker;
209
+ }
210
+ function removeIfPresent(marker) {
211
+ try {
212
+ unlinkSync(marker);
213
+ } catch (error) {
214
+ if (!UNREMOVABLE_CODES.has(errorCode(error))) throw error;
215
+ }
216
+ }
217
+ function recordedIdentity(marker) {
218
+ try {
219
+ const owner = JSON.parse(readFileSync(marker, "utf8"));
220
+ return typeof owner.identity === "string" ? owner.identity : null;
221
+ } catch {
222
+ return null;
223
+ }
224
+ }
225
+ function sameProcess(pid, identity) {
226
+ if (!Number.isInteger(pid) || pid <= 0 || !alive(pid)) return false;
227
+ const current = identity && startToken(pid);
228
+ return !identity || !current || current === identity;
229
+ }
230
+ function liveOtherOwners(lockPath, own) {
231
+ const dir = dirname(lockPath);
232
+ const prefix = markerPrefix(lockPath);
233
+ let live = 0;
234
+ for (const name of readdirSync(dir)) {
235
+ if (!name.startsWith(prefix)) continue;
236
+ const marker = join(dir, name);
237
+ if (marker === own) continue;
238
+ if (sameProcess(Number(name.slice(prefix.length).split("-")[0]), recordedIdentity(marker))) {
239
+ live += 1;
240
+ } else removeIfPresent(marker);
241
+ }
242
+ return live;
243
+ }
244
+
245
+ // src/utils/renderLockClaim.ts
246
+ var RenderLockStaleBreak = class extends Error {
247
+ constructor(breakPath) {
248
+ super(
249
+ `A render that was reclaiming the render slot stopped part way and left ${breakPath}. No render is using it: delete that file, then run the render again.`
250
+ );
251
+ this.breakPath = breakPath;
252
+ this.name = "RenderLockStaleBreak";
253
+ }
254
+ breakPath;
255
+ };
256
+ var RenderLockUnwritable = class extends Error {
257
+ constructor(dir, cause) {
258
+ super(
259
+ `This account cannot write to ${dir}, where renders take their turn. If accounts share HYPERFRAMES_CACHE_DIR, make the folder writable for all of them (chmod 777 ${dir}); otherwise unset HYPERFRAMES_CACHE_DIR.`,
260
+ { cause }
261
+ );
262
+ this.dir = dir;
263
+ this.name = "RenderLockUnwritable";
264
+ }
265
+ dir;
266
+ };
267
+ function ensureLockDir(dir) {
268
+ if (mkdirSync(dir, { recursive: true }) !== void 0 && process.platform !== "win32") {
269
+ chmodSync(dir, 511);
270
+ }
271
+ }
272
+ var holderAlive = (holder) => sameProcess(holder.pid, holder.identity);
273
+ var sameRecord = (a, b) => a?.pid === b.pid && a.startedAt === b.startedAt && a.identity === b.identity;
274
+ function createExclusive(path, holder) {
275
+ try {
276
+ createFileAtomically(path, JSON.stringify(holder));
277
+ return true;
278
+ } catch (error) {
279
+ if (error.code === "EEXIST") return false;
280
+ throw error;
281
+ }
282
+ }
283
+ var writerAbsent = (file, lockPath, marker) => existsSync(file) && !readHolder(file) && liveOtherOwners(lockPath, marker) === 0;
284
+ async function takeOver(path, holder, observed, marker, beforeReplace) {
285
+ const breakPath = `${path}.break`;
286
+ if (!createExclusive(breakPath, holder)) {
287
+ const breaker = readHolder(breakPath);
288
+ if (breaker ? holderAlive(breaker) : !writerAbsent(breakPath, path, marker)) return false;
289
+ throw new RenderLockStaleBreak(breakPath);
290
+ }
291
+ try {
292
+ await beforeReplace?.();
293
+ const stillStale = observed ? sameRecord(readHolder(path), observed) : writerAbsent(path, path, marker);
294
+ if (stillStale) removeIfPresent(path);
295
+ return createExclusive(path, holder);
296
+ } finally {
297
+ if (sameRecord(readHolder(breakPath), holder)) unlinkSync2(breakPath);
298
+ }
299
+ }
300
+ async function claimSlot(path, holder, marker, beforeReplace) {
301
+ if (createExclusive(path, holder)) return true;
302
+ const current = readHolder(path);
303
+ if (current ? holderAlive(current) : !writerAbsent(path, path, marker)) return false;
304
+ return takeOver(path, holder, current, marker, beforeReplace);
305
+ }
306
+
307
+ // src/utils/renderLock.ts
308
+ var RenderLockBusy = class extends Error {
309
+ constructor(holder, path) {
310
+ super(`Another render is running (${describeRenderLockHolder(holder, Date.now())})`);
311
+ this.holder = holder;
312
+ this.path = path;
313
+ this.name = "RenderLockBusy";
314
+ }
315
+ holder;
316
+ path;
317
+ };
318
+ var POLL_MS = 1e3;
319
+ var renderLockPath = () => hyperframesCacheDir("locks", "render.lock");
320
+ function renderLockDisabled(env = process.env) {
321
+ const value = env.HYPERFRAMES_RENDER_LOCK?.trim().toLowerCase();
322
+ return value === "off" || value === "0" || value === "false";
323
+ }
324
+ function describeRenderLockHolder(holder, now) {
325
+ if (!holder) return "holder unknown";
326
+ const seconds = Math.max(0, Math.round((now - holder.startedAt) / 1e3));
327
+ const running = seconds >= 60 ? `${Math.floor(seconds / 60)}m ${seconds % 60}s` : `${seconds}s`;
328
+ return `pid ${holder.pid}, project ${holder.project}, running ${running}`;
329
+ }
330
+ function pause(ms, signal) {
331
+ return new Promise((resolve, reject) => {
332
+ if (signal?.aborted) return reject(signal.reason);
333
+ const onAbort = () => {
334
+ clearTimeout(timer);
335
+ reject(signal?.reason);
336
+ };
337
+ const timer = setTimeout(() => {
338
+ signal?.removeEventListener("abort", onAbort);
339
+ resolve();
340
+ }, ms);
341
+ signal?.addEventListener("abort", onAbort, { once: true });
342
+ });
343
+ }
344
+ var sameWaitTarget = (a, b) => a?.pid === b?.pid && a?.startedAt === b?.startedAt;
345
+ async function acquireRenderLock(options) {
346
+ if (renderLockDisabled(options.env)) return () => {
347
+ };
348
+ const contender = prepareContender(options);
349
+ let waitingBehind;
350
+ let retriedVanished = false;
351
+ for (; ; ) {
352
+ options.signal?.throwIfAborted();
353
+ const releaseSlot = await claimOnce(contender);
354
+ if (releaseSlot) return releaseSlot;
355
+ const { path } = contender;
356
+ const current = readHolder(path);
357
+ retriedVanished = !current && !existsSync2(path) && !retriedVanished;
358
+ if (retriedVanished) continue;
359
+ if (!options.wait) throw new RenderLockBusy(current, path);
360
+ if (waitingBehind === void 0 || !sameWaitTarget(waitingBehind, current)) {
361
+ waitingBehind = current;
362
+ options.onWait?.(current, path);
363
+ }
364
+ await pause(options.pollMs ?? POLL_MS, options.signal);
365
+ }
366
+ }
367
+ function prepareContender(options) {
368
+ const path = options.path ?? renderLockPath();
369
+ ensureLockDir(dirname2(path));
370
+ liveOtherOwners(path);
371
+ const pid = options.pid ?? process.pid;
372
+ const identity = startToken(pid);
373
+ return {
374
+ path,
375
+ holder: { pid, command: "render", startedAt: Date.now(), project: options.project, identity },
376
+ owner: { pid, identity },
377
+ claim: options.claim ?? ((lock, holder, marker) => claimSlot(lock, holder, marker, options.beforeReplace))
378
+ };
379
+ }
380
+ var notWritable = (error) => process.platform !== "win32" && ["EACCES", "EPERM"].includes(error.code ?? "");
381
+ async function claimOnce({ path, holder, owner, claim }) {
382
+ let marker;
383
+ try {
384
+ marker = writeOwnerMarker(path, owner);
385
+ } catch (error) {
386
+ throw notWritable(error) ? new RenderLockUnwritable(dirname2(path), error) : error;
387
+ }
388
+ let held = false;
389
+ try {
390
+ held = await claim(path, holder, marker);
391
+ } catch (error) {
392
+ if (notWritable(error)) throw new RenderLockUnwritable(dirname2(path), error);
393
+ if (!isHeldError(error)) throw error;
394
+ } finally {
395
+ if (!held) removeIfPresent(marker);
396
+ }
397
+ if (!held) return null;
398
+ return () => {
399
+ release(path, holder);
400
+ removeIfPresent(marker);
401
+ };
402
+ }
403
+
404
+ export {
405
+ renderObservabilityTelemetryPayload,
406
+ renderJobObservabilityTelemetryPayload,
407
+ startRenderCpuSampler,
408
+ RenderLockStaleBreak,
409
+ RenderLockUnwritable,
410
+ RenderLockBusy,
411
+ describeRenderLockHolder,
412
+ acquireRenderLock
413
+ };
@@ -11,10 +11,10 @@ import {
11
11
  DEFAULT_REGISTRY_URL,
12
12
  fetchItemManifest,
13
13
  fetchRegistryManifest
14
- } from "./chunk-Z6XLJVZW.js";
14
+ } from "./chunk-MVJ7AX6W.js";
15
15
  import {
16
16
  closestNames
17
- } from "./chunk-M7VAMZQW.js";
17
+ } from "./chunk-JNHJX2BZ.js";
18
18
 
19
19
  // src/registry/resolver.ts
20
20
  function defaultWarn(message) {
@@ -10,7 +10,7 @@ import {
10
10
  ratioOf,
11
11
  readClip,
12
12
  round
13
- } from "./chunk-XZJ7A6YM.js";
13
+ } from "./chunk-UPG4MMIA.js";
14
14
 
15
15
  // src/measure/energy.ts
16
16
  var ENERGY_RATE = 12;
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  findCompositionDimensions
9
- } from "./chunk-RT6MI3TZ.js";
9
+ } from "./chunk-BJYCLZBQ.js";
10
10
  import {
11
11
  outputResolutionForSize
12
- } from "./chunk-CUCP7FKH.js";
12
+ } from "./chunk-IOPIOX5K.js";
13
13
 
14
14
  // src/commands/lambda/_dimensions.ts
15
15
  import { readFileSync } from "fs";
@@ -515,8 +515,14 @@ function rewriteCssAssetUrls(cssText, compSrcPath, assetExists) {
515
515
  }
516
516
 
517
517
  // ../parsers/dist/subCompositionValidity.js
518
+ function findSceneTemplate(templates) {
519
+ return Array.from(templates).find(
520
+ (template) => template.content.querySelector("[data-composition-id]") != null
521
+ );
522
+ }
518
523
  function resolveSubCompositionContent(html, document) {
519
- const template = document.querySelector("template");
524
+ const templates = Array.from(document.querySelectorAll("template"));
525
+ const template = findSceneTemplate(templates) ?? templates[0];
520
526
  if (template) return { contentHtml: template.innerHTML ?? "", hasTemplate: true };
521
527
  const body = document.querySelector("body");
522
528
  if (body) return { contentHtml: body.innerHTML ?? "", hasTemplate: false };
@@ -1175,6 +1181,7 @@ export {
1175
1181
  rewriteAssetPaths,
1176
1182
  rewriteInlineStyleAssetUrls,
1177
1183
  rewriteCssAssetUrls,
1184
+ findSceneTemplate,
1178
1185
  resolveSubCompositionContent,
1179
1186
  checkSubCompositionUsability,
1180
1187
  COLOR_GRADING_CONTRACT_VERSION,
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-J3OVTOVC.js";
17
17
  import {
18
18
  runEnvironmentChecks
19
- } from "./chunk-FPQAQS64.js";
19
+ } from "./chunk-QTBRVJ6N.js";
20
20
  import {
21
21
  OPTIONAL_PACKAGES,
22
22
  installedOptionalPackageVersion
@@ -26,15 +26,15 @@ import {
26
26
  } from "./chunk-DL4OD7IA.js";
27
27
  import {
28
28
  c
29
- } from "./chunk-HOCC4J5C.js";
29
+ } from "./chunk-VU4EPKFI.js";
30
30
  import {
31
31
  resolveExtractCacheDir
32
- } from "./chunk-2L6V6535.js";
32
+ } from "./chunk-V7Q4XKRJ.js";
33
33
  import {
34
34
  getFreeDiskMb,
35
35
  getShmSizeMb,
36
36
  getSystemMeta
37
- } from "./chunk-LAGZGKKN.js";
37
+ } from "./chunk-FOZBANEN.js";
38
38
  import {
39
39
  getAvailableMemoryMb
40
40
  } from "./chunk-FBN2M2HK.js";
@@ -44,14 +44,14 @@ import {
44
44
  runningInstall,
45
45
  updateCommandFor,
46
46
  withMeta
47
- } from "./chunk-Z3PD7V6K.js";
47
+ } from "./chunk-Z5THPTQ2.js";
48
48
  import {
49
49
  CONFIG_PATH,
50
50
  withFileLock
51
- } from "./chunk-CMQZP52Y.js";
51
+ } from "./chunk-F5QBIIFT.js";
52
52
  import {
53
53
  VERSION
54
- } from "./chunk-TXMXWJNZ.js";
54
+ } from "./chunk-2WKG7HXZ.js";
55
55
  import {
56
56
  normalizeErrorMessage
57
57
  } from "./chunk-E63BDV4Z.js";
@@ -249,7 +249,7 @@ function checkEnvironment() {
249
249
  return { ok: true, detail: parts.join(" \xB7 ") };
250
250
  }
251
251
  async function checkWhisper() {
252
- const { findWhisper, getInstallInstructions } = await import("./manager-N2AZZQPD.js");
252
+ const { findWhisper, getInstallInstructions } = await import("./manager-T4ZHIMMY.js");
253
253
  const result = findWhisper();
254
254
  if (result) {
255
255
  return { ok: true, detail: result.executablePath };
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-66W5IWLO.js";
10
10
  import {
11
11
  isUnattended
12
- } from "./chunk-FYZFURBN.js";
12
+ } from "./chunk-PQYICV7O.js";
13
13
  import {
14
14
  __commonJS,
15
15
  __toESM