hyperframes 0.9.30 → 0.9.32

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 (278) hide show
  1. package/dist/{add-JBBBMWP4.js → add-HYI4YJC5.js} +16 -16
  2. package/dist/{agentPromptGenerator-NJL6ZJQA.js → agentPromptGenerator-JAQNBEUZ.js} +35 -18
  3. package/dist/{animatedGifPrep-AVZAMI2D.js → animatedGifPrep-DVYRCZVR.js} +10 -10
  4. package/dist/api.js +40 -36
  5. package/dist/{appHistory-DLDRURHW.js → appHistory-WZIHFCPK.js} +3 -3
  6. package/dist/{asset-VFG5LF4B.js → asset-7FG3M3FQ.js} +2 -2
  7. package/dist/{assetCataloger-WGNEAI5A.js → assetCataloger-QDQZYHUC.js} +12 -12
  8. package/dist/{audio-URYC7ND7.js → audio-R6ZG62DU.js} +20 -19
  9. package/dist/{auth-E4ZBU47K.js → auth-IPDYZXOG.js} +2 -2
  10. package/dist/{autoUpdate-CEYR6IHF.js → autoUpdate-GAEDDZRN.js} +2 -2
  11. package/dist/{avatars-ZPRQ3ZCD.js → avatars-A45VFUZ4.js} +14 -14
  12. package/dist/{backgroundChecks-BL4XMMXE.js → backgroundChecks-US74BS6V.js} +3 -3
  13. package/dist/backgroundChecksWorker.js +4 -4
  14. package/dist/{batchRender-FK7U2GUF.js → batchRender-VBSYVQA7.js} +5 -5
  15. package/dist/{beats-XK4QL74K.js → beats-UPJ3KANG.js} +12 -12
  16. package/dist/{benchmark-MABRDF7U.js → benchmark-2RWYJGL2.js} +10 -10
  17. package/dist/{billing-2CABBLDC.js → billing-MD66MJTA.js} +15 -15
  18. package/dist/{browser-SHU4XK5O.js → browser-JXCS62NX.js} +7 -7
  19. package/dist/{bundleWithLocalizedFonts-W7SSOXOO.js → bundleWithLocalizedFonts-RAD7BNJF.js} +1 -1
  20. package/dist/{capture-CFESIHJR.js → capture-DJ4WRP62.js} +52 -28
  21. package/dist/{capture-VPWHIN5C.js → capture-M6DT5WZT.js} +4 -4
  22. package/dist/{captureCompositionFrame-MT3CHQJ6.js → captureCompositionFrame-IRXG7ZFU.js} +17 -16
  23. package/dist/{captureFile-O7JMINHC.js → captureFile-Y2ZMB7HK.js} +3 -3
  24. package/dist/{catalog-BBPONQOO.js → catalog-GW45OWKU.js} +16 -16
  25. package/dist/{catch-up-DEZVG3A5.js → catch-up-YKJQ4IYC.js} +10 -10
  26. package/dist/{check-LIC6DYFD.js → check-7QTKMPGA.js} +49 -48
  27. package/dist/{checkAudio-RHF5CWWX.js → checkAudio-7WHUYGUZ.js} +14 -14
  28. package/dist/{checkBrowser-LUHIFDJZ.js → checkBrowser-USAOWTAF.js} +42 -41
  29. package/dist/chunk-262ADJJN.js +193 -0
  30. package/dist/{chunk-2YZ6GA4E.js → chunk-2NMBD5AH.js} +1 -1
  31. package/dist/{chunk-BUYUJ3EV.js → chunk-2T7EDEKE.js} +7 -7
  32. package/dist/{chunk-NTNS5EFN.js → chunk-2W4VQ3YZ.js} +2 -2
  33. package/dist/{chunk-YNRQTFYH.js → chunk-2Z42EUHG.js} +2 -2
  34. package/dist/{chunk-RYT22J4V.js → chunk-3367VNGK.js} +2 -2
  35. package/dist/{chunk-UPVM6UDG.js → chunk-34S7GYVK.js} +9 -4
  36. package/dist/{chunk-QBRBXVCE.js → chunk-3HT3UGF2.js} +1 -1
  37. package/dist/{chunk-AOPNJEQC.js → chunk-3PHCFSPD.js} +2 -2
  38. package/dist/{chunk-NFUXYBOR.js → chunk-3R2X2VKB.js} +2 -2
  39. package/dist/{chunk-RCYKUNVZ.js → chunk-4CSZZXL6.js} +3 -3
  40. package/dist/{chunk-JLUOG6S2.js → chunk-4FTJE22M.js} +2 -2
  41. package/dist/{chunk-Q7FX7HOX.js → chunk-5FFYMVRD.js} +2 -2
  42. package/dist/{chunk-TNZ2EF2Y.js → chunk-5GXMZIQZ.js} +8 -8
  43. package/dist/{chunk-VMLPDIR6.js → chunk-5VN7ZXJR.js} +3 -3
  44. package/dist/{chunk-VEIGTKYZ.js → chunk-64F653HO.js} +36 -9
  45. package/dist/{chunk-VPQXRTEW.js → chunk-6BI6URO2.js} +8 -7
  46. package/dist/{chunk-WJPEMXI3.js → chunk-6MTSP2XE.js} +8 -8
  47. package/dist/{chunk-5RLMHG3E.js → chunk-6NNLDCX4.js} +1 -1
  48. package/dist/{chunk-3OA75WJW.js → chunk-6RFCS4IU.js} +9 -4
  49. package/dist/{chunk-76MHB2H6.js → chunk-6SNGKC6B.js} +1 -1
  50. package/dist/{chunk-SWOAB4GM.js → chunk-77UB5EHM.js} +1 -1
  51. package/dist/{chunk-J4Z7LQKU.js → chunk-ADP2GIBS.js} +2 -2
  52. package/dist/{chunk-CWN75OWQ.js → chunk-AOQRVS63.js} +13 -3
  53. package/dist/{chunk-6FHIR4KD.js → chunk-AWT5FHTN.js} +1 -1
  54. package/dist/{chunk-GQNV4DG6.js → chunk-AZ2QJETV.js} +1 -1
  55. package/dist/{chunk-AGHSWES2.js → chunk-BA3EQ2KL.js} +3 -3
  56. package/dist/{chunk-J3OVTOVC.js → chunk-CHJGVW5W.js} +15 -2
  57. package/dist/{chunk-TCQKCUDA.js → chunk-CKJDY6EK.js} +1 -1
  58. package/dist/{chunk-SPPSVPY7.js → chunk-CMYUPVMI.js} +2 -2
  59. package/dist/{chunk-S3S3IHCR.js → chunk-D6BV6TTI.js} +1 -1
  60. package/dist/{chunk-7DMIAJD7.js → chunk-D7NNNL2K.js} +13 -13
  61. package/dist/{chunk-FNC3JNO7.js → chunk-E5S4QMX7.js} +2 -2
  62. package/dist/{chunk-RZK5ZGVX.js → chunk-EBG5RCPM.js} +4 -4
  63. package/dist/{chunk-7GJKUOPX.js → chunk-EJPWGGPK.js} +68 -26
  64. package/dist/{chunk-G3WGKT3B.js → chunk-EXW2LV4K.js} +141 -71
  65. package/dist/{chunk-F2GWIWHN.js → chunk-G2XAFJ2B.js} +2 -2
  66. package/dist/{chunk-OSDNRYQJ.js → chunk-G6JLFSII.js} +9 -73
  67. package/dist/{chunk-FJQGA6H6.js → chunk-G7NKYELQ.js} +23 -15
  68. package/dist/{chunk-FRBQ3FIM.js → chunk-GBIASKIH.js} +1 -1
  69. package/dist/{chunk-XVDXYUQJ.js → chunk-GCJRV7LU.js} +28 -8
  70. package/dist/{chunk-UTU3HSJS.js → chunk-GJUL3PRV.js} +4 -4
  71. package/dist/{chunk-BIQJKM2O.js → chunk-GOMTMQRT.js} +1 -1
  72. package/dist/{chunk-VHOETOGT.js → chunk-GTHRXU37.js} +15 -15
  73. package/dist/{chunk-AMZ22QP7.js → chunk-GWSCUFGL.js} +2 -2
  74. package/dist/{chunk-5QGDLMU3.js → chunk-H4C3P2KV.js} +3 -3
  75. package/dist/{chunk-V4Z37HFN.js → chunk-H7AJLEBR.js} +26 -23
  76. package/dist/{chunk-B23DUMZ4.js → chunk-HDCVU64B.js} +1 -1
  77. package/dist/{chunk-LMCFILEY.js → chunk-HWMNSWEA.js} +6 -6
  78. package/dist/{chunk-NZUUKNNZ.js → chunk-HXQDDCGY.js} +1 -1
  79. package/dist/{chunk-OFQWTKPW.js → chunk-HZTRKUKE.js} +8 -2
  80. package/dist/{chunk-AW2M5TZW.js → chunk-I3QXWJ7V.js} +7 -7
  81. package/dist/{chunk-IEXRKKHC.js → chunk-IEEIPTDW.js} +1 -1
  82. package/dist/{chunk-MSL2BS73.js → chunk-JHX76QFC.js} +1 -1
  83. package/dist/{chunk-MVJ7AX6W.js → chunk-JMV63CNH.js} +14 -11
  84. package/dist/{chunk-V4ZFL2E2.js → chunk-K72X2YXR.js} +3 -3
  85. package/dist/{chunk-F4Z2UPAA.js → chunk-KAG5KXNO.js} +2 -2
  86. package/dist/{chunk-IYYZMZD2.js → chunk-KFXHBP2E.js} +2 -2
  87. package/dist/{chunk-YAKPBJOU.js → chunk-KG3TONXU.js} +6 -6
  88. package/dist/{chunk-HYRPH6LL.js → chunk-KRWPTZBY.js} +2 -5
  89. package/dist/{chunk-2II5FCVK.js → chunk-KXOKZJBZ.js} +10 -10
  90. package/dist/{chunk-ZGQZTSP2.js → chunk-L72MPEM2.js} +1 -1
  91. package/dist/{chunk-BJYCLZBQ.js → chunk-LBQQNNRC.js} +1 -1
  92. package/dist/{chunk-SP5GQGP2.js → chunk-LHFBKUVY.js} +2 -2
  93. package/dist/{chunk-5IAFM6M5.js → chunk-LJMTEZOP.js} +10 -10
  94. package/dist/{chunk-NLKHXPTZ.js → chunk-LXIEKLAC.js} +5 -5
  95. package/dist/{chunk-PVRJKEU5.js → chunk-M6FNCANA.js} +1 -1
  96. package/dist/{chunk-WGVWW6O4.js → chunk-M6LAGO6O.js} +2 -2
  97. package/dist/{chunk-EPOBJVVG.js → chunk-MYFAVVA6.js} +22 -22
  98. package/dist/{chunk-XEPGN46Q.js → chunk-N6Y645MX.js} +1 -1
  99. package/dist/{chunk-IOPIOX5K.js → chunk-N7C7U3ZR.js} +7 -4
  100. package/dist/{chunk-EBU7T3WZ.js → chunk-NNOAOQLT.js} +2 -2
  101. package/dist/{chunk-6LCIO2YY.js → chunk-NXSKZE3C.js} +2 -2
  102. package/dist/{chunk-DYKBB5HB.js → chunk-P5E3RHW3.js} +2 -2
  103. package/dist/{chunk-IX3K55NA.js → chunk-P7TCIUP2.js} +4 -4
  104. package/dist/{chunk-YJYEKNJG.js → chunk-PVSRPNIV.js} +1 -1
  105. package/dist/{chunk-5SDUQLZ3.js → chunk-PXDRW3QN.js} +1 -1
  106. package/dist/{chunk-MKZ34726.js → chunk-PXY3JZP2.js} +2 -2
  107. package/dist/{chunk-HCC7XLD7.js → chunk-RCRUWNQ4.js} +3 -3
  108. package/dist/{chunk-GGDJLN5I.js → chunk-REJ4NIBY.js} +1 -1
  109. package/dist/{chunk-PGZSYDLZ.js → chunk-SFPIVVUE.js} +2 -2
  110. package/dist/{chunk-LDTJCZZ2.js → chunk-SIRYW7SY.js} +2 -2
  111. package/dist/{chunk-SHOE3UR6.js → chunk-SVI2CJ6R.js} +1 -1
  112. package/dist/{chunk-JVAD6LD7.js → chunk-SXOIG6VG.js} +540 -390
  113. package/dist/chunk-TFBPCJPG.js +26 -0
  114. package/dist/{chunk-74PW4UVC.js → chunk-TLUDJLBN.js} +1 -1
  115. package/dist/{chunk-P74B5H73.js → chunk-TTSLKH63.js} +3 -3
  116. package/dist/chunk-TVQNABOI.js +82 -0
  117. package/dist/{chunk-CK3DD2MC.js → chunk-TZH6HNZH.js} +2 -2
  118. package/dist/{chunk-3F2DTPBD.js → chunk-UC4X6I35.js} +6 -0
  119. package/dist/{chunk-3JFV42QB.js → chunk-UWMOMAYI.js} +35 -7
  120. package/dist/{chunk-DJVSNDF3.js → chunk-VB3JZKMN.js} +104 -14
  121. package/dist/{chunk-JHOPRAJN.js → chunk-VK3MQSA2.js} +11 -5
  122. package/dist/{chunk-YZH2IWEE.js → chunk-W3HNLDK6.js} +2 -2
  123. package/dist/{chunk-KMGF6GJU.js → chunk-WLNQAJQC.js} +2 -2
  124. package/dist/{chunk-LRDS7MG5.js → chunk-WTO4DHBH.js} +1 -1
  125. package/dist/{chunk-ALVXFXUG.js → chunk-WXOOAAT4.js} +27 -4
  126. package/dist/{chunk-J7PDBGQM.js → chunk-X6DWLN55.js} +3 -3
  127. package/dist/{chunk-NBF7SU6Q.js → chunk-XB7HE2R5.js} +3 -3
  128. package/dist/{chunk-2QUQKYOK.js → chunk-XDRSEU2I.js} +63 -33
  129. package/dist/{chunk-XKSHWUIF.js → chunk-XH6LGDIB.js} +4 -4
  130. package/dist/{chunk-HKWKMXAC.js → chunk-XPT4GC6X.js} +6 -6
  131. package/dist/{chunk-2NK3K7JL.js → chunk-Y3YHDU7T.js} +1 -1
  132. package/dist/{chunk-SWC3QIEH.js → chunk-YAS347ZS.js} +1 -1
  133. package/dist/chunk-YAZQBB2S.js +5049 -0
  134. package/dist/{chunk-4TCEF2I7.js → chunk-YCTWMO3G.js} +1 -1
  135. package/dist/{chunk-NHJ5YUBZ.js → chunk-YIE5FU73.js} +3 -3
  136. package/dist/{chunk-HLRYLZFX.js → chunk-YMIEJZB6.js} +3 -3
  137. package/dist/{chunk-WCSEEQ5R.js → chunk-Z6X64P6C.js} +3 -3
  138. package/dist/{chunk-54FVSPRH.js → chunk-ZIYXPDKY.js} +2 -2
  139. package/dist/{clean-AGQEPUBC.js → clean-MJBET4EN.js} +26 -26
  140. package/dist/cli.js +64 -64
  141. package/dist/{cloud-H5HJH6SD.js → cloud-WEDQYHZE.js} +4 -4
  142. package/dist/{cloud-TDXVUIUM.js → cloud-Z4Q76MLS.js} +3 -3
  143. package/dist/{cloudrun-7BR5FKOC.js → cloudrun-2KGSRAKA.js} +7 -7
  144. package/dist/{compare-YWZ6O2FL.js → compare-MJKWQOD7.js} +41 -40
  145. package/dist/{compiler-ZSIKBZBR.js → compiler-ETXRTUQC.js} +6 -6
  146. package/dist/{component-MX2PJOTA.js → component-PZGKEJ6L.js} +3 -3
  147. package/dist/{compositions-PLT4OLGR.js → compositions-N3FEEWH7.js} +14 -14
  148. package/dist/{contactSheet-PZXG3REG.js → contactSheet-HZMP42FZ.js} +4 -4
  149. package/dist/{curve-BJYCZUEY.js → curve-MWABBM7Q.js} +14 -14
  150. package/dist/{cuts-TWAVF7WI.js → cuts-BQFSSNY7.js} +15 -15
  151. package/dist/{delete-3KCBCPBD.js → delete-HPHGJABK.js} +5 -5
  152. package/dist/deploy-JY2QOB5F.js +213 -0
  153. package/dist/{describeProject-HZLM3B55.js → describeProject-S6AGYZWL.js} +11 -11
  154. package/dist/{destroy-4DOMPOYB.js → destroy-AZK7J4IR.js} +19 -15
  155. package/dist/{deterministicFonts-SKRN3TCP.js → deterministicFonts-2ZPRAI3C.js} +4 -4
  156. package/dist/{diff-XC6IU3IY.js → diff-XDNFCAU4.js} +36 -36
  157. package/dist/{dist-EFXKPJJT.js → dist-6EE3Y4M7.js} +3 -3
  158. package/dist/{dist-M5WQQ6WE.js → dist-EYEYDD4F.js} +20 -18
  159. package/dist/{dist-QRXJMFI7.js → dist-TYGDYK56.js} +4 -4
  160. package/dist/docs/rendering.md +2 -0
  161. package/dist/{doctor-VRUSZ6GH.js → doctor-6IRSMKZD.js} +16 -16
  162. package/dist/{energy-VNAAJYAW.js → energy-VCJ2FJEF.js} +15 -15
  163. package/dist/{events-MR72RS47.js → events-DNTIMCUM.js} +17 -17
  164. package/dist/{events-WZJTLFCQ.js → events-M6A7BT3V.js} +7 -7
  165. package/dist/{events-6WYNARX7.js → events-QQYBD7JM.js} +2 -2
  166. package/dist/{extract-MKOCZIFN.js → extract-X3IVXYHX.js} +15 -15
  167. package/dist/{face-NIV5ZSUX.js → face-MZHXKBDB.js} +16 -16
  168. package/dist/{feedback-A4F4G5JO.js → feedback-TAMGYFUO.js} +15 -11
  169. package/dist/{ffmpeg-OAKTUK5S.js → ffmpeg-XWPYYYB6.js} +10 -10
  170. package/dist/{figma-4WZIDYAD.js → figma-WMD7AR2S.js} +3 -3
  171. package/dist/fontLocalizeCli.js +17 -17
  172. package/dist/{frames-DAKLRIWG.js → frames-OU2UOLBU.js} +17 -17
  173. package/dist/{generate-NRPHH4NJ.js → generate-6F6QEFXW.js} +26 -26
  174. package/dist/{get-ISXQCK3G.js → get-VVDO7DXG.js} +5 -5
  175. package/dist/{gpuPolicy-SLVPAQK2.js → gpuPolicy-CVNSHXHJ.js} +10 -10
  176. package/dist/{grade-compare-TVMAAZVC.js → grade-compare-O6LY2U73.js} +40 -39
  177. package/dist/{gsapParser-3H7ON3DO.js → gsapParser-L7TM3RGH.js} +49 -26
  178. package/dist/hangReport.js +1 -1
  179. package/dist/{heifImagePrep-BOIWW7FW.js → heifImagePrep-J6TILZTM.js} +11 -11
  180. package/dist/{help-ZOYDS3YW.js → help-XLSTTDHR.js} +1 -1
  181. package/dist/{history-CLGGMJ7Z.js → history-DBCCWBDG.js} +13 -13
  182. package/dist/hyperframe.manifest.json +1 -1
  183. package/dist/hyperframe.runtime.iife.js +67 -67
  184. package/dist/hyperframes-player.global.js +3 -3
  185. package/dist/{info-ZTFII4N4.js → info-E46BWAQ7.js} +16 -16
  186. package/dist/{init-RCDPQKFA.js → init-23TG5W7S.js} +33 -33
  187. package/dist/{ink-2ATPIDWC.js → ink-6UFSNJRW.js} +15 -15
  188. package/dist/{inspect-GDMUC5F6.js → inspect-RKI6XACH.js} +40 -39
  189. package/dist/{installer-VPGNKCEU.js → installer-JWPK75BR.js} +8 -8
  190. package/dist/{keyframes-EPAX446T.js → keyframes-J65V5A2G.js} +10 -10
  191. package/dist/{lambda-HG6Y6KOH.js → lambda-RZSXXBJU.js} +19 -19
  192. package/dist/{layout-KXBKGHOS.js → layout-RJQUOYWB.js} +40 -39
  193. package/dist/{lint-O62OPAW7.js → lint-4TUHKKA2.js} +12 -12
  194. package/dist/{lintProject-5CBL7VFV.js → lintProject-R6RTBSCZ.js} +3 -3
  195. package/dist/{list-4HWWKMM6.js → list-HOD2N4VS.js} +5 -5
  196. package/dist/{localPage-66UVNGQR.js → localPage-TC4NC3VL.js} +11 -11
  197. package/dist/{login-2H4XMPUT.js → login-NTOS3HKD.js} +4 -4
  198. package/dist/{look-W6PV445D.js → look-GC63E2I7.js} +15 -15
  199. package/dist/{manager-ML4OLLSM.js → manager-FICBET24.js} +11 -11
  200. package/dist/{measure-CWOXQCGH.js → measure-WTQCSQ55.js} +11 -11
  201. package/dist/{media-treatment-SDGXF2PK.js → media-treatment-KTZ6X2P2.js} +16 -16
  202. package/dist/{media-use-NWNX24MD.js → media-use-K75FDXJ3.js} +10 -5
  203. package/dist/{models-J2P2DLSA.js → models-JKOA542M.js} +14 -14
  204. package/dist/{motionShot-VQ2KFPMR.js → motionShot-A3TYKTQU.js} +20 -19
  205. package/dist/{normalize-audio-MABOG5XR.js → normalize-audio-7JUM42YB.js} +12 -12
  206. package/dist/{open-KWTFPDML.js → open-F6GI4TRA.js} +18 -18
  207. package/dist/{parakeetRunner-GP47AAVT.js → parakeetRunner-6XIAKJLS.js} +17 -17
  208. package/dist/{pipeline-5HUQFOCY.js → pipeline-7P7LGGQG.js} +13 -13
  209. package/dist/{play-6MSC2ZCU.js → play-DYOZLKWX.js} +36 -30
  210. package/dist/{preflight-NTJMXUS2.js → preflight-VM4HSRBY.js} +11 -11
  211. package/dist/{present-X5T75QS4.js → present-IINIEZJC.js} +30 -24
  212. package/dist/{preview-7NW7RUET.js → preview-NJO2UXWJ.js} +35 -26
  213. package/dist/{probe-XTZVXTQ2.js → probe-LQQHFX5Q.js} +15 -15
  214. package/dist/{producer-ZZROH3WZ.js → producer-LH2SZHJ2.js} +1 -1
  215. package/dist/{progress-TGYZ2TKQ.js → progress-IY6U35WH.js} +1 -1
  216. package/dist/{projectConfig-UHYPGWD5.js → projectConfig-BLACFLUW.js} +11 -11
  217. package/dist/{publication-5KOANEHK.js → publication-NFF2BXIE.js} +6 -6
  218. package/dist/{publish-3BBHK2NK.js → publish-JST5Y4UR.js} +19 -17
  219. package/dist/{remove-background-W7WMLL5C.js → remove-background-WUBESLWN.js} +14 -14
  220. package/dist/{render-5G6745C3.js → render-4KWUUC5H.js} +81 -44
  221. package/dist/{render-ZGCH2FZJ.js → render-DA4V7CEE.js} +8 -8
  222. package/dist/{render-ZIBXBMNI.js → render-R4VNR4E2.js} +34 -30
  223. package/dist/{render-batch-ONWJJ627.js → render-batch-JMPG4RLT.js} +8 -8
  224. package/dist/renderSetupWorker.js +4 -4
  225. package/dist/{resolver-ZWNLOG6O.js → resolver-PNIFIDIE.js} +8 -8
  226. package/dist/{reverse-5YTLWWDZ.js → reverse-4NI7D2C3.js} +1 -1
  227. package/dist/{run-24USN7TA.js → run-FWBIBLYE.js} +4 -3
  228. package/dist/{screenshotCapture-ZZE3GMOF.js → screenshotCapture-KOLNFU7W.js} +13 -12
  229. package/dist/{sherpa-7ISRANWA.js → sherpa-W3BMN67E.js} +16 -16
  230. package/dist/sherpaWorker.js +1 -1
  231. package/dist/{sites-LILUBMRM.js → sites-QK3F4AUS.js} +1 -1
  232. package/dist/skills/hyperframes-cli/references/preview-render.md +1 -0
  233. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +15 -4
  234. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +42 -6
  235. package/dist/skills/media-use/audio/scripts/lib/python.mjs +17 -2
  236. package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +50 -4
  237. package/dist/skills/media-use/audio/scripts/lib/tts.mjs +11 -1
  238. package/dist/skills/media-use/scripts/lib/svg-sanitize.mjs +2 -1
  239. package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +31 -0
  240. package/dist/{skills-YMSZHKK4.js → skills-KQQVUFGO.js} +10 -10
  241. package/dist/{skillsUpdateCheck-YJYYN5CH.js → skillsUpdateCheck-VY5PS46S.js} +3 -3
  242. package/dist/{snapshot-4MZGXL4A.js → snapshot-VIEJQAUB.js} +82 -56
  243. package/dist/{src-NIMSUB4P.js → src-HHPRCLEW.js} +11 -9
  244. package/dist/{src-CHPZUZZ3.js → src-MQU5F7GJ.js} +15 -15
  245. package/dist/{start-FPEBVENS.js → start-ZBNNVFMU.js} +24 -24
  246. package/dist/{state-W3AS6O2J.js → state-7OIPR4BG.js} +1 -1
  247. package/dist/{staticProjectServer-XZNME57Y.js → staticProjectServer-VPGZWJF4.js} +27 -27
  248. package/dist/{status-7TRDJU47.js → status-RBZJYT7T.js} +17 -17
  249. package/dist/studio/assets/{codec-B1UWDNJp.js → codec-Bz1jsLs8.js} +1 -1
  250. package/dist/studio/assets/{hyperframes-player-DQd2VPm2.js → hyperframes-player-cdH5Sz_t.js} +1 -1
  251. package/dist/studio/assets/{index-gkyTLE7n.js → index-D1l7izdf.js} +176 -176
  252. package/dist/studio/assets/{index-B7CtVv8e.js → index-DFRbcd5J.js} +1 -1
  253. package/dist/studio/assets/{pausedVideoDecoder-Bfv1WSlz.js → pausedVideoDecoder-CgV8YB6S.js} +1 -1
  254. package/dist/studio/index.html +1 -1
  255. package/dist/{studio-api-JKJXAELI.js → studio-api-EPZGLIWW.js} +20 -18
  256. package/dist/{studioServer-UCRCZOLS.js → studioServer-YFQQ2ESJ.js} +72 -62
  257. package/dist/{sync-E72XNR2G.js → sync-FRT55PVW.js} +15 -15
  258. package/dist/{synthesize-MDW4ZWTN.js → synthesize-FR5KPBRP.js} +4 -4
  259. package/dist/{telemetry-L5D3U4IO.js → telemetry-HAPPFR7P.js} +7 -7
  260. package/dist/{templates-O7HEL7HC.js → templates-2IHYIWMA.js} +15 -15
  261. package/dist/{timeline-QTODTYKQ.js → timeline-AY2F7BJF.js} +25 -25
  262. package/dist/{tokens-D7JYFE2K.js → tokens-B3G257V3.js} +2 -2
  263. package/dist/{transcribe-FGVGCTEU.js → transcribe-EGQD32PT.js} +14 -14
  264. package/dist/{transcribe-D2WFL2RO.js → transcribe-RJCILGPA.js} +30 -30
  265. package/dist/{tts-IXX2HHHJ.js → tts-ZE776B4I.js} +1 -1
  266. package/dist/{update-SCMEUTRM.js → update-XTFIGQKW.js} +12 -11
  267. package/dist/{updateCheck-KNTQDXMN.js → updateCheck-M6YC52A4.js} +2 -2
  268. package/dist/{upgrade-V2BP5PAQ.js → upgrade-AKLIZKAO.js} +5 -3
  269. package/dist/{urlDownloader-4RWM3UH2.js → urlDownloader-57A7Q7FC.js} +9 -9
  270. package/dist/{validate-W3E6QVJ6.js → validate-YWSXJL54.js} +32 -31
  271. package/dist/{video-KC4AFMAY.js → video-I5DDNK3Y.js} +12 -12
  272. package/dist/{voices-7N6QU3C6.js → voices-IBMJU73H.js} +24 -24
  273. package/dist/warmCheck.js +50 -49
  274. package/dist/warmCheckClient.js +1 -1
  275. package/package.json +1 -1
  276. package/dist/chunk-2X4PQEYM.js +0 -34
  277. package/dist/chunk-F24B2PLD.js +0 -5049
  278. package/dist/deploy-KWTMJNBL.js +0 -361
