hyperframes 0.9.20 → 0.9.22

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 (247) hide show
  1. package/dist/{add-6U3Y7DEN.js → add-P5EPMJ5Q.js} +11 -11
  2. package/dist/{agentPromptGenerator-2U62YSRT.js → agentPromptGenerator-MEUCOVJI.js} +6 -6
  3. package/dist/{animatedGifPrep-RC6CYTRI.js → animatedGifPrep-AOFUPYBU.js} +6 -6
  4. package/dist/api.js +29 -29
  5. package/dist/{asset-ER2CUS6B.js → asset-RH3JROBG.js} +2 -2
  6. package/dist/{assetCataloger-425SRTPW.js → assetCataloger-64MQJFOZ.js} +7 -7
  7. package/dist/{audio-JUAMPMWA.js → audio-BQNS5FYY.js} +15 -15
  8. package/dist/{auth-DQ52RE6K.js → auth-QWQ42CNZ.js} +2 -2
  9. package/dist/{autoUpdate-YUZGZ5ZI.js → autoUpdate-J26RSYB3.js} +2 -2
  10. package/dist/{avatars-F4HNQISE.js → avatars-OI5NDVRA.js} +10 -10
  11. package/dist/{backgroundChecks-MSOJBGL7.js → backgroundChecks-GA5TOAT7.js} +3 -3
  12. package/dist/backgroundChecksWorker.js +3 -3
  13. package/dist/{batchRender-33AZEDWV.js → batchRender-FQPTPD5C.js} +3 -3
  14. package/dist/{beats-WI3UU5KD.js → beats-3PKJQEVM.js} +8 -8
  15. package/dist/{benchmark-ZE5Y75YM.js → benchmark-UXWF7XLU.js} +8 -8
  16. package/dist/{billing-N4BCUG7R.js → billing-A6GCRCBD.js} +10 -10
  17. package/dist/{browser-HUOPVD2U.js → browser-GT7GX3OU.js} +5 -5
  18. package/dist/{bundleWithLocalizedFonts-PRR3UAJT.js → bundleWithLocalizedFonts-FW5W6YB3.js} +1 -1
  19. package/dist/{capture-2QNE2DEY.js → capture-EFW47UGO.js} +3 -3
  20. package/dist/{capture-UWQ2GBML.js → capture-RIKBIXAD.js} +13 -13
  21. package/dist/{captureCompositionFrame-S2A5KJUT.js → captureCompositionFrame-ZRYVO54J.js} +12 -12
  22. package/dist/{catalog-BQZ55PQP.js → catalog-ZV33ASKR.js} +11 -11
  23. package/dist/{catch-up-JFII6DVC.js → catch-up-SXGWPMIJ.js} +6 -6
  24. package/dist/{check-KPFCL46S.js → check-P4SYKGRB.js} +37 -37
  25. package/dist/{checkAudio-NTES344V.js → checkAudio-MNVMXEDK.js} +9 -9
  26. package/dist/{checkBrowser-WQWRQO2X.js → checkBrowser-A4HK7M5F.js} +31 -31
  27. package/dist/{chunk-WMZHESNZ.js → chunk-2PRAPMMF.js} +2 -2
  28. package/dist/{chunk-UXEUKILH.js → chunk-2ZLUFEPP.js} +1 -1
  29. package/dist/{chunk-A457YCWN.js → chunk-3H547JQP.js} +2 -2
  30. package/dist/{chunk-KPCCWI5Q.js → chunk-4FNJ2QNP.js} +2 -2
  31. package/dist/{chunk-YVFJWUSI.js → chunk-4YF5DHN5.js} +1 -1
  32. package/dist/{chunk-4EUUYYB3.js → chunk-5H5DZTVW.js} +2 -2
  33. package/dist/{chunk-ZNUMTYBZ.js → chunk-5HEUGZ7C.js} +3 -3
  34. package/dist/{chunk-JXGFZG73.js → chunk-5UF4Z3KI.js} +1 -1
  35. package/dist/{chunk-FXPBFARU.js → chunk-5V6NEPTW.js} +1 -1
  36. package/dist/{chunk-LNHMJ555.js → chunk-5YQCUH6I.js} +1 -1
  37. package/dist/{chunk-PWP4W2PF.js → chunk-5YVA7VYC.js} +1 -1
  38. package/dist/{chunk-HCUEMQB4.js → chunk-6OWZRBUW.js} +1 -1
  39. package/dist/{chunk-5V3R5ZMY.js → chunk-7GX3DFQZ.js} +7 -7
  40. package/dist/{chunk-LDV6P3DG.js → chunk-7IBVRNW2.js} +1 -1
  41. package/dist/{chunk-QUYTXJLE.js → chunk-AOMZDUV2.js} +1 -1
  42. package/dist/{chunk-7DGAJ7RY.js → chunk-B2XUJ5Q5.js} +1 -1
  43. package/dist/{chunk-7PG57ERE.js → chunk-C2I3BLHP.js} +1 -1
  44. package/dist/{chunk-XID37ELP.js → chunk-CNNU335R.js} +2 -2
  45. package/dist/{chunk-KKNAM57Z.js → chunk-D3CD6TQ3.js} +1 -1
  46. package/dist/{chunk-3XJM7XZN.js → chunk-D3NWGOXW.js} +30 -0
  47. package/dist/{chunk-UECTSXVZ.js → chunk-DCTVIIIY.js} +1 -1
  48. package/dist/{chunk-BA3FUJOU.js → chunk-DMEHR64W.js} +38 -4
  49. package/dist/{chunk-G2C7OTXI.js → chunk-ELYZGVJQ.js} +1 -1
  50. package/dist/{chunk-FY2QFPEK.js → chunk-EXZA6WBB.js} +1 -1
  51. package/dist/chunk-FRBQYFUV.js +481 -0
  52. package/dist/{chunk-MQFX4OD3.js → chunk-G4UQV75W.js} +1 -1
  53. package/dist/{chunk-D3ZYDQMH.js → chunk-G7DS5B4U.js} +2 -2
  54. package/dist/{chunk-LEVO6XYF.js → chunk-GNUTRVGG.js} +33 -22
  55. package/dist/{chunk-GNY2WZKA.js → chunk-GQR6KIVQ.js} +3 -3
  56. package/dist/{chunk-S45SR3TL.js → chunk-H2IA6JUW.js} +2 -2
  57. package/dist/chunk-H2PVMZ2M.js +5035 -0
  58. package/dist/{chunk-N2I2YUL7.js → chunk-H5L6ZLWW.js} +7 -7
  59. package/dist/{chunk-MHW4MMV4.js → chunk-IGWGLKKL.js} +10 -10
  60. package/dist/{chunk-P2DAWEPF.js → chunk-IPW3FPE3.js} +2 -2
  61. package/dist/{chunk-Q6DA3X34.js → chunk-ITABEOC6.js} +3 -3
  62. package/dist/{chunk-5KJWA22L.js → chunk-JAA4EBWV.js} +5 -5
  63. package/dist/{chunk-QYWOP6MH.js → chunk-JIICYVRY.js} +3 -3
  64. package/dist/{chunk-C2PQTWAH.js → chunk-KA5IELN4.js} +1 -1
  65. package/dist/{chunk-RPSR5YSD.js → chunk-KES2XW4I.js} +4 -4
  66. package/dist/{chunk-L6XUDQW6.js → chunk-KEUNBZWA.js} +18 -7
  67. package/dist/{chunk-BQ2U65ZF.js → chunk-KZWYAZZH.js} +115 -21
  68. package/dist/{chunk-SH6P5CMQ.js → chunk-L7ED3RE6.js} +1 -1
  69. package/dist/{chunk-Z745SNN4.js → chunk-LC3UH6GM.js} +19 -8
  70. package/dist/{chunk-4J2Y6G2X.js → chunk-LLLOEJPL.js} +1 -1
  71. package/dist/{chunk-5WKW4P6P.js → chunk-LLUKDUVS.js} +28 -15
  72. package/dist/{chunk-S6MXHF7C.js → chunk-LNE3SUVH.js} +1 -1
  73. package/dist/{chunk-OAQTFIWB.js → chunk-LWF7T7Y3.js} +3 -3
  74. package/dist/{chunk-TGSBNJYV.js → chunk-MD3DZRKM.js} +2 -2
  75. package/dist/{chunk-JWORQ5WQ.js → chunk-MFDNMTOP.js} +1 -1
  76. package/dist/{chunk-POKB2QVF.js → chunk-NJD7YMBD.js} +2 -2
  77. package/dist/{chunk-FPM6B5X5.js → chunk-NOTTJWVZ.js} +2 -2
  78. package/dist/{chunk-UH6JF4TY.js → chunk-NPBMNB7S.js} +4 -4
  79. package/dist/{chunk-GH4QTKBM.js → chunk-NZ24SOAQ.js} +7 -7
  80. package/dist/{chunk-4HWNUBW2.js → chunk-O3ES5O4T.js} +3 -3
  81. package/dist/{chunk-35APUSDP.js → chunk-O75PHTJC.js} +1 -1
  82. package/dist/{chunk-OWBXXAYQ.js → chunk-OHHYRXX7.js} +2 -2
  83. package/dist/{chunk-USRF4NA6.js → chunk-OUAMAOQS.js} +10 -10
  84. package/dist/{chunk-IBXWPFGK.js → chunk-P3VIGBOY.js} +2 -2
  85. package/dist/{chunk-XACDCHJF.js → chunk-P7GVEHVM.js} +1 -1
  86. package/dist/{chunk-TKHWUM6J.js → chunk-PE3QPW77.js} +2 -2
  87. package/dist/{chunk-7ISXVZHB.js → chunk-PHA3H4JX.js} +4 -4
  88. package/dist/{chunk-6FI5JRM3.js → chunk-PJNDSYJV.js} +301 -97
  89. package/dist/{chunk-M5CDC3VO.js → chunk-PPOJMJR5.js} +25 -15
  90. package/dist/{chunk-5ECZJECP.js → chunk-PZSPEUI5.js} +1 -1
  91. package/dist/{chunk-76IGIELW.js → chunk-QMD3FTBL.js} +2 -2
  92. package/dist/{chunk-XU5LAY46.js → chunk-QMYMXTRT.js} +1 -1
  93. package/dist/{chunk-3WLJMGCI.js → chunk-QYWBLJ2X.js} +1 -1
  94. package/dist/{chunk-4XOQILDV.js → chunk-S6M6TIEI.js} +15 -4
  95. package/dist/{chunk-X254MPK3.js → chunk-SCTDZ5C7.js} +1 -1
  96. package/dist/{chunk-PAFAOFZZ.js → chunk-SMRSQ5CF.js} +1 -1
  97. package/dist/{chunk-WNPIJ7UG.js → chunk-TIDNGNPA.js} +1 -1
  98. package/dist/{chunk-VM6PDH32.js → chunk-TRHWNVOY.js} +1 -1
  99. package/dist/{chunk-NZ6JYCGU.js → chunk-UQVRQ2SL.js} +3 -3
  100. package/dist/{chunk-RFG4XUMQ.js → chunk-US24WEIH.js} +1 -1
  101. package/dist/{chunk-TCW3ALLF.js → chunk-UTCYYAGP.js} +2 -2
  102. package/dist/{chunk-Y5ZW3BRK.js → chunk-V43H4NSJ.js} +3 -3
  103. package/dist/{chunk-76HDNQDL.js → chunk-VBSTLL2I.js} +2 -2
  104. package/dist/{chunk-QSOIL3EE.js → chunk-VIVMNHG7.js} +3 -3
  105. package/dist/{chunk-DNWZ66ND.js → chunk-VLW6AHXZ.js} +1 -1
  106. package/dist/{chunk-PGNE33QK.js → chunk-WD6Q4UXG.js} +33 -15
  107. package/dist/{chunk-NSNT4DNY.js → chunk-WIMLEJLH.js} +3 -3
  108. package/dist/{chunk-HIT72LVX.js → chunk-X2WUBMVK.js} +7 -7
  109. package/dist/{chunk-CKZQQ2DO.js → chunk-XVFUUT57.js} +1 -1
  110. package/dist/{chunk-3KJW4NNP.js → chunk-XWXZFUFZ.js} +12 -14
  111. package/dist/{chunk-NHV3G6JH.js → chunk-YAC7QLYC.js} +1 -1
  112. package/dist/{chunk-7CGSZ3OR.js → chunk-YE64DXEB.js} +13 -13
  113. package/dist/{chunk-IY4I7TV4.js → chunk-YSKP5MCC.js} +2 -2
  114. package/dist/{chunk-RONKIDIW.js → chunk-YYQO5K45.js} +5 -5
  115. package/dist/{chunk-SVOUYNKZ.js → chunk-Z6AR7JQZ.js} +37 -20
  116. package/dist/{chunk-P2GR4V7S.js → chunk-ZNFYQMFN.js} +1 -1
  117. package/dist/{clean-5FFXB5MF.js → clean-DXVKCD35.js} +16 -16
  118. package/dist/cli.js +60 -60
  119. package/dist/{cloud-XC5OSAE2.js → cloud-5ZJIOZEM.js} +4 -4
  120. package/dist/{cloud-CINLC3NP.js → cloud-D7DFYONW.js} +2 -2
  121. package/dist/{cloudrun-VVU4XERK.js → cloudrun-QGCPCLS7.js} +4 -4
  122. package/dist/commands/layout-audit.browser.js +287 -23
  123. package/dist/{compare-6ZVA7JDY.js → compare-CG7ZLORR.js} +28 -28
  124. package/dist/{compiler-4WKTHUPH.js → compiler-5ZKASKDC.js} +3 -3
  125. package/dist/{component-CYXNZPHM.js → component-B4KAGJ6J.js} +3 -3
  126. package/dist/{compositions-Z53CMRFQ.js → compositions-U4KYWKZJ.js} +10 -10
  127. package/dist/{curve-ZLVHONKG.js → curve-VT2COPVD.js} +10 -10
  128. package/dist/{cuts-JGHDX4ND.js → cuts-6VEK5M4B.js} +11 -11
  129. package/dist/{delete-C6KCUXEV.js → delete-7C2IRPUB.js} +5 -5
  130. package/dist/{deploy-3W4FAFBU.js → deploy-3ICL7ZKT.js} +1 -1
  131. package/dist/{describeProject-NB7JQQRZ.js → describeProject-AYSN54IN.js} +7 -7
  132. package/dist/{diff-77IF7ZGC.js → diff-W4PY7MNM.js} +29 -29
  133. package/dist/{dist-LPVHFSCW.js → dist-5ITUK4AA.js} +5 -3
  134. package/dist/{dist-2MTQQEZT.js → dist-JSAOJXV4.js} +2 -2
  135. package/dist/{dist-PVM257OR.js → dist-KTTPEXT3.js} +9 -9
  136. package/dist/{doctor-7ARBZ2FZ.js → doctor-AWJLVONI.js} +10 -10
  137. package/dist/{energy-2I6O5IQY.js → energy-FEAXXITP.js} +11 -11
  138. package/dist/{events-MCXWDE3G.js → events-BEECDETU.js} +2 -2
  139. package/dist/{events-CG6ZFBPQ.js → events-PQ5Q44FC.js} +5 -5
  140. package/dist/{events-CXZTEW5W.js → events-UBP3QVVZ.js} +13 -13
  141. package/dist/{extract-NSSKZ7EO.js → extract-P3RDDMAN.js} +11 -11
  142. package/dist/{face-CZBXJIJD.js → face-CFGKOSS3.js} +11 -11
  143. package/dist/{feedback-3ZZQHXQA.js → feedback-BQONI5Z3.js} +8 -8
  144. package/dist/{ffmpeg-KOJQXOMH.js → ffmpeg-ZZ7LIQ5Z.js} +6 -6
  145. package/dist/{figma-T77MIMMN.js → figma-MCD4A356.js} +3 -3
  146. package/dist/fontLocalizeCli.js +9 -9
  147. package/dist/{frames-GMXMQ7DQ.js → frames-AZR3TRLH.js} +12 -12
  148. package/dist/{generate-PN2N6MQV.js → generate-K4EQAVJW.js} +21 -21
  149. package/dist/{get-AMP7GO2J.js → get-WJ3ELK7A.js} +5 -5
  150. package/dist/{gpuPolicy-336CZTOI.js → gpuPolicy-PUE7IADC.js} +6 -6
  151. package/dist/{grade-compare-XHR7XCIJ.js → grade-compare-GCFG242J.js} +29 -29
  152. package/dist/{heifImagePrep-GAATPFZJ.js → heifImagePrep-QXOU7MLY.js} +7 -7
  153. package/dist/{help-QLT7Q5CF.js → help-GT6ZDVJG.js} +1 -1
  154. package/dist/{history-IBK4ICX6.js → history-5IYTGJEF.js} +8 -8
  155. package/dist/hyperframe.manifest.json +1 -1
  156. package/dist/hyperframe.runtime.iife.js +74 -74
  157. package/dist/hyperframes-player.global.js +3 -3
  158. package/dist/{info-IF6TAH4N.js → info-5AJYESSM.js} +12 -12
  159. package/dist/{init-7TY3OJ6O.js → init-D6KHCFJY.js} +26 -26
  160. package/dist/{ink-PGZ7QSBH.js → ink-VIUT4ZGK.js} +11 -11
  161. package/dist/{inspect-LHLSKDYO.js → inspect-AOA5QC2L.js} +29 -29
  162. package/dist/{installer-DBTP7YGS.js → installer-OOGT5H33.js} +4 -4
  163. package/dist/{keyframes-4M4776JR.js → keyframes-RFOY5TRI.js} +8 -8
  164. package/dist/{lambda-FFMB6Y76.js → lambda-JR66KCP6.js} +10 -10
  165. package/dist/{layout-LJHS7HFD.js → layout-O22LQNQJ.js} +29 -29
  166. package/dist/{lint-2J5AVK6D.js → lint-FVSXPEHO.js} +22 -12
  167. package/dist/{lintProject-2OD4CDTW.js → lintProject-BC5ISNKQ.js} +1 -1
  168. package/dist/{list-MAYBNZEL.js → list-L4QR4ECB.js} +5 -5
  169. package/dist/{localPage-EKPNDJ27.js → localPage-LX46Y2RP.js} +6 -6
  170. package/dist/{login-CEU43XKU.js → login-YRUEKLVU.js} +4 -4
  171. package/dist/{look-IYTF5GLD.js → look-4KCFSE7J.js} +11 -11
  172. package/dist/{manager-DILAI3UF.js → manager-HTG3C2WE.js} +7 -7
  173. package/dist/{measure-2WZGYPYI.js → measure-Y2KDNWOG.js} +11 -11
  174. package/dist/{media-treatment-NEY3KFIE.js → media-treatment-2J5REU6B.js} +12 -12
  175. package/dist/{media-use-3RF5K7J2.js → media-use-7EN3JP2H.js} +3 -3
  176. package/dist/{models-JG3K3WHB.js → models-3IFIWCKT.js} +10 -10
  177. package/dist/{motionShot-BXTTHXNC.js → motionShot-RI2JVXVU.js} +15 -15
  178. package/dist/{normalize-audio-V42ORWPJ.js → normalize-audio-XTDN6XW6.js} +8 -8
  179. package/dist/{open-TIGOP4UL.js → open-ARUHNAB7.js} +66 -15
  180. package/dist/{parakeetRunner-ECBLSKPA.js → parakeetRunner-MSM7RDKF.js} +11 -11
  181. package/dist/{pipeline-NAQKFYVO.js → pipeline-VKX2BFB6.js} +9 -9
  182. package/dist/{play-OCUIRYGT.js → play-PJNNPV7X.js} +19 -19
  183. package/dist/{preflight-FXN2DIKX.js → preflight-MUXQH6H6.js} +7 -7
  184. package/dist/{present-EIPGUFX2.js → present-AN6MCW3Y.js} +15 -15
  185. package/dist/{preview-D3DGM36N.js → preview-DEHP2TG5.js} +53 -499
  186. package/dist/{probe-LHGNRPYJ.js → probe-5RG744XA.js} +11 -11
  187. package/dist/{producer-MUSGQJB5.js → producer-7VK2ZJDE.js} +1 -1
  188. package/dist/{projectConfig-5XHCXAR2.js → projectConfig-6DMINA23.js} +6 -6
  189. package/dist/{publication-YHI2M2PN.js → publication-6MWJAFT7.js} +2 -2
  190. package/dist/{publish-DD4ZAHEH.js → publish-KBNVXXGC.js} +10 -10
  191. package/dist/{remove-background-AJBLAXSV.js → remove-background-JEWUHSSD.js} +10 -10
  192. package/dist/{render-LCH7X3UA.js → render-35DBJ2WO.js} +31 -31
  193. package/dist/{render-AKGMPEQ4.js → render-W2U6ZT5X.js} +26 -26
  194. package/dist/{render-32BRUXZK.js → render-WH22EDR5.js} +5 -5
  195. package/dist/{render-batch-BGZ4XDDA.js → render-batch-XJOSN2BG.js} +5 -5
  196. package/dist/renderSetupWorker.js +1 -1
  197. package/dist/{resolver-M64IRWRP.js → resolver-5YYQABSN.js} +4 -4
  198. package/dist/{reverse-HLLQAI77.js → reverse-FRUVNAQG.js} +1 -1
  199. package/dist/{run-Q4IUMQIY.js → run-IQLZHH6D.js} +3 -3
  200. package/dist/{screenshotCapture-INHISXPC.js → screenshotCapture-Y6WBZRXS.js} +7 -7
  201. package/dist/{sherpa-MQLZFNTX.js → sherpa-LRHHYRRD.js} +10 -10
  202. package/dist/skills/hyperframes-cli/references/preview-render.md +1 -1
  203. package/dist/skills/media-use/audio/scripts/audio.mjs +56 -26
  204. package/dist/skills/media-use/audio/scripts/lib/media-record.mjs +3 -3
  205. package/dist/skills/media-use/audio/scripts/lib/media-record.test.mjs +16 -1
  206. package/dist/skills/media-use/audio/scripts/lib/recording.mjs +53 -0
  207. package/dist/skills/media-use/audio/scripts/lib/voice-credit.mjs +17 -0
  208. package/dist/skills/media-use/audio/scripts/lib/voice-credit.test.mjs +21 -0
  209. package/dist/skills/media-use/audio/scripts/recording.test.mjs +139 -0
  210. package/dist/skills/media-use/references/audio.md +2 -1
  211. package/dist/{skills-W4F5AJ2K.js → skills-NFCZFIGR.js} +8 -8
  212. package/dist/{skillsUpdateCheck-GVFHBX3G.js → skillsUpdateCheck-PUQNRKJ2.js} +3 -3
  213. package/dist/{snapshot-34FUMOEG.js → snapshot-EQRQLPXQ.js} +36 -36
  214. package/dist/{src-VL6XKFAA.js → src-HZHRJJAS.js} +5 -5
  215. package/dist/{src-M3NYEBA7.js → src-YNWNREO3.js} +8 -8
  216. package/dist/{start-A3YWCGDG.js → start-OP4X6HKK.js} +18 -18
  217. package/dist/{staticProjectServer-6NQWZP3Q.js → staticProjectServer-6LCOTXMA.js} +17 -17
  218. package/dist/{status-ZBUL7MPB.js → status-OWK4PE7Y.js} +10 -10
  219. package/dist/studio/assets/codec-DLDwVbqW.js +314 -0
  220. package/dist/studio/assets/{hyperframes-player-ZQZslutT.js → hyperframes-player-C5DA6O5u.js} +3 -3
  221. package/dist/studio/assets/index-B6RxZt-8.js +150 -0
  222. package/dist/studio/assets/{index-Bz2pYyGM.js → index-Buvugo_O.js} +120 -119
  223. package/dist/studio/assets/pausedVideoDecoder-BGKlQc66.js +1 -0
  224. package/dist/studio/index.html +1 -1
  225. package/dist/{studio-api-CIDVEQUP.js → studio-api-6BPBBFAW.js} +9 -9
  226. package/dist/{studioServer-4FEM4AAL.js → studioServer-74DN3L3H.js} +48 -48
  227. package/dist/{sync-PXQD6JNH.js → sync-F5W4JZJN.js} +11 -11
  228. package/dist/{telemetry-W7PZ4E2A.js → telemetry-WLMC4CPL.js} +5 -5
  229. package/dist/templates/_shared/AGENTS.md +3 -1
  230. package/dist/templates/_shared/CLAUDE.md +3 -1
  231. package/dist/{templates-ELZU33UU.js → templates-X5NWCSPC.js} +10 -10
  232. package/dist/{timeline-O7BR3IKC.js → timeline-RPV3BPTU.js} +17 -17
  233. package/dist/{tokens-RNFI6LFF.js → tokens-I5HMG733.js} +2 -2
  234. package/dist/{transcribe-GUUUSHHL.js → transcribe-37LMXM4R.js} +23 -23
  235. package/dist/{transcribe-XQOGYK6P.js → transcribe-JHJCPGIZ.js} +9 -9
  236. package/dist/{update-J37ZLNH7.js → update-Z4PHNKUH.js} +9 -9
  237. package/dist/{updateCheck-ALBUZ6YM.js → updateCheck-KROYCMVT.js} +2 -2
  238. package/dist/{upgrade-NVG73VIE.js → upgrade-RW57MLYT.js} +3 -3
  239. package/dist/{upload-HBALN6HE.js → upload-PEY7EYFV.js} +3 -2
  240. package/dist/{urlDownloader-TKEHDA5W.js → urlDownloader-HFKG567O.js} +5 -5
  241. package/dist/{validate-3TFHU3MJ.js → validate-PNLZ57YG.js} +23 -23
  242. package/dist/{video-PBNQGPQO.js → video-Y23QOZP7.js} +7 -7
  243. package/dist/{voices-PF7EV4O4.js → voices-TIGQHHMA.js} +19 -19
  244. package/dist/warmCheck.js +37 -37
  245. package/package.json +1 -1
  246. package/dist/chunk-7DS3STTY.js +0 -5035
  247. package/dist/studio/assets/index-Bn5atbhb.js +0 -531
