hyperframes 0.9.31 → 0.9.33
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.
- package/dist/{add-53MR45WI.js → add-GDXM36YQ.js} +18 -18
- package/dist/{agentPromptGenerator-NXF7237H.js → agentPromptGenerator-KPNDH2EI.js} +36 -19
- package/dist/{animatedGifPrep-XF6VJW22.js → animatedGifPrep-SAKETEZ2.js} +11 -11
- package/dist/api.js +51 -46
- package/dist/{appHistory-DLDRURHW.js → appHistory-WZIHFCPK.js} +3 -3
- package/dist/{asset-Y3YAVXJ3.js → asset-KOJC72AQ.js} +2 -2
- package/dist/{assetCataloger-DRLH2VFH.js → assetCataloger-Q4ZFUI6G.js} +13 -13
- package/dist/{audio-TRDZQ2NW.js → audio-XZBBXKQC.js} +32 -30
- package/dist/{auth-MN66MWGN.js → auth-X45YSZGE.js} +4 -4
- package/dist/{autoUpdate-KAIIQJBV.js → autoUpdate-77XWQ564.js} +3 -3
- package/dist/{avatars-F2COSI7P.js → avatars-D3D22TI2.js} +20 -19
- package/dist/{backgroundChecks-36UG4V5N.js → backgroundChecks-2L2RWFJ3.js} +4 -4
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-CI6OFGS5.js → batchRender-O7J47H2Z.js} +5 -5
- package/dist/{beats-GBCNB763.js → beats-6RVVU56H.js} +15 -15
- package/dist/{benchmark-AHHMJBDN.js → benchmark-D5JRNAVQ.js} +12 -12
- package/dist/{billing-HME22C5A.js → billing-WT4DGZII.js} +20 -19
- package/dist/{browser-VZTIOZI3.js → browser-2OR737P4.js} +9 -9
- package/dist/{bundleWithLocalizedFonts-XLFSHMET.js → bundleWithLocalizedFonts-VBET4RVR.js} +1 -1
- package/dist/{capture-ZILHWIOF.js → capture-23X2CK56.js} +82 -39
- package/dist/{capture-NU2ZIXJB.js → capture-B34FTO6G.js} +4 -4
- package/dist/{captureCompositionFrame-ZWVKRKLL.js → captureCompositionFrame-TPZKEVKN.js} +19 -19
- package/dist/{captureFile-O7JMINHC.js → captureFile-Y2ZMB7HK.js} +3 -3
- package/dist/{catalog-NVEGPXGE.js → catalog-ACHSYU5Z.js} +18 -18
- package/dist/{catch-up-W7ST5JSZ.js → catch-up-FGANS2BB.js} +12 -12
- package/dist/{check-BZ652RYH.js → check-DXK4L5WP.js} +54 -54
- package/dist/{checkAudio-5NVSRMGL.js → checkAudio-4ISYJED3.js} +20 -20
- package/dist/{checkBrowser-YN454IBU.js → checkBrowser-5ECMULMP.js} +47 -47
- package/dist/{chunk-Q7EIUAYK.js → chunk-23354HMA.js} +3 -3
- package/dist/{chunk-W4OMDRZF.js → chunk-2I4DQZLQ.js} +28 -8
- package/dist/{chunk-O4Z4D4KA.js → chunk-2KYLVWLO.js} +1 -1
- package/dist/{chunk-BJSUKOWW.js → chunk-2LMCARA5.js} +2 -2
- package/dist/{chunk-XB77LMOP.js → chunk-2QTGQGYA.js} +1 -1
- package/dist/{chunk-JULHFF3J.js → chunk-2RBQLV6B.js} +1 -1
- package/dist/{chunk-R5U5PFDJ.js → chunk-2TBW7UOF.js} +5177 -4970
- package/dist/{chunk-RCWPVC4M.js → chunk-3J32XVJ6.js} +2 -2
- package/dist/{chunk-CP4FVXKZ.js → chunk-45ZQI734.js} +2 -2
- package/dist/{chunk-LHBQW4GJ.js → chunk-4CHGNFCS.js} +23 -15
- package/dist/{chunk-RLYYA6IR.js → chunk-4DLYTSWQ.js} +15 -8
- package/dist/{chunk-JLUOG6S2.js → chunk-4FTJE22M.js} +2 -2
- package/dist/{chunk-WAXPM7TK.js → chunk-4RPIEGL3.js} +2 -2
- package/dist/{chunk-ZSELEQI2.js → chunk-4US5QCXR.js} +408 -219
- package/dist/{chunk-CWOUPW5E.js → chunk-4WZU4FYS.js} +4 -4
- package/dist/{chunk-B7H5RCKP.js → chunk-5GYTBKZA.js} +2 -2
- package/dist/{chunk-4HSE3FWO.js → chunk-5RVPI6QL.js} +4 -4
- package/dist/{chunk-VEIGTKYZ.js → chunk-64F653HO.js} +36 -9
- package/dist/{chunk-KAICKZZK.js → chunk-6QEEF5RR.js} +1 -1
- package/dist/{chunk-5Q3TTLGB.js → chunk-6RV2QY4K.js} +31 -31
- package/dist/{chunk-3SZ43GZG.js → chunk-6ZVUTYNB.js} +6 -6
- package/dist/{chunk-C4U6FRZH.js → chunk-76KUCQXD.js} +14 -11
- package/dist/{chunk-SWOAB4GM.js → chunk-77UB5EHM.js} +1 -1
- package/dist/{chunk-GRHBVTBK.js → chunk-7LTXT7ME.js} +11 -9
- package/dist/{chunk-RBECDLMQ.js → chunk-7UUUV4PN.js} +1 -1
- package/dist/{chunk-X3HQA3YE.js → chunk-A4VXOJZO.js} +10 -8
- package/dist/{chunk-OJSOH2LS.js → chunk-ADYMQM7T.js} +2 -2
- package/dist/{chunk-GSXHYLW4.js → chunk-AIC7T7CC.js} +2 -2
- package/dist/{chunk-MQOO5Z4U.js → chunk-B66UZ2YK.js} +9 -9
- package/dist/{chunk-7NDF2MO3.js → chunk-BAWGEGKD.js} +216 -344
- package/dist/{chunk-T7PFJH2B.js → chunk-BBL6STGK.js} +2 -2
- package/dist/{chunk-5AMGFTMU.js → chunk-C2VZ7UPE.js} +18 -18
- package/dist/{chunk-CUORARXJ.js → chunk-CDI3CCAU.js} +7 -7
- package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
- package/dist/{chunk-J3OVTOVC.js → chunk-CHJGVW5W.js} +15 -2
- package/dist/{chunk-OOEZ3FT3.js → chunk-CHM3QYLF.js} +3 -3
- package/dist/{chunk-TCQKCUDA.js → chunk-CKJDY6EK.js} +1 -1
- package/dist/{chunk-DJVSNDF3.js → chunk-CNJLBAKM.js} +133 -22
- package/dist/chunk-DDDSTRHU.js +3890 -0
- package/dist/{chunk-AWL5M7BX.js → chunk-DGC2RIQE.js} +4 -4
- package/dist/{chunk-LP7B3JLC.js → chunk-DMW5SSUN.js} +2 -1
- package/dist/{chunk-WSPGX2SM.js → chunk-DMZER7D5.js} +1 -1
- package/dist/{chunk-3DIYMOES.js → chunk-ERJBWDPM.js} +7 -7
- package/dist/{chunk-56MGA4FM.js → chunk-ETWXZQN5.js} +2 -2
- package/dist/{chunk-MMAPQWUP.js → chunk-EX533ULK.js} +2 -2
- package/dist/{chunk-HM3PIREE.js → chunk-EX7WPDFA.js} +2 -2
- package/dist/{chunk-MX3UCKZR.js → chunk-FRH3CPW5.js} +1 -1
- package/dist/{chunk-F2GWIWHN.js → chunk-G2XAFJ2B.js} +2 -2
- package/dist/{chunk-FKW5FP4C.js → chunk-G55YEL2L.js} +129 -89
- package/dist/{chunk-FRBQ3FIM.js → chunk-GBIASKIH.js} +1 -1
- package/dist/{chunk-44VR2CWT.js → chunk-GHLLC6LJ.js} +2 -2
- package/dist/{chunk-BIQJKM2O.js → chunk-GOMTMQRT.js} +1 -1
- package/dist/{chunk-BCMR6DE4.js → chunk-HEXTAQYG.js} +2 -2
- package/dist/{chunk-URXVZMSI.js → chunk-HMB3IAVP.js} +2 -2
- package/dist/{chunk-22PWPQVX.js → chunk-HPKW6UVW.js} +6 -6
- package/dist/{chunk-OFQWTKPW.js → chunk-HZTRKUKE.js} +8 -2
- package/dist/{chunk-YJVJCNK4.js → chunk-I35B5RWZ.js} +3 -3
- package/dist/{chunk-SCWMPY3F.js → chunk-I3PA54IU.js} +1 -1
- package/dist/{chunk-IEXRKKHC.js → chunk-IEEIPTDW.js} +1 -1
- package/dist/{chunk-CWN75OWQ.js → chunk-IYLGUQFR.js} +19 -7
- package/dist/chunk-JCJJCYCP.js +392 -0
- package/dist/{chunk-P7LZ2WSQ.js → chunk-JSVCF4A6.js} +4 -4
- package/dist/{chunk-WVRAFHJU.js → chunk-K2Z6OXEI.js} +33 -5
- package/dist/{chunk-OBRKDUCE.js → chunk-KIAY63AB.js} +38 -4
- package/dist/{chunk-HYRPH6LL.js → chunk-KRWPTZBY.js} +2 -5
- package/dist/{chunk-6VNDEMSP.js → chunk-L6BFXQ6S.js} +8 -4
- package/dist/chunk-M3BJEZ7E.js +152 -0
- package/dist/{chunk-ZOOY4LEZ.js → chunk-MA35E5OY.js} +3 -3
- package/dist/{chunk-IHWNDG5C.js → chunk-MDBEAWP2.js} +3 -3
- package/dist/{chunk-TEOIEMTR.js → chunk-MDGNQWFN.js} +1 -1
- package/dist/{chunk-3YNJAXA5.js → chunk-MOR3H5FK.js} +1 -1
- package/dist/{chunk-O7ZX5DHD.js → chunk-MP36L7OJ.js} +2 -2
- package/dist/{chunk-5LLDGJGZ.js → chunk-MVIUSNPZ.js} +1 -1
- package/dist/{chunk-IIMW46LC.js → chunk-N2C7WJDG.js} +1 -1
- package/dist/{chunk-XEPGN46Q.js → chunk-N6Y645MX.js} +1 -1
- package/dist/{chunk-IOPIOX5K.js → chunk-N7C7U3ZR.js} +7 -4
- package/dist/{chunk-AQJA7TAQ.js → chunk-NQFIMBXS.js} +2 -2
- package/dist/{chunk-G5DZZEQF.js → chunk-O2T6ZTLN.js} +1 -1
- package/dist/{chunk-RHUYVGFO.js → chunk-O5CNNVRY.js} +7 -7
- package/dist/{chunk-6WHOI52Z.js → chunk-OD7PLYYX.js} +8 -8
- package/dist/{chunk-K7JA32EI.js → chunk-PNP2BO3U.js} +2 -2
- package/dist/{chunk-5SDUQLZ3.js → chunk-PXDRW3QN.js} +1 -1
- package/dist/{chunk-ZLDYDO64.js → chunk-QUUZ2BGC.js} +6 -4
- package/dist/{chunk-SEVZKBMA.js → chunk-QWM3NY2E.js} +4 -4
- package/dist/{chunk-ZQYRP22G.js → chunk-R45WFVRA.js} +1 -1
- package/dist/{chunk-PGGMJW7B.js → chunk-RCB4SGTB.js} +35 -7
- package/dist/{chunk-GGDJLN5I.js → chunk-REJ4NIBY.js} +1 -1
- package/dist/{chunk-5HVQV4H4.js → chunk-RGYOCAHC.js} +2 -2
- package/dist/{chunk-GFDXA5QO.js → chunk-ROXILOZ6.js} +2 -2
- package/dist/{chunk-G5S72X6Q.js → chunk-SIGASWB7.js} +4 -4
- package/dist/{chunk-J5LQW6VB.js → chunk-SOAQ3XXB.js} +2 -2
- package/dist/{chunk-RLQOYHXT.js → chunk-SUXEL7G4.js} +15 -15
- package/dist/{chunk-SHOE3UR6.js → chunk-SVI2CJ6R.js} +1 -1
- package/dist/{chunk-Q77TZ76B.js → chunk-SWPI27QV.js} +8 -8
- package/dist/{chunk-T54RTTFW.js → chunk-T3GSTIBS.js} +3 -3
- package/dist/chunk-TFBPCJPG.js +26 -0
- package/dist/{chunk-XDIHAX2C.js → chunk-U77L3ZQZ.js} +1 -1
- package/dist/{chunk-3F2DTPBD.js → chunk-UC4X6I35.js} +6 -0
- package/dist/{chunk-7XZS4PNM.js → chunk-UE2WSWNA.js} +1 -1
- package/dist/{chunk-JHOPRAJN.js → chunk-VK3MQSA2.js} +11 -5
- package/dist/{chunk-KAHWO4XC.js → chunk-VKZSAAXZ.js} +3 -3
- package/dist/chunk-VQJLTYEK.js +453 -0
- package/dist/{chunk-5YYGPTBP.js → chunk-VZQXHYEI.js} +3 -3
- package/dist/{chunk-OZNJ2QD5.js → chunk-W2FSQBUR.js} +17 -17
- package/dist/{chunk-RVI665CP.js → chunk-W5PW26KE.js} +1 -1
- package/dist/{chunk-KKUBMYCY.js → chunk-WIMVXPYG.js} +12 -12
- package/dist/{chunk-ALVXFXUG.js → chunk-WXOOAAT4.js} +27 -4
- package/dist/{chunk-OB6DVKHE.js → chunk-WYPRTHXQ.js} +2 -2
- package/dist/{chunk-ELWX6CAA.js → chunk-XDDBSGBD.js} +2 -2
- package/dist/{chunk-VPPJIWVG.js → chunk-XDRSEU2I.js} +14 -14
- package/dist/{chunk-3OA75WJW.js → chunk-XFXCI4IP.js} +16 -9
- package/dist/{chunk-RJA64ACI.js → chunk-XQWWFIBR.js} +2 -2
- package/dist/{chunk-FK3KV32T.js → chunk-XSHJ37U3.js} +27 -24
- package/dist/{chunk-Y6RU3H6C.js → chunk-XUDJ5XSQ.js} +6 -6
- package/dist/{chunk-DFSAC4F4.js → chunk-XVVPEWNX.js} +1 -1
- package/dist/chunk-Y5DOT5NQ.js +57 -0
- package/dist/{chunk-SWC3QIEH.js → chunk-YAS347ZS.js} +1 -1
- package/dist/{chunk-L6ZLOJBI.js → chunk-YDG3OXH3.js} +3 -2
- package/dist/{chunk-SQ63BIR2.js → chunk-YNFHZ4RI.js} +3 -3
- package/dist/{chunk-5BIMSULZ.js → chunk-YSHUIQ3I.js} +2 -2
- package/dist/chunk-YTUPQTXA.js +560 -0
- package/dist/{chunk-54FVSPRH.js → chunk-ZIYXPDKY.js} +2 -2
- package/dist/chunk-ZOAANTVI.js +193 -0
- package/dist/{clean-WYXHI2DO.js → clean-3IN64RHM.js} +31 -31
- package/dist/cli.js +71 -69
- package/dist/{cloud-X52P5AIE.js → cloud-LBUZBUP6.js} +4 -4
- package/dist/{cloud-TDXVUIUM.js → cloud-SVYXHFEG.js} +9 -8
- package/dist/{cloudrun-36IR6ZKU.js → cloudrun-PZOF2QGL.js} +8 -8
- package/dist/{compare-R2KXOV2I.js → compare-UOJ3LXQQ.js} +46 -46
- package/dist/{compiler-FRWUFIQC.js → compiler-5ZDHBKBQ.js} +9 -7
- package/dist/{component-TIBQY7KQ.js → component-EVIPLTTJ.js} +3 -3
- package/dist/{compositions-NQPORXIX.js → compositions-R4GG5FBO.js} +17 -17
- package/dist/{contactSheet-PZXG3REG.js → contactSheet-HZMP42FZ.js} +4 -4
- package/dist/contract/LICENSE-Unicode.txt +39 -0
- package/dist/contract/path-policy.json +311 -0
- package/dist/contract/unicode-15.1.0.json +6179 -0
- package/dist/{curve-DTLRPBSB.js → curve-LR3PSRW3.js} +16 -16
- package/dist/{cuts-73HKU767.js → cuts-DHCOBAFT.js} +17 -17
- package/dist/{delete-HIHA436T.js → delete-MMGGU3QP.js} +12 -11
- package/dist/deploy-SKIGUTM2.js +213 -0
- package/dist/{describeProject-4A5UXQ25.js → describeProject-L7HNTBPV.js} +12 -12
- package/dist/{destroy-4DOMPOYB.js → destroy-5HSMMDH7.js} +22 -18
- package/dist/{deterministicFonts-SKRN3TCP.js → deterministicFonts-2ZPRAI3C.js} +4 -4
- package/dist/{diff-JPADFUMV.js → diff-KR7VKPYL.js} +48 -47
- package/dist/{dist-EFXKPJJT.js → dist-3MFNUZSN.js} +4 -4
- package/dist/{dist-KWXQYTRT.js → dist-HK3AZNNL.js} +22 -22
- package/dist/{dist-FKEKIXVL.js → dist-ZGYPFYOH.js} +4 -4
- package/dist/docs/rendering.md +2 -0
- package/dist/{doctor-3OO3CONL.js → doctor-G7VGNSA5.js} +18 -18
- package/dist/{energy-XFPN5YIL.js → energy-H7EEH6WO.js} +17 -17
- package/dist/{events-6ONCYFB5.js → events-5ATZCZTK.js} +4 -4
- package/dist/{events-QWPZT3EQ.js → events-ASG27IXP.js} +19 -19
- package/dist/{events-G2MME5LQ.js → events-YD6N7OPQ.js} +9 -9
- package/dist/execute-OAS454OB.js +109 -0
- package/dist/{extract-3EV72SMY.js → extract-645SENLA.js} +20 -20
- package/dist/{face-JZS6P3AT.js → face-WRT5XH4I.js} +19 -19
- package/dist/{feedback-JVWBHRQG.js → feedback-3LKLR5MV.js} +22 -17
- package/dist/{ffmpeg-XDAITYSU.js → ffmpeg-PXKIZL2X.js} +11 -11
- package/dist/{figma-KPHTDMCQ.js → figma-RIEVJJBW.js} +3 -3
- package/dist/fontLocalizeCli.js +20 -20
- package/dist/{frames-KRVRJTKC.js → frames-OTB3J5W3.js} +19 -19
- package/dist/{generate-X2MYGFZX.js → generate-IUKCZW2D.js} +33 -32
- package/dist/{get-QM24BI7N.js → get-6WVQ7TBV.js} +12 -11
- package/dist/{gpuPolicy-EFJJLHVV.js → gpuPolicy-HXSVAEU4.js} +11 -11
- package/dist/{grade-compare-W5N5LH4X.js → grade-compare-TCAYHDEF.js} +47 -47
- package/dist/{gsapParser-3H7ON3DO.js → gsapParser-L7TM3RGH.js} +49 -26
- package/dist/hangReport.js +1 -1
- package/dist/{heifImagePrep-X5QRRVTV.js → heifImagePrep-GXIMK4HK.js} +12 -12
- package/dist/{help-LWS4YWMO.js → help-RGOL5EJD.js} +2 -1
- package/dist/{history-SG34LBJY.js → history-XKPRGJGS.js} +15 -15
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +42 -42
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-2FC43IYB.js → info-EYBBC42V.js} +19 -19
- package/dist/{init-GKY5OKDV.js → init-F2FWPSMA.js} +36 -36
- package/dist/{ink-7UK6YCUY.js → ink-BWFERAAT.js} +17 -17
- package/dist/{inspect-ZB2NTNQA.js → inspect-74N7L3BW.js} +44 -44
- package/dist/{installer-GALVXWPC.js → installer-LOUR7G4R.js} +8 -8
- package/dist/{keyframes-LSP4FLHT.js → keyframes-WB5PTKFE.js} +15 -13
- package/dist/{lambda-3F32DRYF.js → lambda-JYCNXUKB.js} +20 -20
- package/dist/{layout-XPGS3QTX.js → layout-P52EVR24.js} +44 -44
- package/dist/{lint-Q5SO57RK.js → lint-SL55KAS2.js} +15 -15
- package/dist/{lintProject-5CBL7VFV.js → lintProject-46WU53VC.js} +4 -4
- package/dist/{list-FL5RYSFT.js → list-LN6CQH52.js} +14 -13
- package/dist/{localPage-IOHQETQT.js → localPage-L6OJU3UH.js} +12 -12
- package/dist/{login-D4TCWDDW.js → login-WTOAMDID.js} +8 -7
- package/dist/{logout-7SMEH7JL.js → logout-QGNBUJKS.js} +14 -5
- package/dist/{look-G2BT4E4A.js → look-O6ESLJRP.js} +17 -17
- package/dist/{manager-F6WI43DQ.js → manager-CMEZWENF.js} +12 -12
- package/dist/{measure-VXQQHYMZ.js → measure-NEIXU53P.js} +11 -11
- package/dist/{media-treatment-ZXA3JZSL.js → media-treatment-6CAQG7MU.js} +19 -19
- package/dist/{media-use-63LZFAID.js → media-use-IXJFMKU7.js} +16 -9
- package/dist/{models-MWUVU4CY.js → models-TZALWUEY.js} +15 -15
- package/dist/{motionShot-U4YDT7UV.js → motionShot-OQYK6G6M.js} +24 -24
- package/dist/{normalize-audio-T5QJWU4P.js → normalize-audio-43PJLOBY.js} +15 -15
- package/dist/oauth-SAVP2YM4.js +40 -0
- package/dist/{open-DRLXHOW2.js → open-EOX6QY4M.js} +20 -20
- package/dist/{parakeetRunner-5OHEB3XZ.js → parakeetRunner-STHAXQAF.js} +19 -19
- package/dist/{pipeline-MAIRRYD6.js → pipeline-RRWZHFBQ.js} +14 -14
- package/dist/plan-JWUSMF4W.js +88 -0
- package/dist/{play-33A3EXX3.js → play-TUKTST32.js} +40 -34
- package/dist/{preflight-HSWMKB2Q.js → preflight-L42JKT6F.js} +12 -12
- package/dist/{present-HJIFEIDH.js → present-Z7HRDXPV.js} +34 -28
- package/dist/{preview-J6Z6RKMN.js → preview-HGTIRAV3.js} +31 -31
- package/dist/{probe-RA4VOGYY.js → probe-RXK44FY7.js} +17 -17
- package/dist/{producer-KWP2B4A5.js → producer-KJ2RZDJ3.js} +1 -1
- package/dist/{progress-TGYZ2TKQ.js → progress-IY6U35WH.js} +1 -1
- package/dist/{projectConfig-3YIGHLNE.js → projectConfig-K36NTJXP.js} +11 -11
- package/dist/{publication-QRUY2WJK.js → publication-OZWLT6K6.js} +6 -6
- package/dist/{publish-GV3I3GUL.js → publish-CRUTXNYM.js} +92 -30
- package/dist/{refresh-47T6Z2PK.js → refresh-6ONVQ3WV.js} +4 -3
- package/dist/{remove-background-UUITKXEQ.js → remove-background-R37HZPCG.js} +15 -15
- package/dist/{render-ZITQXHJP.js → render-EZMKBT7V.js} +57 -52
- package/dist/{render-NHVDJRFD.js → render-SU2XTMJL.js} +8 -8
- package/dist/{render-EC67XXR2.js → render-ZHCPCISN.js} +101 -937
- package/dist/{render-batch-RII4F3PD.js → render-batch-YIUOEAAL.js} +8 -8
- package/dist/renderSetupWorker.js +5 -5
- package/dist/{resolver-R3FXDZKS.js → resolver-DLCKRKQR.js} +8 -8
- package/dist/{reverse-2GJ5Y3WM.js → reverse-4FAVXIER.js} +1 -1
- package/dist/{run-24USN7TA.js → run-H4GVEJVS.js} +8 -6
- package/dist/{screenshotCapture-TEQVEBWB.js → screenshotCapture-CQF5FYVI.js} +14 -14
- package/dist/service-XDQOULGD.js +68 -0
- package/dist/share-CUCQALE7.js +274 -0
- package/dist/{sherpa-YIJR47GX.js → sherpa-WZNRQUVC.js} +18 -18
- package/dist/sherpaWorker.js +1 -1
- package/dist/{sites-LILUBMRM.js → sites-QK3F4AUS.js} +1 -1
- package/dist/skills/hyperframes-cli/SKILL.md +3 -3
- package/dist/skills/hyperframes-cli/references/preview-render.md +21 -0
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +15 -4
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +42 -6
- package/dist/skills/media-use/audio/scripts/lib/python.mjs +17 -2
- package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +50 -4
- package/dist/skills/media-use/audio/scripts/lib/tts.mjs +11 -1
- package/dist/skills/media-use/scripts/lib/svg-sanitize.mjs +2 -1
- package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +31 -0
- package/dist/{skills-DM3XC7RQ.js → skills-J52DBZAK.js} +12 -12
- package/dist/{skillsUpdateCheck-ZHVFEOEN.js → skillsUpdateCheck-26DJHBTC.js} +4 -4
- package/dist/{snapshot-72RQQXHW.js → snapshot-ZIRQFDA7.js} +94 -69
- package/dist/{src-SPFGPZZQ.js → src-7BGBN6SS.js} +18 -18
- package/dist/{src-C43KUEBY.js → src-C3XYMTF4.js} +12 -10
- package/dist/{start-FSYSYLI7.js → start-QG2XNMYN.js} +31 -30
- package/dist/{state-W3AS6O2J.js → state-7OIPR4BG.js} +1 -1
- package/dist/{staticProjectServer-RHBRRGPK.js → staticProjectServer-TWMEFK3T.js} +28 -28
- package/dist/{status-TE74GP4Q.js → status-3UPA5WPI.js} +26 -24
- package/dist/studio/assets/{codec-DXM4vA6G.js → codec-qz1-OXLj.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-D_016Ubp.js → hyperframes-player-2eG1zFX5.js} +1 -1
- package/dist/studio/assets/{index-dsfjBidg.css → index-BJTCbv8z.css} +1 -1
- package/dist/studio/assets/{index-Ob53qo6K.js → index-DDmhnfrS.js} +189 -189
- package/dist/studio/assets/{index-Bw4stQMm.js → index-DUveJ_YP.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-vbdgaMqL.js → pausedVideoDecoder-CoHTKUjM.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-JAOHMYPG.js → studio-api-Z42OO4JJ.js} +22 -22
- package/dist/{studioServer-RHCPM4CN.js → studioServer-SMN3RMVL.js} +455 -71
- package/dist/{sync-UZJ7DOUA.js → sync-ONTI2WSI.js} +17 -17
- package/dist/{synthesize-MDW4ZWTN.js → synthesize-FR5KPBRP.js} +4 -4
- package/dist/{telemetry-TFOEA2PM.js → telemetry-RRXALB5D.js} +9 -9
- package/dist/{templates-2AHM5TZ3.js → templates-BHFOSD6F.js} +23 -22
- package/dist/{timeline-ZGV323MP.js → timeline-Z5IHY5TN.js} +28 -28
- package/dist/{tokens-ERUFEWUA.js → tokens-MZVEPARM.js} +2 -2
- package/dist/{transcribe-6HLYS7NV.js → transcribe-5IZS4BGW.js} +37 -36
- package/dist/{transcribe-M5UZ2XFG.js → transcribe-M5N3YZZU.js} +15 -15
- package/dist/{tts-IXX2HHHJ.js → tts-ZE776B4I.js} +1 -1
- package/dist/{update-JDVI2XTM.js → update-EVPWBIKY.js} +14 -13
- package/dist/{updateCheck-GDTYPXKO.js → updateCheck-2UUEF6TC.js} +5 -3
- package/dist/{upgrade-SJKYBA4X.js → upgrade-DK45FD4K.js} +6 -4
- package/dist/{urlDownloader-2QCNXXUG.js → urlDownloader-3MPHIDSA.js} +10 -10
- package/dist/{validate-IUTHTA2N.js → validate-W27TQ367.js} +36 -36
- package/dist/{video-4BJ7WHI2.js → video-TI372QGV.js} +13 -13
- package/dist/{voices-UDSFBPZX.js → voices-FZV4PGT6.js} +30 -29
- package/dist/warmCheck.js +55 -55
- package/dist/warmCheckClient.js +1 -1
- package/package.json +2 -1
- package/dist/chunk-2X4PQEYM.js +0 -34
- package/dist/deploy-EB3FS2BT.js +0 -361
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QWM3NY2E.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_TARGET_LUFS,
|
|
25
25
|
absoluteLoudnessPlan,
|
|
@@ -28,26 +28,11 @@ import {
|
|
|
28
28
|
requestedProjectPath,
|
|
29
29
|
requiredFfmpeg,
|
|
30
30
|
resolveLocalAudioPath
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XUDJ5XSQ.js";
|
|
32
32
|
import {
|
|
33
33
|
MEDIA_LINK_ATTR,
|
|
34
34
|
relinkSplitHalves
|
|
35
35
|
} from "./chunk-DONVZZLV.js";
|
|
36
|
-
import {
|
|
37
|
-
HistoryBusyError,
|
|
38
|
-
MAX_WINDOW_IDLE_MS,
|
|
39
|
-
STUDIO_SIGNATURE_MANIFEST_PATHS,
|
|
40
|
-
UNDO_MODES,
|
|
41
|
-
clearFileWriteReceipt,
|
|
42
|
-
createProjectSignatureAsync,
|
|
43
|
-
createWriteToken,
|
|
44
|
-
fileContentVersion,
|
|
45
|
-
recordFileWriteReceipt,
|
|
46
|
-
resolveProjectAndSignature,
|
|
47
|
-
resolveProjectSignature,
|
|
48
|
-
serveWhileOpen,
|
|
49
|
-
settledFileTag
|
|
50
|
-
} from "./chunk-VPPJIWVG.js";
|
|
51
36
|
import {
|
|
52
37
|
PROXY_PARAMS_VERSION,
|
|
53
38
|
PROXY_PENDING_RETRY_AFTER_SECONDS,
|
|
@@ -71,39 +56,57 @@ import {
|
|
|
71
56
|
scanProjectMedia,
|
|
72
57
|
shouldPrewarmProxy,
|
|
73
58
|
waitForProxy
|
|
74
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-XSHJ37U3.js";
|
|
75
60
|
import {
|
|
76
61
|
probeAudioTrack,
|
|
77
62
|
probeMediaMetadata
|
|
78
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-2LMCARA5.js";
|
|
64
|
+
import {
|
|
65
|
+
HistoryBusyError,
|
|
66
|
+
MAX_WINDOW_IDLE_MS,
|
|
67
|
+
STUDIO_SIGNATURE_MANIFEST_PATHS,
|
|
68
|
+
UNDO_MODES,
|
|
69
|
+
clearFileWriteReceipt,
|
|
70
|
+
createProjectSignatureAsync,
|
|
71
|
+
createWriteToken,
|
|
72
|
+
fileContentVersion,
|
|
73
|
+
recordFileWriteReceipt,
|
|
74
|
+
resolveProjectAndSignature,
|
|
75
|
+
resolveProjectSignature,
|
|
76
|
+
serveWhileOpen,
|
|
77
|
+
settledFileTag
|
|
78
|
+
} from "./chunk-XDRSEU2I.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-
|
|
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-
|
|
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-
|
|
118
|
+
} from "./chunk-KIAY63AB.js";
|
|
116
119
|
import {
|
|
117
120
|
atomicTempPath,
|
|
118
121
|
createFileAtomically,
|
|
119
122
|
createStagingDir,
|
|
120
123
|
replaceFileAtomically
|
|
121
|
-
} from "./chunk-
|
|
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-
|
|
142
|
+
} from "./chunk-EX7WPDFA.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-
|
|
157
|
+
} from "./chunk-XDDBSGBD.js";
|
|
155
158
|
import {
|
|
156
159
|
ProjectRootMissingError,
|
|
157
160
|
folderGone,
|
|
@@ -160,15 +163,15 @@ import {
|
|
|
160
163
|
mkdirWithinProject,
|
|
161
164
|
realpath,
|
|
162
165
|
resolveWithinProject
|
|
163
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-HZTRKUKE.js";
|
|
164
167
|
import {
|
|
165
168
|
isWithinProjectRoot,
|
|
166
169
|
readProjectFile
|
|
167
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-K2Z6OXEI.js";
|
|
168
171
|
import {
|
|
169
172
|
FFPROBE_PATH_ENV,
|
|
170
173
|
findFfBinary
|
|
171
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
315
|
+
// ../studio-server/dist/chunk-SWYC6DTD.js
|
|
313
316
|
import { createHash } from "crypto";
|
|
314
|
-
import { closeSync, constants, fstatSync, openSync, readFileSync
|
|
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
|
-
|
|
349
|
-
|
|
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-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2074
|
+
return scriptJson(value);
|
|
2049
2075
|
}
|
|
2050
2076
|
function safeKey(key) {
|
|
2051
|
-
return /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key) ? 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 =
|
|
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 `${
|
|
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, `${
|
|
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}${
|
|
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) => `${
|
|
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,
|
|
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 `${
|
|
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,
|
|
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(${
|
|
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,
|
|
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(${
|
|
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) :
|
|
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(${
|
|
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) :
|
|
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(${
|
|
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,14 +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";
|
|
3819
3844
|
import { isIP } from "net";
|
|
3820
3845
|
import { existsSync as existsSync7, readFileSync as readFileSync10, statSync as statSync7 } from "fs";
|
|
3821
3846
|
import { join as join12, resolve as resolve5 } from "path";
|
|
3822
3847
|
import { execFile } from "child_process";
|
|
3823
3848
|
import { readFileSync as readFileSync11, rmSync as rmSync5, statSync as statSync8 } from "fs";
|
|
3824
|
-
import { basename as basename2, dirname as
|
|
3849
|
+
import { basename as basename2, dirname as dirname7, join as join13, relative as relative4, sep as sep3 } from "path";
|
|
3825
3850
|
import { createHash as createHash6, randomBytes } from "crypto";
|
|
3826
3851
|
import { existsSync as existsSync8 } from "fs";
|
|
3827
3852
|
import { existsSync as existsSync9, readFileSync as readFileSync12, statSync as statSync9 } from "fs";
|
|
@@ -3830,7 +3855,7 @@ import { spawn as spawn2 } from "child_process";
|
|
|
3830
3855
|
import { closeSync as closeSync3, constants as constants2, fstatSync as fstatSync3, openSync as openSync3, readSync } from "fs";
|
|
3831
3856
|
import { streamSSE as streamSSE2 } from "hono/streaming";
|
|
3832
3857
|
import { existsSync as existsSync10 } from "fs";
|
|
3833
|
-
import { basename as basename3, dirname as
|
|
3858
|
+
import { basename as basename3, dirname as dirname8, extname, join as join15, posix } from "path";
|
|
3834
3859
|
import { existsSync as existsSync11, readFileSync as readFileSync13 } from "fs";
|
|
3835
3860
|
import { homedir } from "os";
|
|
3836
3861
|
import { join as join16 } from "path";
|
|
@@ -4083,7 +4108,7 @@ function tagRootCompositionFile(bodyHtml, compPath) {
|
|
|
4083
4108
|
const tagEnd = bodyHtml.indexOf(">", match.index);
|
|
4084
4109
|
if (tagEnd === -1) return bodyHtml;
|
|
4085
4110
|
if (bodyHtml.slice(match.index, tagEnd).includes("data-composition-file")) return bodyHtml;
|
|
4086
|
-
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);
|
|
4087
4112
|
}
|
|
4088
4113
|
function rootHeadContent(rootHtml) {
|
|
4089
4114
|
return rootHtml.match(/<head[^>]*>([\s\S]*?)<\/head>/i)?.[1] ?? "";
|
|
@@ -4555,7 +4580,7 @@ function writeWaveformCache(cachePath, peaks) {
|
|
|
4555
4580
|
const stagingDir = createStagingDir(cacheDir, ".waveform-");
|
|
4556
4581
|
try {
|
|
4557
4582
|
const stagingPath = join3(stagingDir, "peaks.json");
|
|
4558
|
-
|
|
4583
|
+
writeFileSync(stagingPath, JSON.stringify(peaks), { flag: "wx" });
|
|
4559
4584
|
renameSync(stagingPath, cachePath);
|
|
4560
4585
|
} finally {
|
|
4561
4586
|
try {
|
|
@@ -4616,7 +4641,7 @@ function validateUploadedMediaBuffer(fileName, buffer, runner = defaultRunner) {
|
|
|
4616
4641
|
const tempDir = mkdtempSync(join4(tmpdir(), "hyperframes-upload-"));
|
|
4617
4642
|
const tempPath = join4(tempDir, basename(fileName));
|
|
4618
4643
|
try {
|
|
4619
|
-
|
|
4644
|
+
writeFileSync2(tempPath, buffer);
|
|
4620
4645
|
return validateUploadedMedia(tempPath, runner);
|
|
4621
4646
|
} finally {
|
|
4622
4647
|
rmSync2(tempDir, { recursive: true, force: true });
|
|
@@ -4638,11 +4663,12 @@ function snapshotBeforeWrite(projectDir, absPath, options = {}) {
|
|
|
4638
4663
|
const content = readFileSync32(absPath);
|
|
4639
4664
|
const relativePath = relative2(projectDir, absPath);
|
|
4640
4665
|
const backupDir = join5(projectDir, ".hyperframes", "backup");
|
|
4666
|
+
if (!isLinkFreeWithinProject(projectDir, backupDir)) return { backupPath: null };
|
|
4641
4667
|
mkdirWithinProject(projectDir, backupDir);
|
|
4642
4668
|
const pathKey2 = Buffer2.from(relativePath, "utf-8").toString("base64url");
|
|
4643
4669
|
const backupKey = pathKey2.length <= 200 ? pathKey2 : `sha256~${createHash22("sha256").update(relativePath).digest("hex")}`;
|
|
4644
4670
|
const backupPath = nextBackupPath(backupDir, backupKey);
|
|
4645
|
-
writeFileSync3(backupPath, content);
|
|
4671
|
+
writeFileSync3(backupPath, content, { flag: "wx" });
|
|
4646
4672
|
pruneBackups(backupDir, [pathKey2, backupKey], options.keepPerFile ?? DEFAULT_KEEP_PER_FILE);
|
|
4647
4673
|
return { backupPath };
|
|
4648
4674
|
} catch (error) {
|
|
@@ -4862,7 +4888,7 @@ function resolveGsapWriter(env) {
|
|
|
4862
4888
|
throw new Error(`Invalid ${GSAP_WRITER_MIGRATION.flag}=${configured}; expected recast or acorn`);
|
|
4863
4889
|
}
|
|
4864
4890
|
async function loadGsapParser() {
|
|
4865
|
-
return import("./gsapParser-
|
|
4891
|
+
return import("./gsapParser-L7TM3RGH.js");
|
|
4866
4892
|
}
|
|
4867
4893
|
function isDanglingSymlinkInProject(projectDir, lexicalPath) {
|
|
4868
4894
|
if (!isSafePath(projectDir, dirname3(lexicalPath))) return false;
|
|
@@ -5440,6 +5466,7 @@ function updateReferences(projectDir, oldPath, newPath, isDirectory) {
|
|
|
5440
5466
|
}
|
|
5441
5467
|
return updatedCount;
|
|
5442
5468
|
}
|
|
5469
|
+
var escapeScriptEndTags = (code) => code.replace(/<\/(script)/gi, "<\\/$1");
|
|
5443
5470
|
function extractGsapScriptBlock(html) {
|
|
5444
5471
|
const { document: document2 } = parseHTML(ensureHfIds(html));
|
|
5445
5472
|
const scripts = [
|
|
@@ -5455,7 +5482,7 @@ function extractGsapScriptBlock(html) {
|
|
|
5455
5482
|
document: document2,
|
|
5456
5483
|
root: clipQueryRoot(script),
|
|
5457
5484
|
replaceScript(newText) {
|
|
5458
|
-
script.textContent = newText;
|
|
5485
|
+
script.textContent = escapeScriptEndTags(newText);
|
|
5459
5486
|
return document2.toString();
|
|
5460
5487
|
}
|
|
5461
5488
|
};
|
|
@@ -5721,7 +5748,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5721
5748
|
let block = extractGsapScriptBlock(html);
|
|
5722
5749
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5723
5750
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5724
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5751
|
+
const { GSAP_CDN } = await import("./dist-ZGYPFYOH.js");
|
|
5725
5752
|
const bootstrap = [
|
|
5726
5753
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5727
5754
|
"<script>",
|
|
@@ -7763,7 +7790,7 @@ var GSAP_FALLBACK_ATTR = "data-hf-gsap-fallback";
|
|
|
7763
7790
|
function gsapCdnFallbackScript(baseUrl) {
|
|
7764
7791
|
return `<script ${GSAP_FALLBACK_ATTR}>
|
|
7765
7792
|
(function(){
|
|
7766
|
-
var cdnBase=${
|
|
7793
|
+
var cdnBase=${scriptJson2(gsapCdnDist(void 0, baseUrl))};
|
|
7767
7794
|
var loaded={};
|
|
7768
7795
|
function loadFallback(file){
|
|
7769
7796
|
if(loaded[file])return loaded[file];
|
|
@@ -7813,10 +7840,10 @@ function previewVariablesFromRequest(rawVariables) {
|
|
|
7813
7840
|
return { raw: rawVariables, values: parse22.values };
|
|
7814
7841
|
}
|
|
7815
7842
|
var PREVIEW_CAPTURE_PARAM = "hf-capture";
|
|
7816
|
-
function
|
|
7843
|
+
function scriptJson2(value) {
|
|
7817
7844
|
return JSON.stringify(value).replace(/</g, "\\u003c").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
7818
7845
|
}
|
|
7819
|
-
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=${
|
|
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)};
|
|
7820
7847
|
addEventListener("error",function(e){seen.push(e.message||String(e));
|
|
7821
7848
|
var name=e.error&&e.error.constructor&&e.error.constructor.name,path="";
|
|
7822
7849
|
try{var url=e.filename&&new URL(e.filename,window.location.href);if(url&&url.origin===window.location.origin)path=url.pathname}catch(_){}
|
|
@@ -8038,13 +8065,16 @@ ${etag}`;
|
|
|
8038
8065
|
const vars = previewVariablesFromRequest(c.req.query("variables"));
|
|
8039
8066
|
if (vars.error !== void 0) return c.json({ error: vars.error }, 400);
|
|
8040
8067
|
const previewVariables = vars.values;
|
|
8041
|
-
const
|
|
8042
|
-
|
|
8068
|
+
const compFile = resolveWithinProject2(
|
|
8069
|
+
project.dir,
|
|
8070
|
+
requestSubPath(c.req.url, "projects/:id/preview/comp")
|
|
8071
|
+
);
|
|
8043
8072
|
if (compFile) recordPreviewRead(project.dir, compFile);
|
|
8044
8073
|
recordPreviewRead(project.dir, "index.html");
|
|
8045
8074
|
if (!compFile || !existsSync5(compFile) || !statSync4(compFile).isFile()) {
|
|
8046
8075
|
return c.text("not found", 404);
|
|
8047
8076
|
}
|
|
8077
|
+
const compPath = projectRelativePath(project.dir, compFile);
|
|
8048
8078
|
const compPathHash = createHash3("sha1").update(compPath).digest("hex");
|
|
8049
8079
|
const capture = c.req.query(PREVIEW_CAPTURE_PARAM) !== void 0;
|
|
8050
8080
|
const etag = `"comp:v2:${compPathHash}:${signature}${gsapEtagSalt}${variablesEtagSalt(vars.raw)}${capture ? ":capture" : ""}"`;
|
|
@@ -8779,6 +8809,7 @@ var THUMBNAIL_CACHE_MAX_BYTES = 512 * 1024 * 1024;
|
|
|
8779
8809
|
var THUMBNAIL_CACHE_MAX_AGE_MS = 14 * 24 * 60 * 60 * 1e3;
|
|
8780
8810
|
var prunedCacheDirs = /* @__PURE__ */ new Set();
|
|
8781
8811
|
function pruneThumbnailCache(cacheDir, protectedPaths, now = Date.now()) {
|
|
8812
|
+
if (!isLinkFreeWithinProject(dirname6(cacheDir), cacheDir)) return;
|
|
8782
8813
|
let entries;
|
|
8783
8814
|
try {
|
|
8784
8815
|
entries = readdirSync4(cacheDir, { withFileTypes: true });
|
|
@@ -8860,7 +8891,8 @@ function registerThumbnailRoutes(api, adapter) {
|
|
|
8860
8891
|
if (compPath && !compPath.includes(".")) compPath += ".html";
|
|
8861
8892
|
const htmlFile = resolveWithinProject2(project.dir, compPath);
|
|
8862
8893
|
const source = htmlFile ? readFileOnce(htmlFile) : "not-a-file";
|
|
8863
|
-
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);
|
|
8864
8896
|
const inputSignature = await compositionInputSignature(project.dir, compPath, projectSignature);
|
|
8865
8897
|
const url = new URL(c.req.url, `http://${c.req.header("host") || "localhost"}`);
|
|
8866
8898
|
const rawSeekTime = url.searchParams.get("t");
|
|
@@ -8950,6 +8982,7 @@ function registerThumbnailRoutes(api, adapter) {
|
|
|
8950
8982
|
if (previewCopiesAtStart === null || previewCopiesAtEnd !== previewCopiesAtStart || afterGeneration?.project.dir !== project.dir || !await inputsUnchanged(afterGeneration.signature) || !await inputsUnchanged(await createProjectSignatureAsync(project.dir))) {
|
|
8951
8983
|
return generated;
|
|
8952
8984
|
}
|
|
8985
|
+
if (!isLinkFreeWithinProject(project.dir, cacheDir)) return generated;
|
|
8953
8986
|
mkdirWithinProject(project.dir, cacheDir);
|
|
8954
8987
|
writeThumbnailAtomically(cachePath, generated);
|
|
8955
8988
|
return generated;
|
|
@@ -9239,14 +9272,14 @@ async function extractThenPublishWhole(extract, mediaPath, mediaTime, imagePath)
|
|
|
9239
9272
|
}
|
|
9240
9273
|
}
|
|
9241
9274
|
async function extractStill(projectDir, absPath, source, playhead, tools) {
|
|
9242
|
-
const fileDir =
|
|
9275
|
+
const fileDir = dirname7(absPath);
|
|
9243
9276
|
const mediaPath = pinWithinProject(projectDir, relative4(projectDir, join13(fileDir, source.src)));
|
|
9244
9277
|
if (!mediaPath) return { error: `forbidden media path: ${source.src}`, status: 403 };
|
|
9245
9278
|
const freezeDir = join13(projectDir, ...FREEZE_DIR);
|
|
9246
9279
|
const fileName = freezeStillFileName(source.id, playhead, tools.stillToken());
|
|
9247
9280
|
mkdirWithinProject(projectDir, freezeDir);
|
|
9248
9281
|
const imagePath = pinWithinProject(projectDir, join13(...FREEZE_DIR, fileName));
|
|
9249
|
-
if (!imagePath ||
|
|
9282
|
+
if (!imagePath || dirname7(imagePath) !== freezeDir) {
|
|
9250
9283
|
return { error: `forbidden freeze path: ${fileName}`, status: 403 };
|
|
9251
9284
|
}
|
|
9252
9285
|
const failed = await extractThenPublishWhole(
|
|
@@ -9904,8 +9937,8 @@ function registerMediaRoutes(api, adapter, options = {}) {
|
|
|
9904
9937
|
return c.json({ error: "forbidden" }, 403);
|
|
9905
9938
|
}
|
|
9906
9939
|
}
|
|
9907
|
-
mkdirWithinProject(project.dir,
|
|
9908
|
-
if (backgroundOutputPath) mkdirWithinProject(project.dir,
|
|
9940
|
+
mkdirWithinProject(project.dir, dirname8(outputPath));
|
|
9941
|
+
if (backgroundOutputPath) mkdirWithinProject(project.dir, dirname8(backgroundOutputPath));
|
|
9909
9942
|
const jobId = makeJobId(project.id, mediaJobs);
|
|
9910
9943
|
const state = adapter.startBackgroundRemoval({
|
|
9911
9944
|
project,
|
|
@@ -10193,13 +10226,19 @@ async function answerRefusedFrameWithPage(c, next) {
|
|
|
10193
10226
|
headers
|
|
10194
10227
|
});
|
|
10195
10228
|
}
|
|
10229
|
+
var fromAnotherSite = (c) => {
|
|
10230
|
+
const site = c.req.header("sec-fetch-site");
|
|
10231
|
+
return site === "cross-site" || site === "same-site";
|
|
10232
|
+
};
|
|
10196
10233
|
async function sandboxPreviewOpenedFromAnotherSite(c, next) {
|
|
10197
10234
|
await next();
|
|
10198
10235
|
c.header("Vary", "Sec-Fetch-Site", { append: true });
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
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();
|
|
10203
10242
|
}
|
|
10204
10243
|
function urlHost(url) {
|
|
10205
10244
|
try {
|
|
@@ -10218,6 +10257,7 @@ function urlScheme(url) {
|
|
|
10218
10257
|
function createStudioApi(adapter, options = {}) {
|
|
10219
10258
|
const api = new Hono();
|
|
10220
10259
|
api.use("/projects/:id/preview/*", sandboxPreviewOpenedFromAnotherSite);
|
|
10260
|
+
api.use("/projects/:id/thumbnail/*", refuseThumbnailForAnotherSite);
|
|
10221
10261
|
api.use(async function rejectCrossOriginWrites(c, next) {
|
|
10222
10262
|
if (c.req.method === "GET" || c.req.method === "HEAD" || c.req.method === "OPTIONS") {
|
|
10223
10263
|
return next();
|
|
@@ -10357,7 +10397,7 @@ ${key}`).digest("hex").slice(0, 32)}.html`);
|
|
|
10357
10397
|
},
|
|
10358
10398
|
write(key, html) {
|
|
10359
10399
|
try {
|
|
10360
|
-
|
|
10400
|
+
mkdirOwnedWithinProject(projectDir, dir);
|
|
10361
10401
|
const file = fileFor(key);
|
|
10362
10402
|
replaceFileAtomically(file, html, 420);
|
|
10363
10403
|
for (const name of readdirSync5(dir)) {
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
createFileAtomically
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IEEIPTDW.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/writeNewFile.ts
|
|
12
12
|
function writeNewFileSync(filePath, content) {
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
claimDailyNotice,
|
|
9
9
|
updateCheckDisabled
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4DLYTSWQ.js";
|
|
11
11
|
import {
|
|
12
12
|
hostAnswers
|
|
13
13
|
} from "./chunk-BR2JQQC5.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-CPHQTXP5.js";
|
|
22
22
|
import {
|
|
23
23
|
VERSION
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-45ZQI734.js";
|
|
25
25
|
|
|
26
26
|
// src/utils/skillsUpdateCheck.ts
|
|
27
27
|
import { resolve as resolve2 } from "path";
|