@@ -19,7 +19,7 @@ import {
19
19
  splitElementInHtml,
20
20
  unwrapElementsFromHtml,
21
21
  wrapElementsInHtml
22
- } from "./chunk-IX3K55NA.js";
22
+ } from "./chunk-P7TCIUP2.js";
23
23
  import {
24
24
  DEFAULT_TARGET_LUFS,
25
25
  absoluteLoudnessPlan,
@@ -28,7 +28,7 @@ import {
28
28
  requestedProjectPath,
29
29
  requiredFfmpeg,
30
30
  resolveLocalAudioPath
31
- } from "./chunk-LMCFILEY.js";
31
+ } from "./chunk-HWMNSWEA.js";
32
32
  import {
33
33
  MEDIA_LINK_ATTR,
34
34
  relinkSplitHalves
@@ -47,7 +47,7 @@ import {
47
47
  resolveProjectSignature,
48
48
  serveWhileOpen,
49
49
  settledFileTag
50
- } from "./chunk-2QUQKYOK.js";
50
+ } from "./chunk-XDRSEU2I.js";
51
51
  import {
52
52
  PROXY_PARAMS_VERSION,
53
53
  PROXY_PENDING_RETRY_AFTER_SECONDS,
@@ -71,39 +71,42 @@ import {
71
71
  scanProjectMedia,
72
72
  shouldPrewarmProxy,
73
73
  waitForProxy
74
- } from "./chunk-V4Z37HFN.js";
74
+ } from "./chunk-H7AJLEBR.js";
75
75
  import {
76
76
  probeAudioTrack,
77
77
  probeMediaMetadata
78
- } from "./chunk-NFUXYBOR.js";
78
+ } from "./chunk-3R2X2VKB.js";
79
+ import {
80
+ findTimelineScript,
81
+ parseGsapScriptAcorn
82
+ } from "./chunk-BZULWFMJ.js";
79
83
  import {
80
84
  STUDIO_MOTION_PATH,
81
85
  createStudioMotionRenderBodyScript,
82
86
  isInHiddenOrVendorDir,
87
+ isLinkFreeWithinProject,
83
88
  isPrivateProjectFile,
84
89
  isPrivateProjectPath,
90
+ mkdirOwnedWithinProject,
85
91
  pinWithinProject,
92
+ projectRelativePath,
86
93
  realFilePath,
87
94
  resolveWithinProject as resolveWithinProject2,
88
95
  walkDir
89
- } from "./chunk-ALVXFXUG.js";
90
- import {
91
- findTimelineScript,
92
- parseGsapScriptAcorn
93
- } from "./chunk-BZULWFMJ.js";
96
+ } from "./chunk-WXOOAAT4.js";
94
97
  import {
95
98
  openRangeEnd,
96
99
  parseEncoderOptions
97
- } from "./chunk-VEIGTKYZ.js";
98
- import {
99
- STUDIO_MANUAL_EDITS_PATH
100
- } from "./chunk-EVMY7IPL.js";
100
+ } from "./chunk-64F653HO.js";
101
101
  import {
102
102
  SYSTEM_FONT_SIZE_LIMIT,
103
103
  collectFontFileEntries,
104
104
  fontDirectories,
105
105
  locateSystemFont
106
106
  } from "./chunk-ZB2XGJSP.js";
