hyperframes 0.9.12 → 0.9.14

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 (277) hide show
  1. package/dist/{add-NLR4EVAF.js → add-JNKCTPWJ.js} +19 -18
  2. package/dist/{agentPromptGenerator-S3GWYMVC.js → agentPromptGenerator-DSF7AEVE.js} +9 -9
  3. package/dist/{animatedGifPrep-YU7IOD5D.js → animatedGifPrep-BIEUMGB3.js} +9 -9
  4. package/dist/api.js +53 -30
  5. package/dist/{asset-7NPBAXDA.js → asset-V6JAJRCF.js} +5 -5
  6. package/dist/{assetCataloger-VKJIQCYP.js → assetCataloger-SCLH2WAC.js} +10 -10
  7. package/dist/{audio-ZNVUZH44.js → audio-JX76VDCY.js} +25 -24
  8. package/dist/{auth-PTVZNLE6.js → auth-TRE4ASYT.js} +6 -6
  9. package/dist/{autoUpdate-QJPCV7FB.js → autoUpdate-D5UUCIOR.js} +4 -4
  10. package/dist/avatars-26EUVWXR.js +168 -0
  11. package/dist/{backgroundChecks-UA6LCZAG.js → backgroundChecks-RM5GWZIW.js} +5 -5
  12. package/dist/backgroundChecksWorker.js +5 -5
  13. package/dist/{batchRender-W4RXBUNE.js → batchRender-5ZEQ6U4N.js} +8 -8
  14. package/dist/{beats-IG7C72YF.js → beats-3YW7MGZY.js} +27 -19
  15. package/dist/{benchmark-YUD3XIT2.js → benchmark-MYQTWUO3.js} +15 -15
  16. package/dist/{billing-5YSYJJ2V.js → billing-2X3JNNM4.js} +100 -23
  17. package/dist/{browser-TZILXH5J.js → browser-CQSY36GL.js} +8 -8
  18. package/dist/bundleWithLocalizedFonts-Z6KCDBP2.js +23 -0
  19. package/dist/{capture-MICLAF6V.js → capture-IK5GIWOS.js} +29 -32
  20. package/dist/{capture-R77HOGLQ.js → capture-NWBNWBIX.js} +5 -5
  21. package/dist/{captureCompositionFrame-WBMFZHEF.js → captureCompositionFrame-KR3PELMO.js} +17 -17
  22. package/dist/{catalog-AMPL57XF.js → catalog-2Q73F42B.js} +20 -19
  23. package/dist/{catch-up-WQ7ZRRFT.js → catch-up-JP3FL3FX.js} +8 -8
  24. package/dist/{check-ZPBF3X5D.js → check-UIMXDUPK.js} +51 -50
  25. package/dist/{checkAudio-IG3BOW2G.js → checkAudio-CSX4G35O.js} +15 -15
  26. package/dist/{checkBrowser-AIUIKFMJ.js → checkBrowser-MTCJVJYJ.js} +43 -42
  27. package/dist/{chunk-B3IE7CN2.js → chunk-2BDSLTEG.js} +10 -10
  28. package/dist/{chunk-URJ7T6T6.js → chunk-2L4HQ5K4.js} +1 -1
  29. package/dist/{chunk-RFTLWXEX.js → chunk-2NHPNI42.js} +11 -11
  30. package/dist/{chunk-EPCVE3OX.js → chunk-2OIONPKY.js} +3 -3
  31. package/dist/{chunk-WTGG734B.js → chunk-2SYOEZ2Z.js} +5 -5
  32. package/dist/{chunk-HY64QA63.js → chunk-2YT656R2.js} +22 -10
  33. package/dist/{chunk-NTHJJ6JT.js → chunk-35RZMUTX.js} +7 -7
  34. package/dist/{chunk-LIN633KG.js → chunk-3B7TDQEW.js} +5 -5
  35. package/dist/{bundleWithLocalizedFonts-BOIW3CIU.js → chunk-3BHDAXDA.js} +5 -9
  36. package/dist/{chunk-VWQY3A64.js → chunk-3CXUZSLE.js} +2 -2
  37. package/dist/{chunk-5WHGO5XU.js → chunk-4MY6FPX4.js} +1 -1
  38. package/dist/{chunk-V6HV2IDT.js → chunk-4NE6CBMW.js} +1 -1
  39. package/dist/{chunk-JS6ZTPYC.js → chunk-53UV2EUT.js} +3 -3
  40. package/dist/{chunk-6IFY3ZQC.js → chunk-5ENBFVPD.js} +5 -5
  41. package/dist/{chunk-AW3XJY4S.js → chunk-6FDVPIOO.js} +1 -1
  42. package/dist/{chunk-VECINIPA.js → chunk-6FOO4QTU.js} +2 -2
  43. package/dist/{chunk-6R2PED3X.js → chunk-6OSVMSGV.js} +10 -10
  44. package/dist/{chunk-JKSASCBT.js → chunk-6UM5C4R6.js} +2 -2
  45. package/dist/{chunk-SFS5BTQ3.js → chunk-6YPQSVVR.js} +1 -1
  46. package/dist/{chunk-N6FGHJ7X.js → chunk-6ZRGEVAM.js} +97 -26
  47. package/dist/{chunk-2QMEP4LR.js → chunk-7AVR3VZE.js} +1 -1
  48. package/dist/{chunk-6KV3CMY2.js → chunk-7LQVFIO4.js} +4 -16
  49. package/dist/{chunk-3IKLV3D4.js → chunk-7NPHPQH5.js} +2 -2
  50. package/dist/{chunk-OJTXXFYO.js → chunk-7X3UDKJK.js} +1 -1
  51. package/dist/{chunk-XZP5OW5V.js → chunk-AKE744C5.js} +1 -1
  52. package/dist/{chunk-64ZWPFAX.js → chunk-AOJBIFKU.js} +2 -2
  53. package/dist/{chunk-OQKAP6X4.js → chunk-AWV4F5TS.js} +2 -2
  54. package/dist/{chunk-X5EOH44V.js → chunk-B2RMMRJB.js} +1 -1
  55. package/dist/{chunk-MWHTLXG4.js → chunk-B3CSMKM7.js} +1 -1
  56. package/dist/{chunk-MDMQD6BV.js → chunk-B6C33MNL.js} +41 -17
  57. package/dist/{chunk-7XKWBMBL.js → chunk-BNUN7KXZ.js} +2 -2
  58. package/dist/{chunk-H7H7XNYY.js → chunk-BXCPOMS3.js} +11 -9
  59. package/dist/{chunk-TSQZ3DSC.js → chunk-BY7PZB6H.js} +1 -1
  60. package/dist/{chunk-BONBJJ35.js → chunk-CKEOCCMK.js} +1 -1
  61. package/dist/{chunk-42TYQPES.js → chunk-CMPHS5E6.js} +2 -2
  62. package/dist/{chunk-JHILL4BN.js → chunk-CUCP7FKH.js} +461 -1
  63. package/dist/{chunk-XX77LLFJ.js → chunk-CZ5NNJ6H.js} +120 -25
  64. package/dist/{chunk-C3NC67BB.js → chunk-D3FZQL5R.js} +8 -8
  65. package/dist/chunk-D3UCUI7G.js +68 -0
  66. package/dist/{chunk-VM6T3Z6B.js → chunk-DD47NQJZ.js} +1 -1
  67. package/dist/{chunk-2VZVMCV6.js → chunk-DSIGJUNY.js} +1 -1
  68. package/dist/{chunk-E2YXF2EP.js → chunk-DTU4XJNP.js} +4 -4
  69. package/dist/{chunk-4XGASFTP.js → chunk-DTZSKJV5.js} +3 -3
  70. package/dist/{chunk-7RM3TB62.js → chunk-DVJUBMS7.js} +1 -1
  71. package/dist/{chunk-KUXOAS4Z.js → chunk-DX4OFRBN.js} +41 -37
  72. package/dist/{chunk-Y3ICFPFK.js → chunk-EAO46VPT.js} +3 -3
  73. package/dist/{chunk-M6JFR7KF.js → chunk-EOCFNE53.js} +21 -32
  74. package/dist/{chunk-LTBBFLOM.js → chunk-FC2OXEBQ.js} +1 -1
  75. package/dist/{chunk-BW2RIJKV.js → chunk-FF3VKFCN.js} +163 -98
  76. package/dist/{chunk-WQ4SMZDF.js → chunk-FQFWGAON.js} +2 -2
  77. package/dist/{chunk-J3RXEDR2.js → chunk-FYZFURBN.js} +2 -2
  78. package/dist/{chunk-ZLN3AJKT.js → chunk-FZRTCVU6.js} +1 -1
  79. package/dist/{chunk-YEBIOQRI.js → chunk-GY7D2OEQ.js} +3 -3
  80. package/dist/chunk-HNZ2FZIB.js +45 -0
  81. package/dist/{chunk-2GICKZ3I.js → chunk-HOCC4J5C.js} +1 -1
  82. package/dist/{chunk-4J4EGANW.js → chunk-HVIQQCLM.js} +16 -16
  83. package/dist/{chunk-PKLZ5PV2.js → chunk-HZSAOL5O.js} +2 -2
  84. package/dist/{chunk-3DWH6Z5U.js → chunk-I5PI43EI.js} +1 -1
  85. package/dist/{chunk-KT4KPBI7.js → chunk-IO3BC2ZK.js} +3 -3
  86. package/dist/{chunk-4H4DR36N.js → chunk-IOPE4LJ2.js} +1 -1
  87. package/dist/{chunk-QRCORKYC.js → chunk-IPZ3QGDO.js} +2 -2
  88. package/dist/{chunk-LV5SL4YW.js → chunk-K5CK4G75.js} +3 -3
  89. package/dist/{chunk-2VYAX3ZD.js → chunk-L24GJQNZ.js} +16 -12
  90. package/dist/{chunk-WJD3GVAA.js → chunk-LISUH6KH.js} +1 -1
  91. package/dist/chunk-LSUM6RTW.js +20 -0
  92. package/dist/{chunk-ZD3MK4H5.js → chunk-LZYXYJMX.js} +1 -1
  93. package/dist/{chunk-LO3EX3YP.js → chunk-M34AOUVK.js} +7 -7
  94. package/dist/{chunk-5LOZWO2M.js → chunk-M3JU24AI.js} +1 -1
  95. package/dist/{chunk-NQYW4IYN.js → chunk-MWPPZOY5.js} +4 -4
  96. package/dist/{chunk-KDOJX2HU.js → chunk-MY2W7VWC.js} +15 -15
  97. package/dist/{chunk-W5AUD5OL.js → chunk-N7ZKI2CE.js} +5 -5
  98. package/dist/{chunk-73EXHUMD.js → chunk-NBUPR3ZF.js} +1 -1
  99. package/dist/{chunk-AHLDGEH5.js → chunk-NLEIM52W.js} +84 -22
  100. package/dist/{chunk-XJG65BB2.js → chunk-NWFIYKEI.js} +10 -10
  101. package/dist/{chunk-2P5DTXUN.js → chunk-NZTYGWRK.js} +1 -1
  102. package/dist/{chunk-N74N2I2K.js → chunk-O4ONYFY3.js} +1 -1
  103. package/dist/{chunk-QFZ3ZSXI.js → chunk-O4ZD7TVR.js} +18 -2
  104. package/dist/{chunk-FLXZ4GZI.js → chunk-OHN3OJQQ.js} +1 -1
  105. package/dist/{chunk-C2KEGBR3.js → chunk-OHQRQE7F.js} +1 -394
  106. package/dist/{chunk-S2UKSI3C.js → chunk-PA27AW3Y.js} +1 -1
  107. package/dist/{chunk-X6XIY4JY.js → chunk-PCY67JUL.js} +303 -29
  108. package/dist/{chunk-SG4YBQPY.js → chunk-PYPW33ET.js} +2 -2
  109. package/dist/{chunk-Z2DJSEQC.js → chunk-QSEHVJFA.js} +75 -219
  110. package/dist/{chunk-CPMTEWQM.js → chunk-RX2PFZ5W.js} +4 -4
  111. package/dist/{chunk-OAFGA2FR.js → chunk-SAAJ2O7A.js} +1 -1
  112. package/dist/{chunk-GAKRZZHQ.js → chunk-SQC4CTD2.js} +2 -2
  113. package/dist/{chunk-6NKEEHFR.js → chunk-SSBAETRX.js} +6 -6
  114. package/dist/{chunk-AUYRWWFL.js → chunk-T32JKZX3.js} +3 -3
  115. package/dist/{chunk-A33GFLPY.js → chunk-T4FLVFQE.js} +1 -1
  116. package/dist/{chunk-P7Y2YCOF.js → chunk-TESXTEV5.js} +1 -1
  117. package/dist/{chunk-Q3IT7I2K.js → chunk-TRK77R5G.js} +1 -1
  118. package/dist/{chunk-EBUA6NWH.js → chunk-TTBCQFRY.js} +2 -2
  119. package/dist/{chunk-LR5NVYZT.js → chunk-U22NZEQV.js} +2 -2
  120. package/dist/{chunk-WWBEAKTO.js → chunk-UXS7VE75.js} +1 -1
  121. package/dist/{chunk-R7EKEIAK.js → chunk-VD5G4Y6U.js} +1 -1
  122. package/dist/{chunk-ABI256T5.js → chunk-W7ITBVJE.js} +4 -4
  123. package/dist/{chunk-FC4WF2VQ.js → chunk-WAH2X7FF.js} +2 -2
  124. package/dist/{chunk-FPR57WRR.js → chunk-WEWXIQPN.js} +1 -1
  125. package/dist/{chunk-SSZTRWKQ.js → chunk-WXYV47JX.js} +4 -4
  126. package/dist/{chunk-NWQFOHXF.js → chunk-WYXBJVM2.js} +1 -1
  127. package/dist/{chunk-FFUBISTD.js → chunk-X46MRJYK.js} +1 -1
  128. package/dist/{chunk-UH62KSYV.js → chunk-XMOWL46H.js} +3 -3
  129. package/dist/{chunk-VUMGJLRB.js → chunk-YBR4L5JA.js} +1 -1
  130. package/dist/{chunk-7FMUTGOH.js → chunk-ZB2XGJSP.js} +152 -5
  131. package/dist/{chunk-QOF7XZEI.js → chunk-ZE2QZHUH.js} +2 -2
  132. package/dist/{chunk-ETYQYG6Q.js → chunk-ZFZXGZTX.js} +27 -18
  133. package/dist/{chunk-AVNF52HR.js → chunk-ZNHWAGMH.js} +1 -1
  134. package/dist/{chunk-Q225NLQL.js → chunk-ZSAKJRZB.js} +6 -6
  135. package/dist/{chunk-7W5ZDOLW.js → chunk-ZZBO3GF5.js} +15 -4
  136. package/dist/{clean-343XOJT3.js → clean-P3SZCIFU.js} +25 -25
  137. package/dist/cli.js +69 -68
  138. package/dist/{cloud-2YS272KD.js → cloud-G7YQIVI7.js} +6 -6
  139. package/dist/{cloud-B6SGMECY.js → cloud-RFM3PYTR.js} +6 -5
  140. package/dist/{cloudrun-N737TJRC.js → cloudrun-LXZT5UDK.js} +11 -11
  141. package/dist/{colors-HRL7QSVG.js → colors-CRTWLZ5S.js} +2 -2
  142. package/dist/{compare-KXCTMXFX.js → compare-BHQHEOMX.js} +39 -38
  143. package/dist/{compiler-KKIYPREA.js → compiler-V72QWKGC.js} +6 -6
  144. package/dist/{component-ZUDCIGGD.js → component-6GDCT3GK.js} +6 -6
  145. package/dist/{compositions-FNFI2QOA.js → compositions-JM6HKCRF.js} +19 -19
  146. package/dist/{curve-5BMBBCSZ.js → curve-Y7JRXLIJ.js} +16 -16
  147. package/dist/{cuts-OKUA6BWH.js → cuts-LDVDQTRL.js} +17 -17
  148. package/dist/{delete-FYMFNSED.js → delete-NCZIKWHU.js} +12 -11
  149. package/dist/{deploy-YZU2YITA.js → deploy-R4OEJEB6.js} +10 -7
  150. package/dist/{describeProject-E44RWBJL.js → describeProject-4GKZTYHA.js} +13 -13
  151. package/dist/{destroy-IQLGADZM.js → destroy-6XY4WQWY.js} +2 -2
  152. package/dist/{deterministicFonts-GQMT52JQ.js → deterministicFonts-HY5GWGQQ.js} +3 -3
  153. package/dist/{diff-5X6I6EG5.js → diff-C53GPSNU.js} +55 -36
  154. package/dist/{dist-GUX66F7V.js → dist-R7SPMKEZ.js} +4 -4
  155. package/dist/{dist-PCVNVAVC.js → dist-TI44VPHO.js} +6 -4
  156. package/dist/{dist-PUHEYGA5.js → dist-TJZSSDR2.js} +14 -14
  157. package/dist/{docs-D22SOQEZ.js → docs-WYJSJGSF.js} +2 -2
  158. package/dist/{doctor-3DXWW63F.js → doctor-V4RICWU2.js} +16 -16
  159. package/dist/{energy-4HY7COXH.js → energy-S5Z7CGSB.js} +17 -17
  160. package/dist/{events-JAGPGK7R.js → events-6HROTYLC.js} +14 -6
  161. package/dist/{events-TFVE7AUR.js → events-QKJE5XRN.js} +5 -5
  162. package/dist/{events-ULVZ7V2C.js → events-RAJGQK7Y.js} +19 -19
  163. package/dist/{extract-5KTFRIH2.js → extract-RYGWEC5V.js} +17 -17
  164. package/dist/{face-T6D34LR7.js → face-IWRDW2QO.js} +17 -17
  165. package/dist/{feedback-QQQYENCU.js → feedback-HQTDLLPE.js} +17 -16
  166. package/dist/{ffmpeg-A2O4HSRD.js → ffmpeg-BX334YEK.js} +9 -9
  167. package/dist/{figma-4RODZMCT.js → figma-P6U76KGI.js} +5 -5
  168. package/dist/fontLocalizeCli.js +14 -14
  169. package/dist/{frames-L43TSSAY.js → frames-G2WYTVWV.js} +18 -18
  170. package/dist/{generate-7HZKBLPZ.js → generate-ZUE2AVOB.js} +42 -22
  171. package/dist/{get-MXKV4NUL.js → get-7C3UC46A.js} +12 -11
  172. package/dist/{gpuPolicy-TKHFDEH2.js → gpuPolicy-5ZVYYWXN.js} +9 -9
  173. package/dist/{grade-compare-KNXFKMFI.js → grade-compare-IS3OVI7R.js} +43 -42
  174. package/dist/{heifImagePrep-L2EY67F2.js → heifImagePrep-FBLLKI3P.js} +10 -10
  175. package/dist/{help-YN43ORVX.js → help-2MPB27YU.js} +3 -3
  176. package/dist/{history-VAMN53LT.js → history-Q5EBBFPW.js} +10 -10
  177. package/dist/hyperframe.manifest.json +1 -1
  178. package/dist/hyperframe.runtime.iife.js +7 -7
  179. package/dist/hyperframes-player.global.js +1 -1
  180. package/dist/{info-QKEEGK2R.js → info-TNG5QGFC.js} +13 -13
  181. package/dist/{init-AAA44PYH.js → init-UFPBBWC7.js} +46 -38
  182. package/dist/{ink-V6CEFYB6.js → ink-UTPJHGZR.js} +17 -17
  183. package/dist/{inspect-5JGTWCYO.js → inspect-KXKKPWKX.js} +41 -40
  184. package/dist/{installer-PUQYKLXZ.js → installer-UTFXM6KP.js} +7 -6
  185. package/dist/{keyframes-FJNUSXAF.js → keyframes-S6V36BW6.js} +10 -10
  186. package/dist/{lambda-RYCG67CX.js → lambda-XWHALRKM.js} +22 -22
  187. package/dist/{layout-DXIPVY3W.js → layout-SSVKZKCZ.js} +41 -40
  188. package/dist/{lint-JZADWIMR.js → lint-OQWGRKG5.js} +15 -15
  189. package/dist/{lintProject-EV3EEBY3.js → lintProject-Z2TEXMY4.js} +4 -4
  190. package/dist/{list-YRLUJMP6.js → list-FYLBMEL7.js} +13 -12
  191. package/dist/{localPage-KIFKMB2B.js → localPage-4GSU6N3J.js} +9 -9
  192. package/dist/{login-H74JDEJ2.js → login-JKFCYHRS.js} +10 -9
  193. package/dist/{logout-UMDA3HDE.js → logout-YACQMRZN.js} +5 -4
  194. package/dist/{look-WVGBBYFE.js → look-WQ2DOKXH.js} +17 -17
  195. package/dist/{manager-T633Z2L4.js → manager-F4F4A734.js} +10 -10
  196. package/dist/{measure-DWQHHY3H.js → measure-XIFLTAMC.js} +11 -11
  197. package/dist/{media-treatment-JHDDWRFU.js → media-treatment-S3LHQSQQ.js} +21 -21
  198. package/dist/{media-use-5SDC3MCE.js → media-use-NFM3ZXCF.js} +7 -5
  199. package/dist/{models-6SOW23N6.js → models-G4KNLV66.js} +17 -17
  200. package/dist/{motionShot-B4K6LEU3.js → motionShot-IJGA5CBH.js} +20 -20
  201. package/dist/{normalize-audio-O6STMACD.js → normalize-audio-UP54N6J4.js} +15 -15
  202. package/dist/{open-VRCTXBD3.js → open-TAEKCYDB.js} +19 -18
  203. package/dist/{parakeetRunner-MNOIBRZZ.js → parakeetRunner-WFA4K7BH.js} +14 -14
  204. package/dist/{pipeline-N3M6VXBC.js → pipeline-SNENB5MZ.js} +12 -12
  205. package/dist/{play-5WUZGJ4B.js → play-QTYMY453.js} +32 -31
  206. package/dist/{policies-EERREOZJ.js → policies-EV7XPSQC.js} +2 -2
  207. package/dist/{preflight-XZZXHV42.js → preflight-CZUKW3CW.js} +10 -10
  208. package/dist/{present-W7OODR7J.js → present-KVHQECWG.js} +25 -25
  209. package/dist/{preview-NOQSYZAD.js → preview-6U62DM4P.js} +30 -29
  210. package/dist/{probe-WFIYEXM5.js → probe-UCVL3JDC.js} +17 -17
  211. package/dist/{producer-HI6M6755.js → producer-A4RPG3XL.js} +1 -1
  212. package/dist/{progress-STSH2JRY.js → progress-FWJJMPIQ.js} +2 -2
  213. package/dist/{projectConfig-PUAOWUNS.js → projectConfig-FIW6FPZW.js} +10 -9
  214. package/dist/{prompts-ZEVFT7US.js → prompts-27EPTM64.js} +2 -2
  215. package/dist/{publication-K4XAMUI6.js → publication-CCIGDK2X.js} +4 -4
  216. package/dist/{publish-7W46NJFT.js → publish-VKSABRA4.js} +26 -22
  217. package/dist/{refresh-4FQFQ2SW.js → refresh-L5C2HPMC.js} +5 -4
  218. package/dist/{remove-background-SYHNGASQ.js → remove-background-CJJ54SHA.js} +16 -16
  219. package/dist/{render-GYQZQB2O.js → render-2YY64XPU.js} +354 -71
  220. package/dist/{render-74JIGKTN.js → render-G54RA46B.js} +307 -76
  221. package/dist/{render-EF7Y6YYC.js → render-I2MWX5GH.js} +10 -10
  222. package/dist/{render-batch-JYYP4RXA.js → render-batch-X562GNRH.js} +13 -13
  223. package/dist/renderSetupWorker.js +4 -4
  224. package/dist/{resolver-BKFLETMU.js → resolver-GC4ZLQPV.js} +7 -6
  225. package/dist/{reverse-NEC42AID.js → reverse-2KZQ65Y7.js} +1 -1
  226. package/dist/{run-Z6AW753F.js → run-65M6ECM2.js} +6 -5
  227. package/dist/{sherpa-2ROE6TLC.js → sherpa-SLRKS4SR.js} +13 -13
  228. package/dist/{sites-EAGXQOKI.js → sites-O7A7G3ZQ.js} +2 -2
  229. package/dist/skills/hyperframes/SKILL.md +3 -1
  230. package/dist/skills/hyperframes/references/format.md +1 -1
  231. package/dist/skills/hyperframes-cli/SKILL.md +2 -0
  232. package/dist/skills/hyperframes-cli/references/cloud.md +10 -10
  233. package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
  234. package/dist/skills/media-use/SKILL.md +2 -0
  235. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +2 -2
  236. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +2 -2
  237. package/dist/skills/media-use/references/resolve.md +2 -0
  238. package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +1 -1
  239. package/dist/skills/media-use/scripts/lib/heygen-search.mjs +4 -2
  240. package/dist/skills/media-use/scripts/lib/match.mjs +17 -0
  241. package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +20 -2
  242. package/dist/skills/media-use/scripts/resolve.mjs +52 -9
  243. package/dist/{skills-R56MSU2Y.js → skills-SOXKW42T.js} +10 -10
  244. package/dist/{skillsUpdateCheck-I6G3MQWO.js → skillsUpdateCheck-4RUEBT6B.js} +5 -5
  245. package/dist/{snapshot-J2NU7WTJ.js → snapshot-KIWJWZGW.js} +53 -52
  246. package/dist/{src-5XQ6A3VE.js → src-ABVBEVVK.js} +13 -13
  247. package/dist/{src-L7UBHHKB.js → src-DYWF24IK.js} +8 -8
  248. package/dist/{start-VUMSNLKC.js → start-EADJCDST.js} +55 -32
  249. package/dist/{staticProjectServer-2JYB7RLI.js → staticProjectServer-UCHJYCR6.js} +25 -24
  250. package/dist/{status-SUK4I7TS.js → status-E4OUQSHN.js} +68 -9
  251. package/dist/studio/assets/{hyperframes-player-Dw-0BWQW.js → hyperframes-player-CfYFgHV8.js} +1 -1
  252. package/dist/studio/assets/{index-BNZeN67E.js → index-COfhX0Gz.js} +4 -4
  253. package/dist/studio/assets/{index-NwWb1W86.js → index-Cj5x3rVD.js} +1 -1
  254. package/dist/studio/index.html +1 -1
  255. package/dist/{studio-api-MEZKFJBY.js → studio-api-RGOTUJXP.js} +14 -14
  256. package/dist/{studioServer-XGR4YPXX.js → studioServer-72COILB5.js} +76 -69
  257. package/dist/{sync-ZIMGTQEN.js → sync-5Z5OQFB3.js} +17 -17
  258. package/dist/{telemetry-WGNNQUSF.js → telemetry-5WZGQCKA.js} +3 -3
  259. package/dist/{telemetry-PT5KSL5T.js → telemetry-OQ2JM37Y.js} +6 -6
  260. package/dist/templates/_shared/AGENTS.md +7 -6
  261. package/dist/templates/_shared/CLAUDE.md +7 -6
  262. package/dist/{templates-7AT45DZI.js → templates-YH5CUHHN.js} +146 -27
  263. package/dist/{timeline-IH422KGC.js → timeline-IWU2T2BX.js} +27 -27
  264. package/dist/{tokens-ZVJMHDTM.js → tokens-F7IBDWGE.js} +5 -5
  265. package/dist/{transcribe-QIZGXMR5.js → transcribe-GL3J3JB3.js} +12 -12
  266. package/dist/{transcribe-FRRXA77O.js → transcribe-YXDOCF32.js} +40 -27
  267. package/dist/{tts-IMW74GBX.js → tts-QRQEYR3Q.js} +4 -4
  268. package/dist/{update-E2RIAV5T.js → update-MR5NL567.js} +15 -13
  269. package/dist/{updateCheck-EII7XDIR.js → updateCheck-ONT2ZVAF.js} +4 -4
  270. package/dist/{upgrade-BKGP2TM7.js → upgrade-BJEGLKQS.js} +7 -7
  271. package/dist/{urlDownloader-FOXK4FYP.js → urlDownloader-3PV5WURP.js} +8 -8
  272. package/dist/{validate-M4FZVBRP.js → validate-GTTWJYCS.js} +31 -31
  273. package/dist/{video-AVEGMBDM.js → video-VP6X6YL5.js} +12 -12
  274. package/dist/{voices-E5RUGLJK.js → voices-3EO2NQ5Q.js} +40 -20
  275. package/dist/warmCheck.js +51 -50
  276. package/package.json +1 -1
  277. package/dist/chunk-P3KBDUNS.js +0 -29
