hyperframes 0.9.65 → 0.9.66
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-FFPEN3PI.js → add-Q4W2PAZ6.js} +22 -21
- package/dist/{agentPromptGenerator-3XDVEOI4.js → agentPromptGenerator-BZ77OPI4.js} +14 -13
- package/dist/{animatedGifPrep-FF5MNK4G.js → animatedGifPrep-3UBRNEEA.js} +15 -14
- package/dist/api.js +51 -49
- package/dist/{appHistory-VNIOZU2X.js → appHistory-EWII7S5X.js} +4 -4
- package/dist/{asset-CL3LGWHN.js → asset-ZRTGYYEN.js} +10 -9
- package/dist/{assetCataloger-EJWPZR2U.js → assetCataloger-GTSOUOBQ.js} +15 -14
- package/dist/{audio-YXOB2W6Y.js → audio-ZUW3RHEO.js} +30 -28
- package/dist/{auth-M7A4TSPO.js → auth-TE5FMKUT.js} +4 -4
- package/dist/{autoUpdate-6YQYHQGW.js → autoUpdate-6JGNDMLP.js} +24 -10
- package/dist/{avatars-77IWARZP.js → avatars-BJEF4TZR.js} +23 -21
- package/dist/{backgroundChecks-M4NIDGIA.js → backgroundChecks-EN5XLRLY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-YSKM7TNL.js → batchRender-EEMYIEYR.js} +13 -10
- package/dist/{beats-LRU6EJRT.js → beats-IPGSP5BV.js} +14 -13
- package/dist/{benchmark-CHHCVFKH.js → benchmark-GZOATIPM.js} +25 -22
- package/dist/{billing-LLO6AH2P.js → billing-3LF2YYP7.js} +22 -20
- package/dist/{browser-QCBYOBPV.js → browser-2IH45NN6.js} +12 -11
- package/dist/{bundleWithLocalizedFonts-QKUGP6QU.js → bundleWithLocalizedFonts-QV6WDOXF.js} +1 -1
- package/dist/{capture-22DC6YXT.js → capture-4SIGWC4Q.js} +10 -9
- package/dist/{capture-7CIWJP57.js → capture-K75SADNY.js} +26 -25
- package/dist/{captureCompositionFrame-QKU2OEUO.js → captureCompositionFrame-XVEPPU4X.js} +21 -20
- package/dist/{captureFile-FNCMGYYJ.js → captureFile-GYZI5Y56.js} +3 -3
- package/dist/{catalog-KM43JIX6.js → catalog-6N22YQEE.js} +22 -21
- package/dist/{catch-up-QSCE5EWT.js → catch-up-67LVADSA.js} +14 -13
- package/dist/{check-OHWGWJX6.js → check-NYD3WGR2.js} +55 -54
- package/dist/{checkAudio-7LMFGTYQ.js → checkAudio-APZTSEHX.js} +17 -16
- package/dist/{checkBrowser-EEH265TZ.js → checkBrowser-2UA6O65I.js} +47 -46
- package/dist/{chunk-IOYTXBFK.js → chunk-244FN6TG.js} +1 -1
- package/dist/{chunk-3JVTHNDH.js → chunk-2FEZFXKE.js} +1 -1
- package/dist/{chunk-LLLOUHO6.js → chunk-2OSPWUGX.js} +7 -6
- package/dist/{chunk-W2CXA2CN.js → chunk-2UIAN6N7.js} +1 -1
- package/dist/{chunk-E3OFFWRD.js → chunk-2Z7IW5EY.js} +2 -2
- package/dist/{chunk-2WXCQT4F.js → chunk-35BZXE5L.js} +1 -1
- package/dist/{chunk-Z2B2CQO3.js → chunk-37SEGJEO.js} +11 -11
- package/dist/{chunk-RCP2VEJJ.js → chunk-3B4WQYCW.js} +6 -6
- package/dist/{chunk-VIA6UCV5.js → chunk-3BKNPN36.js} +37 -3
- package/dist/{chunk-ALTOXXDI.js → chunk-3ODOQWSB.js} +10 -5
- package/dist/{chunk-UCWQU7EY.js → chunk-3WE4UZHN.js} +2 -2
- package/dist/{chunk-OCBC4P6O.js → chunk-4IIPERO4.js} +1 -1
- package/dist/{chunk-FHIOPTN4.js → chunk-4SY34UA2.js} +1 -1
- package/dist/{chunk-7R7OCEHI.js → chunk-4WUTXBRK.js} +6 -6
- package/dist/{chunk-RC2DDVX5.js → chunk-5E46EQ3U.js} +2 -2
- package/dist/{chunk-BYCOI5AI.js → chunk-5UOYRGKV.js} +2 -2
- package/dist/{chunk-UL2EO5VU.js → chunk-5WZSXP6R.js} +1 -1
- package/dist/{chunk-X63QVLMJ.js → chunk-64O3DG3E.js} +1 -1
- package/dist/{chunk-AYTEZDHI.js → chunk-66D5BC5K.js} +9 -4
- package/dist/{chunk-C6J6TZSW.js → chunk-6ACARSAZ.js} +1 -1
- package/dist/{chunk-5JB52EL2.js → chunk-6PGDI5NG.js} +154 -84
- package/dist/{chunk-A63XME5P.js → chunk-6PYUPO4M.js} +4 -4
- package/dist/{chunk-CNCE57K2.js → chunk-6QITYZN7.js} +2 -2
- package/dist/{chunk-QRDITHEZ.js → chunk-6QZNF3JF.js} +26 -27
- package/dist/chunk-6SYJN2KD.js +15 -0
- package/dist/{chunk-777GBBTE.js → chunk-6VNN3SYK.js} +1 -1
- package/dist/{chunk-AQFA2WPD.js → chunk-745HLQBA.js} +1 -1
- package/dist/{chunk-F4V523HB.js → chunk-74M47HVE.js} +2 -2
- package/dist/{chunk-TIB6KUSP.js → chunk-7BREEOLQ.js} +16 -16
- package/dist/{chunk-FZKN2NC4.js → chunk-7CKKKBNM.js} +2 -2
- package/dist/{chunk-3W4FG7IG.js → chunk-7EOREMZI.js} +12 -12
- package/dist/{chunk-AR3R2DZI.js → chunk-7LQFVACU.js} +1 -1
- package/dist/{chunk-VCTPYHOD.js → chunk-7QNCNGN6.js} +2 -2
- package/dist/{chunk-JBKVY4PY.js → chunk-A6O65H7G.js} +4 -4
- package/dist/{chunk-OYFDQ5QW.js → chunk-AAZF6D3Z.js} +1 -1
- package/dist/{chunk-BSGHUXHX.js → chunk-AI4MXYGK.js} +1 -1
- package/dist/{chunk-4W4QOYPI.js → chunk-AI5KNXSL.js} +8 -8
- package/dist/{chunk-ZJQ23DJQ.js → chunk-AQBWVIT7.js} +1 -1
- package/dist/{chunk-NMYYW6QM.js → chunk-AQNI4TCF.js} +23 -15
- package/dist/{chunk-GJ52L66E.js → chunk-AWOHPIKF.js} +9 -9
- package/dist/{chunk-LBDQJRCK.js → chunk-BSY6ZHP6.js} +1 -1
- package/dist/{chunk-JP7BQ4WS.js → chunk-CANVWJB4.js} +13 -11
- package/dist/{chunk-7CCETF2U.js → chunk-CEHYC2UD.js} +3 -3
- package/dist/{chunk-HYO4DIYT.js → chunk-CPQTWPMM.js} +1 -1
- package/dist/{chunk-Y273NNG5.js → chunk-CTDCYNVK.js} +2 -2
- package/dist/{chunk-GEEATBFF.js → chunk-CUOX3TDY.js} +3 -3
- package/dist/{chunk-DZNWYUBA.js → chunk-D5YHSTHZ.js} +3 -3
- package/dist/{chunk-F2GQH6G4.js → chunk-DPMEWIVZ.js} +4 -4
- package/dist/{chunk-FZRFTW5X.js → chunk-DZ3JB4F3.js} +2 -2
- package/dist/{chunk-OHY27IY2.js → chunk-EIION6EA.js} +2 -2
- package/dist/{chunk-GVGUOYNC.js → chunk-EPBYIJPM.js} +1 -1
- package/dist/{chunk-EUXQMNUT.js → chunk-ESYW3LJU.js} +2 -2
- package/dist/{chunk-3U2W7LJU.js → chunk-FAJRDYFU.js} +6 -6
- package/dist/{chunk-GB5RKTLO.js → chunk-FBOKUG5B.js} +5 -5
- package/dist/{chunk-XHW57QCG.js → chunk-FCNBAYZ6.js} +3 -3
- package/dist/{chunk-XDVHQFEQ.js → chunk-FOALZ4MW.js} +1 -1
- package/dist/{chunk-GDKNEQ4E.js → chunk-GGY5M6BU.js} +1 -1
- package/dist/{chunk-NDXUDTLF.js → chunk-GXKCFOMR.js} +2 -2
- package/dist/{chunk-3WUKMGJN.js → chunk-H6LFXHAV.js} +7 -7
- package/dist/{chunk-WNU7WC46.js → chunk-HMNDJPLQ.js} +3 -3
- package/dist/{chunk-A6AH56HN.js → chunk-HYQ6S7R6.js} +2 -2
- package/dist/{chunk-TNTXAGHK.js → chunk-IUUEMVZV.js} +2 -2
- package/dist/{chunk-XP6BVUGU.js → chunk-IXGZSANV.js} +2 -2
- package/dist/{chunk-EMIOIMHN.js → chunk-IXSCGQS5.js} +1 -1
- package/dist/{chunk-2QIRDNBU.js → chunk-JDJ6BM5E.js} +2 -2
- package/dist/{chunk-AOSTTTSS.js → chunk-JGKI7FHX.js} +130 -42
- package/dist/{chunk-VSDYSL4J.js → chunk-JHPOKDZI.js} +13 -13
- package/dist/{chunk-YGO6PEYX.js → chunk-JK7JON6R.js} +1 -1
- package/dist/{chunk-6KVZKKQL.js → chunk-K2NOQNNY.js} +1 -1
- package/dist/{chunk-PH3MZM27.js → chunk-KDQRJHLU.js} +4 -4
- package/dist/{chunk-DQD5KQXM.js → chunk-KFWSPEDG.js} +1 -1
- package/dist/{chunk-5VERYJGC.js → chunk-KXCAIQE4.js} +5 -5
- package/dist/{chunk-IH2C53YV.js → chunk-KZ5PV5TL.js} +11 -9
- package/dist/{chunk-6XUAMVHS.js → chunk-L7BY2FDJ.js} +16 -16
- package/dist/{chunk-HXUZGW3A.js → chunk-LAXD6VM7.js} +10 -10
- package/dist/{chunk-3FHYTUFQ.js → chunk-LBFV45YF.js} +1 -1
- package/dist/{chunk-FXMKHHPO.js → chunk-LIHELBPB.js} +0 -61
- package/dist/{chunk-2TEG3AY6.js → chunk-LIXAC5NE.js} +12 -12
- package/dist/{chunk-QZML6RDQ.js → chunk-LNOG6KKM.js} +7 -7
- package/dist/{chunk-YWUE4CRU.js → chunk-LWX5PI73.js} +7 -7
- package/dist/{chunk-EQSVVKKE.js → chunk-M4ABCFJO.js} +4 -4
- package/dist/{chunk-R3FNJABL.js → chunk-MEZAMIT6.js} +9 -9
- package/dist/{chunk-G6CEI6PO.js → chunk-MG7UJJCP.js} +25 -7
- package/dist/{chunk-7S6FWEJH.js → chunk-MH46RGG6.js} +1 -1
- package/dist/{chunk-AB4FVMV4.js → chunk-MKZ73C57.js} +1 -1
- package/dist/{chunk-6AKYBHGV.js → chunk-N6VNR4YE.js} +54 -17
- package/dist/{chunk-K6ARLNKJ.js → chunk-NIEOUHVQ.js} +1 -1
- package/dist/{chunk-PW4U3IUR.js → chunk-NMASYQXY.js} +3 -3
- package/dist/{chunk-YZO2JM2G.js → chunk-NOCU3FBX.js} +5 -5
- package/dist/{chunk-4NNGVO2D.js → chunk-NSADX4IV.js} +28 -23
- package/dist/{chunk-U3OHPF2K.js → chunk-OB56G4VA.js} +3 -3
- package/dist/{chunk-U2FL2MTE.js → chunk-OGL5VQGT.js} +4 -2
- package/dist/{chunk-UFCIA6WF.js → chunk-OI5WGQE3.js} +5 -5
- package/dist/{chunk-IJ4CZKOB.js → chunk-OMFIMZZD.js} +5 -5
- package/dist/chunk-PWRUMN7B.js +71 -0
- package/dist/{chunk-FDI4X3EC.js → chunk-PXMEW6TM.js} +3 -3
- package/dist/{chunk-FBMBSPEZ.js → chunk-QSQNXAHE.js} +1 -1
- package/dist/{chunk-MJWUDOBB.js → chunk-R5C2CV7J.js} +5 -5
- package/dist/chunk-RAHYMZNU.js +5146 -0
- package/dist/{chunk-IM7OBJ2Z.js → chunk-RD3DE4ZP.js} +2 -2
- package/dist/{chunk-AXZ2NMKP.js → chunk-RHZE7BIX.js} +3 -3
- package/dist/{chunk-EH46IYY2.js → chunk-ROODLZY7.js} +10 -10
- package/dist/{chunk-QBPQNKSP.js → chunk-RRGRETJ4.js} +2 -2
- package/dist/{chunk-3UL2TYIS.js → chunk-S73AVUHJ.js} +1 -1
- package/dist/{chunk-QZZZNXAK.js → chunk-SITGBEFO.js} +41 -34
- package/dist/{chunk-6N3S6L56.js → chunk-TIGMUHSL.js} +6 -6
- package/dist/{chunk-KJ5YLRMQ.js → chunk-TMB4L4GG.js} +5 -3
- package/dist/{chunk-4PEGA4QR.js → chunk-TQYHQKOK.js} +1 -1
- package/dist/{chunk-PUZN3BFQ.js → chunk-TU2WFCGS.js} +2 -2
- package/dist/{chunk-AE36GVZT.js → chunk-TUJB74AE.js} +3 -3
- package/dist/{chunk-IZ5GH7TX.js → chunk-TXTVVIW7.js} +3 -3
- package/dist/{chunk-6BLW2BST.js → chunk-TZ3EPV4B.js} +1 -1
- package/dist/{chunk-YWD5PVKA.js → chunk-U3WUAVAX.js} +3 -3
- package/dist/{chunk-TFAKFI3R.js → chunk-U6ZR7GBQ.js} +3 -3
- package/dist/{chunk-4NCKEOKP.js → chunk-UCQTLZDJ.js} +2 -2
- package/dist/{chunk-BBAEXPIU.js → chunk-ULE2EYEY.js} +2 -2
- package/dist/{chunk-S35RUNXJ.js → chunk-UVW5ZDAP.js} +4 -2
- package/dist/{chunk-KFR67U7E.js → chunk-VBLKGDVI.js} +1 -1
- package/dist/{chunk-MWQQOFGN.js → chunk-W672RTMC.js} +4 -4
- package/dist/{chunk-Z67SXGRJ.js → chunk-WMJ3PV37.js} +1 -1
- package/dist/{chunk-VVSPUYPA.js → chunk-WWQWDRKU.js} +1 -1
- package/dist/{chunk-S7YTRWJD.js → chunk-WY6354ZO.js} +4 -4
- package/dist/{chunk-OCGUBNKH.js → chunk-X3JZA7KH.js} +9 -9
- package/dist/{chunk-UKFPGKEC.js → chunk-XEIVSW2F.js} +7 -7
- package/dist/{chunk-X2BESDNL.js → chunk-XKIXRSVB.js} +3 -3
- package/dist/{chunk-XIVI6GYV.js → chunk-XMKDDEX4.js} +7 -7
- package/dist/{chunk-C2O5XIFN.js → chunk-XNJEXXKC.js} +2 -2
- package/dist/{chunk-Z66KCWZC.js → chunk-XSARHJSW.js} +2 -2
- package/dist/{chunk-QVVQJKBZ.js → chunk-XTKNMYRR.js} +2 -2
- package/dist/{chunk-BA2MCRMP.js → chunk-Y4QE4LEB.js} +1 -1
- package/dist/{chunk-MEDWEFKT.js → chunk-Y57R6C5U.js} +3 -3
- package/dist/{chunk-F4CVSUA4.js → chunk-Y6A5LED6.js} +2 -2
- package/dist/{chunk-STH72R3G.js → chunk-YMSOS6CF.js} +1 -1
- package/dist/{chunk-U2X5CSJV.js → chunk-ZHIAAYY2.js} +4 -4
- package/dist/{chunk-JA2EGQEE.js → chunk-ZQPXWUCP.js} +3 -3
- package/dist/{chunk-ANX6FWHI.js → chunk-ZS2ROUIG.js} +1 -1
- package/dist/{chunk-ERYYOWWF.js → chunk-ZY55U6ER.js} +8 -8
- package/dist/{clean-ZR7HNI3V.js → clean-73IDEWIJ.js} +28 -27
- package/dist/cli.js +72 -71
- package/dist/{cloud-B24T67AA.js → cloud-P32MAEIJ.js} +4 -4
- package/dist/{cloud-5JYPYMDJ.js → cloud-SOZPWTDL.js} +14 -12
- package/dist/{cloudrun-7U6GFP2S.js → cloudrun-H5TW5T4R.js} +9 -8
- package/dist/{compare-NRXMK72Y.js → compare-BQSDHPZ3.js} +49 -48
- package/dist/{compiler-FQB6LVTK.js → compiler-WNVDGRBH.js} +9 -6
- package/dist/{component-TJX5NP44.js → component-WWICYJFN.js} +11 -10
- package/dist/{compositions-UPIST4QX.js → compositions-VEMHHQR6.js} +22 -19
- package/dist/{contactSheet-JFEV75W2.js → contactSheet-G42BMJXO.js} +4 -4
- package/dist/{curve-P3KZZFD5.js → curve-5SCSMYX4.js} +18 -17
- package/dist/{cuts-PTZUTT45.js → cuts-POUL3RQ5.js} +19 -18
- package/dist/{delete-GHEUVYRE.js → delete-NVS5PXRM.js} +21 -17
- package/dist/{deploy-IBHOLWU3.js → deploy-SPJ5OWAI.js} +9 -16
- package/dist/{describeProject-VCX52S5P.js → describeProject-KJGRR7FM.js} +15 -14
- package/dist/{destroy-ISDB5HUK.js → destroy-CPLVCITS.js} +6 -6
- package/dist/{deterministicFonts-XCYIRDQZ.js → deterministicFonts-645ILNLP.js} +3 -3
- package/dist/{diff-4YBUQ4YN.js → diff-O2JUFV2N.js} +45 -43
- package/dist/{dist-3YCMP3OA.js → dist-DCRKIIL4.js} +18 -17
- package/dist/{dist-5BBLH53Z.js → dist-TTOW2KVO.js} +11 -9
- package/dist/{dist-VPMEUGIV.js → dist-XRESUN6B.js} +3 -3
- package/dist/docker/Dockerfile.render +1 -1
- package/dist/{doctor-MOKBELVX.js → doctor-L5GGDS2F.js} +18 -17
- package/dist/{dotEnv-JBK54RQJ.js → dotEnv-7P4XI4ID.js} +7 -6
- package/dist/{energy-W77GZ4AU.js → energy-43JTPLLL.js} +19 -18
- package/dist/{events-ZMVV7YHQ.js → events-33NDGOZM.js} +21 -20
- package/dist/{events-6AAHOZOP.js → events-K576EL47.js} +9 -8
- package/dist/{events-6MUF5QM3.js → events-XRO5CFTD.js} +4 -3
- package/dist/{execute-ZXIJROJ3.js → execute-EWZ3WK3L.js} +42 -41
- package/dist/{extract-XPYMBV3C.js → extract-NW375CQM.js} +20 -19
- package/dist/{face-DPGVFMNK.js → face-AVVUVV5L.js} +20 -19
- package/dist/{face-CFU3RPCE.js → face-IVXIPAO5.js} +17 -16
- package/dist/{feedback-QCILWFND.js → feedback-MS34KB74.js} +26 -24
- package/dist/{ffmpeg-53IYIQK6.js → ffmpeg-I376KCKD.js} +13 -12
- package/dist/{figma-MWLNH4FP.js → figma-M37MXYPR.js} +3 -3
- package/dist/fontLocalizeCli.js +19 -18
- package/dist/{frames-XMHFYD43.js → frames-6VGAHZBO.js} +21 -20
- package/dist/{generate-VC7GNQN7.js → generate-TM7AOJ27.js} +35 -33
- package/dist/{get-SBNYVI3T.js → get-2JAJO7AP.js} +21 -17
- package/dist/{gpuPolicy-5BUTYWST.js → gpuPolicy-DEH3KKNF.js} +13 -12
- package/dist/{grade-compare-BIGPVPVY.js → grade-compare-UN6MPWVF.js} +43 -42
- package/dist/{hands-6VOHNDTY.js → hands-ANSG7WHU.js} +22 -21
- package/dist/{heifImagePrep-HPGUKE5Y.js → heifImagePrep-YC3ZMWUC.js} +16 -15
- package/dist/{help-7FCGRM47.js → help-63QQYCMJ.js} +1 -1
- package/dist/{history-FJPXD3BK.js → history-DRSL755Q.js} +18 -17
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +72 -71
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{index-gen-3DWPA4FO.js → index-gen-TXP67YUY.js} +13 -1
- package/dist/{info-6P6MXHTD.js → info-UNIWLP7I.js} +21 -20
- package/dist/{init-VL2J3BPK.js → init-3W3XSGXC.js} +37 -36
- package/dist/{ink-JXO2ECYZ.js → ink-OXJJIEQ7.js} +19 -18
- package/dist/{inspect-LDJ4MZZB.js → inspect-UOXP5ICV.js} +48 -47
- package/dist/{installer-CY5PMR3I.js → installer-OWZSFVV2.js} +10 -9
- package/dist/{keyframes-GZMGSHWN.js → keyframes-LNCXSQJ6.js} +23 -22
- package/dist/{lambda-EX6MIUFB.js → lambda-3ZIM5NW2.js} +22 -21
- package/dist/{launch-Z3ZYBEOZ.js → launch-HOSRCHWS.js} +14 -13
- package/dist/{layout-LJAXOS6D.js → layout-MRBHBZEA.js} +48 -47
- package/dist/{lint-IZ5LAKZ2.js → lint-U4PINYKO.js} +16 -15
- package/dist/{lintProject-XEWYQ2YP.js → lintProject-55U44GOP.js} +3 -3
- package/dist/{list-M5NCDKZK.js → list-AMH6UUTI.js} +27 -21
- package/dist/{live-WWPFZQ74.js → live-ZSDUN6U2.js} +1 -1
- package/dist/{localPage-RPRX4QWI.js → localPage-JJ56YNKB.js} +14 -13
- package/dist/{login-QTAVYFVF.js → login-U42SSWF4.js} +15 -13
- package/dist/{logout-ADLJGWD3.js → logout-DQVPSI4E.js} +11 -9
- package/dist/{look-WHPFOAD5.js → look-6VTGMGIF.js} +19 -18
- package/dist/{manager-R6S2BFJI.js → manager-GHP2QIUD.js} +14 -13
- package/dist/{manager-ISZYNIK2.js → manager-PXRZQDDT.js} +2 -2
- package/dist/{measure-22AU7TYR.js → measure-NC4LN7EZ.js} +12 -12
- package/dist/{media-TS5AB73F.js → media-VKM5WFRK.js} +17 -14
- package/dist/{media-treatment-437SK3IP.js → media-treatment-VNZS2MIT.js} +22 -21
- package/dist/{media-use-WIZLFHGZ.js → media-use-JOQWGBS5.js} +13 -11
- package/dist/{models-55KT2FOE.js → models-S55TNWF7.js} +19 -18
- package/dist/{motionShot-GR2XK7MG.js → motionShot-OUOXFKUG.js} +25 -24
- package/dist/{normalize-KYVBGCEM.js → normalize-AH7CCULG.js} +3 -3
- package/dist/{normalize-audio-7H5EXI7L.js → normalize-audio-GYTTK5QE.js} +16 -15
- package/dist/{oauth-E5QBYYTX.js → oauth-RETRT7QD.js} +2 -1
- package/dist/{open-EEUJNVW4.js → open-KGXPI4BY.js} +31 -25
- package/dist/{parakeetRunner-CNF4YXTV.js → parakeetRunner-IXUUFPGG.js} +21 -20
- package/dist/{pipeline-Q2RJZQ4E.js → pipeline-UE2Y2ZRB.js} +16 -15
- package/dist/{plan-6RCNL7RA.js → plan-AD4FZA6N.js} +29 -28
- package/dist/{play-USR5S4WS.js → play-G6JYDYIH.js} +45 -38
- package/dist/{preflight-N5T57D6Q.js → preflight-QNDXHMOT.js} +15 -14
- package/dist/{present-H36KTF2O.js → present-OK7QMCLR.js} +42 -37
- package/dist/{preview-CTXJ3D57.js → preview-XD7J2KHY.js} +65 -63
- package/dist/{privateProjectFile-V5OO6UFK.js → privateProjectFile-2WJ6GPY6.js} +14 -11
- package/dist/{probe-642YQRRC.js → probe-34RS6LVV.js} +19 -18
- package/dist/{producer-MYTLLTMI.js → producer-AX7EDIPJ.js} +1 -1
- package/dist/{progress-6MLINWFK.js → progress-WLBIHCZM.js} +4 -4
- package/dist/{projectConfig-PLXPNXPK.js → projectConfig-YBFY4W5A.js} +13 -12
- package/dist/{publication-2ZKN62ZD.js → publication-JPKV2ZQO.js} +8 -7
- package/dist/{publish-HU2M6QDD.js → publish-LRUVQX2E.js} +38 -33
- package/dist/{receivedRecordFollow-3ITTF3YV.js → receivedRecordFollow-6MPKPG36.js} +16 -15
- package/dist/{refresh-TS65XP6Q.js → refresh-HFE7YV57.js} +11 -9
- package/dist/{remove-background-U6BRLHPJ.js → remove-background-TS4QUALS.js} +17 -16
- package/dist/{render-SWLLJJUD.js → render-NYFK74KL.js} +13 -12
- package/dist/{render-4VGHRQHU.js → render-PSUJ4UCJ.js} +60 -59
- package/dist/{render-ZRUNNKX2.js → render-UQICTWO6.js} +55 -50
- package/dist/{render-batch-ADHAEQA7.js → render-batch-57ZDTS7Z.js} +13 -12
- package/dist/renderSetupWorker.js +5 -5
- package/dist/{resolver-QQYGQNPZ.js → resolver-3HJC4XU3.js} +10 -9
- package/dist/{reverse-XBPVILTU.js → reverse-CIMYQVFI.js} +1 -1
- package/dist/{run-VTUQ4O2Q.js → run-EFRNU53Z.js} +14 -12
- package/dist/{screenshotCapture-V7LXLF4P.js → screenshotCapture-K63UAXO7.js} +16 -15
- package/dist/{service-B5XDMOX2.js → service-EEEGLRHX.js} +22 -20
- package/dist/{share-HTU2KE7G.js → share-WQVRXWH4.js} +26 -24
- package/dist/{sherpa-2NXXLF6T.js → sherpa-BOHH3Q32.js} +20 -19
- package/dist/sherpaWorker.js +3 -3
- package/dist/{sites-ZK652FTA.js → sites-2IEQMGTW.js} +4 -4
- package/dist/skills/hyperframes/references/plugin-installation.md +5 -1
- package/dist/skills/hyperframes/references/skill-lifecycle.md +2 -2
- package/dist/skills/hyperframes/scripts/plugin-cli.mjs +9 -4
- package/dist/skills/media-use/scripts/lib/cube-validate.mjs +2 -1
- package/dist/skills/media-use/scripts/lib/index-gen.mjs +4 -2
- package/dist/skills/media-use/scripts/lib/received-env.mjs +98 -17
- package/dist/skills/media-use/scripts/resolve.mjs +26 -12
- package/dist/{skills-AWPGNGNO.js → skills-KB7UH26E.js} +12 -11
- package/dist/{skillsUpdateCheck-ZAZIJIA5.js → skillsUpdateCheck-ZDA5FPJB.js} +3 -3
- package/dist/{snapshot-5H4FR6WF.js → snapshot-HRR6LIPD.js} +59 -58
- package/dist/{snapshotHeldVideos-AATHSYN4.js → snapshotHeldVideos-QGJBXBJM.js} +14 -13
- package/dist/{src-ZPDXVFIW.js → src-FCITTGFH.js} +12 -11
- package/dist/{src-ZNVC4RPI.js → src-QOVNNDZN.js} +18 -17
- package/dist/{start-B6XPI43A.js → start-I7H5I3AS.js} +33 -31
- package/dist/{state-G4YJMBU5.js → state-O6CCLWF6.js} +4 -4
- package/dist/{staticProjectServer-VFWEQZO4.js → staticProjectServer-XEZD7JZE.js} +29 -28
- package/dist/{status-5QNG3TNV.js → status-2GKACMVC.js} +23 -21
- package/dist/studio/assets/hyperframes-player-VGx6ow_e.js +573 -0
- package/dist/studio/assets/{index-tvLrzMBv.js → index-B8Xt_Oyw.js} +180 -180
- package/dist/studio/assets/{index-CAjz3b83.js → index-BH18TdX9.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-xC5IGkfB.js → pausedVideoDecoder-Bx3fGNkU.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-SL7AIQYK.js → studio-api-KQ7DR667.js} +18 -17
- package/dist/{studioServer-S5MQI2JC.js → studioServer-KAU2XZ4F.js} +80 -78
- package/dist/subCompositionWorker.js +10 -9
- package/dist/{sync-KGQNR7TY.js → sync-3OJZRVPG.js} +19 -18
- package/dist/{synthesize-EIZ3XR5O.js → synthesize-JECKYUGO.js} +3 -3
- package/dist/{telemetry-WJSJUVUT.js → telemetry-HIZZLE6W.js} +9 -8
- package/dist/{templates-5NF42ZOM.js → templates-35GCXKO2.js} +23 -21
- package/dist/{textOverFace-DAVKJPMO.js → textOverFace-Q4I3PREP.js} +3 -3
- package/dist/{timeline-GM7EILYN.js → timeline-U2V63I7B.js} +28 -27
- package/dist/{tokens-PR2VAUXH.js → tokens-24TKAZCA.js} +13 -10
- package/dist/{transcribe-E6EJYLUY.js → transcribe-M3JJZ27F.js} +17 -16
- package/dist/{transcribe-ZD3MEPS2.js → transcribe-YHGN4HEM.js} +40 -38
- package/dist/{tts-XE4BPI5G.js → tts-CDBXQSAQ.js} +8 -7
- package/dist/{update-QYZNK7US.js → update-4DIZ3YQQ.js} +17 -14
- package/dist/{updateCheck-AYR63UOT.js → updateCheck-F56HX6MZ.js} +2 -2
- package/dist/{upgrade-4EFXDQBF.js → upgrade-6WAFZ7WN.js} +5 -5
- package/dist/{urlDownloader-KAT2IPSU.js → urlDownloader-DNNB6UOI.js} +12 -11
- package/dist/{validate-GVX3ACWN.js → validate-N5KPU4GC.js} +35 -34
- package/dist/{video-N2WHXSIC.js → video-T6YYFBNI.js} +15 -14
- package/dist/{voices-46E3JGAU.js → voices-OI37IYYG.js} +33 -31
- package/dist/warmCheck.js +55 -54
- package/package.json +1 -1
- package/dist/chunk-SEUEBRRL.js +0 -5128
- package/dist/studio/assets/hyperframes-player-Dscc6yHD.js +0 -573
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
iterateFontFamilyDeclarations,
|
|
12
12
|
normalizeSystemFontPrimaryFamilies,
|
|
13
13
|
resolveFontFamilyDeclarationFamilies
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7QNCNGN6.js";
|
|
15
15
|
import {
|
|
16
16
|
Semaphore,
|
|
17
17
|
prepareHeifImageInputs,
|
|
18
18
|
withMediaProbeSlot
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RHZE7BIX.js";
|
|
20
20
|
import {
|
|
21
21
|
EncoderInterruptedError,
|
|
22
22
|
encoderFailureError,
|
|
@@ -30,10 +30,10 @@ import {
|
|
|
30
30
|
refusesOutsideLink,
|
|
31
31
|
resolveRenderPaths,
|
|
32
32
|
toExternalAssetKey
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-H6LFXHAV.js";
|
|
34
34
|
import {
|
|
35
35
|
linksOutside
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6ACARSAZ.js";
|
|
37
37
|
import {
|
|
38
38
|
createStudioPositionSeekReapplyScript,
|
|
39
39
|
openRangeEnd,
|
|
@@ -211,7 +211,7 @@ import {
|
|
|
211
211
|
withPublicOnlyProxy,
|
|
212
212
|
writeCapturedFrame,
|
|
213
213
|
writeUrlDownloadTelemetry
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-ZY55U6ER.js";
|
|
215
215
|
import {
|
|
216
216
|
settleOnBrowserSafePort
|
|
217
217
|
} from "./chunk-PJQVJSMG.js";
|
|
@@ -236,7 +236,7 @@ import {
|
|
|
236
236
|
parsesAsScript,
|
|
237
237
|
prepareFlattenedInnerRoot,
|
|
238
238
|
stripSdrPngColourTags
|
|
239
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-JGKI7FHX.js";
|
|
240
240
|
import {
|
|
241
241
|
RENDER_TEMP_DIR
|
|
242
242
|
} from "./chunk-F6PI5O3H.js";
|
|
@@ -246,7 +246,7 @@ import {
|
|
|
246
246
|
createStagingDir,
|
|
247
247
|
removeScratch,
|
|
248
248
|
renameWithRetry
|
|
249
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-NIEOUHVQ.js";
|
|
250
250
|
import {
|
|
251
251
|
DISTRIBUTED_FPS,
|
|
252
252
|
HF_VFX_ATTR,
|
|
@@ -264,7 +264,7 @@ import {
|
|
|
264
264
|
redactTelemetryString,
|
|
265
265
|
resolveAuthoredTimingWindow,
|
|
266
266
|
toFps
|
|
267
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-XSARHJSW.js";
|
|
268
268
|
import {
|
|
269
269
|
CAPTURE_CANVAS_SELECTOR,
|
|
270
270
|
COMPOSITION_SOURCE_URL,
|
|
@@ -301,17 +301,17 @@ import {
|
|
|
301
301
|
sourceTimeAt,
|
|
302
302
|
styleElementsFor,
|
|
303
303
|
timeAtSourceTime
|
|
304
|
-
} from "./chunk-
|
|
304
|
+
} from "./chunk-RAHYMZNU.js";
|
|
305
305
|
import {
|
|
306
306
|
isSafePath,
|
|
307
307
|
terminalText
|
|
308
|
-
} from "./chunk-
|
|
308
|
+
} from "./chunk-OGL5VQGT.js";
|
|
309
309
|
import {
|
|
310
310
|
chromeMajorCeiling
|
|
311
|
-
} from "./chunk-
|
|
311
|
+
} from "./chunk-LWX5PI73.js";
|
|
312
312
|
import {
|
|
313
313
|
resolveReferencedStart
|
|
314
|
-
} from "./chunk-
|
|
314
|
+
} from "./chunk-GXKCFOMR.js";
|
|
315
315
|
import {
|
|
316
316
|
isUnresolvedAssetPlaceholder,
|
|
317
317
|
namesAnotherNetworkRoot,
|
|
@@ -320,7 +320,7 @@ import {
|
|
|
320
320
|
readTextFile,
|
|
321
321
|
resolveCompositionSrc,
|
|
322
322
|
resolveProjectRelativeSrc
|
|
323
|
-
} from "./chunk-
|
|
323
|
+
} from "./chunk-UVW5ZDAP.js";
|
|
324
324
|
import {
|
|
325
325
|
LOW_MEMORY_TOTAL_MB_THRESHOLD,
|
|
326
326
|
getCgroupMemoryLimitMb,
|
|
@@ -354,7 +354,7 @@ import {
|
|
|
354
354
|
rewriteInlineStyleAssetUrls,
|
|
355
355
|
styleBlockMatches,
|
|
356
356
|
stylesheetLinkMatches
|
|
357
|
-
} from "./chunk-
|
|
357
|
+
} from "./chunk-KZ5PV5TL.js";
|
|
358
358
|
import {
|
|
359
359
|
CANVAS_DIMENSIONS,
|
|
360
360
|
VALID_CANVAS_RESOLUTIONS,
|
|
@@ -6999,6 +6999,16 @@ var fileTooLarge = (file, bytes) => new CompositionTooLargeError(
|
|
|
6999
6999
|
`Composition file "${file}" is ${megabytes(bytes)}, over the ${megabytes(MAX_COMPOSITION_HTML_BYTES)} limit for one composition HTML file. Keep large data such as images, fonts and JSON in separate asset files and reference them by path instead of inlining them.`,
|
|
7000
7000
|
{ bytes, limitBytes: MAX_COMPOSITION_HTML_BYTES }
|
|
7001
7001
|
);
|
|
7002
|
+
var limitText = `One render generates at most ${megabytes(MAX_EXPANDED_COMPOSITION_BYTES)}`;
|
|
7003
|
+
function generatedTooLarge(file, bytes) {
|
|
7004
|
+
if (file === "composition variables") {
|
|
7005
|
+
return `Composition variable styles add up to ${megabytes(bytes)}. ${limitText}. Shorten the variable values or declare them on fewer elements.`;
|
|
7006
|
+
}
|
|
7007
|
+
if (file === "variable media sources") {
|
|
7008
|
+
return `Variable-bound media sources add up to ${megabytes(bytes)}. ${limitText}. Use shorter URLs or bind fewer elements.`;
|
|
7009
|
+
}
|
|
7010
|
+
return `Scripts, styles and rebased asset paths generated for compositions, ending at "${file}", add up to ${megabytes(bytes)}. One render generates at most ${megabytes(MAX_EXPANDED_COMPOSITION_BYTES)} for its mounts. Merge small inline scripts and style rules, keep data-composition-id values short, or mount scenes fewer times.`;
|
|
7011
|
+
}
|
|
7002
7012
|
var CompositionExpansionBudget = class {
|
|
7003
7013
|
bytes = 0;
|
|
7004
7014
|
mounts = 0;
|
|
@@ -7007,10 +7017,16 @@ var CompositionExpansionBudget = class {
|
|
|
7007
7017
|
chargeGenerated(file, bytes) {
|
|
7008
7018
|
this.generated += bytes;
|
|
7009
7019
|
if (this.generated <= MAX_EXPANDED_COMPOSITION_BYTES) return;
|
|
7010
|
-
throw new CompositionTooLargeError(
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7020
|
+
throw new CompositionTooLargeError(generatedTooLarge(file, this.generated), {
|
|
7021
|
+
bytes: this.generated,
|
|
7022
|
+
limitBytes: MAX_EXPANDED_COMPOSITION_BYTES,
|
|
7023
|
+
exceeded: "generated"
|
|
7024
|
+
});
|
|
7025
|
+
}
|
|
7026
|
+
chargeGeneratedIfItFits(bytes) {
|
|
7027
|
+
if (this.generated + bytes > MAX_EXPANDED_COMPOSITION_BYTES) return false;
|
|
7028
|
+
this.generated += bytes;
|
|
7029
|
+
return true;
|
|
7014
7030
|
}
|
|
7015
7031
|
charge(file, bytes) {
|
|
7016
7032
|
this.bytes += bytes;
|
|
@@ -7941,7 +7957,7 @@ function coalesceHeadStylesAndBodyScripts(html) {
|
|
|
7941
7957
|
}
|
|
7942
7958
|
return document2.toString();
|
|
7943
7959
|
}
|
|
7944
|
-
function inlineSubCompositions2(html, subCompositions, projectDir, variableOverrides, assetRoot, outsideFiles) {
|
|
7960
|
+
function inlineSubCompositions2(html, subCompositions, projectDir, variableOverrides, assetRoot, outsideFiles, budget) {
|
|
7945
7961
|
const { document: document2 } = parseHTML(html);
|
|
7946
7962
|
const head = document2.querySelector("head");
|
|
7947
7963
|
const body = document2.querySelector("body");
|
|
@@ -7950,11 +7966,11 @@ function inlineSubCompositions2(html, subCompositions, projectDir, variableOverr
|
|
|
7950
7966
|
const emitted = emitRootCompositionVariableStyles(
|
|
7951
7967
|
document2,
|
|
7952
7968
|
{},
|
|
7953
|
-
variableOverrides
|
|
7969
|
+
variableOverrides,
|
|
7970
|
+
{ chargeBytes: (bytes) => budget.chargeGenerated("composition variables", bytes) }
|
|
7954
7971
|
);
|
|
7955
7972
|
return { html: emitted ? document2.toString() : html, variablesByComp: {} };
|
|
7956
7973
|
}
|
|
7957
|
-
const budget = new CompositionExpansionBudget();
|
|
7958
7974
|
const readOnce = /* @__PURE__ */ new Map();
|
|
7959
7975
|
const readMountHtml = (srcPath) => {
|
|
7960
7976
|
const filePath = resolveCompositionFile(projectDir, srcPath, assetRoot);
|
|
@@ -7989,6 +8005,10 @@ function inlineSubCompositions2(html, subCompositions, projectDir, variableOverr
|
|
|
7989
8005
|
hostIdentityMap: hostIdentityByElement,
|
|
7990
8006
|
readVariableDefaults: readDeclaredDefaults,
|
|
7991
8007
|
parseHostVariables: parseHostVariableValues,
|
|
8008
|
+
resolveFilePath: (srcPath) => {
|
|
8009
|
+
const file = resolveCompositionFile(projectDir, srcPath, assetRoot);
|
|
8010
|
+
return file && relative2(projectDir, file).split(sep2).join("/");
|
|
8011
|
+
},
|
|
7992
8012
|
resolveHtml: (srcPath) => {
|
|
7993
8013
|
const compHtml = resolveMountHtml(srcPath);
|
|
7994
8014
|
if (compHtml) budget.charge(srcPath, Buffer.byteLength(compHtml));
|
|
@@ -8079,7 +8099,8 @@ function inlineSubCompositions2(html, subCompositions, projectDir, variableOverr
|
|
|
8079
8099
|
emitRootCompositionVariableStyles(
|
|
8080
8100
|
document2,
|
|
8081
8101
|
result.variablesByComp,
|
|
8082
|
-
variableOverrides
|
|
8102
|
+
variableOverrides,
|
|
8103
|
+
{ chargeBytes: (bytes) => budget.chargeGenerated("composition variables", bytes) }
|
|
8083
8104
|
);
|
|
8084
8105
|
assignMediaRenderIds(document2);
|
|
8085
8106
|
return { html: document2.toString(), variablesByComp: result.variablesByComp };
|
|
@@ -8504,10 +8525,6 @@ function localizeFontFaceUrls(html, downloadDir) {
|
|
|
8504
8525
|
(h, url, relPath) => h.replaceAll(`url(${url})`, `url("${relPath}")`)
|
|
8505
8526
|
);
|
|
8506
8527
|
}
|
|
8507
|
-
function urlOccurrenceRe(localPath) {
|
|
8508
|
-
const escaped = localPath.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
8509
|
-
return new RegExp(`url\\((["']?)${escaped}\\1\\)`, "g");
|
|
8510
|
-
}
|
|
8511
8528
|
var MAX_LOCAL_FONT_DATA_URI_BYTES = 5 * 1024 * 1024;
|
|
8512
8529
|
async function readLocalFont(absPath) {
|
|
8513
8530
|
const chunks = [];
|
|
@@ -8522,59 +8539,83 @@ async function readLocalFont(absPath) {
|
|
|
8522
8539
|
}
|
|
8523
8540
|
return { kind: "inline", buffer: Buffer.concat(chunks, totalBytes) };
|
|
8524
8541
|
}
|
|
8525
|
-
async function
|
|
8526
|
-
const
|
|
8527
|
-
|
|
8528
|
-
|
|
8542
|
+
async function localFontDataUri(localPath, projectDir, assetRoot, dataUriByAbsolutePath, log) {
|
|
8543
|
+
const absPath = localPath.startsWith("/") ? localPath : resolve5(projectDir, localPath);
|
|
8544
|
+
if (!isPathInside(absPath, projectDir) || escapesAssetRoot(absPath, assetRoot)) return void 0;
|
|
8545
|
+
if (refusesOutsideLink(projectDir, absPath, (line) => log.warn(`[Compiler] ${line}`))) {
|
|
8546
|
+
return void 0;
|
|
8547
|
+
}
|
|
8548
|
+
if (isPrivateCompositionFile(projectDir, absPath)) return void 0;
|
|
8549
|
+
if (dataUriByAbsolutePath.has(absPath)) return dataUriByAbsolutePath.get(absPath);
|
|
8550
|
+
const ext = absPath.match(/\.(woff2?|ttf|otf|ttc)$/i)?.[1]?.toLowerCase() ?? "ttf";
|
|
8551
|
+
try {
|
|
8552
|
+
const font = await readLocalFont(absPath);
|
|
8553
|
+
if (font.kind === "file-backed") {
|
|
8554
|
+
dataUriByAbsolutePath.set(absPath, void 0);
|
|
8555
|
+
defaultLogger.debug(
|
|
8556
|
+
`[Compiler] Kept large local font file-backed: ${localPath} (> ${(MAX_LOCAL_FONT_DATA_URI_BYTES / 1024 / 1024).toFixed(1)} MB)`
|
|
8557
|
+
);
|
|
8558
|
+
return void 0;
|
|
8559
|
+
}
|
|
8560
|
+
const { fontToDataUri } = await import("./deterministicFonts-645ILNLP.js");
|
|
8561
|
+
const dataUri = await fontToDataUri(font.buffer, ext, { compressToWoff2: false });
|
|
8562
|
+
dataUriByAbsolutePath.set(absPath, dataUri);
|
|
8563
|
+
defaultLogger.debug(
|
|
8564
|
+
`[Compiler] Embedded local font file: ${localPath} (${(font.buffer.length / 1024).toFixed(0)} KB \u2192 data URI)`
|
|
8565
|
+
);
|
|
8566
|
+
return dataUri;
|
|
8567
|
+
} catch (error) {
|
|
8568
|
+
defaultLogger.warn(
|
|
8569
|
+
`[Compiler] Could not embed local font ${localPath}: ${error instanceof Error ? error.message : String(error)}`
|
|
8570
|
+
);
|
|
8571
|
+
return void 0;
|
|
8572
|
+
}
|
|
8573
|
+
}
|
|
8574
|
+
var replaceInner = (whole, inner, tail, next) => whole.slice(0, whole.length - tail - inner.length) + next + whole.slice(whole.length - tail);
|
|
8575
|
+
async function embedLocalFontFaces(html, projectDir, assetRoot, budget, log = defaultLogger) {
|
|
8576
|
+
const dataUriByPath = /* @__PURE__ */ new Map();
|
|
8529
8577
|
const dataUriByAbsolutePath = /* @__PURE__ */ new Map();
|
|
8530
|
-
const fileBackedAbsolutePaths = /* @__PURE__ */ new Set();
|
|
8531
8578
|
for (const { parts: style } of styleBlockMatches(html)) {
|
|
8532
8579
|
for (const { parts: face } of fontFaceBlockMatches(style[1])) {
|
|
8533
|
-
const
|
|
8534
|
-
for (const { parts } of localFontFaceUrlMatches(block)) {
|
|
8580
|
+
for (const { parts } of localFontFaceUrlMatches(face[1])) {
|
|
8535
8581
|
const localPath = parts[1];
|
|
8536
|
-
if (!localPath ||
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
continue;
|
|
8542
|
-
}
|
|
8543
|
-
if (isPrivateCompositionFile(projectDir, absPath)) continue;
|
|
8544
|
-
const ext = absPath.match(/\.(woff2?|ttf|otf|ttc)$/i)?.[1]?.toLowerCase() ?? "ttf";
|
|
8545
|
-
try {
|
|
8546
|
-
if (fileBackedAbsolutePaths.has(absPath)) {
|
|
8547
|
-
embeddedPaths.add(localPath);
|
|
8548
|
-
continue;
|
|
8549
|
-
}
|
|
8550
|
-
let dataUri = dataUriByAbsolutePath.get(absPath);
|
|
8551
|
-
if (!dataUri) {
|
|
8552
|
-
const font = await readLocalFont(absPath);
|
|
8553
|
-
if (font.kind === "file-backed") {
|
|
8554
|
-
fileBackedAbsolutePaths.add(absPath);
|
|
8555
|
-
defaultLogger.debug(
|
|
8556
|
-
`[Compiler] Kept large local font file-backed: ${localPath} (> ${(MAX_LOCAL_FONT_DATA_URI_BYTES / 1024 / 1024).toFixed(1)} MB)`
|
|
8557
|
-
);
|
|
8558
|
-
embeddedPaths.add(localPath);
|
|
8559
|
-
continue;
|
|
8560
|
-
}
|
|
8561
|
-
dataUri = await toDataUri(font.buffer, ext, { compressToWoff2: false });
|
|
8562
|
-
dataUriByAbsolutePath.set(absPath, dataUri);
|
|
8563
|
-
defaultLogger.debug(
|
|
8564
|
-
`[Compiler] Embedded local font file: ${localPath} (${(font.buffer.length / 1024).toFixed(0)} KB \u2192 data URI)`
|
|
8565
|
-
);
|
|
8566
|
-
}
|
|
8567
|
-
result = result.replace(urlOccurrenceRe(localPath), `url("${dataUri}")`);
|
|
8568
|
-
embeddedPaths.add(localPath);
|
|
8569
|
-
} catch (error) {
|
|
8570
|
-
defaultLogger.warn(
|
|
8571
|
-
`[Compiler] Could not embed local font ${localPath}: ${error instanceof Error ? error.message : String(error)}`
|
|
8572
|
-
);
|
|
8573
|
-
}
|
|
8582
|
+
if (!localPath || dataUriByPath.has(localPath)) continue;
|
|
8583
|
+
dataUriByPath.set(
|
|
8584
|
+
localPath,
|
|
8585
|
+
await localFontDataUri(localPath, projectDir, assetRoot, dataUriByAbsolutePath, log)
|
|
8586
|
+
);
|
|
8574
8587
|
}
|
|
8575
8588
|
}
|
|
8576
8589
|
}
|
|
8577
|
-
return
|
|
8590
|
+
if (![...dataUriByPath.values()].some(Boolean)) return html;
|
|
8591
|
+
let warned = false;
|
|
8592
|
+
const embed = (source, localPath) => {
|
|
8593
|
+
const dataUri = dataUriByPath.get(localPath);
|
|
8594
|
+
if (!dataUri) return source;
|
|
8595
|
+
const inlined = `url("${dataUri}")`;
|
|
8596
|
+
if (budget.chargeGeneratedIfItFits(inlined.length - source.length)) return inlined;
|
|
8597
|
+
if (!warned) {
|
|
8598
|
+
warned = true;
|
|
8599
|
+
log.warn(
|
|
8600
|
+
`[Compiler] Kept local font ${localPath} file-backed: the page reached its inline size limit`
|
|
8601
|
+
);
|
|
8602
|
+
}
|
|
8603
|
+
return source;
|
|
8604
|
+
};
|
|
8605
|
+
return replaceMatches(
|
|
8606
|
+
html,
|
|
8607
|
+
styleBlockMatches(html),
|
|
8608
|
+
(style, css) => replaceInner(
|
|
8609
|
+
style,
|
|
8610
|
+
css,
|
|
8611
|
+
"</style>".length,
|
|
8612
|
+
replaceMatches(
|
|
8613
|
+
css,
|
|
8614
|
+
fontFaceBlockMatches(css),
|
|
8615
|
+
(face, body) => replaceInner(face, body, 1, replaceMatches(body, localFontFaceUrlMatches(body), embed))
|
|
8616
|
+
)
|
|
8617
|
+
)
|
|
8618
|
+
);
|
|
8578
8619
|
}
|
|
8579
8620
|
function renderGsapDist() {
|
|
8580
8621
|
try {
|
|
@@ -8600,32 +8641,42 @@ function rewriteUnresolvableGsapToCdn(html, projectDir, compSrcPath) {
|
|
|
8600
8641
|
return `${prefix}${gsapDist}${file}${suffix}`;
|
|
8601
8642
|
});
|
|
8602
8643
|
}
|
|
8603
|
-
function rebaseDirectEntryAssetPaths(html, projectDir, htmlPath) {
|
|
8644
|
+
function rebaseDirectEntryAssetPaths(html, projectDir, htmlPath, budget) {
|
|
8604
8645
|
if (!isPathInside(htmlPath, projectDir)) return html;
|
|
8605
8646
|
const entryPath = relative2(projectDir, htmlPath).replace(/\\/g, "/");
|
|
8606
8647
|
if (!entryPath.includes("/")) return html;
|
|
8607
8648
|
const { document: document2 } = parseHTML(html);
|
|
8608
8649
|
const assetExists = projectAssetExists(projectDir);
|
|
8650
|
+
const charge = (bytes) => budget.chargeGenerated(entryPath, bytes);
|
|
8609
8651
|
rewriteAssetPaths(
|
|
8610
8652
|
document2.querySelectorAll("[src], [href], [srcset]"),
|
|
8611
8653
|
entryPath,
|
|
8612
8654
|
(el, attr) => el.getAttribute(attr),
|
|
8613
8655
|
(el, attr, value) => el.setAttribute(attr, value),
|
|
8614
|
-
assetExists
|
|
8656
|
+
assetExists,
|
|
8657
|
+
charge
|
|
8615
8658
|
);
|
|
8616
8659
|
rewriteInlineStyleAssetUrls(
|
|
8617
8660
|
document2.querySelectorAll("[style]"),
|
|
8618
8661
|
entryPath,
|
|
8619
8662
|
(el) => el.getAttribute("style"),
|
|
8620
8663
|
(el, value) => el.setAttribute("style", value),
|
|
8621
|
-
assetExists
|
|
8664
|
+
assetExists,
|
|
8665
|
+
charge
|
|
8622
8666
|
);
|
|
8623
8667
|
for (const style of document2.querySelectorAll("style")) {
|
|
8624
|
-
style.textContent = rewriteCssAssetUrls(
|
|
8668
|
+
style.textContent = rewriteCssAssetUrls(
|
|
8669
|
+
style.textContent || "",
|
|
8670
|
+
entryPath,
|
|
8671
|
+
assetExists,
|
|
8672
|
+
charge
|
|
8673
|
+
);
|
|
8625
8674
|
}
|
|
8626
8675
|
return document2.toString();
|
|
8627
8676
|
}
|
|
8628
|
-
|
|
8677
|
+
var MAX_VARIABLE_MEDIA_SRC_BYTES = 8 * 1024;
|
|
8678
|
+
var MEDIA_SRC_CONTROL_CHARS = /[\u0000-\u001f\u007f]/;
|
|
8679
|
+
function bindVariableMediaSources(html, variables, budget, log) {
|
|
8629
8680
|
if (!html.includes("data-var-src")) return html;
|
|
8630
8681
|
const { document: document2 } = parseHTML(html);
|
|
8631
8682
|
const declared = {};
|
|
@@ -8636,8 +8687,17 @@ function bindVariableMediaSources(html, variables) {
|
|
|
8636
8687
|
let changed = false;
|
|
8637
8688
|
for (const el of document2.querySelectorAll("video[data-var-src], audio[data-var-src]")) {
|
|
8638
8689
|
if (el.closest("[data-variable-values]")) continue;
|
|
8639
|
-
const
|
|
8640
|
-
if (
|
|
8690
|
+
const bound = boundMediaSrc(el, values);
|
|
8691
|
+
if (bound === null) continue;
|
|
8692
|
+
const src = bound.trim();
|
|
8693
|
+
if (src.length > MAX_VARIABLE_MEDIA_SRC_BYTES || MEDIA_SRC_CONTROL_CHARS.test(src)) {
|
|
8694
|
+
log?.warn("[Compiler] Refused a variable media source that cannot be a URL", {
|
|
8695
|
+
length: src.length
|
|
8696
|
+
});
|
|
8697
|
+
continue;
|
|
8698
|
+
}
|
|
8699
|
+
if (el.getAttribute("src") === src) continue;
|
|
8700
|
+
budget.chargeGenerated("variable media sources", src.length);
|
|
8641
8701
|
el.setAttribute("src", src);
|
|
8642
8702
|
changed = true;
|
|
8643
8703
|
}
|
|
@@ -8657,10 +8717,18 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
8657
8717
|
throw new Error(`Entry file ${htmlPath} is not an .html file, so it is refused`);
|
|
8658
8718
|
}
|
|
8659
8719
|
assertCompositionFileSize(htmlPath, basename4(htmlPath));
|
|
8660
|
-
const
|
|
8720
|
+
const budget = new CompositionExpansionBudget();
|
|
8721
|
+
const entryHtml = rebaseDirectEntryAssetPaths(
|
|
8722
|
+
readTextFile(htmlPath),
|
|
8723
|
+
projectDir,
|
|
8724
|
+
htmlPath,
|
|
8725
|
+
budget
|
|
8726
|
+
);
|
|
8661
8727
|
const rawHtml = bindVariableMediaSources(
|
|
8662
8728
|
normalizeCompositionSrcs(rewriteUnresolvableGsapToCdn(entryHtml, projectDir), projectDir),
|
|
8663
|
-
options.variables ?? {}
|
|
8729
|
+
options.variables ?? {},
|
|
8730
|
+
budget,
|
|
8731
|
+
options.log
|
|
8664
8732
|
);
|
|
8665
8733
|
assertSubCompositionsUsable(rawHtml, projectDir, assetRoot, outsideFiles);
|
|
8666
8734
|
const probes = /* @__PURE__ */ new Map();
|
|
@@ -8691,7 +8759,8 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
8691
8759
|
projectDir,
|
|
8692
8760
|
options.variables ?? {},
|
|
8693
8761
|
assetRoot,
|
|
8694
|
-
outsideFiles
|
|
8762
|
+
outsideFiles,
|
|
8763
|
+
budget
|
|
8695
8764
|
);
|
|
8696
8765
|
const sanitizedHtml = stripPreloadNone(inlinedHtml);
|
|
8697
8766
|
const renderModeHints = detectRenderModeHints(sanitizedHtml, options.pageMotionBlur);
|
|
@@ -8770,6 +8839,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
8770
8839
|
htmlWithPreparedGifs,
|
|
8771
8840
|
projectDir,
|
|
8772
8841
|
assetRoot,
|
|
8842
|
+
budget,
|
|
8773
8843
|
options.log
|
|
8774
8844
|
);
|
|
8775
8845
|
const { html, externalAssets } = options.allowOutsideProjectAssets ? collectExternalAssets(
|
|
@@ -18786,7 +18856,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
|
|
|
18786
18856
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
18787
18857
|
if (probeResult.probeSession) {
|
|
18788
18858
|
try {
|
|
18789
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
18859
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-FCITTGFH.js");
|
|
18790
18860
|
await closeCaptureSession2(probeResult.probeSession);
|
|
18791
18861
|
} catch (err) {
|
|
18792
18862
|
log.warn("[plan] probe session close failed", {
|
|
@@ -22536,7 +22606,7 @@ function startServer(options = {}) {
|
|
|
22536
22606
|
});
|
|
22537
22607
|
async function shutdown(signal) {
|
|
22538
22608
|
log.info(`Received ${signal}, shutting down`);
|
|
22539
|
-
const { drainBrowserPool } = await import("./src-
|
|
22609
|
+
const { drainBrowserPool } = await import("./src-FCITTGFH.js");
|
|
22540
22610
|
await drainBrowserPool().catch(() => {
|
|
22541
22611
|
});
|
|
22542
22612
|
const handle = await Promise.race([
|
|
@@ -8,18 +8,18 @@ import {
|
|
|
8
8
|
DEFAULT_REGISTRY_URL,
|
|
9
9
|
fetchItemFile,
|
|
10
10
|
validRegistryItem
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HMNDJPLQ.js";
|
|
12
12
|
import {
|
|
13
13
|
publishRegistryFile,
|
|
14
14
|
registryTargetPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HYQ6S7R6.js";
|
|
16
16
|
import {
|
|
17
17
|
validateVariables
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XSARHJSW.js";
|
|
19
19
|
import {
|
|
20
20
|
realProjectRoot,
|
|
21
21
|
toolTrustedFileKind
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OGL5VQGT.js";
|
|
23
23
|
import {
|
|
24
24
|
isCompositionVariable
|
|
25
25
|
} from "./chunk-4NDSGKPO.js";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZY55U6ER.js";
|
|
11
11
|
|
|
12
12
|
// src/browser/gpuPolicy.ts
|
|
13
13
|
function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
|
|
|
17
17
|
return "auto";
|
|
18
18
|
}
|
|
19
19
|
async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
|
|
20
|
-
const { resolveBrowserGpuMode } = await import("./src-
|
|
20
|
+
const { resolveBrowserGpuMode } = await import("./src-FCITTGFH.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-R5C2CV7J.js";
|
|
23
23
|
import {
|
|
24
24
|
MEDIA_LINK_ATTR,
|
|
25
25
|
relinkSplitHalves
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CPQTWPMM.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_TARGET_LUFS,
|
|
29
29
|
absoluteLoudnessPlan,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
requestedProjectPath,
|
|
33
33
|
requiredFfmpeg,
|
|
34
34
|
resolveLocalAudioPath
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FAJRDYFU.js";
|
|
36
36
|
import {
|
|
37
37
|
PROXY_PARAMS_VERSION,
|
|
38
38
|
PROXY_PENDING_RETRY_AFTER_SECONDS,
|
|
@@ -57,11 +57,11 @@ import {
|
|
|
57
57
|
scanProjectMedia,
|
|
58
58
|
shouldPrewarmProxy,
|
|
59
59
|
waitForProxy
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-X3JZA7KH.js";
|
|
61
61
|
import {
|
|
62
62
|
probeAudioTrack,
|
|
63
63
|
probeMediaMetadata
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-AAZF6D3Z.js";
|
|
65
65
|
import {
|
|
66
66
|
HistoryBusyError,
|
|
67
67
|
MAX_WINDOW_IDLE_MS,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
resolveProjectSignature,
|
|
77
77
|
serveWhileOpen,
|
|
78
78
|
settledFileTag
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-4WUTXBRK.js";
|
|
80
80
|
import {
|
|
81
81
|
findTimelineScript,
|
|
82
82
|
parseGsapScriptAcorn
|
|
@@ -110,13 +110,13 @@ import {
|
|
|
110
110
|
pinWithinProject,
|
|
111
111
|
pinWritableWithinProject,
|
|
112
112
|
projectRelativePath,
|
|
113
|
+
protectedEntryWithin,
|
|
113
114
|
readProjectCacheFile,
|
|
114
115
|
realFilePath,
|
|
115
116
|
resolveWithinProject as resolveWithinProject2,
|
|
116
117
|
resolveWritableWithinProject,
|
|
117
|
-
toolTrustedFileWithin,
|
|
118
118
|
walkDir
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-AQNI4TCF.js";
|
|
120
120
|
import {
|
|
121
121
|
PREVIEW_FOR_ANOTHER_SITE_META,
|
|
122
122
|
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
@@ -135,7 +135,7 @@ import {
|
|
|
135
135
|
ensureHfIds,
|
|
136
136
|
stampHfIdsInPlace,
|
|
137
137
|
stripSdrPngColourTags
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-JGKI7FHX.js";
|
|
139
139
|
import {
|
|
140
140
|
RENDER_VARIABLES_FILE
|
|
141
141
|
} from "./chunk-F6PI5O3H.js";
|
|
@@ -146,7 +146,7 @@ import {
|
|
|
146
146
|
createStagingDir,
|
|
147
147
|
replaceFileAtomically,
|
|
148
148
|
retryWindowsHold
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-NIEOUHVQ.js";
|
|
150
150
|
import {
|
|
151
151
|
GSAP_BASE_URL_META,
|
|
152
152
|
PREVIEW_PROXY_BOX_PARAM,
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
normalizeGsapLocalRoot,
|
|
165
165
|
parseFps,
|
|
166
166
|
parsePreviewProxyBox
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-XSARHJSW.js";
|
|
168
168
|
import {
|
|
169
169
|
AFTER_FONTS_SCRIPT_TYPE,
|
|
170
170
|
RUNTIME_BOOTSTRAP_ATTR,
|
|
@@ -179,7 +179,7 @@ import {
|
|
|
179
179
|
resolveRateSpec,
|
|
180
180
|
sourceTimeAt,
|
|
181
181
|
stripEmbeddedRuntimeScripts
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-RAHYMZNU.js";
|
|
183
183
|
import {
|
|
184
184
|
ProjectRootMissingError,
|
|
185
185
|
folderGone,
|
|
@@ -188,11 +188,11 @@ import {
|
|
|
188
188
|
mkdirWithinProject,
|
|
189
189
|
realpath,
|
|
190
190
|
resolveWithinProject
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-OGL5VQGT.js";
|
|
192
192
|
import {
|
|
193
193
|
isWithinProjectRoot,
|
|
194
194
|
readProjectFile
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-UVW5ZDAP.js";
|
|
196
196
|
import {
|
|
197
197
|
decodeCssEscapes,
|
|
198
198
|
decodeWellFormedEscapes,
|
|
@@ -203,7 +203,7 @@ import {
|
|
|
203
203
|
rewriteCssAssetUrls,
|
|
204
204
|
rewriteInlineStyleAssetUrls,
|
|
205
205
|
sameInstant
|
|
206
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-KZ5PV5TL.js";
|
|
207
207
|
import {
|
|
208
208
|
HTML_ATTRIBUTE_ENTITIES,
|
|
209
209
|
MagicString,
|
|
@@ -368,7 +368,7 @@ function sameOriginPost(headers) {
|
|
|
368
368
|
return originMatches(headers.origin, host, proto);
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
-
// ../studio-server/dist/chunk-
|
|
371
|
+
// ../studio-server/dist/chunk-MWCV2KLJ.js
|
|
372
372
|
import { createHash } from "crypto";
|
|
373
373
|
import { closeSync, constants, fstatSync, openSync, readFileSync } from "fs";
|
|
374
374
|
import { dirname, join } from "path";
|
|
@@ -654,7 +654,7 @@ function studioMotionRenderRuntime(manifestContent, activeCompositionPath) {
|
|
|
654
654
|
applyManifest();
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
-
// ../studio-server/dist/chunk-
|
|
657
|
+
// ../studio-server/dist/chunk-KYJVUSNX.js
|
|
658
658
|
import { resolve } from "path";
|
|
659
659
|
function isAutoProxyEnabled(adapter) {
|
|
660
660
|
return adapter.autoProxy !== false;
|
|
@@ -701,7 +701,7 @@ async function injectMediaCodecMap(html, adapter, projectDir, compSrcPath, probe
|
|
|
701
701
|
return injectMediaCodecMapIntoHtml(html, projectDir, [{ html, compSrcPath }], probeCache, false);
|
|
702
702
|
}
|
|
703
703
|
|
|
704
|
-
// ../studio-server/dist/chunk-
|
|
704
|
+
// ../studio-server/dist/chunk-SFLQWTC6.js
|
|
705
705
|
import { existsSync, readFileSync as readFileSync2 } from "fs";
|
|
706
706
|
import { join as join2 } from "path";
|
|
707
707
|
import { readlinkSync } from "fs";
|
|
@@ -6405,6 +6405,9 @@ async function parseMutationBody(c) {
|
|
|
6405
6405
|
function ensureDir(projectDir, filePath) {
|
|
6406
6406
|
mkdirWithinProject(projectDir, dirname3(filePath));
|
|
6407
6407
|
}
|
|
6408
|
+
function forbiddenWriteTarget(c, projectDir, path) {
|
|
6409
|
+
return resolveWithinProject2(projectDir, path) ? c.json({ error: "forbidden", why: "protected_path" }, 403) : c.json({ error: "forbidden" }, 403);
|
|
6410
|
+
}
|
|
6408
6411
|
function generateCopyPath(projectDir, originalPath) {
|
|
6409
6412
|
const ext = originalPath.includes(".") ? "." + originalPath.split(".").pop() : "";
|
|
6410
6413
|
const base = ext ? originalPath.slice(0, -ext.length) : originalPath;
|
|
@@ -7016,7 +7019,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
7016
7019
|
let block = extractGsapScriptBlock(html);
|
|
7017
7020
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
7018
7021
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
7019
|
-
const { GSAP_CDN } = await import("./dist-
|
|
7022
|
+
const { GSAP_CDN } = await import("./dist-TTOW2KVO.js");
|
|
7020
7023
|
const bootstrap = [
|
|
7021
7024
|
`<script src="${GSAP_CDN}"></script>`,
|
|
7022
7025
|
"<script>",
|
|
@@ -8132,7 +8135,7 @@ function registerFileRoutes(api, adapter) {
|
|
|
8132
8135
|
const res = await resolveProjectFile(c, adapter, { mustExist: true, write: true });
|
|
8133
8136
|
if ("error" in res) return res.error;
|
|
8134
8137
|
const stat2 = statSync3(res.absPath);
|
|
8135
|
-
if (stat2.isDirectory() &&
|
|
8138
|
+
if (stat2.isDirectory() && protectedEntryWithin(res.project.dir, res.absPath)) {
|
|
8136
8139
|
return c.json({ error: "forbidden", why: "protected_path" }, 403);
|
|
8137
8140
|
}
|
|
8138
8141
|
const backup = snapshotBeforeWrite(res.project.dir, res.absPath);
|
|
@@ -8681,14 +8684,12 @@ function registerFileRoutes(api, adapter) {
|
|
|
8681
8684
|
return c.json({ error: "newPath required" }, 400);
|
|
8682
8685
|
}
|
|
8683
8686
|
const newAbs = resolveWritableWithinProject(res.project.dir, newPath);
|
|
8684
|
-
if (!newAbs)
|
|
8685
|
-
return c.json({ error: "forbidden" }, 403);
|
|
8686
|
-
}
|
|
8687
|
+
if (!newAbs) return forbiddenWriteTarget(c, res.project.dir, newPath);
|
|
8687
8688
|
if (existsSync32(newAbs)) {
|
|
8688
8689
|
return c.json({ error: "already exists" }, 409);
|
|
8689
8690
|
}
|
|
8690
8691
|
const isDirectory = statSync3(res.absPath, { throwIfNoEntry: false })?.isDirectory() ?? false;
|
|
8691
|
-
if (isDirectory &&
|
|
8692
|
+
if (isDirectory && protectedEntryWithin(res.project.dir, res.absPath, newAbs)) {
|
|
8692
8693
|
return c.json({ error: "forbidden", why: "protected_path" }, 403);
|
|
8693
8694
|
}
|
|
8694
8695
|
ensureDir(res.project.dir, newAbs);
|
|
@@ -8709,9 +8710,7 @@ function registerFileRoutes(api, adapter) {
|
|
|
8709
8710
|
}
|
|
8710
8711
|
const copyPath = generateCopyPath(project.dir, body.path);
|
|
8711
8712
|
const destAbs = resolveWritableWithinProject(project.dir, copyPath);
|
|
8712
|
-
if (!destAbs)
|
|
8713
|
-
return c.json({ error: "forbidden" }, 403);
|
|
8714
|
-
}
|
|
8713
|
+
if (!destAbs) return forbiddenWriteTarget(c, project.dir, copyPath);
|
|
8715
8714
|
ensureDir(project.dir, destAbs);
|
|
8716
8715
|
try {
|
|
8717
8716
|
createFileAtomically(destAbs, readFileSync4(srcAbs));
|