107
+ import {
108
+ STUDIO_MANUAL_EDITS_PATH
109
+ } from "./chunk-EVMY7IPL.js";
107
110
  import {
108
111
  decodableAudioStream
109
112
  } from "./chunk-D3MUHMFG.js";
@@ -112,13 +115,13 @@ import {
112
115
  ensureHfIds,
113
116
  stampHfIdsInPlace,
114
117
  stripSdrPngColourTags
115
- } from "./chunk-NHJ5YUBZ.js";
118
+ } from "./chunk-YIE5FU73.js";
116
119
  import {
117
120
  atomicTempPath,
118
121
  createFileAtomically,
119
122
  createStagingDir,
120
123
  replaceFileAtomically
121
- } from "./chunk-IEXRKKHC.js";
124
+ } from "./chunk-IEEIPTDW.js";
122
125
  import {
123
126
  GSAP_BASE_URL_META,
124
127
  PREVIEW_PROXY_BOX_PARAM,
@@ -136,7 +139,7 @@ import {
136
139
  normalizeGsapLocalRoot,
137
140
  parseFps,
138
141
  parsePreviewProxyBox
139
- } from "./chunk-RYT22J4V.js";
142
+ } from "./chunk-3367VNGK.js";
140
143
  import {
141
144
  AFTER_FONTS_SCRIPT_TYPE,
142
145
  RUNTIME_BOOTSTRAP_ATTR,
@@ -151,7 +154,7 @@ import {
151
154
  resolveRateSpec,
152
155
  sourceTimeAt,
153
156
  stripEmbeddedRuntimeScripts
154
- } from "./chunk-F24B2PLD.js";
157
+ } from "./chunk-YAZQBB2S.js";
155
158
  import {
156
159
  ProjectRootMissingError,
157
160
  folderGone,
@@ -160,7 +163,7 @@ import {
160
163
  mkdirWithinProject,
161
164
  realpath,
162
165
  resolveWithinProject
163
- } from "./chunk-OFQWTKPW.js";
166
+ } from "./chunk-HZTRKUKE.js";
164
167
  import {
165
168
  isWithinProjectRoot,
166
169
  readProjectFile
@@ -168,7 +171,7 @@ import {
168
171
  import {
169
172
  FFPROBE_PATH_ENV,
170
173
  findFfBinary
171
- } from "./chunk-HYRPH6LL.js";
174
+ } from "./chunk-KRWPTZBY.js";
172
175
  import {
173
176
  decodeCssEscapes,
174
177
  decodeWellFormedEscapes,
@@ -187,7 +190,7 @@ import {
187
190
  decodeAuthoredAttribute,
188
191
  scanHtmlOpeningTags,
189
192
  unrollComputedTimeline
190
- } from "./chunk-IOPIOX5K.js";
193
+ } from "./chunk-N7C7U3ZR.js";
191
194
  import {
192
195
  parseHTML
193
196
  } from "./chunk-GWTIFRF5.js";
@@ -309,9 +312,9 @@ function sameOriginPost(headers) {
309
312
  return originMatches(headers.origin, host, proto);
310
313
  }
311
314
 
312
- // ../studio-server/dist/chunk-7ROCGO5U.js
315
+ // ../studio-server/dist/chunk-SWYC6DTD.js
313
316
  import { createHash } from "crypto";
314
- import { closeSync, constants, fstatSync, openSync, readFileSync, writeFileSync } from "fs";
317
+ import { closeSync, constants, fstatSync, openSync, readFileSync } from "fs";
315
318
  import { dirname, join } from "path";
316
319
  var isCompositionSource = (html) => /data-composition-id\s*=/.test(html);
317
320
  var STAMP_RECORD = join(".hyperframes", "hf-ids-stamped.json");
@@ -345,8 +348,8 @@ function readStampRecord(recordPath) {
345
348
  }
346
349
  function writeStampRecord(projectDir, recordPath, next) {
347
350
  try {
348
- mkdirWithinProject(projectDir, dirname(recordPath));
349
- writeFileSync(recordPath, JSON.stringify(next));
351
+ mkdirOwnedWithinProject(projectDir, dirname(recordPath));
352
+ replaceFileAtomically(recordPath, JSON.stringify(next));
350
353
  } catch {
351
354
  }
352
355
  }
@@ -454,7 +457,7 @@ function clearElementScreenshotIsolation() {
454
457
  page.__hfThumbnailFaded = [];
455
458
  }
456
459
 
457
- // ../studio-server/dist/chunk-E3XVPMTD.js
460
+ // ../studio-server/dist/chunk-GTWLICSP.js
458
461
  import { resolve } from "path";
459
462
  function isAutoProxyEnabled(adapter) {
460
463
  return adapter.autoProxy !== false;
@@ -532,7 +535,7 @@ import { dirname as dirname2, relative, resolve as resolve3, sep } from "path";
532
535
  import { spawn } from "child_process";
533
536
  import {
534
537
  existsSync as existsSync3,
535
- writeFileSync as writeFileSync2,
538
+ writeFileSync,
536
539
  mkdirSync,
537
540
  lstatSync,
538
541
  renameSync,
@@ -541,7 +544,7 @@ import {
541
544
  } from "fs";
542
545
  import { dirname as dirname22, join as join3 } from "path";
543
546
  import { spawnSync } from "child_process";
544
- import { mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync22 } from "fs";
547
+ import { mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "fs";
545
548
  import { tmpdir } from "os";
546
549
  import { basename, join as join4 } from "path";
547
550
  import { readdirSync, readFileSync as readFileSync32, unlinkSync, writeFileSync as writeFileSync3 } from "fs";
@@ -714,6 +717,15 @@ function buildArcPath(coords, curviness, autoRotate, isCubic) {
714
717
  }
715
718
  return { arcPath: { enabled: true, autoRotate, segments }, waypoints };
716
719
  }
720
+ function scriptJson(value) {
721
+ return String(JSON.stringify(value)).replace(/<(\/script|!--)/gi, "\\u003c$1");
722
+ }
723
+ var TWEEN_METHODS = /* @__PURE__ */ new Set(["set", "to", "from", "fromTo"]);
724
+ function tweenMethodCode(method) {
725
+ if (!TWEEN_METHODS.has(method))
726
+ throw new TypeError(`Unsupported tween method: ${scriptJson(method)}`);
727
+ return method;
728
+ }
717
729
  function plainPercentKey(percentage) {
718
730
  const text2 = Math.abs(percentage) < 1e-6 ? percentage.toFixed(20).replace(/\.?0+$/, "") : String(percentage);
719
731
  return `${text2}%`;
@@ -752,6 +764,19 @@ function resolveConversionProps(anim, resolvedFromValues) {
752
764
  const toProps = resolvedFromValues ? { ...anim.properties, ...resolvedFromValues } : { ...anim.properties };
753
765
  return { fromProps: { ...anim.fromProperties ?? {} }, toProps };
754
766
  }
767
+ function assertMotionPathNumbers(config) {
768
+ const points = [
769
+ ...config.waypoints,
770
+ ...config.segments.flatMap((s) => [s.cp1, s.cp2].filter((p) => p !== void 0))
771
+ ];
772
+ const values = [
773
+ ...points.flatMap((p) => [p.x, p.y]),
774
+ ...config.segments.map((s) => s.curviness ?? 1)
775
+ ];
776
+ if (values.some((v) => typeof v !== "number")) {
777
+ throw new TypeError("Motion path coordinates and curviness must be numbers");
778
+ }
779
+ }
755
780
  function numericXY(props) {
756
781
  const vx = props.x;
757
782
  const vy = props.y;
@@ -802,6 +827,7 @@ function buildCubicPathEntries(waypoints, segments) {
802
827
  return entries;
803
828
  }
804
829
  function buildMotionPathObjectCode(config) {
830
+ assertMotionPathNumbers(config);
805
831
  const { waypoints, segments, autoRotate } = config;
806
832
  const arSuffix = autoRotateSuffix(autoRotate);
807
833
  const hasExplicitCp = segments.some((s) => s.cp1 && s.cp2);
@@ -2042,16 +2068,16 @@ function queryRoot(root, selector) {
2042
2068
  }
2043
2069
  function valueToCode(value) {
2044
2070
  if (typeof value === "string" && value.startsWith("__raw:")) return value.slice(6);
2045
- if (typeof value === "string") return JSON.stringify(value);
2071
+ if (typeof value === "string") return scriptJson(value);
2046
2072
  if (typeof value === "number") return Number.isNaN(value) ? "0" : String(value);
2047
2073
  if (typeof value === "boolean") return String(value);
2048
- return JSON.stringify(value);
2074
+ return scriptJson(value);
2049
2075
  }
2050
2076
  function safeKey(key) {
2051
- return /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key) ? key : JSON.stringify(key);
2077
+ return /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key) ? key : scriptJson(key);
2052
2078
  }
2053
2079
  function buildTweenStatementCode(timelineVar, anim) {
2054
- const selector = JSON.stringify(anim.targetSelector);
2080
+ const selector = scriptJson(anim.targetSelector);
2055
2081
  const props = { ...anim.properties };
2056
2082
  if (anim.method !== "set" && anim.duration !== void 0) props.duration = anim.duration;
2057
2083
  if (anim.ease) props.ease = anim.ease;
@@ -2077,7 +2103,7 @@ function buildTweenStatementCode(timelineVar, anim) {
2077
2103
  if (anim.method === "set" && anim.global) {
2078
2104
  return `gsap.set(${selector}, ${objCode});`;
2079
2105
  }
2080
- return `${timelineVar}.${anim.method}(${selector}, ${objCode}, ${posCode});`;
2106
+ return `${timelineVar}.${tweenMethodCode(anim.method)}(${selector}, ${objCode}, ${posCode});`;
2081
2107
  }
2082
2108
  function isObjectProperty2(prop) {
2083
2109
  return prop?.type === "ObjectProperty" || prop?.type === "Property";
@@ -2677,7 +2703,7 @@ function convertArrayKeyframesToObject(script, target) {
2677
2703
  if (!timing) return script;
2678
2704
  const entries = els.map((el, i) => {
2679
2705
  const { duration: _duration, ...record } = records[i];
2680
- return `${JSON.stringify(plainPercentKey(timing.percentages[i]))}: ${recordToCode(record)}`;
2706
+ return `${scriptJson(plainPercentKey(timing.percentages[i]))}: ${recordToCode(record)}`;
2681
2707
  });
2682
2708
  const ms = new MagicString(script);
2683
2709
  ms.overwrite(
@@ -2763,10 +2789,10 @@ function insertNewKeyframe(ms, kfNode, percentage, pctKey, valueCode) {
2763
2789
  }
2764
2790
  }
2765
2791
  if (insertBeforeProp) {
2766
- ms.appendLeft(insertBeforeProp.start, `${JSON.stringify(pctKey)}: ${valueCode}, `);
2792
+ ms.appendLeft(insertBeforeProp.start, `${scriptJson(pctKey)}: ${valueCode}, `);
2767
2793
  } else {
2768
2794
  const sep4 = allProps.length > 0 ? ", " : "";
2769
- ms.appendLeft(kfNode.end - 1, `${sep4}${JSON.stringify(pctKey)}: ${valueCode}`);
2795
+ ms.appendLeft(kfNode.end - 1, `${sep4}${scriptJson(pctKey)}: ${valueCode}`);
2770
2796
  }
2771
2797
  }
2772
2798
  function collapseKeyframesToFlat(ms, varsNode, source, remainingRecord) {
@@ -2847,7 +2873,7 @@ function moveKeyframeInScript(script, animationId, fromPercentage, toPercentage)
2847
2873
  const pctProps = new Set(percentagePropsOf(kfNode));
2848
2874
  const kept = (kfNode.properties ?? []).filter((p) => !pctProps.has(p)).map((p) => src.slice(p.start, p.end));
2849
2875
  const body = [
2850
- ...entries.map((e) => `${JSON.stringify(plainPercentKey(e.pct))}: ${recordToCode(e.record)}`),
2876
+ ...entries.map((e) => `${scriptJson(plainPercentKey(e.pct))}: ${recordToCode(e.record)}`),
2851
2877
  ...kept
2852
2878
  ].join(", ");
2853
2879
  const ms = new MagicString(src);
@@ -2868,7 +2894,7 @@ function resizeKeyframedTweenInScript(script, animationId, newPosition, newDurat
2868
2894
  }
2869
2895
  const ms = new MagicString(src);
2870
2896
  for (const { keyNode, to } of edits) {
2871
- ms.overwrite(keyNode.start, keyNode.end, JSON.stringify(plainPercentKey(to)));
2897
+ ms.overwrite(keyNode.start, keyNode.end, scriptJson(plainPercentKey(to)));
2872
2898
  }
2873
2899
  overwritePosition(ms, target.call, newPosition);
2874
2900
  upsertProp(ms, target.call.varsArg, "duration", newDuration);
@@ -2971,7 +2997,7 @@ function buildKeyframeObjectCode(keyframes, easeEach) {
2971
2997
  const props = Object.entries(kf.properties).map(([k, v]) => `${safeKey(k)}: ${valueToCode(v)}`);
2972
2998
  if (kf.ease) props.push(`ease: ${valueToCode(kf.ease)}`);
2973
2999
  if (kf.auto) props.push(`_auto: 1`);
2974
- return `${JSON.stringify(plainPercentKey(kf.percentage))}: { ${props.join(", ")} }`;
3000
+ return `${scriptJson(plainPercentKey(kf.percentage))}: { ${props.join(", ")} }`;
2975
3001
  });
2976
3002
  if (easeEach) entries.push(`easeEach: ${valueToCode(easeEach)}`);
2977
3003
  return `{ ${entries.join(", ")} }`;
@@ -2988,8 +3014,7 @@ function materializeKeyframesFromScript(script, animationId, keyframes, easeEach
2988
3014
  const ms = new MagicString(script);
2989
3015
  if (resolvedSelector) {
2990
3016
  const selectorArg = call.node.arguments[0];
2991
- if (selectorArg)
2992
- ms.overwrite(selectorArg.start, selectorArg.end, JSON.stringify(resolvedSelector));
3017
+ if (selectorArg) ms.overwrite(selectorArg.start, selectorArg.end, scriptJson(resolvedSelector));
2993
3018
  }
2994
3019
  const kfProp = findPropertyNode2(call.varsArg, "keyframes");
2995
3020
  if (kfProp) {
@@ -3029,7 +3054,7 @@ function replaceTweenWithKeyframesInScript(script, animationId, edit) {
3029
3054
  if (edit.ease) parts.push(`ease: ${valueToCode(edit.ease)}`);
3030
3055
  if (animation.hasUnresolvedSelector || animation.targetSelector !== edit.targetSelector) {
3031
3056
  const selectorArg = call.node.arguments[0];
3032
- ms.overwrite(selectorArg.start, selectorArg.end, JSON.stringify(edit.targetSelector));
3057
+ ms.overwrite(selectorArg.start, selectorArg.end, scriptJson(edit.targetSelector));
3033
3058
  }
3034
3059
  convertMethodToTo(ms, animation, call, call.varsArg);
3035
3060
  overwriteVarsArg(ms, call, `{ ${parts.join(", ")} }`);
@@ -3045,7 +3070,7 @@ function addAnimationWithKeyframesToScript(script, targetSelector, position, dur
3045
3070
  const kfObjCode = buildKeyframeObjectCode(sorted, easeEach);
3046
3071
  const varParts = [`keyframes: ${kfObjCode}`, `duration: ${valueToCode(duration)}`];
3047
3072
  if (ease) varParts.push(`ease: ${valueToCode(ease)}`);
3048
- const stmtCode = `${parsed.timelineVar}.to(${JSON.stringify(targetSelector)}, { ${varParts.join(", ")} }, ${valueToCode(position)});`;
3073
+ const stmtCode = `${parsed.timelineVar}.to(${scriptJson(targetSelector)}, { ${varParts.join(", ")} }, ${valueToCode(position)});`;
3049
3074
  const ms = new MagicString(script);
3050
3075
  ms.appendLeft(insertionPoint, "\n" + stmtCode);
3051
3076
  const result = ms.toString();
@@ -3364,14 +3389,14 @@ function updateAnimationSelectorInScript(script, animationId, newSelector) {
3364
3389
  const selectorArg = target.call.node.arguments?.[0];
3365
3390
  if (!selectorArg) return script;
3366
3391
  const ms = new MagicString(script);
3367
- ms.overwrite(selectorArg.start, selectorArg.end, JSON.stringify(newSelector));
3392
+ ms.overwrite(selectorArg.start, selectorArg.end, scriptJson(newSelector));
3368
3393
  return ms.toString();
3369
3394
  }
3370
3395
  function insertInheritedStateSetInScript(script, selector, position, properties) {
3371
3396
  const parsed = parseGsapScriptAcornForWrite(script);
3372
3397
  if (!parsed) return script;
3373
3398
  const props = Object.entries(properties).map(([k, v]) => `${safeKey(k)}: ${valueToCode(v)}`).join(", ");
3374
- const code = `${parsed.timelineVar}.set(${JSON.stringify(selector)}, { ${props} }, ${position});`;
3399
+ const code = `${parsed.timelineVar}.set(${scriptJson(selector)}, { ${props} }, ${position});`;
3375
3400
  const ms = new MagicString(script);
3376
3401
  const tlDecl = findTimelineDeclarationStatement(parsed.ast, parsed.timelineVar);
3377
3402
  const firstLocated = parsed.located[0];
@@ -3666,11 +3691,11 @@ function buildUnrollReplacement(timelineVar, animation, elements) {
3666
3691
  const duration = typeof animation.duration === "number" ? animation.duration : 8;
3667
3692
  const ease = typeof animation.ease === "string" ? animation.ease : "none";
3668
3693
  const pos = animation.position ?? 0;
3669
- const posCode = typeof pos === "number" ? String(pos) : JSON.stringify(pos);
3694
+ const posCode = typeof pos === "number" ? String(pos) : scriptJson(pos);
3670
3695
  const calls = elements.map((el) => {
3671
3696
  const sorted = [...el.keyframes].sort((a, b) => a.percentage - b.percentage);
3672
3697
  const kfCode = buildKeyframeObjectCode(sorted, el.easeEach);
3673
- return `${timelineVar}.to(${JSON.stringify(el.selector)}, { keyframes: ${kfCode}, duration: ${duration}, ease: ${valueToCode(ease)} }, ${posCode});`;
3698
+ return `${timelineVar}.to(${scriptJson(el.selector)}, { keyframes: ${kfCode}, duration: ${duration}, ease: ${valueToCode(ease)} }, ${posCode});`;
3674
3699
  });
3675
3700
  return calls.join("\n ");
3676
3701
  }
@@ -3678,10 +3703,10 @@ function buildUnrollCallForElement(timelineVar, animation, el) {
3678
3703
  const duration = typeof animation.duration === "number" ? animation.duration : 8;
3679
3704
  const ease = typeof animation.ease === "string" ? animation.ease : "none";
3680
3705
  const pos = animation.position ?? 0;
3681
- const posCode = typeof pos === "number" ? String(pos) : JSON.stringify(pos);
3706
+ const posCode = typeof pos === "number" ? String(pos) : scriptJson(pos);
3682
3707
  const sorted = [...el.keyframes].sort((a, b) => a.percentage - b.percentage);
3683
3708
  const kfCode = buildKeyframeObjectCode(sorted, el.easeEach);
3684
- return `${timelineVar}.to(${JSON.stringify(el.selector)}, { keyframes: ${kfCode}, duration: ${duration}, ease: ${valueToCode(ease)} }, ${posCode});`;
3709
+ return `${timelineVar}.to(${scriptJson(el.selector)}, { keyframes: ${kfCode}, duration: ${duration}, ease: ${valueToCode(ease)} }, ${posCode});`;
3685
3710
  }
3686
3711
  var REFUSE_UNROLL = /* @__PURE__ */ Symbol("refuse-unroll");
3687
3712
  function loopBodyRawStatements(loopNode) {
@@ -3814,13 +3839,14 @@ import {
3814
3839
  unlinkSync as unlinkSync4,
3815
3840
  writeFileSync as writeFileSync4
3816
3841
  } from "fs";
3817
- import { join as join11 } from "path";
3842
+ import { dirname as dirname6, join as join11 } from "path";
3818
3843
  import { createHash as createHash5, randomUUID as randomUUID2 } from "crypto";
3844
+ import { isIP } from "net";
3819
3845
  import { existsSync as existsSync7, readFileSync as readFileSync10, statSync as statSync7 } from "fs";
3820
3846
  import { join as join12, resolve as resolve5 } from "path";
3821
3847
  import { execFile } from "child_process";
3822
3848
  import { readFileSync as readFileSync11, rmSync as rmSync5, statSync as statSync8 } from "fs";
3823
- import { basename as basename2, dirname as dirname6, join as join13, relative as relative4, sep as sep3 } from "path";
3849
+ import { basename as basename2, dirname as dirname7, join as join13, relative as relative4, sep as sep3 } from "path";
3824
3850
  import { createHash as createHash6, randomBytes } from "crypto";
3825
3851
  import { existsSync as existsSync8 } from "fs";
3826
3852
  import { existsSync as existsSync9, readFileSync as readFileSync12, statSync as statSync9 } from "fs";
@@ -3829,7 +3855,7 @@ import { spawn as spawn2 } from "child_process";
3829
3855
  import { closeSync as closeSync3, constants as constants2, fstatSync as fstatSync3, openSync as openSync3, readSync } from "fs";
3830
3856
  import { streamSSE as streamSSE2 } from "hono/streaming";
3831
3857
  import { existsSync as existsSync10 } from "fs";
3832
- import { basename as basename3, dirname as dirname7, extname, join as join15, posix } from "path";
3858
+ import { basename as basename3, dirname as dirname8, extname, join as join15, posix } from "path";
3833
3859
  import { existsSync as existsSync11, readFileSync as readFileSync13 } from "fs";
3834
3860
  import { homedir } from "os";
3835
3861
  import { join as join16 } from "path";
@@ -4082,7 +4108,7 @@ function tagRootCompositionFile(bodyHtml, compPath) {
4082
4108
  const tagEnd = bodyHtml.indexOf(">", match.index);
4083
4109
  if (tagEnd === -1) return bodyHtml;
4084
4110
  if (bodyHtml.slice(match.index, tagEnd).includes("data-composition-file")) return bodyHtml;
4085
- return bodyHtml.slice(0, tagEnd) + ` data-composition-file="${compPath}"` + bodyHtml.slice(tagEnd);
4111
+ return bodyHtml.slice(0, tagEnd) + ` data-composition-file="${escapeAttrValue(compPath)}"` + bodyHtml.slice(tagEnd);
4086
4112
  }
4087
4113
  function rootHeadContent(rootHtml) {
4088
4114
  return rootHtml.match(/<head[^>]*>([\s\S]*?)<\/head>/i)?.[1] ?? "";
@@ -4554,7 +4580,7 @@ function writeWaveformCache(cachePath, peaks) {
4554
4580
  const stagingDir = createStagingDir(cacheDir, ".waveform-");
4555
4581
  try {
4556
4582
  const stagingPath = join3(stagingDir, "peaks.json");
4557
- writeFileSync2(stagingPath, JSON.stringify(peaks), { flag: "wx" });
4583
+ writeFileSync(stagingPath, JSON.stringify(peaks), { flag: "wx" });
4558
4584
  renameSync(stagingPath, cachePath);
4559
4585
  } finally {
4560
4586
  try {
@@ -4615,7 +4641,7 @@ function validateUploadedMediaBuffer(fileName, buffer, runner = defaultRunner) {
4615
4641
  const tempDir = mkdtempSync(join4(tmpdir(), "hyperframes-upload-"));
4616
4642
  const tempPath = join4(tempDir, basename(fileName));
4617
4643
  try {
4618
- writeFileSync22(tempPath, buffer);
4644
+ writeFileSync2(tempPath, buffer);
4619
4645
  return validateUploadedMedia(tempPath, runner);
4620
4646
  } finally {
4621
4647
  rmSync2(tempDir, { recursive: true, force: true });
@@ -4637,11 +4663,12 @@ function snapshotBeforeWrite(projectDir, absPath, options = {}) {
4637
4663
  const content = readFileSync32(absPath);
4638
4664
  const relativePath = relative2(projectDir, absPath);
4639
4665
  const backupDir = join5(projectDir, ".hyperframes", "backup");
4666
+ if (!isLinkFreeWithinProject(projectDir, backupDir)) return { backupPath: null };
4640
4667
  mkdirWithinProject(projectDir, backupDir);
4641
4668
  const pathKey2 = Buffer2.from(relativePath, "utf-8").toString("base64url");
4642
4669
  const backupKey = pathKey2.length <= 200 ? pathKey2 : `sha256~${createHash22("sha256").update(relativePath).digest("hex")}`;
4643
4670
  const backupPath = nextBackupPath(backupDir, backupKey);
4644
- writeFileSync3(backupPath, content);
4671
+ writeFileSync3(backupPath, content, { flag: "wx" });
4645
4672
  pruneBackups(backupDir, [pathKey2, backupKey], options.keepPerFile ?? DEFAULT_KEEP_PER_FILE);
4646
4673
  return { backupPath };
4647
4674
  } catch (error) {
@@ -4861,7 +4888,7 @@ function resolveGsapWriter(env) {
4861
4888
  throw new Error(`Invalid ${GSAP_WRITER_MIGRATION.flag}=${configured}; expected recast or acorn`);
4862
4889
  }
4863
4890
  async function loadGsapParser() {
4864
- return import("./gsapParser-3H7ON3DO.js");
4891
+ return import("./gsapParser-L7TM3RGH.js");
4865
4892
  }
4866
4893
  function isDanglingSymlinkInProject(projectDir, lexicalPath) {
4867
4894
  if (!isSafePath(projectDir, dirname3(lexicalPath))) return false;
@@ -5439,6 +5466,7 @@ function updateReferences(projectDir, oldPath, newPath, isDirectory) {
5439
5466
  }
5440
5467
  return updatedCount;
5441
5468
  }
5469
+ var escapeScriptEndTags = (code) => code.replace(/<\/(script)/gi, "<\\/$1");
5442
5470
  function extractGsapScriptBlock(html) {
5443
5471
  const { document: document2 } = parseHTML(ensureHfIds(html));
5444
5472
  const scripts = [
@@ -5454,7 +5482,7 @@ function extractGsapScriptBlock(html) {
5454
5482
  document: document2,
5455
5483
  root: clipQueryRoot(script),
5456
5484
  replaceScript(newText) {
5457
- script.textContent = newText;
5485
+ script.textContent = escapeScriptEndTags(newText);
5458
5486
  return document2.toString();
5459
5487
  }
5460
5488
  };
@@ -5720,7 +5748,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
5720
5748
  let block = extractGsapScriptBlock(html);
5721
5749
  if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
5722
5750
  const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
5723
- const { GSAP_CDN } = await import("./dist-QRXJMFI7.js");
5751
+ const { GSAP_CDN } = await import("./dist-TYGDYK56.js");
5724
5752
  const bootstrap = [
5725
5753
  `<script src="${GSAP_CDN}"></script>`,
5726
5754
  "<script>",
@@ -7762,7 +7790,7 @@ var GSAP_FALLBACK_ATTR = "data-hf-gsap-fallback";
7762
7790
  function gsapCdnFallbackScript(baseUrl) {
7763
7791
  return `<script ${GSAP_FALLBACK_ATTR}>
7764
7792
  (function(){
7765
- var cdnBase=${scriptJson(gsapCdnDist(void 0, baseUrl))};
7793
+ var cdnBase=${scriptJson2(gsapCdnDist(void 0, baseUrl))};
7766
7794
  var loaded={};
7767
7795
  function loadFallback(file){
7768
7796
  if(loaded[file])return loaded[file];
@@ -7812,10 +7840,10 @@ function previewVariablesFromRequest(rawVariables) {
7812
7840
  return { raw: rawVariables, values: parse22.values };
7813
7841
  }
7814
7842
  var PREVIEW_CAPTURE_PARAM = "hf-capture";
7815
- function scriptJson(value) {
7843
+ function scriptJson2(value) {
7816
7844
  return JSON.stringify(value).replace(/</g, "\\u003c").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
7817
7845
  }
7818
- var earlyErrorsScript = (runtimeUrl) => `<script>(function(){var seen=window.${STUDIO_PREVIEW_ERRORS}=[],kinds=window.${STUDIO_PREVIEW_ERROR_KINDS}=[],known={SyntaxError:1,TypeError:1,ReferenceError:1,RangeError:1},runtime=${scriptJson(new URL(runtimeUrl, "http://x").pathname)};
7846
+ var earlyErrorsScript = (runtimeUrl) => `<script>(function(){var seen=window.${STUDIO_PREVIEW_ERRORS}=[],kinds=window.${STUDIO_PREVIEW_ERROR_KINDS}=[],known={SyntaxError:1,TypeError:1,ReferenceError:1,RangeError:1},runtime=${scriptJson2(new URL(runtimeUrl, "http://x").pathname)};
7819
7847
  addEventListener("error",function(e){seen.push(e.message||String(e));
7820
7848
  var name=e.error&&e.error.constructor&&e.error.constructor.name,path="";
7821
7849
  try{var url=e.filename&&new URL(e.filename,window.location.href);if(url&&url.origin===window.location.origin)path=url.pathname}catch(_){}
@@ -8037,13 +8065,16 @@ ${etag}`;
8037
8065
  const vars = previewVariablesFromRequest(c.req.query("variables"));
8038
8066
  if (vars.error !== void 0) return c.json({ error: vars.error }, 400);
8039
8067
  const previewVariables = vars.values;
8040
- const compPath = requestSubPath(c.req.url, "projects/:id/preview/comp");
8041
- const compFile = resolveWithinProject2(project.dir, compPath);
8068
+ const compFile = resolveWithinProject2(
8069
+ project.dir,
8070
+ requestSubPath(c.req.url, "projects/:id/preview/comp")
8071
+ );
8042
8072
  if (compFile) recordPreviewRead(project.dir, compFile);
8043
8073
  recordPreviewRead(project.dir, "index.html");
8044
8074
  if (!compFile || !existsSync5(compFile) || !statSync4(compFile).isFile()) {
8045
8075
  return c.text("not found", 404);
8046
8076
  }
8077
+ const compPath = projectRelativePath(project.dir, compFile);
8047
8078
  const compPathHash = createHash3("sha1").update(compPath).digest("hex");
8048
8079
  const capture = c.req.query(PREVIEW_CAPTURE_PARAM) !== void 0;
8049
8080
  const etag = `"comp:v2:${compPathHash}:${signature}${gsapEtagSalt}${variablesEtagSalt(vars.raw)}${capture ? ":capture" : ""}"`;
@@ -8754,6 +8785,23 @@ function registerImageThumbnailRoutes(api, adapter) {
8754
8785
  }
8755
8786
  });
8756
8787
  }
8788
+ function originForListeningAddress(address, protocol = "http", bindHost) {
8789
+ if (!address || typeof address === "string") return void 0;
8790
+ const bindName = bindHost?.trim() ?? "";
8791
+ if (bindName !== "" && bindName !== "*" && isIP(bindName) === 0) {
8792
+ return `${protocol}://${bindName}:${address.port}`;
8793
+ }
8794
+ const unspecified = address.address === "0.0.0.0" || address.address === "::";
8795
+ const host = unspecified ? "127.0.0.1" : address.address;
8796
+ return `${protocol}://${host.includes(":") ? `[${host}]` : host}:${address.port}`;
8797
+ }
8798
+ var LOOPBACK_HOST_HEADER = /^(?:localhost|127(?:\.\d{1,3}){3}|\[::1\])(?::\d{1,5})?$/i;
8799
+ var IN_PROCESS_ORIGIN = "http://localhost";
8800
+ function thumbnailPreviewOrigin(serverOrigin, hostHeader) {
8801
+ if (serverOrigin) return serverOrigin;
8802
+ if (hostHeader === void 0) return IN_PROCESS_ORIGIN;
8803
+ return LOOPBACK_HOST_HEADER.test(hostHeader) ? `http://${hostHeader}` : null;
8804
+ }
8757
8805
  var THUMBNAIL_CACHE_VERSION = "v5";
8758
8806
  var THUMBNAIL_MAX_OUTPUT_WIDTH = 240;
8759
8807
  var THUMBNAIL_MAX_OUTPUT_HEIGHT = 135;
@@ -8761,6 +8809,7 @@ var THUMBNAIL_CACHE_MAX_BYTES = 512 * 1024 * 1024;
8761
8809
  var THUMBNAIL_CACHE_MAX_AGE_MS = 14 * 24 * 60 * 60 * 1e3;
8762
8810
  var prunedCacheDirs = /* @__PURE__ */ new Set();
8763
8811
  function pruneThumbnailCache(cacheDir, protectedPaths, now = Date.now()) {
8812
+ if (!isLinkFreeWithinProject(dirname6(cacheDir), cacheDir)) return;
8764
8813
  let entries;
8765
8814
  try {
8766
8815
  entries = readdirSync4(cacheDir, { withFileTypes: true });
@@ -8842,7 +8891,8 @@ function registerThumbnailRoutes(api, adapter) {
8842
8891
  if (compPath && !compPath.includes(".")) compPath += ".html";
8843
8892
  const htmlFile = resolveWithinProject2(project.dir, compPath);
8844
8893
  const source = htmlFile ? readFileOnce(htmlFile) : "not-a-file";
8845
- if (source === "not-a-file") return c.json({ error: "not found" }, 404);
8894
+ if (!htmlFile || source === "not-a-file") return c.json({ error: "not found" }, 404);
8895
+ compPath = projectRelativePath(project.dir, htmlFile);
8846
8896
  const inputSignature = await compositionInputSignature(project.dir, compPath, projectSignature);
8847
8897
  const url = new URL(c.req.url, `http://${c.req.header("host") || "localhost"}`);
8848
8898
  const rawSeekTime = url.searchParams.get("t");
@@ -8876,7 +8926,9 @@ function registerThumbnailRoutes(api, adapter) {
8876
8926
  const manualEdits = manifestKey(join11(project.dir, STUDIO_MANUAL_EDITS_PATH));
8877
8927
  const motion = manifestKey(join11(project.dir, STUDIO_MOTION_PATH));
8878
8928
  sourceMtime = Math.max(sourceMtime, manualEdits.mtimeMs, motion.mtimeMs);
8879
- const projectUrl = `http://${c.req.header("host")}/api/projects/${encodeURIComponent(project.id)}`;
8929
+ const origin = thumbnailPreviewOrigin(adapter.serverOrigin?.(), c.req.header("host"));
8930
+ if (!origin) return c.json({ error: "thumbnail needs a loopback Host" }, 400);
8931
+ const projectUrl = `${origin}/api/projects/${encodeURIComponent(project.id)}`;
8880
8932
  const previewPath = compPath === "index.html" ? `${projectUrl}/preview` : `${projectUrl}/preview/comp/${compPath.split("/").map(encodeURIComponent).join("/")}`;
8881
8933
  const previewUrl = `${previewPath}?${PREVIEW_CAPTURE_PARAM}=1`;
8882
8934
  const cacheDir = join11(project.dir, ".thumbnails");
@@ -8930,6 +8982,7 @@ function registerThumbnailRoutes(api, adapter) {
8930
8982
  if (previewCopiesAtStart === null || previewCopiesAtEnd !== previewCopiesAtStart || afterGeneration?.project.dir !== project.dir || !await inputsUnchanged(afterGeneration.signature) || !await inputsUnchanged(await createProjectSignatureAsync(project.dir))) {
8931
8983
  return generated;
8932
8984
  }
8985
+ if (!isLinkFreeWithinProject(project.dir, cacheDir)) return generated;
8933
8986
  mkdirWithinProject(project.dir, cacheDir);
8934
8987
  writeThumbnailAtomically(cachePath, generated);
8935
8988
  return generated;
@@ -9219,14 +9272,14 @@ async function extractThenPublishWhole(extract, mediaPath, mediaTime, imagePath)
9219
9272
  }
9220
9273
  }
9221
9274
  async function extractStill(projectDir, absPath, source, playhead, tools) {
9222
- const fileDir = dirname6(absPath);
9275
+ const fileDir = dirname7(absPath);
9223
9276
  const mediaPath = pinWithinProject(projectDir, relative4(projectDir, join13(fileDir, source.src)));
9224
9277
  if (!mediaPath) return { error: `forbidden media path: ${source.src}`, status: 403 };
9225
9278
  const freezeDir = join13(projectDir, ...FREEZE_DIR);
9226
9279
  const fileName = freezeStillFileName(source.id, playhead, tools.stillToken());
9227
9280
  mkdirWithinProject(projectDir, freezeDir);
9228
9281
  const imagePath = pinWithinProject(projectDir, join13(...FREEZE_DIR, fileName));
9229
- if (!imagePath || dirname6(imagePath) !== freezeDir) {
9282
+ if (!imagePath || dirname7(imagePath) !== freezeDir) {
9230
9283
  return { error: `forbidden freeze path: ${fileName}`, status: 403 };
9231
9284
  }
9232
9285
  const failed = await extractThenPublishWhole(
@@ -9884,8 +9937,8 @@ function registerMediaRoutes(api, adapter, options = {}) {
9884
9937
  return c.json({ error: "forbidden" }, 403);
9885
9938
  }
9886
9939
  }
9887
- mkdirWithinProject(project.dir, dirname7(outputPath));
9888
- if (backgroundOutputPath) mkdirWithinProject(project.dir, dirname7(backgroundOutputPath));
9940
+ mkdirWithinProject(project.dir, dirname8(outputPath));
9941
+ if (backgroundOutputPath) mkdirWithinProject(project.dir, dirname8(backgroundOutputPath));
9889
9942
  const jobId = makeJobId(project.id, mediaJobs);
9890
9943
  const state = adapter.startBackgroundRemoval({
9891
9944
  project,
@@ -10173,6 +10226,20 @@ async function answerRefusedFrameWithPage(c, next) {
10173
10226
  headers
10174
10227
  });
10175
10228
  }
10229
+ var fromAnotherSite = (c) => {
10230
+ const site = c.req.header("sec-fetch-site");
10231
+ return site === "cross-site" || site === "same-site";
10232
+ };
10233
+ async function sandboxPreviewOpenedFromAnotherSite(c, next) {
10234
+ await next();
10235
+ c.header("Vary", "Sec-Fetch-Site", { append: true });
10236
+ if (fromAnotherSite(c)) c.header("Content-Security-Policy", "sandbox allow-scripts");
10237
+ }
10238
+ async function refuseThumbnailForAnotherSite(c, next) {
10239
+ if (fromAnotherSite(c))
10240
+ return c.json({ error: "forbidden: thumbnail requested by another site" }, 403);
10241
+ return next();
10242
+ }
10176
10243
  function urlHost(url) {
10177
10244
  try {
10178
10245
  return new URL(url).host || void 0;
@@ -10189,6 +10256,8 @@ function urlScheme(url) {
10189
10256
  }
10190
10257
  function createStudioApi(adapter, options = {}) {
10191
10258
  const api = new Hono();
10259
+ api.use("/projects/:id/preview/*", sandboxPreviewOpenedFromAnotherSite);
10260
+ api.use("/projects/:id/thumbnail/*", refuseThumbnailForAnotherSite);
10192
10261
  api.use(async function rejectCrossOriginWrites(c, next) {
10193
10262
  if (c.req.method === "GET" || c.req.method === "HEAD" || c.req.method === "OPTIONS") {
10194
10263
  return next();
@@ -10328,7 +10397,7 @@ ${key}`).digest("hex").slice(0, 32)}.html`);
10328
10397
  },
10329
10398
  write(key, html) {
10330
10399
  try {
10331
- mkdirWithinProject(projectDir, dir);
10400
+ mkdirOwnedWithinProject(projectDir, dir);
10332
10401
  const file = fileFor(key);
10333
10402
  replaceFileAtomically(file, html, 420);
10334
10403
  for (const name of readdirSync5(dir)) {
@@ -10425,6 +10494,7 @@ export {
10425
10494
  MAX_UPLOAD_BYTES,
10426
10495
  affectsPreview,
10427
10496
  PREVIEW_BUNDLE_OPTIONS,
10497
+ originForListeningAddress,
10428
10498
  createStudioApi,
10429
10499
  duplicateElementInHtml,
10430
10500
  createPreviewDocumentStore,
@@ -7,11 +7,11 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  createStagingDir,
9
9
  renameWithRetry
10
- } from "./chunk-IEXRKKHC.js";
10
+ } from "./chunk-IEEIPTDW.js";
11
11
  import {
12
12
  mkdirWithinProject,
13
13
  realpath
14
- } from "./chunk-OFQWTKPW.js";
14
+ } from "./chunk-HZTRKUKE.js";
15
15
 
16
16
  // src/registry/publication.ts
17
17
  import { lstatSync, chmodSync, rmSync, writeFileSync } from "fs";