@@ -11,17 +11,17 @@ import {
11
11
  iterateFontFamilyDeclarations,
12
12
  normalizeSystemFontPrimaryFamilies,
13
13
  resolveFontFamilyDeclarationFamilies
14
- } from "./chunk-M6JFR7KF.js";
14
+ } from "./chunk-EOCFNE53.js";
15
15
  import {
16
16
  Semaphore,
17
17
  prepareHeifImageInputs,
18
18
  withMediaProbeSlot
19
- } from "./chunk-EBUA6NWH.js";
19
+ } from "./chunk-TTBCQFRY.js";
20
20
  import {
21
21
  EncoderInterruptedError,
22
22
  encoderFailureError,
23
23
  prepareAnimatedGifInputs
24
- } from "./chunk-42TYQPES.js";
24
+ } from "./chunk-CMPHS5E6.js";
25
25
  import {
26
26
  openRangeEnd,
27
27
  parseEncoderOptions
@@ -185,7 +185,7 @@ import {
185
185
  videoAudioId,
186
186
  videoStartOnMediaTimeline,
187
187
  writeCapturedFrame
188
- } from "./chunk-N6FGHJ7X.js";
188
+ } from "./chunk-6ZRGEVAM.js";
189
189
  import {
190
190
  assignBundledRuntimeCompositionIds,
191
191
  emitMountedModuleScripts,
@@ -197,7 +197,7 @@ import {
197
197
  parsesAsScript,
198
198
  prepareFlattenedInnerRoot,
199
199
  stripSdrPngColourTags
200
- } from "./chunk-JS6ZTPYC.js";
200
+ } from "./chunk-53UV2EUT.js";
201
201
  import {
202
202
  collectScratchLeftovers,
203
203
  removeScratch,
@@ -216,7 +216,7 @@ import {
216
216
  parseVfxChain,
217
217
  resolveAuthoredTimingWindow,
218
218
  toFps
219
- } from "./chunk-W5AUD5OL.js";
219
+ } from "./chunk-N7ZKI2CE.js";
220
220
  import {
221
221
  gsapCdnDist,
222
222
  normalizeGsapBaseUrl
@@ -255,7 +255,7 @@ import {
255
255
  sourceTimeAt,
256
256
  styleElementsFor,
257
257
  timeAtSourceTime
258
- } from "./chunk-Y3ICFPFK.js";
258
+ } from "./chunk-EAO46VPT.js";
259
259
  import {
260
260
  TRANSITIONS,
261
261
  convertTransfer,
@@ -271,7 +271,7 @@ import {
271
271
  import {
272
272
  lintHyperframeHtml,
273
273
  resolveReferencedStart
274
- } from "./chunk-XX77LLFJ.js";
274
+ } from "./chunk-CZ5NNJ6H.js";
275
275
  import {
276
276
  isUnresolvedAssetPlaceholder,
277
277
  readProjectFile,
@@ -294,7 +294,7 @@ import {
294
294
  rewriteAssetPaths,
295
295
  rewriteCssAssetUrls,
296
296
  rewriteInlineStyleAssetUrls
297
- } from "./chunk-C2KEGBR3.js";
297
+ } from "./chunk-OHQRQE7F.js";
298
298
  import {
299
299
  CANVAS_DIMENSIONS,
300
300
  HTML_BODY_CSS_HEIGHT_FIRST_RE,
@@ -305,7 +305,7 @@ import {
305
305
  isAspectAgnosticResolutionAlias,
306
306
  normalizeResolutionFlag,
307
307
  suggestMatchingPreset
308
- } from "./chunk-JHILL4BN.js";
308
+ } from "./chunk-CUCP7FKH.js";
309
309
  import {
310
310
  parseHTML
311
311
  } from "./chunk-GWTIFRF5.js";
@@ -1466,27 +1466,25 @@ function createMemorySampler(intervalMs = 250) {
1466
1466
  };
1467
1467
  }