@@ -6,16 +6,21 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  HyperframesApiError
9
- } from "./chunk-3XJM7XZN.js";
9
+ } from "./chunk-D3NWGOXW.js";
10
+ import {
11
+ hyperframesConfigDir
12
+ } from "./chunk-GR2E54E6.js";
10
13
 
11
14
  // src/cloud/upload.ts
12
15
  import { createHash } from "crypto";
16
+ import { createReadStream as createReadStream2 } from "fs";
17
+
18
+ // src/cloud/uploadPut.ts
13
19
  import { createReadStream } from "fs";
14
20
  import { request as httpRequest } from "http";
15
21
  import { request as httpsRequest } from "https";
16
22
  import { Readable } from "stream";
17
23
  import { pipeline } from "stream/promises";
18
- var CONTENT_TYPE_ZIP = "application/zip";
19
24
  var putTimings = {
20
25
  stallMs: 6e4,
21
26
  retries: 3,
@@ -84,6 +89,213 @@ async function putWithRetry(attempt, total, signal) {
84
89
  }
85
90
  }
86
91
  }
92
+ function sleep(ms, signal) {
93
+ return new Promise((resolve) => {
94
+ const timer = setTimeout(resolve, ms);
95
+ signal?.addEventListener("abort", () => (clearTimeout(timer), resolve()), { once: true });
96
+ });
97
+ }
98
+ var SLICE_BYTES = 64 * 1024;
99
+ function bodyStream(body, range) {
100
+ if (!(body instanceof Uint8Array))
101
+ return createReadStream(
102
+ body.path,
103
+ range && { start: range.start, end: range.start + range.length - 1 }
104
+ );
105
+ const from = range?.start ?? 0;
106
+ const to = from + (range?.length ?? body.byteLength);
107
+ return Readable.from(
108
+ (function* () {
109
+ for (let at = from; at < to; at += SLICE_BYTES)
110
+ yield body.subarray(at, Math.min(at + SLICE_BYTES, to));
111
+ })()
112
+ );
113
+ }
114
+ function watchStall(req, onSample) {
115
+ let written = -1;
116
+ let movedAt = Date.now();
117
+ const watch = setInterval(
118
+ () => {
119
+ const now = req.socket?.bytesWritten ?? 0;
120
+ onSample(now);
121
+ if (now !== written) [written, movedAt] = [now, Date.now()];
122
+ else if (Date.now() - movedAt >= putTimings.stallMs)
123
+ req.destroy(new Error(`Upload stalled: no data sent for ${putTimings.stallMs / 1e3} s`));
124
+ },
125
+ Math.min(putTimings.sampleMs, putTimings.stallMs / 3)
126
+ );
127
+ return () => clearInterval(watch);
128
+ }
129
+ async function putStreamToPresignedUrl(uploadUrl, headers, body, signal, onSample, range) {
130
+ const size = range?.length ?? (body instanceof Uint8Array ? body.byteLength : body.size);
131
+ const send = new URL(uploadUrl).protocol === "https:" ? httpsRequest : httpRequest;
132
+ const req = send(uploadUrl, {
133
+ method: "PUT",
134
+ signal,
135
+ headers: { ...headers, "content-length": String(size) }
136
+ });
137
+ const response = new Promise((resolve, reject) => {
138
+ req.once("response", resolve).once("error", reject);
139
+ });
140
+ const stopWatching = watchStall(req, onSample);
141
+ const source = bodyStream(body, range);
142
+ const sent = pipeline(source, req);
143
+ let res;
144
+ try {
145
+ res = await response;
146
+ } catch (err) {
147
+ await sent.catch(() => void 0);
148
+ throw err;
149
+ } finally {
150
+ stopWatching();
151
+ }
152
+ await settle(res, sent);
153
+ return String(res.headers.etag ?? "") || void 0;
154
+ }
155
+ async function settle(res, sent) {
156
+ const status = res.statusCode ?? 0;
157
+ const ok = status >= 200 && status < 300;
158
+ await sent.catch((err) => {
159
+ if (ok) throw err;
160
+ });
161
+ let detail = "";
162
+ for await (const chunk of res) detail += String(chunk);
163
+ if (!ok) {
164
+ throw new PutRefusedError(
165
+ status,
166
+ `Direct upload PUT failed: ${status} ${res.statusMessage ?? ""}${detail ? ` \u2014 ${detail.slice(0, 300)}` : ""}`
167
+ );
168
+ }
169
+ }
170
+
171
+ // src/cloud/uploadParts.ts
172
+ import { mkdirSync, readFileSync, rmSync, writeFileSync } from "fs";
173
+ import { dirname } from "path";
174
+ var PARTS_ABOVE_BYTES = 16 * 1024 * 1024;
175
+ var PARTS_IN_FLIGHT = 3;
176
+ function savedUploadFile(sha256, size) {
177
+ return hyperframesConfigDir("uploads", `${sha256.slice(0, 32)}-${size}.json`);
178
+ }
179
+ function readSaved(file) {
180
+ try {
181
+ return JSON.parse(readFileSync(file, "utf8"));
182
+ } catch {
183
+ return void 0;
184
+ }
185
+ }
186
+ function forgetSaved(file) {
187
+ rmSync(file, { force: true });
188
+ }
189
+ function saveUpload(file, saved) {
190
+ try {
191
+ mkdirSync(dirname(file), { recursive: true, mode: 448 });
192
+ writeFileSync(file, JSON.stringify(saved), { mode: 384 });
193
+ } catch {
194
+ }
195
+ }
196
+ async function resumable(client, file) {
197
+ const saved = readSaved(file);
198
+ if (!saved) return void 0;
199
+ try {
200
+ await client.listAssetUploadParts({
201
+ asset_id: saved.asset_id,
202
+ multipart_upload_id: saved.plan.multipart_upload_id
203
+ });
204
+ return saved;
205
+ } catch {
206
+ forgetSaved(file);
207
+ return void 0;
208
+ }
209
+ }
210
+ function partRange(plan, total, number) {
211
+ const start = (number - 1) * plan.part_size_bytes;
212
+ return { start, length: Math.min(plan.part_size_bytes, total - start) };
213
+ }
214
+ async function uploadParts(job) {
215
+ const { client, asset_id, plan, total } = job;
216
+ const id = plan.multipart_upload_id;
217
+ const held = await client.listAssetUploadParts({ asset_id, multipart_upload_id: id });
218
+ const done = /* @__PURE__ */ new Map();
219
+ for (const part of held.parts) {
220
+ const range = partRange(plan, total, part.part_number);
221
+ if (part.size_bytes === range.length) done.set(part.part_number, part.etag);
222
+ }
223
+ const progress = partsProgress(
224
+ job,
225
+ [...done.keys()].reduce((sum, n) => sum + partRange(plan, total, n).length, 0)
226
+ );
227
+ progress.report(1);
228
+ const todo = Array.from({ length: plan.part_count }, (_, i) => i + 1).filter((n) => !done.has(n));
229
+ const failure = {};
230
+ const worker = async () => {
231
+ for (let number = todo.shift(); number !== void 0; number = todo.shift()) {
232
+ if (failure.error) return;
233
+ try {
234
+ done.set(number, await sendPart(job, number, progress));
235
+ progress.finish(number, partRange(plan, total, number).length);
236
+ } catch (err) {
237
+ failure.error ??= err;
238
+ return;
239
+ }
240
+ }
241
+ };
242
+ await Promise.all(Array.from({ length: Math.min(PARTS_IN_FLIGHT, todo.length) }, worker));
243
+ if (failure.error) throw failure.error;
244
+ return [...done.entries()].sort((a, b) => a[0] - b[0]).map(([part_number, etag]) => ({ part_number, etag }));
245
+ }
246
+ function partsProgress(job, finishedBytes) {
247
+ const live = /* @__PURE__ */ new Map();
248
+ let finished = finishedBytes;
249
+ let lastAt = Date.now();
250
+ let lastPercent = -5;
251
+ const report = (attempt) => {
252
+ const sent = Math.min(job.total, finished + [...live.values()].reduce((a, b) => a + b, 0));
253
+ const percent = job.total > 0 ? Math.min(99, Math.floor(100 * sent / job.total)) : 0;
254
+ const now = Date.now();
255
+ if (now - lastAt < putTimings.progressMs && percent < lastPercent + 5) return;
256
+ [lastAt, lastPercent] = [now, percent];
257
+ job.onProgress?.({ phase: "upload", percent, sentBytes: sent, totalBytes: job.total, attempt });
258
+ };
259
+ return {
260
+ report,
261
+ written: (number, bytes, attempt) => (live.set(number, bytes), report(attempt)),
262
+ finish: (number, bytes) => (finished += bytes, live.delete(number), report(1))
263
+ };
264
+ }
265
+ async function sendPart(job, number, progress) {
266
+ const { client, asset_id, plan, body, total, signal } = job;
267
+ const range = partRange(plan, total, number);
268
+ return putWithRetry(
269
+ async (tried) => {
270
+ const minted = await client.getAssetUploadPartUrls({
271
+ asset_id,
272
+ body: { multipart_upload_id: plan.multipart_upload_id, part_numbers: [number] },
273
+ signal
274
+ });
275
+ const url = minted.parts.find((part) => part.part_number === number)?.upload_url;
276
+ if (!url) throw new Error(`The cloud gave no address for part ${number}`);
277
+ progress.written(number, 0, tried.attempt);
278
+ const etag = await putStreamToPresignedUrl(
279
+ url,
280
+ {},
281
+ body,
282
+ signal,
283
+ (written) => {
284
+ tried.sent = written;
285
+ progress.written(number, Math.min(written, range.length), tried.attempt);
286
+ },
287
+ range
288
+ );
289
+ if (!etag) throw new Error(`The cloud gave no ETag for part ${number}`);
290
+ return etag;
291
+ },
292
+ range.length,
293
+ signal
294
+ );
295
+ }
296
+
297
+ // src/cloud/upload.ts
298
+ var CONTENT_TYPE_ZIP = "application/zip";
87
299
  function progressReporter(total, emit) {
88
300
  let lastAt = Date.now();
89
301
  let lastPercent = 0;
@@ -106,15 +318,9 @@ function sha256Hex(bytes) {
106
318
  }
107
319
  async function sha256OfFile(path) {
108
320
  const hash = createHash("sha256");
109
- for await (const chunk of createReadStream(path)) hash.update(chunk);
321
+ for await (const chunk of createReadStream2(path)) hash.update(chunk);
110
322
  return hash.digest("hex");
111
323
  }
112
- function sleep(ms, signal) {
113
- return new Promise((resolve) => {
114
- const timer = setTimeout(resolve, ms);
115
- signal?.addEventListener("abort", () => (clearTimeout(timer), resolve()), { once: true });
116
- });
117
- }
118
324
  function normalizeUploadHeaders(raw) {
119
325
  const out = {};
120
326
  for (const [k, v] of Object.entries(raw ?? {})) {
@@ -131,7 +337,7 @@ async function putBytesToPresignedUrl(fetchImpl, uploadUrl, uploadHeaders, body,
131
337
  ...normalizeUploadHeaders(uploadHeaders)
132
338
  };
133
339
  return putWithRetry(
134
- (tried) => {
340
+ async (tried) => {
135
341
  if (tried.attempt > 1)
136
342
  onProgress?.({
137
343
  phase: "upload",
@@ -140,10 +346,10 @@ async function putBytesToPresignedUrl(fetchImpl, uploadUrl, uploadHeaders, body,
140
346
  totalBytes: total,
141
347
  attempt: tried.attempt
142
348
  });
143
- return fetchImpl && body instanceof Uint8Array ? putBytesOnce(fetchImpl, uploadUrl, headers, body, signal) : putStreamToPresignedUrl(uploadUrl, headers, body, signal, (written) => {
349
+ await (fetchImpl && body instanceof Uint8Array ? putBytesOnce(fetchImpl, uploadUrl, headers, body, signal) : putStreamToPresignedUrl(uploadUrl, headers, body, signal, (written) => {
144
350
  tried.sent = written;
145
351
  report(tried);
146
- });
352
+ }));
147
353
  },
148
354
  total,
149
355
  signal
@@ -164,71 +370,6 @@ async function putBytesOnce(fetchImpl, uploadUrl, headers, body, signal) {
164
370
  );
165
371
  }
166
372
  }
167
- var SLICE_BYTES = 64 * 1024;
168
- function bodyStream(body) {
169
- if (!(body instanceof Uint8Array)) return createReadStream(body.path);
170
- return Readable.from(
171
- (function* () {
172
- for (let at = 0; at < body.byteLength; at += SLICE_BYTES)
173
- yield body.subarray(at, at + SLICE_BYTES);
174
- })()
175
- );
176
- }
177
- function watchStall(req, onSample) {
178
- let written = -1;
179
- let movedAt = Date.now();
180
- const watch = setInterval(
181
- () => {
182
- const now = req.socket?.bytesWritten ?? 0;
183
- onSample(now);
184
- if (now !== written) [written, movedAt] = [now, Date.now()];
185
- else if (Date.now() - movedAt >= putTimings.stallMs)
186
- req.destroy(new Error(`Upload stalled: no data sent for ${putTimings.stallMs / 1e3} s`));
187
- },
188
- Math.min(putTimings.sampleMs, putTimings.stallMs / 3)
189
- );
190
- return () => clearInterval(watch);
191
- }
192
- async function putStreamToPresignedUrl(uploadUrl, headers, body, signal, onSample) {
193
- const size = body instanceof Uint8Array ? body.byteLength : body.size;
194
- const send = new URL(uploadUrl).protocol === "https:" ? httpsRequest : httpRequest;
195
- const req = send(uploadUrl, {
196
- method: "PUT",
197
- signal,
198
- headers: { ...headers, "content-length": String(size) }
199
- });
200
- const response = new Promise((resolve, reject) => {
201
- req.once("response", resolve).once("error", reject);
202
- });
203
- const stopWatching = watchStall(req, onSample);
204
- const source = bodyStream(body);
205
- const sent = pipeline(source, req);
206
- let res;
207
- try {
208
- res = await response;
209
- } catch (err) {
210
- await sent.catch(() => void 0);
211
- throw err;
212
- } finally {
213
- stopWatching();
214
- }
215
- await settle(res, sent);
216
- }
217
- async function settle(res, sent) {
218
- const status = res.statusCode ?? 0;
219
- const ok = status >= 200 && status < 300;
220
- await sent.catch((err) => {
221
- if (ok) throw err;
222
- });
223
- let detail = "";
224
- for await (const chunk of res) detail += String(chunk);
225
- if (!ok) {
226
- throw new PutRefusedError(
227
- status,
228
- `Direct upload PUT failed: ${status} ${res.statusMessage ?? ""}${detail ? ` \u2014 ${detail.slice(0, 300)}` : ""}`
229
- );
230
- }
231
- }
232
373
  var completeWait = {
233
374
  baseMs: 3e4,
234
375
  perMiBMs: 500,
@@ -240,13 +381,13 @@ function completeBudgetMs(sizeBytes) {
240
381
  const scaled = completeWait.baseMs + sizeBytes / (1024 * 1024) * completeWait.perMiBMs;
241
382
  return Math.min(completeWait.maxMs, scaled);
242
383
  }
243
- async function completeWithRetry(client, asset_id, checksum_sha256, sizeBytes) {
384
+ async function completeWithRetry(client, asset_id, checksum_sha256, sizeBytes, signal, inParts = {}) {
244
385
  const budget = completeBudgetMs(sizeBytes);
245
386
  const startedAt = Date.now();
246
387
  let poll = completeWait.firstPollMs;
247
388
  for (; ; ) {
248
389
  try {
249
- return await client.completeAssetUpload({ asset_id, body: { checksum_sha256 } });
390
+ return await client.completeAssetUpload({ asset_id, body: { checksum_sha256, ...inParts } });
250
391
  } catch (err) {
251
392
  if (!(err instanceof HyperframesApiError && err.status === 409)) throw err;
252
393
  const left = startedAt + budget - Date.now();
@@ -256,12 +397,20 @@ async function completeWithRetry(client, asset_id, checksum_sha256, sizeBytes) {
256
397
  { cause: err }
257
398
  );
258
399
  }
259
- await sleep(Math.min(poll, left));
400
+ await sleep(Math.min(poll, left), signal);
401
+ if (signal?.aborted)
402
+ throw new Error("Stopped waiting for the cloud to finish checking the uploaded file.", {
403
+ cause: signal.reason
404
+ });
260
405
  poll = Math.min(poll * 2, completeWait.maxPollMs);
261
406
  }
262
407
  }
263
408
  }
264
409
  var TYPE_REFUSAL = /^(Stored file type|content_type not allowed|Stored file does not have a ZIP)/;
410
+ var STATUSES_NOT_ABOUT_THE_FILE = /* @__PURE__ */ new Set([401, 403, 408, 409, 429]);
411
+ function refusesTheFile(err) {
412
+ return err instanceof HyperframesApiError && err.status >= 400 && err.status < 500 && !STATUSES_NOT_ABOUT_THE_FILE.has(err.status);
413
+ }
265
414
  function nameRefusedFile(err, filename, contentType) {
266
415
  if (!(err instanceof HyperframesApiError) || err.code !== "invalid_parameter") return err;
267
416
  const kind = contentType.split("/")[0];
@@ -269,38 +418,93 @@ function nameRefusedFile(err, filename, contentType) {
269
418
  const lead = TYPE_REFUSAL.test(err.message) ? `The cloud couldn't read this ${noun}'s type: ${filename}. It said:` : `The cloud refused ${filename}:`;
270
419
  return new HyperframesApiError({ ...err, message: `${lead} ${err.message}` });
271
420
  }
272
- async function uploadAssetViaDirectUpload(opts) {
273
- const start = Date.now();
274
- const { filename, idempotencyKey } = opts;
275
- const body = "bytes" in opts ? opts.bytes : { path: opts.path, size: opts.size };
276
- const size_bytes = body instanceof Uint8Array ? body.byteLength : body.size;
277
- const checksum_sha256 = body instanceof Uint8Array ? sha256Hex(body) : await sha256OfFile(body.path);
278
- const fetchImpl = opts.fetchImpl;
279
- opts.onProgress?.({ phase: "initialize" });
280
- const initialize = await opts.client.createAssetUpload({
281
- body: { filename, content_type: opts.contentType, size_bytes, checksum_sha256 },
282
- idempotencyKey
421
+ async function createUpload(client, o) {
422
+ const body = {
423
+ filename: o.filename,
424
+ content_type: o.contentType,
425
+ size_bytes: o.size_bytes,
426
+ checksum_sha256: o.checksum_sha256
427
+ };
428
+ try {
429
+ return await client.createAssetUpload({
430
+ body: o.inParts ? { ...body, multipart: true } : body,
431
+ idempotencyKey: o.idempotencyKey
432
+ });
433
+ } catch (err) {
434
+ const unknownField = err instanceof HyperframesApiError && (err.status === 400 || err.status === 422);
435
+ if (!o.inParts || !unknownField) throw err;
436
+ return await client.createAssetUpload({ body, idempotencyKey: o.idempotencyKey });
437
+ }
438
+ }
439
+ async function sendInParts(opts, body, size_bytes, asset_id, plan, saved) {
440
+ if (saved) saveUpload(saved, { asset_id, plan });
441
+ const parts = await uploadParts({
442
+ client: opts.client,
443
+ asset_id,
444
+ plan,
445
+ body,
446
+ total: size_bytes,
447
+ onProgress: opts.onProgress,
448
+ signal: opts.signal
449
+ });
450
+ return {
451
+ asset_id,
452
+ inParts: { multipart_upload_id: plan.multipart_upload_id, parts },
453
+ forget: saved ? () => forgetSaved(saved) : void 0
454
+ };
455
+ }
456
+ async function sendFile(opts, body, size_bytes, checksum_sha256) {
457
+ const wantParts = size_bytes > PARTS_ABOVE_BYTES;
458
+ const saved = wantParts ? savedUploadFile(checksum_sha256, size_bytes) : void 0;
459
+ const resumed = saved ? await resumable(opts.client, saved) : void 0;
460
+ if (resumed) {
461
+ opts.onProgress?.({ phase: "upload", percent: 0 });
462
+ return sendInParts(opts, body, size_bytes, resumed.asset_id, resumed.plan, saved);
463
+ }
464
+ const created = await createUpload(opts.client, {
465
+ filename: opts.filename,
466
+ contentType: opts.contentType,
467
+ size_bytes,
468
+ checksum_sha256,
469
+ inParts: wantParts,
470
+ idempotencyKey: opts.idempotencyKey
283
471
  });
284
472
  opts.onProgress?.({ phase: "upload", percent: 0 });
473
+ if (created.multipart) {
474
+ return sendInParts(opts, body, size_bytes, created.asset_id, created.multipart, saved);
475
+ }
285
476
  await putBytesToPresignedUrl(
286
- fetchImpl,
287
- initialize.upload_url,
288
- initialize.upload_headers,
477
+ opts.fetchImpl,
478
+ created.upload_url,
479
+ created.upload_headers,
289
480
  body,
290
481
  opts.contentType,
291
482
  opts.signal,
292
483
  opts.onProgress
293
484
  );
485
+ return { asset_id: created.asset_id, inParts: {} };
486
+ }
487
+ async function uploadAssetViaDirectUpload(opts) {
488
+ const start = Date.now();
489
+ const body = "bytes" in opts ? opts.bytes : { path: opts.path, size: opts.size };
490
+ const size_bytes = body instanceof Uint8Array ? body.byteLength : body.size;
491
+ const checksum_sha256 = body instanceof Uint8Array ? sha256Hex(body) : await sha256OfFile(body.path);
492
+ opts.onProgress?.({ phase: "initialize" });
493
+ const sent = await sendFile(opts, body, size_bytes, checksum_sha256);
294
494
  opts.onProgress?.({ phase: "upload", percent: 100 });
295
495
  opts.onProgress?.({ phase: "complete" });
296
496
  const completed = await completeWithRetry(
297
497
  opts.client,
298
- initialize.asset_id,
498
+ sent.asset_id,
299
499
  checksum_sha256,
300
- size_bytes
500
+ size_bytes,
501
+ opts.signal,
502
+ sent.inParts
301
503
  ).catch((err) => {
302
- throw nameRefusedFile(err, filename, opts.contentType);
504
+ if (refusesTheFile(err)) sent.forget?.();
505
+ throw nameRefusedFile(err, opts.filename, opts.contentType);
303
506
  });
507
+ sent.forget?.();
304
508
  return {
305
509
  asset_id: completed.asset_id,
306
510
  url: completed.url,
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-LP7B3JLC.js";
19
19
  import {
20
20
  projectIgnore
21
- } from "./chunk-5WKW4P6P.js";
21
+ } from "./chunk-LLUKDUVS.js";
22
22
  import {
23
23
  CSS_URL_RE,
24
24
  isNonRelativeUrl,
@@ -122,7 +122,7 @@ function writeTeamProject(projectDir, team) {
122
122
  }
123
123
 
124
124
  // src/utils/publishProject.ts
125
- import { basename, dirname, join as join2, posix, relative, resolve as resolve2 } from "path";
125
+ import { basename, dirname, isAbsolute, join as join2, posix, relative, resolve as resolve2 } from "path";
126
126
  import {
127
127
  closeSync,
128
128
  existsSync as existsSync2,
@@ -417,20 +417,30 @@ function includeReferencedProjectFile(ctx, resolvedPath, rawPath, requireOnDisk)
417
417
  throw new Error(`The composition references "${rawPath}", which is not in the project folder.`);
418
418
  }
419
419
  var HARD_REFERENCES = /* @__PURE__ */ new Set(["video[src]", "audio[src]", "img[src]", "video[poster]"]);
420
+ var relativeToProject = (ctx, absPath) => encodeUrlPath(relative(ctx.absProjectDir, absPath).replaceAll("\\", "/"));
421
+ function archiveTargetOf(ctx, absPath, rawPath, options) {
422
+ if (isPathInside(absPath, ctx.absProjectDir)) {
423
+ includeReferencedProjectFile(ctx, absPath, rawPath, options.requireOnDisk);
424
+ return options.filesystemPath ? relativeToProject(ctx, absPath) : null;
425
+ }
426
+ try {
427
+ if (!existsSync2(absPath) || !statSync(absPath).isFile()) return void 0;
428
+ } catch {
429
+ return void 0;
430
+ }
431
+ return encodeUrlPath(addExternalAsset(ctx, absPath));
432
+ }
420
433
  function tryResolveExternal(ctx, rawPath, referrerAbsDir, requireOnDisk = false) {
421
- if (isNonRelativeUrl(rawPath)) return null;
422
- for (const path of decodeUrlPathVariants(rawPath)) {
423
- const absPath = resolve2(referrerAbsDir, path);
424
- if (isPathInside(absPath, ctx.absProjectDir)) {
425
- includeReferencedProjectFile(ctx, absPath, rawPath, requireOnDisk);
426
- return null;
427
- }
428
- try {
429
- if (!existsSync2(absPath) || !statSync(absPath).isFile()) continue;
430
- } catch {
431
- continue;
432
- }
433
- return encodeUrlPath(addExternalAsset(ctx, absPath));
434
+ const filesystemPath = isAbsolute(rawPath) && !rawPath.startsWith("//");
435
+ if (isNonRelativeUrl(rawPath) && !filesystemPath) return null;
436
+ const cut = filesystemPath ? rawPath.search(/[?#]/) : -1;
437
+ const [path, suffix] = cut < 0 ? [rawPath, ""] : [rawPath.slice(0, cut), rawPath.slice(cut)];
438
+ for (const variant of decodeUrlPathVariants(path)) {
439
+ const target = archiveTargetOf(ctx, resolve2(referrerAbsDir, variant), rawPath, {
440
+ requireOnDisk,
441
+ filesystemPath
442
+ });
443
+ if (target !== void 0) return target && target + suffix;
434
444
  }
435
445
  return null;
436
446
  }
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  GSAP_CDN_VERSION,
14
14
  gsapCdnDist
15
- } from "./chunk-SH6P5CMQ.js";
15
+ } from "./chunk-L7ED3RE6.js";
16
16
 
17
17
  // src/server/readBundleFile.ts
18
18
  import { openSync, fstatSync, closeSync, statSync, readFileSync, constants } from "fs";
@@ -58,7 +58,7 @@ import {
58
58
  warnUnknownEnumValues,
59
59
  wrapInlineScriptWithErrorBoundary,
60
60
  wrapScopedCompositionScript
61
- } from "./chunk-7DS3STTY.js";
61
+ } from "./chunk-H2PVMZ2M.js";
62
62
  import {
63
63
  cssVariableName
64
64
  } from "./chunk-VC76R6W2.js";
@@ -69,7 +69,7 @@ import {
69
69
  import {
70
70
  linkedSources,
71
71
  lintHyperframeHtml
72
- } from "./chunk-5WKW4P6P.js";
72
+ } from "./chunk-LLUKDUVS.js";
73
73
  import {
74
74
  readTextFile
75
75
  } from "./chunk-WVRAFHJU.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  sherpaParakeetInstalled,
9
9
  sherpaUnsupportedReason
10
- } from "./chunk-P2DAWEPF.js";
10
+ } from "./chunk-IPW3FPE3.js";
11
11
  import {
12
12
  findParakeet
13
13
  } from "./chunk-JZIEZCQM.js";
@@ -8,7 +8,7 @@ import {
8
8
  round,
9
9
  runFfmpeg,
10
10
  sumOf
11
- } from "./chunk-RFG4XUMQ.js";
11
+ } from "./chunk-US24WEIH.js";
12
12
 
13
13
  // src/measure/drawn.ts
14
14
  import { mkdtempSync, readFileSync, rmSync } from "fs";
@@ -16,12 +16,12 @@ import {
16
16
  parseFirstFrameColour,
17
17
  parseKeyframeTransfers,
18
18
  readsKeyframeTransfers
19
- } from "./chunk-SH6P5CMQ.js";
19
+ } from "./chunk-L7ED3RE6.js";
20
20
  import {
21
21
  findFfBinary
22
22
  } from "./chunk-HYRPH6LL.js";
23
23
 
24
- // ../studio-server/dist/chunk-Y6EZUBYR.js
24
+ // ../studio-server/dist/chunk-IMOR42OE.js
25
25
  import { execFile } from "child_process";
26
26
  import { extname } from "path";
27
27
  var execFileRunner = (command, args, options) => new Promise((resolvePromise) => {
@@ -123,11 +123,22 @@ function bitDepthOf(stream) {
123
123
  function sourceFactsOf(stream, formatBitrate) {
124
124
  if (!stream?.width || !stream.height) return void 0;
125
125
  const bitrate = Number(stream.bit_rate ?? formatBitrate);
126
+ const rate = (raw) => {
127
+ const [numerator, denominator = "1"] = (raw ?? "0").split("/");
128
+ const value = Number(numerator) / Number(denominator);
129
+ return Number.isFinite(value) && value > 0 ? value : 0;
130
+ };
131
+ const nominal = rate(stream.r_frame_rate);
132
+ const average = rate(stream.avg_frame_rate);
126
133
  return {
127
134
  width: stream.width,
128
135
  height: stream.height,
129
136
  bitDepth: bitDepthOf(stream),
130
- bitrate: Number.isFinite(bitrate) ? bitrate : 0
137
+ bitrate: Number.isFinite(bitrate) ? bitrate : 0,
138
+ ...nominal > 0 ? {
139
+ frameRate: nominal,
140
+ variableFrameRate: average > 0 && Math.abs(nominal - average) / Math.max(nominal, average) > 0.1
141
+ } : {}
131
142
  };
132
143
  }
133
144
  var STREAM_SUMMARY_MAX = 12;
@@ -187,7 +198,7 @@ async function probeMediaMetadata(filePath, runner = execFileRunner) {
187
198
  "-v",
188
199
  "error",
189
200
  "-show_entries",
190
- "stream=codec_type,codec_name,profile,pix_fmt,color_space,color_transfer,color_primaries,bits_per_raw_sample,width,height,bit_rate:stream_disposition:stream_tags=alpha_mode:format=duration,bit_rate",
201
+ "stream=codec_type,codec_name,profile,pix_fmt,color_space,color_transfer,color_primaries,bits_per_raw_sample,width,height,bit_rate,r_frame_rate,avg_frame_rate:stream_disposition:stream_tags=alpha_mode:format=duration,bit_rate",
191
202
  "-of",
192
203
  "json",
193
204
  "--",
@@ -10,7 +10,7 @@ import {
10
10
  isDevice,
11
11
  isQuality,
12
12
  render
13
- } from "./chunk-RPSR5YSD.js";
13
+ } from "./chunk-KES2XW4I.js";
14
14
 
15
15
  // src/api/removeBackground.ts
16
16
  import { resolve } from "path";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  shouldTrack
9
- } from "./chunk-7DGAJ7RY.js";
9
+ } from "./chunk-B2XUJ5Q5.js";
10
10
 
11
11
  // src/telemetry/renderObservability.ts
12
12
  function renderObservabilityTelemetryPayload(observability) {
@@ -11,7 +11,7 @@ import {
11
11
  round,
12
12
  runFfmpeg,
13
13
  videoClip
14
- } from "./chunk-RFG4XUMQ.js";
14
+ } from "./chunk-US24WEIH.js";
15
15
 
16
16
  // src/measure/sync.ts
17
17
  var RATE = 16e3;