1468
1468
  var warnedSymlinkFallback = false;
1469
+ var copyCannotFix = (error) => ["ENOSPC", "EDQUOT", "EEXIST", "ENOENT"].includes(
1470
+ error?.code ?? ""
1471
+ );
1469
1472
  function tryWindowsFrameJunction(fileSystem, src, dest) {
1470
1473
  if (process.platform !== "win32") return false;
1471
1474
  try {
1472
1475
  fileSystem.symlinkSync(src, dest, "junction");
1473
1476
  return true;
1474
1477
  } catch (error) {
1475
- const code = error instanceof Error && "code" in error && typeof error.code === "string" ? error.code : void 0;
1476
- if (["EPERM", "EACCES", "UNKNOWN", "EINVAL", "ENOSYS", "EOPNOTSUPP", "ENOTSUP"].includes(
1477
- code ?? ""
1478
- )) {
1479
- return false;
1480
- }
1481
- throw error;
1478
+ if (copyCannotFix(error)) throw error;
1479
+ return false;
1482
1480
  }
1483
1481
  }
1484
1482
  function linkOrCopyFrameDir(fileSystem, src, dest) {
1485
1483
  try {
1486
1484
  fileSystem.symlinkSync(src, dest, "dir");
1487
1485
  } catch (err) {
1486
+ if (copyCannotFix(err)) throw err;
1488
1487
  const code = err?.code;
1489
- if (code !== "EPERM" && code !== "EACCES" && code !== "UNKNOWN") throw err;
1490
1488
  if (tryWindowsFrameJunction(fileSystem, src, dest)) return;
1491
1489
  if (!warnedSymlinkFallback) {
1492
1490
  warnedSymlinkFallback = true;
@@ -3881,6 +3879,7 @@ function createStallClock(now = () => Date.now()) {
3881
3879
 
3882
3880
  // ../producer/src/services/render/stages/captureStreamingStage.ts
3883
3881
  var DEFAULT_CAPTURE_STALL_MS = 6e4;
3882
+ var SESSION_INIT_STALL_MS = 3e5;
3884
3883
  var DE_STALL_POLL_MS = 5e3;
3885
3884
  var STALL_ADVICE = "Chrome stopped answering. If another app is keeping the GPU or CPU busy (a 3D render, a game, another export), let it finish or render one job at a time, then retry.";
3886
3885
  function poolFailure(error, probeSession) {
@@ -3911,6 +3910,14 @@ function captureModeLabel(mode) {
3911
3910
  if (mode === "beginframe") return "BeginFrame";
3912
3911
  return "screenshot";
3913
3912
  }
3913
+ var OPENING_CAPTURE_SESSION = {
3914
+ captureMode: "screenshot",
3915
+ captureStep: "opening the capture session"
3916
+ };
3917
+ var OPENING_RISK_SESSION = {
3918
+ captureMode: "screenshot",
3919
+ captureStep: "opening the screenshot session for effect frames"
3920
+ };
3914
3921
  var SequentialCaptureStallError = class extends Error {
3915
3922
  captureMode;
3916
3923
  constructor(session, stallTimeoutMs, frameIndex, totalFrames) {
@@ -4060,7 +4067,12 @@ async function runWorkerEncodePipelineLoop(session, totalFrames, job, currentEnc
4060
4067
  const guard = createDrainFrameGuard({ log, stats, frameTime });
4061
4068
  const guardFrame = (item, buf) => item.trusted ? Promise.resolve(buf) : guard(session, item.idx, buf);
4062
4069
  const captureRisk = async (idx) => {
4063
- await risk.open();
4070
+ await raceAgainstStall(
4071
+ risk.open(),
4072
+ stallTimeoutMs - quiet.idle(0),
4073
+ { session: OPENING_RISK_SESSION, frameIndex: idx, totalFrames, stallTimeoutMs },
4074
+ abortSignal
4075
+ );
4064
4076
  quiet.reset();
4065
4077
  return raceAgainstStall(
4066
4078
  risk.capture(idx, frameTime(idx)),
@@ -4419,19 +4431,38 @@ async function runCaptureStreamingStage(input) {
4419
4431
  let resumes = 0;
4420
4432
  for (; ; ) {
4421
4433
  const videoInjector = createRenderVideoFrameInjector();
4422
- const session = probeSession ?? await createCaptureSession(
4423
- fileServer.url,
4424
- framesDir,
4425
- buildCaptureOptions(),
4426
- videoInjector,
4427
- captureCfg
4434
+ const initStallMs = Math.max(SESSION_INIT_STALL_MS, resolveCaptureStallTimeoutMs());
4435
+ const setup = createStallClock();
4436
+ const withinInitBudget = (work, stalled) => raceAgainstStall(
4437
+ work,
4438
+ initStallMs - setup.idle(0),
4439
+ { session: stalled, frameIndex: resume.from, totalFrames, stallTimeoutMs: initStallMs },
4440
+ abortSignal
4428
4441
  );
4442
+ const openSession = async () => {
4443
+ const opening = createCaptureSession(
4444
+ fileServer.url,
4445
+ framesDir,
4446
+ buildCaptureOptions(),
4447
+ videoInjector,
4448
+ captureCfg
4449
+ );
4450
+ try {
4451
+ return await withinInitBudget(opening, OPENING_CAPTURE_SESSION);
4452
+ } catch (error) {
4453
+ void opening.then(closeCaptureSession, () => {
4454
+ });
4455
+ throw error;
4456
+ }
4457
+ };
4458
+ const session = probeSession ?? await openSession();
4429
4459
  captureBeyondViewport = session.options.captureBeyondViewport;
4430
4460
  if (probeSession) {
4431
4461
  prepareCaptureSessionForReuse(session, framesDir, videoInjector);
4432
4462
  probeSession = null;
4433
4463
  }
4434
4464
  let riskSession = null;
4465
+ let attemptClosed = false;
4435
4466
  const openRiskSession = async () => {
4436
4467
  const opened = await createCaptureSession(
4437
4468
  fileServer.url,
@@ -4445,6 +4476,10 @@ async function runCaptureStreamingStage(input) {
4445
4476
  enableBrowserPool: false
4446
4477
  }
4447
4478
  );
4479
+ if (attemptClosed) {
4480
+ await closeCaptureSession(opened);
4481
+ throw new Error("[Render] Capture attempt ended while its screenshot session opened");
4482
+ }
4448
4483
  riskSession = opened;
4449
4484
  await initializeSession(opened);
4450
4485
  return opened;
@@ -4452,9 +4487,9 @@ async function runCaptureStreamingStage(input) {
4452
4487
  let resumed = false;
4453
4488
  try {
4454
4489
  if (!session.isInitialized) {
4455
- await initializeSession(session);
4490
+ await withinInitBudget(initializeSession(session), session);
4456
4491
  }
4457
- await completeDeferredDrawElementInit(session);
4492
+ await withinInitBudget(completeDeferredDrawElementInit(session), session);
4458
4493
  assertNotAborted();
4459
4494
  lastBrowserConsole = session.browserConsoleBuffer;
4460
4495
  if (session.workerEncodeEnabled) {
@@ -4537,6 +4572,7 @@ async function runCaptureStreamingStage(input) {
4537
4572
  resumes++;
4538
4573
  resumed = true;
4539
4574
  } finally {
4575
+ attemptClosed = true;
4540
4576
  lastBrowserConsole = session.browserConsoleBuffer;
4541
4577
  await closeCaptureSession(session);
4542
4578
  if (riskSession) await closeCaptureSession(riskSession);
@@ -5970,7 +6006,7 @@ import { join as join14 } from "path";
5970
6006
 
5971
6007
  // ../producer/src/services/htmlCompiler.ts
5972
6008
  import { createHash as createHash4 } from "crypto";
5973
- import { createReadStream as createReadStream2, existsSync as existsSync9, mkdirSync as mkdirSync5 } from "fs";
6009
+ import { createReadStream as createReadStream2, existsSync as existsSync9, mkdirSync as mkdirSync5, readFileSync as readFileSync5 } from "fs";
5974
6010
  import { join as join13, dirname as dirname5, resolve as resolve5, basename as basename4, relative as relative2 } from "path";
5975
6011
 
5976
6012
  // ../producer/src/services/renderMediaCollector.ts
@@ -7206,6 +7242,25 @@ ${fontFaceBlocks.join("\n")}
7206
7242
  }
7207
7243
  return result;
7208
7244
  }
7245
+ function projectStylesheetFontFamilies(html, projectDir) {
7246
+ const families = [];
7247
+ for (const [tag] of html.matchAll(/<link\b[^>]*\brel=["']stylesheet["'][^>]*>/gi)) {
7248
+ const href = /\bhref=["']([^"']+)["']/i.exec(tag)?.[1];
7249
+ if (!href || /^(?:[a-z][a-z\d+.-]*:|\/\/)/i.test(href)) continue;
7250
+ const sheet = resolve5(projectDir, decodedUrlPath(href).replace(/^(?:\.?\/)+/, ""));
7251
+ if (!isPathInside2(sheet, projectDir) || !existsSync9(sheet)) continue;
7252
+ for (const face of extractFontFaceBlocks(readFileSync5(sheet, "utf8"))) {
7253
+ const family = /font-family\s*:\s*([^;}]+)/i.exec(face)?.[1]?.trim().replace(/^['"]|['"]$/g, "");
7254
+ const shipsFile = [...face.matchAll(LOCAL_FONTFACE_URL_RE)].some(([, url = ""]) => {
7255
+ const path = decodedUrlPath(url);
7256
+ const file = path.startsWith("/") ? resolve5(projectDir, `.${path}`) : resolve5(dirname5(sheet), path);
7257
+ return isPathInside2(file, projectDir) && existsSync9(file);
7258
+ });
7259
+ if (family && shipsFile) families.push(family);
7260
+ }
7261
+ }
7262
+ return families;
7263
+ }
7209
7264
  function collectFontFaceUrls(html) {
7210
7265
  const styleBlockRe = /<style\b[^>]*>([\s\S]*?)<\/style>/gi;
7211
7266
  const urlSet = /* @__PURE__ */ new Set();
@@ -7237,11 +7292,12 @@ function collectFontFaceUrls(html) {
7237
7292
  return urlSet;
7238
7293
  }
7239
7294
  async function localizeRemoteFontFaces(html, downloadDir) {
7240
- const processed = await inlineExternalFontStylesheets(html);
7241
- const urlSet = collectFontFaceUrls(processed);
7295
+ return localizeFontFaceUrls(await inlineExternalFontStylesheets(html), downloadDir);
7296
+ }
7297
+ function localizeFontFaceUrls(html, downloadDir) {
7242
7298
  return downloadAndRewriteUrls(
7243
- urlSet,
7244
- processed,
7299
+ collectFontFaceUrls(html),
7300
+ html,
7245
7301
  join13(downloadDir, REMOTE_MEDIA_SUBDIR),
7246
7302
  "Remote font download failed",
7247
7303
  "Localized remote font face(s)",
@@ -7268,7 +7324,7 @@ async function readLocalFont(absPath) {
7268
7324
  return { kind: "inline", buffer: Buffer.concat(chunks, totalBytes) };
7269
7325
  }
7270
7326
  async function embedLocalFontFaces(html, projectDir) {
7271
- const { fontToDataUri: toDataUri } = await import("./deterministicFonts-GQMT52JQ.js");
7327
+ const { fontToDataUri: toDataUri } = await import("./deterministicFonts-HY5GWGQQ.js");
7272
7328
  const styleBlockRe = /<style\b[^>]*>([\s\S]*?)<\/style>/gi;
7273
7329
  const fontFaceRe = /@font-face\s*\{([^}]*)\}/gi;
7274
7330
  let result = html;
@@ -7409,15 +7465,17 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
7409
7465
  const hasShaderTransitions = detectShaderTransitionUsage(sanitizedHtml);
7410
7466
  const usesThreeDTransforms = detectThreeDTransformUsage(sanitizedHtml);
7411
7467
  const hasAncestorBackgroundImage = detectAncestorBackgroundImage(sanitizedHtml);
7468
+ const fontSheetHtml = await inlineExternalFontStylesheets(
7469
+ promoteCssImportsToLinkTags(sanitizedHtml)
7470
+ );
7412
7471
  const normalizedFontHtml = normalizeSystemFontPrimaryFamilies(
7413
- injectTextRenderingRule(
7414
- coalesceHeadStylesAndBodyScripts(promoteCssImportsToLinkTags(sanitizedHtml))
7415
- )
7472
+ injectTextRenderingRule(coalesceHeadStylesAndBodyScripts(fontSheetHtml))
7416
7473
  );
7417
7474
  const coalescedHtml = await injectDeterministicFontFaces(normalizedFontHtml, {
7418
7475
  logger: defaultLogger,
7419
7476
  failClosedFontFetch: options.failClosedFontFetch === true,
7420
7477
  allowSystemFontCapture: options.allowSystemFontCapture,
7478
+ projectFontFamilies: projectStylesheetFontFamilies(fontSheetHtml, projectDir),
7421
7479
  abortSignal: options.abortSignal
7422
7480
  });
7423
7481
  const assembledHtml = await inlineExternalScripts(coalescedHtml);
@@ -7443,7 +7501,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
7443
7501
  );
7444
7502
  const { html: htmlWithLocalImages, remoteMediaAssets: remoteImageAssets } = await localizeRemoteImageSources(htmlWithLocalMedia, downloadDir);
7445
7503
  const { html: htmlWithLocalBg, remoteMediaAssets: remoteBgAssets } = await localizeRemoteBackgroundImages(htmlWithLocalImages, downloadDir);
7446
- const { html: htmlWithLocalizedFonts, remoteMediaAssets: remoteFontAssets } = await localizeRemoteFontFaces(htmlWithLocalBg, downloadDir);
7504
+ const { html: htmlWithLocalizedFonts, remoteMediaAssets: remoteFontAssets } = await localizeFontFaceUrls(htmlWithLocalBg, downloadDir);
7447
7505
  const {
7448
7506
  html: htmlWithJpegs,
7449
7507
  preparedAssets: preparedHeifAssets,
@@ -8843,17 +8901,24 @@ var VideoExtractionStageError = class extends Error {
8843
8901
  publicMetadata;
8844
8902
  };
8845
8903
  function assertVideoExtractionSucceeded(result) {
8846
- throwIfEncoderInterrupted(result);
8904
+ throwIfHostFailure(result);
8847
8905
  const error = buildVideoExtractionStageError(result);
8848
8906
  if (error) throw error;
8849
8907
  }
8850
- function throwIfEncoderInterrupted(result) {
8908
+ function throwIfHostFailure(result) {
8851
8909
  const interrupted = result.errors.find((failure) => failure.kind === "external_interruption");
8852
- if (!interrupted) return;
8853
- throw encoderFailureError("Video frame extraction failed", {
8854
- error: String(interrupted.error),
8855
- failureReason: "external_interruption"
8856
- });
8910
+ if (interrupted) {
8911
+ throw encoderFailureError("Video frame extraction failed", {
8912
+ error: String(interrupted.error),
8913
+ failureReason: "external_interruption"
8914
+ });
8915
+ }
8916
+ const full = result.errors.filter((failure) => failure.kind === "disk_full").length;
8917
+ if (full === 0) return;
8918
+ throw Object.assign(
8919
+ new Error(`ENOSPC: no space left on device, extracting the frames of ${full} video source(s)`),
8920
+ { code: "ENOSPC" }
8921
+ );
8857
8922
  }
8858
8923
  function buildVideoExtractionStageError(result) {
8859
8924
  if (result.success && result.errors.length === 0) return null;
@@ -9068,7 +9133,7 @@ async function runExtractVideosStage(input) {
9068
9133
  );
9069
9134
  extractionResult.phaseBreakdown.transientRetries = (extractionResult.phaseBreakdown.transientRetries ?? 0) + hdrProbeTransientRetries;
9070
9135
  assertNotAborted();
9071
- throwIfEncoderInterrupted(extractionResult);
9136
+ throwIfHostFailure(extractionResult);
9072
9137
  failureToEnforce = applyVideoExtractionFailurePolicy(extractionResult, extractionPolicy, log);
9073
9138
  materializeExtractedFramesForCompiledDir(extractionResult.extracted, compiledDir, {
9074
9139
  materializeSymlinks
@@ -11185,7 +11250,7 @@ import {
11185
11250
  existsSync as existsSync16,
11186
11251
  mkdirSync as mkdirSync7,
11187
11252
  readdirSync as readdirSync4,
11188
- readFileSync as readFileSync5,
11253
+ readFileSync as readFileSync6,
11189
11254
  rmSync as rmSync7,
11190
11255
  statSync as statSync5,
11191
11256
  writeFileSync as writeFileSync4
@@ -11264,7 +11329,7 @@ async function reencodeWithClearedWholeFrames(argsInput, run, startTime) {
11264
11329
  const error = formatFfmpegError(result.exitCode, result.stderr);
11265
11330
  return gifEncodeFailure(startTime, outputPath, error, result.failureReason);
11266
11331
  }
11267
- const gif = readFileSync5(outputPath);
11332
+ const gif = readFileSync6(outputPath);
11268
11333
  if (!clearGifFramesBeforeNext(gif)) {
11269
11334
  const error = "[FFmpeg] GIF output could not be parsed to clear its frames";
11270
11335
  return gifEncodeFailure(startTime, outputPath, error);
@@ -11297,7 +11362,7 @@ async function encodeGifFromDir(framesDir, framePattern, outputPath, input) {
11297
11362
  return gifEncodeFailure(startTime, outputPath, error, result.failureReason);
11298
11363
  }
11299
11364
  }
11300
- if (input.preserveAlpha && gifClearsAfterLeavingFrameInPlace(readFileSync5(outputPath)) !== false) {
11365
+ if (input.preserveAlpha && gifClearsAfterLeavingFrameInPlace(readFileSync6(outputPath)) !== false) {
11301
11366
  const failure = await reencodeWithClearedWholeFrames(argsInput, run, startTime);
11302
11367
  if (failure) return failure;
11303
11368
  }
@@ -12115,6 +12180,22 @@ async function executeDiskCaptureWithAdaptiveRetry(options) {
12115
12180
  }
12116
12181
  const remainingCount = countFrameRanges(remaining);
12117
12182
  const madeProgress = captureAttemptMadeProgress(frameCount, remainingCount);
12183
+ if (options.allowRetry && !madeProgress && (currentWorkers > 1 || initializationRetriesUsed === 0 && failure.kind === "protocol_timeout") && /\bNetwork\.enable timed out|Navigation timeout of \d+ ms exceeded/i.test(failure.message)) {
12184
+ initializationRetriesUsed++;
12185
+ const nextWorkers2 = getNextRetryWorkerCount(currentWorkers);
12186
+ options.log.warn(
12187
+ "[Render] Browser initialization timed out; retrying with fewer workers.",
12188
+ {
12189
+ fromWorkers: currentWorkers,
12190
+ toWorkers: nextWorkers2,
12191
+ error: failure.message
12192
+ }
12193
+ );
12194
+ currentWorkers = nextWorkers2;
12195
+ missingRanges = remaining;
12196
+ attempt++;
12197
+ continue;
12198
+ }
12118
12199
  if (options.allowRetry && isTransientCaptureRetryEligible(failure.kind, remaining, transientRetriesUsed)) {
12119
12200
  transientRetriesUsed++;
12120
12201
  options.log.warn(
@@ -12132,22 +12213,6 @@ async function executeDiskCaptureWithAdaptiveRetry(options) {
12132
12213
  pendingTransientRetry = true;
12133
12214
  continue;
12134
12215
  }
12135
- if (options.allowRetry && !madeProgress && initializationRetriesUsed === 0 && failure.kind === "protocol_timeout" && /\bNetwork\.enable timed out/i.test(failure.message)) {
12136
- initializationRetriesUsed++;
12137
- const nextWorkers2 = getNextRetryWorkerCount(currentWorkers);
12138
- options.log.warn(
12139
- "[Render] Browser initialization timed out; retrying once with fresh sessions.",
12140
- {
12141
- fromWorkers: currentWorkers,
12142
- toWorkers: nextWorkers2,
12143
- error: failure.message
12144
- }
12145
- );
12146
- currentWorkers = nextWorkers2;
12147
- missingRanges = remaining;
12148
- attempt++;
12149
- continue;
12150
- }
12151
12216
  if (!madeProgress) {
12152
12217
  options.log.warn(
12153
12218
  "[Render] Capture attempt made no forward progress; composition is likely structurally broken, not retrying.",
@@ -14696,7 +14761,7 @@ async function executeRenderPipeline(input) {
14696
14761
  }
14697
14762
 
14698
14763
  // ../producer/src/services/distributed/renderSpan.ts
14699
- import { mkdirSync as mkdirSync16, mkdtempSync as mkdtempSync7, readFileSync as readFileSync11, rmSync as rmSync14 } from "fs";
14764
+ import { mkdirSync as mkdirSync16, mkdtempSync as mkdtempSync7, readFileSync as readFileSync12, rmSync as rmSync14 } from "fs";
14700
14765
  import { join as join40 } from "path";
14701
14766
  import { tmpdir as tmpdir4 } from "os";
14702
14767
 
@@ -15104,7 +15169,7 @@ import { extname as extname4, join as join29 } from "path";
15104
15169
  // ../producer/src/services/distributed/shared.ts
15105
15170
  import { execFile as execFileCallback } from "child_process";
15106
15171
  import { dirname as dirname12, join as join28 } from "path";
15107
- import { existsSync as existsSync18, readFileSync as readFileSync6 } from "fs";
15172
+ import { existsSync as existsSync18, readFileSync as readFileSync7 } from "fs";
15108
15173
  import { fileURLToPath as fileURLToPath5 } from "url";
15109
15174
  import { promisify as promisify2 } from "util";
15110
15175
  var PLAN_VIDEOS_META_RELATIVE_PATH = "meta/videos.json";
@@ -15379,7 +15444,7 @@ function readProducerVersion() {
15379
15444
  const candidate = join28(current, "package.json");
15380
15445
  if (existsSync18(candidate)) {
15381
15446
  try {
15382
- const pkg = JSON.parse(readFileSync6(candidate, "utf-8"));
15447
+ const pkg = JSON.parse(readFileSync7(candidate, "utf-8"));
15383
15448
  if (pkg.name === "@hyperframes/producer" && typeof pkg.version === "string") {
15384
15449
  cachedProducerVersion = pkg.version;
15385
15450
  return pkg.version;
@@ -15758,7 +15823,7 @@ async function readPlanReferenceBackground(input) {
15758
15823
  }
15759
15824
 
15760
15825
  // ../producer/src/services/render/stages/freezePlan.ts
15761
- import { existsSync as existsSync20, mkdirSync as mkdirSync10, readFileSync as readFileSync7, readdirSync as readdirSync7, writeFileSync as writeFileSync6 } from "fs";
15826
+ import { existsSync as existsSync20, mkdirSync as mkdirSync10, readFileSync as readFileSync8, readdirSync as readdirSync7, writeFileSync as writeFileSync6 } from "fs";
15762
15827
  import { join as join32, relative as relative3, resolve as resolve7 } from "path";
15763
15828
 
15764
15829
  // ../producer/src/services/distributed/planProtocol.ts
@@ -15994,7 +16059,7 @@ function collectPlanAssetShas(planDir, digests) {
15994
16059
  const assets = [];
15995
16060
  for (const file of files) {
15996
16061
  if (file.planRelativePath === COMPILED_INDEX_RELATIVE_PATH) {
15997
- compositionHtml = readFileSync7(file.absolutePath);
16062
+ compositionHtml = readFileSync8(file.absolutePath);
15998
16063
  continue;
15999
16064
  }
16000
16065
  if (HASH_EXCLUDED_PLAN_FILES.has(file.planRelativePath)) continue;
@@ -16018,7 +16083,7 @@ function writePlanRemoteFiles(planDir, files) {
16018
16083
  }
16019
16084
  function readPlanRemoteFiles(planDir) {
16020
16085
  const path = join32(planDir, PLAN_REMOTE_FILES_RELATIVE_PATH);
16021
- return existsSync20(path) ? JSON.parse(readFileSync7(path, "utf-8")) : [];
16086
+ return existsSync20(path) ? JSON.parse(readFileSync8(path, "utf-8")) : [];
16022
16087
  }
16023
16088
  function recomputePlanHashFromPlanDir(planDir, digests) {
16024
16089
  const planJsonPath = join32(planDir, "plan.json");
@@ -16029,8 +16094,8 @@ function recomputePlanHashFromPlanDir(planDir, digests) {
16029
16094
  if (!existsSync20(encoderJsonPath)) {
16030
16095
  throw new Error(`[freezePlan] meta/encoder.json missing: ${encoderJsonPath}`);
16031
16096
  }
16032
- const planJson = JSON.parse(readFileSync7(planJsonPath, "utf-8"));
16033
- const encoderConfigCanonicalJson = readFileSync7(encoderJsonPath, "utf-8");
16097
+ const planJson = JSON.parse(readFileSync8(planJsonPath, "utf-8"));
16098
+ const encoderConfigCanonicalJson = readFileSync8(encoderJsonPath, "utf-8");
16034
16099
  const { compositionHtml, assets } = collectPlanAssetShas(planDir, digests);
16035
16100
  return computePlanHash({
16036
16101
  compositionHtml,
@@ -16137,7 +16202,7 @@ function applyRuntimeEnvSnapshot(snapshot, env = process.env) {
16137
16202
  }
16138
16203
 
16139
16204
  // ../producer/src/services/distributed/chunkAudio.ts
16140
- import { closeSync as closeSync5, existsSync as existsSync21, ftruncateSync, mkdirSync as mkdirSync11, openSync as openSync5, readFileSync as readFileSync8 } from "fs";
16205
+ import { closeSync as closeSync5, existsSync as existsSync21, ftruncateSync, mkdirSync as mkdirSync11, openSync as openSync5, readFileSync as readFileSync9 } from "fs";
16141
16206
  import { writeFileSync as writeFileSync7, writeSync } from "fs";
16142
16207
  import { join as join33 } from "path";
16143
16208
  function audioCutForChunk(grid, chunks, index, fps) {
@@ -16224,7 +16289,7 @@ async function writeChunkAudioSlices(input) {
16224
16289
  offset += track.sizes[offsets.length - 1];
16225
16290
  }
16226
16291
  });
16227
- const bytes = readFileSync8(input.audioPath);
16292
+ const bytes = readFileSync9(input.audioPath);
16228
16293
  const layout = { sizeBytes: bytes.length, payloadStart, payloadEnd, partStarts: {} };
16229
16294
  mkdirSync11(join33(input.planDir, SLICE_DIR), { recursive: true });
16230
16295
  input.chunks.forEach((_, index) => {
@@ -16243,8 +16308,8 @@ async function writeChunkAudioSlices(input) {
16243
16308
  function chunkAudioSource(planDir, chunkIndex, scratchPath) {
16244
16309
  const layoutPath = join33(planDir, SLICE_LAYOUT);
16245
16310
  if (!existsSync21(layoutPath)) return resolvePlanAudioPath(planDir);
16246
- const layout = JSON.parse(readFileSync8(layoutPath, "utf-8"));
16247
- const frame = readFileSync8(join33(planDir, SLICE_FRAME));
16311
+ const layout = JSON.parse(readFileSync9(layoutPath, "utf-8"));
16312
+ const frame = readFileSync9(join33(planDir, SLICE_FRAME));
16248
16313
  const fd = openSync5(scratchPath, "w");
16249
16314
  try {
16250
16315
  writeSync(fd, frame, 0, layout.payloadStart, 0);
@@ -16257,7 +16322,7 @@ function chunkAudioSource(planDir, chunkIndex, scratchPath) {
16257
16322
  );
16258
16323
  const start = layout.partStarts[chunkIndex];
16259
16324
  if (start !== void 0) {
16260
- const part = readFileSync8(join33(planDir, chunkAudioSlicePath(chunkIndex)));
16325
+ const part = readFileSync9(join33(planDir, chunkAudioSlicePath(chunkIndex)));
16261
16326
  writeSync(fd, part, 0, part.length, start);
16262
16327
  }
16263
16328
  ftruncateSync(fd, layout.sizeBytes);
@@ -16980,7 +17045,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
16980
17045
  if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
16981
17046
  if (probeResult.probeSession) {
16982
17047
  try {
16983
- const { closeCaptureSession: closeCaptureSession2 } = await import("./src-L7UBHHKB.js");
17048
+ const { closeCaptureSession: closeCaptureSession2 } = await import("./src-DYWF24IK.js");
16984
17049
  await closeCaptureSession2(probeResult.probeSession);
16985
17050
  } catch (err) {
16986
17051
  log.warn("[plan] probe session close failed", {
@@ -17338,7 +17403,7 @@ async function plan(projectDir, config, planDir, options = {}) {
17338
17403
 
17339
17404
  // ../producer/src/services/distributed/renderChunk.ts
17340
17405
  import { randomBytes } from "crypto";
17341
- import { existsSync as existsSync25, mkdirSync as mkdirSync15, readFileSync as readFileSync10, readdirSync as readdirSync10, rmSync as rmSync13, writeFileSync as writeFileSync11 } from "fs";
17406
+ import { existsSync as existsSync25, mkdirSync as mkdirSync15, readFileSync as readFileSync11, readdirSync as readdirSync10, rmSync as rmSync13, writeFileSync as writeFileSync11 } from "fs";
17342
17407
  import { cpus as cpus3 } from "os";
17343
17408
  import { join as join39 } from "path";
17344
17409
 
@@ -17349,7 +17414,7 @@ import {
17349
17414
  lstatSync as lstatSync3,
17350
17415
  mkdirSync as mkdirSync14,
17351
17416
  mkdtempSync as mkdtempSync6,
17352
- readFileSync as readFileSync9,
17417
+ readFileSync as readFileSync10,
17353
17418
  readdirSync as readdirSync9,
17354
17419
  rmSync as rmSync12,
17355
17420
  statSync as statSync8,
@@ -17495,7 +17560,7 @@ function isNonNegativeIntegerArray(value) {
17495
17560
  return Array.isArray(value) && value.every((item) => typeof item === "number" && Number.isInteger(item) && item >= 0);
17496
17561
  }
17497
17562
  function readJsonFile(path, label) {
17498
- const contents = readFileSync9(path, "utf-8");
17563
+ const contents = readFileSync10(path, "utf-8");
17499
17564
  try {
17500
17565
  const parsed = JSON.parse(contents);
17501
17566
  return parsed;
@@ -18328,10 +18393,10 @@ async function beginFrameSessionNeedsScreenshotFallback(session, probe = probeBe
18328
18393
  return !await probe(session.page, timeoutMs, probeTick, session.beginFrameIntervalMs);
18329
18394
  }
18330
18395
  function hashChunkOutput(outputPath, kind) {
18331
- if (kind === "file") return sha256Hex(readFileSync10(outputPath));
18396
+ if (kind === "file") return sha256Hex(readFileSync11(outputPath));
18332
18397
  const entries = readdirSync10(outputPath).filter((name) => /\.(png|jpg|jpeg)$/i.test(name)).sort();
18333
18398
  const lines = entries.map(
18334
- (name) => `${name}\0${sha256Hex(readFileSync10(join39(outputPath, name)))}`
18399
+ (name) => `${name}\0${sha256Hex(readFileSync11(join39(outputPath, name)))}`
18335
18400
  );
18336
18401
  return sha256Hex(lines.join("\0"));
18337
18402
  }
@@ -18357,7 +18422,7 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
18357
18422
  `[renderChunk] planDir is missing required artifact: ${planJsonPath}`
18358
18423
  );
18359
18424
  }
18360
- const plan2 = JSON.parse(readFileSync10(planJsonPath, "utf-8"));
18425
+ const plan2 = JSON.parse(readFileSync11(planJsonPath, "utf-8"));
18361
18426
  readPlanProtocolV1(plan2, DISTRIBUTED_RENDER_CAPABILITIES.roles.chunk);
18362
18427
  const planHashStarted = Date.now();
18363
18428
  const v2Materialization = readValidatedPlanV2Materialization(planDir, {
@@ -18374,13 +18439,13 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
18374
18439
  );
18375
18440
  }
18376
18441
  }
18377
- const encoder = JSON.parse(readFileSync10(encoderJsonPath, "utf-8"));
18378
- const chunks = JSON.parse(readFileSync10(chunksJsonPath, "utf-8"));
18442
+ const encoder = JSON.parse(readFileSync11(encoderJsonPath, "utf-8"));
18443
+ const chunks = JSON.parse(readFileSync11(chunksJsonPath, "utf-8"));
18379
18444
  const videosJsonPath = join39(planDir, PLAN_VIDEOS_META_RELATIVE_PATH);
18380
18445
  let planVideos = null;
18381
18446
  if (existsSync25(videosJsonPath)) {
18382
18447
  try {
18383
- planVideos = validatePlanVideosForChunk(JSON.parse(readFileSync10(videosJsonPath, "utf-8")));
18448
+ planVideos = validatePlanVideosForChunk(JSON.parse(readFileSync11(videosJsonPath, "utf-8")));
18384
18449
  } catch (err) {
18385
18450
  if (err instanceof RenderChunkValidationError) throw err;
18386
18451
  throw new RenderChunkValidationError(
@@ -18491,7 +18556,7 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
18491
18556
  dimensions: plan2.dimensions,
18492
18557
  encoder,
18493
18558
  videoCount: planVideos?.videos.length ?? 0,
18494
- html: readFileSync10(join39(compiledDir, "index.html"), "utf-8"),
18559
+ html: readFileSync11(join39(compiledDir, "index.html"), "utf-8"),
18495
18560
  // The plan ships a deferred source only to chunks that show it; don't wait on the rest.
18496
18561
  skipReadinessVideoIds: deferredVideos.filter(
18497
18562
  (video) => !shownFrames.get(video.videoId)?.size || remoteVideoIds.has(video.videoId)
@@ -18953,7 +19018,7 @@ async function renderSpan(projectDir, config, span, outputPath) {
18953
19018
  planned.totalFrames
18954
19019
  );
18955
19020
  const slices = JSON.parse(
18956
- readFileSync11(join40(planDir, "meta", "chunks.json"), "utf-8")
19021
+ readFileSync12(join40(planDir, "meta", "chunks.json"), "utf-8")
18957
19022
  );
18958
19023
  const parts = [];
18959
19024
  for (const slice of slices) {
@@ -19541,7 +19606,7 @@ import { serve as serve2 } from "@hono/node-server";
19541
19606
  // ../producer/src/services/hyperframeLint.ts
19542
19607
  import {
19543
19608
  existsSync as existsSync26,
19544
- readFileSync as readFileSync12,
19609
+ readFileSync as readFileSync13,
19545
19610
  statSync as statSync9,
19546
19611
  openSync as openSync6,
19547
19612
  fstatSync as fstatSync3,
@@ -19586,7 +19651,7 @@ function readEntryHtml(filePath) {
19586
19651
  }
19587
19652
  try {
19588
19653
  if (!fstatSync3(fd).isFile()) return null;
19589
- return readFileSync12(fd, "utf-8");
19654
+ return readFileSync13(fd, "utf-8");
19590
19655
  } finally {
19591
19656
  closeSync6(fd);
19592
19657
  }
@@ -20367,7 +20432,7 @@ function startServer(options = {}) {
20367
20432
  });
20368
20433
  async function shutdown(signal) {
20369
20434
  log.info(`Received ${signal}, shutting down`);
20370
- const { drainBrowserPool } = await import("./src-L7UBHHKB.js");
20435
+ const { drainBrowserPool } = await import("./src-DYWF24IK.js");
20371
20436
  await drainBrowserPool().catch(() => {
20372
20437
  });
20373
20438
  const handle = await Promise.race([
@@ -20413,7 +20478,7 @@ import {
20413
20478
  existsSync as existsSync29,
20414
20479
  mkdirSync as mkdirSync18,
20415
20480
  mkdtempSync as mkdtempSync9,
20416
- readFileSync as readFileSync13,
20481
+ readFileSync as readFileSync14,
20417
20482
  readdirSync as readdirSync11,
20418
20483
  rmSync as rmSync16,
20419
20484
  statSync as statSync11,
@@ -20509,13 +20574,13 @@ function readAssemblePlan(planDir, chunkPaths) {
20509
20574
  if (!existsSync29(planJsonPath)) {
20510
20575
  throw new Error(`[assemble] planDir missing plan.json: ${planJsonPath}`);
20511
20576
  }
20512
- const plan2 = JSON.parse(readFileSync13(planJsonPath, "utf-8"));
20577
+ const plan2 = JSON.parse(readFileSync14(planJsonPath, "utf-8"));
20513
20578
  readPlanProtocolV1(plan2, DISTRIBUTED_RENDER_CAPABILITIES.roles.assembler);
20514
20579
  validatePlanV2MaterializedTarget(planDir, { role: "assembler" });
20515
20580
  if (!existsSync29(chunksJsonPath)) {
20516
20581
  throw new Error(`[assemble] planDir missing meta/chunks.json: ${chunksJsonPath}`);
20517
20582
  }
20518
- const chunks = JSON.parse(readFileSync13(chunksJsonPath, "utf-8"));
20583
+ const chunks = JSON.parse(readFileSync14(chunksJsonPath, "utf-8"));
20519
20584
  if (chunkPaths.length !== chunks.length) {
20520
20585
  throw new Error(
20521
20586
  `[assemble] chunkPaths length (${chunkPaths.length}) does not match chunks.json length (${chunks.length}). Adapters must pass one path per chunk, ordered by index.`
@@ -20661,13 +20726,13 @@ function stitchesSeparateAudio(planDir) {
20661
20726
  return lockedAudio(planDir).separateAudio === true;
20662
20727
  }
20663
20728
  function planFormat(planDir) {
20664
- const plan2 = JSON.parse(readFileSync13(join44(planDir, "plan.json"), "utf-8"));
20729
+ const plan2 = JSON.parse(readFileSync14(join44(planDir, "plan.json"), "utf-8"));
20665
20730
  return plan2.dimensions.format;
20666
20731
  }
20667
20732
  function lockedAudio(planDir) {
20668
20733
  const encoderJsonPath = join44(planDir, "meta", "encoder.json");
20669
20734
  if (!existsSync29(encoderJsonPath)) return {};
20670
- return JSON.parse(readFileSync13(encoderJsonPath, "utf-8"));
20735
+ return JSON.parse(readFileSync14(encoderJsonPath, "utf-8"));
20671
20736
  }
20672
20737
  function readCfrEncoder(planDir, format) {
20673
20738
  if (format !== "mp4") {
@@ -20679,7 +20744,7 @@ function readCfrEncoder(planDir, format) {
20679
20744
  if (!existsSync29(encoderJsonPath)) {
20680
20745
  throw new Error(`[assemble] planDir missing meta/encoder.json: ${encoderJsonPath}`);
20681
20746
  }
20682
- const encoderJson = JSON.parse(readFileSync13(encoderJsonPath, "utf-8"));
20747
+ const encoderJson = JSON.parse(readFileSync14(encoderJsonPath, "utf-8"));
20683
20748
  if (encoderJson.encoder === "libx265-software") {
20684
20749
  throw new Error(
20685
20750
  `[assemble] cfr=true is not yet supported with codec: "h265". The cfr re-encode pass uses libx264 and would silently transcode the h265 chunks. Either disable cfr or render with codec: "h264".`