hyperframes 0.9.52 → 0.9.54
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-Z6G2DLNE.js → add-OVHVUHQR.js} +26 -21
- package/dist/{agentPromptGenerator-RCTC2XXL.js → agentPromptGenerator-L2B3HMHF.js} +16 -21
- package/dist/{animatedGifPrep-X7KILCDI.js → animatedGifPrep-YMJH33FX.js} +19 -20
- package/dist/api.js +52 -51
- package/dist/{appHistory-DK2XI4EZ.js → appHistory-T3ZLA7QN.js} +4 -3
- package/dist/{asset-A3ENWWCU.js → asset-ORCN4EVH.js} +2 -2
- package/dist/{assetCataloger-TIMZTOYH.js → assetCataloger-X23VB66T.js} +17 -17
- package/dist/{audio-HMCUO2CV.js → audio-NHNXBUI2.js} +103 -74
- package/dist/{auth-NXR3QM4C.js → auth-DQDDXQFC.js} +5 -5
- package/dist/{autoUpdate-TY7P2Z4F.js → autoUpdate-LF7BJN34.js} +4 -2
- package/dist/{avatars-36MYJUPA.js → avatars-KFUMWRVX.js} +23 -21
- package/dist/{backgroundChecks-EWWJEGF6.js → backgroundChecks-Y6RHADW6.js} +5 -3
- package/dist/backgroundChecksWorker.js +5 -4
- package/dist/{batchRender-VKM4E7PI.js → batchRender-CMG4SVBX.js} +27 -8
- package/dist/{beats-Z4B4B4KM.js → beats-JXZBK7JI.js} +17 -17
- package/dist/{benchmark-PLGO2THH.js → benchmark-CLU6JUGY.js} +34 -16
- package/dist/{billing-ZIXACCLR.js → billing-5GMYFDMC.js} +23 -22
- package/dist/{browser-VZFBNASB.js → browser-S4R6LZMF.js} +13 -13
- package/dist/{bundleWithLocalizedFonts-XD2XDEQL.js → bundleWithLocalizedFonts-SFUFSBEU.js} +1 -1
- package/dist/{capture-BAFLHNDI.js → capture-A3FLQIDI.js} +32 -33
- package/dist/{capture-GC4F54XT.js → capture-NL7V23HG.js} +5 -5
- package/dist/{captureCompositionFrame-YBVEFKWM.js → captureCompositionFrame-R7GYVNTF.js} +22 -22
- package/dist/{captureFile-R5JZ7WRA.js → captureFile-LXMDM5TD.js} +3 -3
- package/dist/{catalog-LHOCJUO2.js → catalog-42I7W7AU.js} +26 -21
- package/dist/{catch-up-6FNQ6I7Q.js → catch-up-TFSQZQZD.js} +16 -15
- package/dist/{check-S7T5LE6V.js → check-CXRQZBLD.js} +59 -56
- package/dist/{checkAudio-AKOI4AWK.js → checkAudio-AJUH6RU6.js} +20 -20
- package/dist/{checkBrowser-NABXGNNM.js → checkBrowser-4BLSYI25.js} +52 -49
- package/dist/{chunk-47MEWWCO.js → chunk-26RTKW2U.js} +2 -2
- package/dist/{chunk-UAU4SIOQ.js → chunk-2PASB3PC.js} +8 -8
- package/dist/{chunk-ZG6BVWQ7.js → chunk-32DAUKF5.js} +4 -4
- package/dist/{chunk-YXQA6MKA.js → chunk-3IHRXHJQ.js} +4 -4
- package/dist/{chunk-PRG42HNH.js → chunk-3IUBSGD2.js} +2 -2
- package/dist/{chunk-GEIWJSWN.js → chunk-3NPZZT2K.js} +10 -10
- package/dist/{chunk-5B425ZB3.js → chunk-3NXY6O4X.js} +1 -1
- package/dist/{chunk-U7ZCBWNM.js → chunk-4IUOWNDS.js} +3 -3
- package/dist/{chunk-4OHV7UZZ.js → chunk-4NG5GSTO.js} +1 -1
- package/dist/{chunk-CIMOTEZB.js → chunk-4Q3Q4NFK.js} +4 -4
- package/dist/{chunk-KUZTIMY3.js → chunk-4WK4O5FI.js} +8 -8
- package/dist/{chunk-CIGQUDEV.js → chunk-4ZFNNWUX.js} +51 -16
- package/dist/{chunk-2MNSS7PH.js → chunk-5HJZGP54.js} +3 -3
- package/dist/{chunk-UX2KMUKC.js → chunk-5XLTJMCN.js} +10 -10
- package/dist/{chunk-YXR5MVBM.js → chunk-63ESYLBY.js} +2 -2
- package/dist/{chunk-MP4TEYUJ.js → chunk-6EMFSRTW.js} +4 -1
- package/dist/{chunk-S5EMQAKL.js → chunk-6SRBTOGD.js} +3 -3
- package/dist/{chunk-7RLMDAUO.js → chunk-6T4PB35F.js} +2 -1
- package/dist/{chunk-IB722ALN.js → chunk-73UFPVUC.js} +2 -2
- package/dist/{chunk-KLIVZ5VG.js → chunk-75TCOXNT.js} +1 -1
- package/dist/{chunk-C66O6A2J.js → chunk-77U3646W.js} +2 -2
- package/dist/{chunk-64T46P7K.js → chunk-7RGWVZOS.js} +3 -3
- package/dist/{chunk-MF53JVZ5.js → chunk-7RI3U46M.js} +1 -1
- package/dist/{chunk-G6QCHM2N.js → chunk-7WRLK2K4.js} +5 -5
- package/dist/{chunk-YPURY3MW.js → chunk-AROERRUJ.js} +2 -2
- package/dist/{chunk-MOTJT42J.js → chunk-ATKA5KHE.js} +15 -3
- package/dist/{chunk-Z2EKCD7H.js → chunk-AU4ZBCR3.js} +1 -1
- package/dist/{chunk-6NGJ55V5.js → chunk-AYESPEPQ.js} +2 -2
- package/dist/{chunk-FCNMU7LC.js → chunk-B5HSHXE2.js} +2 -2
- package/dist/{chunk-CDK23M57.js → chunk-B6AK5P2D.js} +9 -9
- package/dist/{chunk-UBHBB3TB.js → chunk-BBDWXUO3.js} +45 -53
- package/dist/{chunk-AMWWQXTC.js → chunk-BDWLBCTG.js} +7 -7
- package/dist/{chunk-NQ3NHCF6.js → chunk-BNONW4QT.js} +2 -2
- package/dist/{chunk-POGZYVM2.js → chunk-C7LNWZ7G.js} +9 -9
- package/dist/{chunk-WN4W76IQ.js → chunk-CAYQATCT.js} +1 -1
- package/dist/{chunk-TDQUQAW5.js → chunk-CBCB6GPL.js} +105 -41
- package/dist/{chunk-U3LWQGCD.js → chunk-CIYNUD7Q.js} +1 -1
- package/dist/{chunk-SQ64IEA7.js → chunk-CNZOKODL.js} +3 -3
- package/dist/{chunk-7VQ3RAKO.js → chunk-CWXJZB44.js} +19 -16
- package/dist/{chunk-J45SCYTD.js → chunk-D4EGZYDN.js} +8 -8
- package/dist/{chunk-ZW6ZUKBB.js → chunk-DOLVT6CH.js} +1 -1
- package/dist/{chunk-E2KJT7JR.js → chunk-DVTRMGYG.js} +2 -2
- package/dist/{chunk-I6SCA2ME.js → chunk-DWDCE4PO.js} +55 -26
- package/dist/{chunk-P37ZACC6.js → chunk-DXVK3NMV.js} +3 -3
- package/dist/{chunk-DPVXBVLL.js → chunk-DZWAYZG2.js} +6254 -6096
- package/dist/{chunk-HD5RVDL6.js → chunk-E2DHBP6C.js} +1 -1
- package/dist/{chunk-IU5DC4HP.js → chunk-E7T5SMDK.js} +44 -15
- package/dist/{chunk-HS7LT4PL.js → chunk-E7X54BVP.js} +1 -1
- package/dist/{chunk-DE7Q2LWF.js → chunk-EA5W2DWO.js} +2 -2
- package/dist/{chunk-4Q2HYZZK.js → chunk-EB4IWBBC.js} +58 -3
- package/dist/{chunk-B2ZZYISD.js → chunk-ECGNWHFE.js} +29 -6
- package/dist/{chunk-H4S3WY2N.js → chunk-EKANCN4D.js} +3 -3
- package/dist/{chunk-TI7JN55F.js → chunk-EKCGL4MV.js} +1 -1
- package/dist/{chunk-7SZ7QQJ3.js → chunk-ELA3IV4P.js} +2 -2
- package/dist/{chunk-SZGQU7EB.js → chunk-ER22SVLT.js} +1 -1
- package/dist/{chunk-I2UMQAOQ.js → chunk-EXXIFMUX.js} +1 -1
- package/dist/{chunk-UIIQA7DN.js → chunk-EZQJFCWA.js} +6 -3
- package/dist/{chunk-YJFIGFON.js → chunk-F64VFCVC.js} +2 -2
- package/dist/{chunk-UX4HQHMS.js → chunk-F7B2YDPM.js} +17 -13
- package/dist/{chunk-ETXOQXWT.js → chunk-FICKJQU2.js} +5 -5
- package/dist/{chunk-24M5C5EQ.js → chunk-FUPEHRNT.js} +2 -2
- package/dist/{chunk-VXX4S2PH.js → chunk-GA6QR6LN.js} +648 -166
- package/dist/{chunk-P27QDOID.js → chunk-GEUM7NDY.js} +2 -2
- package/dist/chunk-GIOLHGCC.js +181 -0
- package/dist/{chunk-RMO7KIFX.js → chunk-H2GJDFF6.js} +4 -4
- package/dist/{chunk-7GVHPY7W.js → chunk-H5KHQ6KS.js} +1 -1
- package/dist/{chunk-DYYAFCZH.js → chunk-H7DKHNBF.js} +1 -1
- package/dist/{chunk-DONVZZLV.js → chunk-HYO4DIYT.js} +1 -1
- package/dist/{chunk-O45HB74L.js → chunk-IB6FFEDH.js} +32 -28
- package/dist/{chunk-MI54IK7G.js → chunk-IEESWUIQ.js} +11 -2
- package/dist/{chunk-6MKM2RVL.js → chunk-IH2C53YV.js} +460 -1
- package/dist/{chunk-6MYO2IHD.js → chunk-IHXMN5YH.js} +7 -0
- package/dist/{chunk-YHJOTCTV.js → chunk-IJYIIHGK.js} +10 -5
- package/dist/{chunk-NFRKPLTJ.js → chunk-IR2GEREV.js} +1 -1
- package/dist/{chunk-PCH55NAO.js → chunk-JAAIW4JR.js} +1 -1
- package/dist/{chunk-WPC2FKNB.js → chunk-JRSBBFUU.js} +405 -175
- package/dist/{chunk-L2KUIV56.js → chunk-JSYLOPVJ.js} +1 -1
- package/dist/{chunk-DE3JRSGT.js → chunk-KCF6Q54R.js} +1 -1
- package/dist/{chunk-2AZMG6DR.js → chunk-KTLRJZFK.js} +7 -7
- package/dist/{chunk-XWK2RSD5.js → chunk-KWTTELUY.js} +2 -2
- package/dist/{chunk-UB44XZOI.js → chunk-KYUCSRZU.js} +1 -1
- package/dist/{chunk-MOR3H5FK.js → chunk-LKWWY6WN.js} +1 -1
- package/dist/{chunk-HT4FWRIT.js → chunk-LRXARA5O.js} +1 -1
- package/dist/chunk-MEGSQW2I.js +72 -0
- package/dist/{chunk-445BBSZS.js → chunk-MPU2CRFV.js} +4 -4
- package/dist/{chunk-IMNIW22F.js → chunk-N7M2SNAF.js} +2 -2
- package/dist/{chunk-MQGRMXFN.js → chunk-NCLBKHCX.js} +4 -4
- package/dist/{chunk-4Y5IDZOJ.js → chunk-NKAW4RVE.js} +4 -4
- package/dist/{chunk-CQ5VQNOD.js → chunk-NKUUNSII.js} +1 -1
- package/dist/{chunk-Z46RV43W.js → chunk-NRGNEP3R.js} +2 -2
- package/dist/{chunk-ZGWOCGSJ.js → chunk-O6E5HSVF.js} +2 -2
- package/dist/{chunk-RCTY7VNK.js → chunk-O7TIBLSJ.js} +15 -101
- package/dist/{chunk-M3BJEZ7E.js → chunk-OIO7YMBP.js} +44 -13
- package/dist/{chunk-QUUZ2BGC.js → chunk-ON3CGL3V.js} +1 -1
- package/dist/{chunk-LZTBL7SR.js → chunk-OSKSTJNQ.js} +12 -2
- package/dist/{chunk-22EEGJLH.js → chunk-OTWFSHYH.js} +85 -57
- package/dist/{chunk-NXDFCWF2.js → chunk-OWS4ZWEY.js} +1 -1
- package/dist/{chunk-4QFWV5GQ.js → chunk-P2ZMVHTF.js} +2 -1
- package/dist/{chunk-N36NHUGP.js → chunk-P4YIRU76.js} +1 -1
- package/dist/{chunk-7QM73IH2.js → chunk-PAA5FUUL.js} +4 -4
- package/dist/{chunk-6PXVXIC7.js → chunk-PLOVBMJF.js} +177 -69
- package/dist/{chunk-T6VQGCN3.js → chunk-PPLFDG7N.js} +9 -5
- package/dist/chunk-PXLGDX2S.js +104 -0
- package/dist/{chunk-LNZHSISH.js → chunk-Q3ESTCZH.js} +11 -11
- package/dist/{chunk-G55B5LP6.js → chunk-Q42L7V5T.js} +1 -1
- package/dist/{chunk-3LIMD4YP.js → chunk-QBN2W4T3.js} +6 -8
- package/dist/{chunk-ZXMZSU5Y.js → chunk-QGKRHG4Q.js} +15 -15
- package/dist/{chunk-LIPVGXPV.js → chunk-QKYGGUOQ.js} +4 -4
- package/dist/{chunk-JJLPGVTA.js → chunk-QONV77VI.js} +1 -1
- package/dist/{chunk-UFET7UTU.js → chunk-RBBWUYMG.js} +4 -4
- package/dist/{chunk-4FWR7OE3.js → chunk-RXSPJW77.js} +4 -4
- package/dist/{chunk-X3IULMVV.js → chunk-RZJ7BHXB.js} +1 -1
- package/dist/{chunk-7RHN6N5F.js → chunk-SDFGDNWV.js} +1 -1
- package/dist/{chunk-R64WJS45.js → chunk-SOMX57XG.js} +6 -6
- package/dist/{chunk-42JBYXIQ.js → chunk-SUG2AA33.js} +42 -26
- package/dist/{chunk-IZQDQ5AN.js → chunk-SULPT5X6.js} +53 -17
- package/dist/{chunk-VOJ3ICMF.js → chunk-SVIA7POL.js} +1 -1
- package/dist/chunk-SWAG64KW.js +367 -0
- package/dist/{chunk-DC7AOIHN.js → chunk-T5S7U5C6.js} +1 -1
- package/dist/{chunk-L56WTLQP.js → chunk-TM7D3NOR.js} +34 -15
- package/dist/{chunk-KCPIENND.js → chunk-TMV76KPG.js} +1 -1
- package/dist/{chunk-H4LCNEA2.js → chunk-TRAPS5WB.js} +195 -128
- package/dist/{chunk-M4E7CMYS.js → chunk-TW4DB2NK.js} +2 -2
- package/dist/{chunk-XHUFLQGD.js → chunk-UZJ7Y7WU.js} +3 -3
- package/dist/{chunk-M425BL2U.js → chunk-VCKUDUPN.js} +1 -1
- package/dist/{chunk-M6TIOPL5.js → chunk-VT2K6I4A.js} +3 -3
- package/dist/{chunk-QP7MQ43Y.js → chunk-WAAXVZIT.js} +3 -3
- package/dist/{chunk-4XETQ5LC.js → chunk-WPD7JH6F.js} +2 -2
- package/dist/{chunk-HLXZFHEY.js → chunk-WPSPW7SI.js} +6 -6
- package/dist/{chunk-RULKJFRT.js → chunk-X6TDH2OM.js} +1 -1
- package/dist/chunk-XGEJPKRY.js +5069 -0
- package/dist/{chunk-APT2TSYC.js → chunk-Y6UCMYJZ.js} +1 -1
- package/dist/{chunk-7PBJR7WI.js → chunk-YBLBI3O2.js} +1 -1
- package/dist/{chunk-WSZJS4QC.js → chunk-YNF3SH26.js} +61 -10
- package/dist/{chunk-YRXIEP35.js → chunk-YU5LSWA2.js} +90 -11
- package/dist/{chunk-RIHRYTNB.js → chunk-YUDWGRNZ.js} +15 -15
- package/dist/{chunk-MR7VKWYT.js → chunk-YVCPUVHV.js} +1 -1
- package/dist/{clean-Y6YIQRPM.js → clean-JK4VQMTH.js} +35 -34
- package/dist/cli.js +67 -66
- package/dist/{cloud-A5U7YYNA.js → cloud-JZ2WKHQG.js} +4 -4
- package/dist/{cloud-5C5SCK4H.js → cloud-LU4FVT33.js} +7 -6
- package/dist/{cloudrun-EULFHQQL.js → cloudrun-QBXSGBGX.js} +9 -9
- package/dist/{compare-6XCTMUF3.js → compare-YE5BTDCG.js} +50 -48
- package/dist/{compiler-DUG4GFRI.js → compiler-QEA5UQRG.js} +9 -9
- package/dist/{component-JDQIZSAL.js → component-MGT5ZJ4M.js} +3 -3
- package/dist/{compositions-HZDEOSRL.js → compositions-7OF6FDCH.js} +30 -23
- package/dist/{contactSheet-O3FOOHOX.js → contactSheet-CCHQAZLA.js} +4 -4
- package/dist/{curve-SE7ZAMI6.js → curve-JQLVUDXR.js} +20 -19
- package/dist/{cuts-AEFJGBFP.js → cuts-MCJP6LMJ.js} +21 -20
- package/dist/{delete-EQUQ7Z2K.js → delete-PUYEW3RJ.js} +11 -8
- package/dist/{deploy-NSLC6BYZ.js → deploy-M4XGMJM5.js} +2 -2
- package/dist/{describeProject-FTJBPDL3.js → describeProject-P7CBZ6NW.js} +17 -17
- package/dist/{destroy-4O4T3KL3.js → destroy-6XJWSH2A.js} +2 -2
- package/dist/{deterministicFonts-QY4KNTOU.js → deterministicFonts-OXGNMVJE.js} +5 -5
- package/dist/{diff-VJ3CS7YE.js → diff-BATSO64W.js} +46 -44
- package/dist/{dist-2YJCNIWI.js → dist-G6W7GKGP.js} +6 -6
- package/dist/{dist-MNFB4YKV.js → dist-PC3EMMET.js} +21 -21
- package/dist/{dist-MXWEGMRB.js → dist-T62DJJZX.js} +6 -6
- package/dist/{doctor-RR7SNO6X.js → doctor-ONTGSPYF.js} +28 -23
- package/dist/{dotEnv-33RDHX7P.js → dotEnv-RZ52L7X3.js} +5 -4
- package/dist/{energy-PN23W2UJ.js → energy-FNZICGW2.js} +21 -20
- package/dist/{events-5OLO73VJ.js → events-6TNBAVVY.js} +23 -22
- package/dist/{events-NR6UPBHG.js → events-ENJZNXWG.js} +5 -5
- package/dist/{events-4ECJEB2W.js → events-LBHSU7C2.js} +12 -12
- package/dist/{execute-TS3BP65F.js → execute-RXTEBACV.js} +42 -42
- package/dist/{extract-GCZ5HSEN.js → extract-F2CWTMLX.js} +21 -20
- package/dist/{face-QKMYBRV3.js → face-7HL4CP32.js} +22 -21
- package/dist/{feedback-3H43EK7N.js → feedback-4NDDMECH.js} +46 -33
- package/dist/{ffmpeg-JRNM74WY.js → ffmpeg-3LL345SO.js} +18 -18
- package/dist/{figma-JGP2UGGU.js → figma-474E54NB.js} +3 -3
- package/dist/fontLocalizeCli.js +24 -25
- package/dist/{frames-OYSWKB3F.js → frames-EZWGM7QQ.js} +23 -22
- package/dist/{generate-TDXLUFMR.js → generate-I75DZWDU.js} +36 -34
- package/dist/{get-UB2MNBYO.js → get-BHU6CBWO.js} +11 -8
- package/dist/{gpuPolicy-6CTTH3NY.js → gpuPolicy-6J2STCV2.js} +15 -15
- package/dist/{grade-compare-2DXT4RWV.js → grade-compare-D4TBMCBG.js} +49 -47
- package/dist/{gsapParser-L7TM3RGH.js → gsapParser-TSPNHW7F.js} +1 -1
- package/dist/hangReport.js +2 -1
- package/dist/{heifImagePrep-VDZVZ4G7.js → heifImagePrep-VLYGRKSS.js} +20 -21
- package/dist/{help-RGKY4DR4.js → help-2CUXKYJ6.js} +1 -1
- package/dist/{history-AVDXYNAP.js → history-LVAVYTAN.js} +19 -18
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-NGTQABZC.js → info-SUZOEH6L.js} +29 -23
- package/dist/{init-C3EARHDW.js → init-XI5QN3A6.js} +46 -44
- package/dist/{ink-ISO3VXRQ.js → ink-OVDZOCQJ.js} +21 -20
- package/dist/{inspect-V6MPU5I5.js → inspect-INBCGPBD.js} +50 -47
- package/dist/{installer-FI6HT2FW.js → installer-JNQKFCTN.js} +10 -10
- package/dist/{keyframes-PTJDE47Y.js → keyframes-LYZJK4RH.js} +21 -17
- package/dist/{lambda-JTO5YD2I.js → lambda-DUDXZV6X.js} +21 -21
- package/dist/{layout-QMLEZP5T.js → layout-JKUJW6A4.js} +50 -47
- package/dist/{lint-6BWOQAW6.js → lint-NKDC7IJ2.js} +25 -19
- package/dist/{lintProject-G4MXY4YA.js → lintProject-5Z34NNS4.js} +6 -6
- package/dist/{list-7E4VD7JA.js → list-5HUMDJYL.js} +11 -8
- package/dist/{localPage-BQOYZAOW.js → localPage-RRBRFR4Y.js} +16 -16
- package/dist/{login-37MSZXCY.js → login-C3SHKITR.js} +6 -5
- package/dist/{logout-QGNBUJKS.js → logout-CCATTNTL.js} +2 -1
- package/dist/{look-5GXW3NVP.js → look-3TX2U4BE.js} +21 -20
- package/dist/{manager-TMKN4DX5.js → manager-45VB2G5F.js} +4 -4
- package/dist/{manager-J2IRAOR7.js → manager-MOR255LW.js} +16 -16
- package/dist/{measure-23IL23BL.js → measure-ZAKBHNGY.js} +11 -11
- package/dist/{media-treatment-7ODBREPX.js → media-treatment-QJ35DSED.js} +25 -24
- package/dist/{media-use-QJA6NB3V.js → media-use-YBKHJVXL.js} +12 -18
- package/dist/{models-2Z6SURXU.js → models-OQHKG7B4.js} +20 -20
- package/dist/{motionShot-CYS3L6FK.js → motionShot-TWQTREFH.js} +26 -26
- package/dist/{normalize-audio-6YVF4LED.js → normalize-audio-PXHPUOMD.js} +19 -19
- package/dist/{open-WQ6NRHCN.js → open-TVGO5KVF.js} +34 -27
- package/dist/{parakeetRunner-R7KK6ZHD.js → parakeetRunner-MVJMZSIG.js} +23 -23
- package/dist/{pipeline-HRCK2JQL.js → pipeline-4S5UE4O4.js} +18 -18
- package/dist/{plan-FQNKACYR.js → plan-AMBZUX55.js} +30 -30
- package/dist/{play-UJZBNX2O.js → play-KEAESNBM.js} +43 -39
- package/dist/{preflight-VIMLSE3I.js → preflight-K3CM3W55.js} +18 -18
- package/dist/{present-JIOVM3ZH.js → present-42WDBGBA.js} +35 -32
- package/dist/{preview-HCYGBEWR.js → preview-KSHBU7ZR.js} +43 -34
- package/dist/{probe-6YQA2ZZC.js → probe-TMSXGCL4.js} +21 -20
- package/dist/{producer-JIM74BGL.js → producer-KXRSJPJF.js} +1 -1
- package/dist/{projectConfig-VPL64JBD.js → projectConfig-LOHNVOJG.js} +13 -13
- package/dist/{publicNetwork-F3ZXSVOD.js → publicNetwork-GW7SVP7N.js} +1 -1
- package/dist/{publication-ST3VFFWM.js → publication-LYPU7NTZ.js} +8 -8
- package/dist/{publish-3TTCO4R4.js → publish-PYZXDQJW.js} +51 -38
- package/dist/{refresh-6ONVQ3WV.js → refresh-X5ZLKQO5.js} +2 -1
- package/dist/{remove-background-XTICO22L.js → remove-background-HVX52VOF.js} +19 -19
- package/dist/{render-PFBZJRAN.js → render-57ZYQ53S.js} +73 -62
- package/dist/{render-WYDOZEZ5.js → render-5KMA5P2U.js} +90 -57
- package/dist/{render-MG5MX45D.js → render-CM4MCNVA.js} +9 -9
- package/dist/{render-batch-C3XGAQGX.js → render-batch-URBBGOVC.js} +9 -9
- package/dist/renderSetupWorker.js +10 -10
- package/dist/{resolver-AGMKICJW.js → resolver-UPUCU4XT.js} +10 -10
- package/dist/{reverse-TV524NFW.js → reverse-UYS7KVE2.js} +1 -1
- package/dist/{run-NQBD5RDR.js → run-4LNEWQLG.js} +10 -6
- package/dist/{screenshotCapture-OUZMH7EQ.js → screenshotCapture-IF5AO5XM.js} +18 -18
- package/dist/{service-UIHDIMFM.js → service-OEOC34BD.js} +22 -21
- package/dist/{share-WD7MCA4I.js → share-NS7CMVSU.js} +25 -24
- package/dist/{sherpa-H67ZJICN.js → sherpa-QBTXL6JA.js} +22 -22
- package/dist/sherpaWorker.js +3 -3
- package/dist/skills/hyperframes-cli/references/cloud.md +1 -1
- package/dist/skills/media-use/audio/references/requirements.md +7 -7
- package/dist/skills/media-use/audio/references/tts.md +8 -6
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +39 -13
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +176 -2
- package/dist/skills/media-use/references/heygen.md +1 -1
- package/dist/{skills-7TUSQF6W.js → skills-S5U2MQAI.js} +16 -15
- package/dist/{skillsUpdateCheck-HF6SQWRA.js → skillsUpdateCheck-UZ7CZ6VC.js} +5 -3
- package/dist/{snapshot-P7ZSTKED.js → snapshot-YWFWQTAV.js} +118 -75
- package/dist/{src-H2EUJUV3.js → src-N2SMYJ44.js} +22 -23
- package/dist/{src-TQQ743H4.js → src-UQ3K3UW2.js} +31 -17
- package/dist/{start-7ZTAKHD4.js → start-4IA5GG5D.js} +34 -32
- package/dist/{staticProjectServer-X4PARIVN.js → staticProjectServer-5JP25RRX.js} +34 -33
- package/dist/{status-ELQXIXIB.js → status-ITCKXFBF.js} +25 -24
- package/dist/studio/assets/{hyperframes-player-D7LhzIg1.js → hyperframes-player-Oju91F6x.js} +2 -2
- package/dist/studio/assets/{index-D3WxJaqm.js → index-B0VEzzD2.js} +180 -180
- package/dist/studio/assets/index-Dv67Vrl6.js +74 -0
- package/dist/studio/assets/{index-CQ7o0CBU.js → index-XEm_N45R.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-BVUmBgn0.js → pausedVideoDecoder-p6zibxVM.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-OJEU24EG.js → studio-api-GENM2XVL.js} +21 -21
- package/dist/{studioServer-E5CLZC46.js → studioServer-SWR5Q3PD.js} +90 -77
- package/dist/{sync-VEJWMKDP.js → sync-CK6TTCXO.js} +21 -20
- package/dist/{synthesize-HOLHQCR2.js → synthesize-EXNEBJSY.js} +5 -5
- package/dist/{system-I5KGZTUG.js → system-JBPJHNTG.js} +3 -3
- package/dist/{telemetry-3U4UGQ5V.js → telemetry-T4HQ6AKZ.js} +12 -12
- package/dist/{templates-AUAOWIYA.js → templates-7O7NOIUC.js} +23 -22
- package/dist/{timeline-YO27AP66.js → timeline-P2PLN53O.js} +33 -32
- package/dist/{tokens-UXLQGLVG.js → tokens-SPQN27VG.js} +2 -2
- package/dist/{transcribe-FZ3TE4FK.js → transcribe-SCZG6IM4.js} +19 -19
- package/dist/{transcribe-I7MTUH4M.js → transcribe-YJQ3DDDI.js} +40 -39
- package/dist/{tts-3VHEX4RB.js → tts-5OAB5XX6.js} +1 -1
- package/dist/{update-KBKSO3SH.js → update-JYPZW35A.js} +18 -17
- package/dist/{updateCheck-MUYN55HR.js → updateCheck-5M2JJTH3.js} +4 -2
- package/dist/{upgrade-CRCX7CCK.js → upgrade-BP62FM6V.js} +7 -5
- package/dist/{urlDownloader-4EM6GLN4.js → urlDownloader-WOZQCE6P.js} +14 -14
- package/dist/{validate-Y2KF2DU3.js → validate-NEC5QLH7.js} +40 -39
- package/dist/{video-HG6SINBD.js → video-XEEBISSO.js} +17 -17
- package/dist/{voices-O4UHHFZS.js → voices-GCHA27JA.js} +34 -32
- package/dist/warmCheck.js +59 -57
- package/dist/warmCheckClient.js +2 -1
- package/package.json +1 -1
- package/dist/chunk-DQZRNGDS.js +0 -5069
- package/dist/chunk-IGLEPPTN.js +0 -24
- package/dist/chunk-L2U4ISSS.js +0 -93
- package/dist/studio/assets/index-BX3KHhGX.js +0 -71
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SOMX57XG.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_TARGET_LUFS,
|
|
25
25
|
absoluteLoudnessPlan,
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
requestedProjectPath,
|
|
29
29
|
requiredFfmpeg,
|
|
30
30
|
resolveLocalAudioPath
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5XLTJMCN.js";
|
|
32
32
|
import {
|
|
33
33
|
MEDIA_LINK_ATTR,
|
|
34
34
|
relinkSplitHalves
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-HYO4DIYT.js";
|
|
36
36
|
import {
|
|
37
37
|
PROXY_PARAMS_VERSION,
|
|
38
38
|
PROXY_PENDING_RETRY_AFTER_SECONDS,
|
|
@@ -56,11 +56,11 @@ import {
|
|
|
56
56
|
scanProjectMedia,
|
|
57
57
|
shouldPrewarmProxy,
|
|
58
58
|
waitForProxy
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-DWDCE4PO.js";
|
|
60
60
|
import {
|
|
61
61
|
probeAudioTrack,
|
|
62
62
|
probeMediaMetadata
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-NCLBKHCX.js";
|
|
64
64
|
import {
|
|
65
65
|
HistoryBusyError,
|
|
66
66
|
MAX_WINDOW_IDLE_MS,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
resolveProjectSignature,
|
|
76
76
|
serveWhileOpen,
|
|
77
77
|
settledFileTag
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-OTWFSHYH.js";
|
|
79
79
|
import {
|
|
80
80
|
findTimelineScript,
|
|
81
81
|
parseGsapScriptAcorn
|
|
@@ -94,10 +94,10 @@ import {
|
|
|
94
94
|
import {
|
|
95
95
|
getMimeType,
|
|
96
96
|
isAudioFile
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-P2ZMVHTF.js";
|
|
98
98
|
import {
|
|
99
99
|
MEDIA_INPUT_ARGS
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-6T4PB35F.js";
|
|
101
101
|
import {
|
|
102
102
|
isInHiddenOrVendorDir,
|
|
103
103
|
isLinkFreeWithinProject,
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
resolveWithinProject as resolveWithinProject2,
|
|
113
113
|
resolveWritableWithinProject,
|
|
114
114
|
walkDir
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-ER22SVLT.js";
|
|
116
116
|
import {
|
|
117
117
|
decodableAudioStream
|
|
118
118
|
} from "./chunk-D54ZDCZR.js";
|
|
@@ -121,7 +121,7 @@ import {
|
|
|
121
121
|
ensureHfIds,
|
|
122
122
|
stampHfIdsInPlace,
|
|
123
123
|
stripSdrPngColourTags
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-BBDWXUO3.js";
|
|
125
125
|
import {
|
|
126
126
|
atomicTempPath,
|
|
127
127
|
catchHeldRename,
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
createStagingDir,
|
|
130
130
|
replaceFileAtomically,
|
|
131
131
|
retryWindowsHold
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-KCF6Q54R.js";
|
|
133
133
|
import {
|
|
134
134
|
GSAP_BASE_URL_META,
|
|
135
135
|
PREVIEW_PROXY_BOX_PARAM,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
normalizeGsapLocalRoot,
|
|
148
148
|
parseFps,
|
|
149
149
|
parsePreviewProxyBox
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-4IUOWNDS.js";
|
|
151
151
|
import {
|
|
152
152
|
AFTER_FONTS_SCRIPT_TYPE,
|
|
153
153
|
RUNTIME_BOOTSTRAP_ATTR,
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
resolveRateSpec,
|
|
163
163
|
sourceTimeAt,
|
|
164
164
|
stripEmbeddedRuntimeScripts
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-XGEJPKRY.js";
|
|
166
166
|
import {
|
|
167
167
|
ProjectRootMissingError,
|
|
168
168
|
folderGone,
|
|
@@ -171,16 +171,11 @@ import {
|
|
|
171
171
|
mkdirWithinProject,
|
|
172
172
|
realpath,
|
|
173
173
|
resolveWithinProject
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-KWTTELUY.js";
|
|
175
175
|
import {
|
|
176
176
|
isWithinProjectRoot,
|
|
177
177
|
readProjectFile
|
|
178
|
-
} from "./chunk-
|
|
179
|
-
import {
|
|
180
|
-
FFPROBE_PATH_ENV,
|
|
181
|
-
findFfBinary,
|
|
182
|
-
requireFfBinary
|
|
183
|
-
} from "./chunk-IU5DC4HP.js";
|
|
178
|
+
} from "./chunk-6EMFSRTW.js";
|
|
184
179
|
import {
|
|
185
180
|
decodeCssEscapes,
|
|
186
181
|
decodeWellFormedEscapes,
|
|
@@ -191,7 +186,7 @@ import {
|
|
|
191
186
|
rewriteCssAssetUrls,
|
|
192
187
|
rewriteInlineStyleAssetUrls,
|
|
193
188
|
sameInstant
|
|
194
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-IH2C53YV.js";
|
|
195
190
|
import {
|
|
196
191
|
HTML_ATTRIBUTE_ENTITIES,
|
|
197
192
|
MagicString,
|
|
@@ -199,7 +194,7 @@ import {
|
|
|
199
194
|
decodeAuthoredAttribute,
|
|
200
195
|
scanHtmlOpeningTags,
|
|
201
196
|
unrollComputedTimeline
|
|
202
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-VCKUDUPN.js";
|
|
203
198
|
import {
|
|
204
199
|
parseHTML
|
|
205
200
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -208,6 +203,11 @@ import {
|
|
|
208
203
|
full,
|
|
209
204
|
simple
|
|
210
205
|
} from "./chunk-WC4MTXGN.js";
|
|
206
|
+
import {
|
|
207
|
+
FFPROBE_PATH_ENV,
|
|
208
|
+
findFfBinary,
|
|
209
|
+
requireFfBinary
|
|
210
|
+
} from "./chunk-E7T5SMDK.js";
|
|
211
211
|
|
|
212
212
|
// ../studio-server/dist/chunk-UEEXAVOA.js
|
|
213
213
|
function findUnsafeMutationValues(value, path = "body", options = {}) {
|
|
@@ -234,7 +234,7 @@ function findUnsafeDomPatchValues(value) {
|
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
// ../studio-server/dist/chunk-
|
|
237
|
+
// ../studio-server/dist/chunk-QSGY6LJM.js
|
|
238
238
|
import { hostname, networkInterfaces } from "os";
|
|
239
239
|
function isLoopbackHost(host) {
|
|
240
240
|
if (!host) return false;
|
|
@@ -288,15 +288,36 @@ function identityAllowed(host) {
|
|
|
288
288
|
if (bind === "" || isLoopbackHost(bind)) return false;
|
|
289
289
|
return hostMatchesBind(host, bind);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
if (identityAllowed(host)) return true;
|
|
291
|
+
function inAllowedHosts(host, allowedHosts) {
|
|
293
292
|
if (!allowedHosts) return false;
|
|
294
293
|
const name = hostnameOf(host);
|
|
295
294
|
return name !== "" && allowedHosts.some((allowed) => hostnameOf(allowed) === name);
|
|
296
295
|
}
|
|
296
|
+
function hostAllowed(host, allowedHosts) {
|
|
297
|
+
return identityAllowed(host) || inAllowedHosts(host, allowedHosts);
|
|
298
|
+
}
|
|
297
299
|
function hostHeaderAllowed(host, allowedHosts) {
|
|
298
300
|
return host !== void 0 && host !== "" && hostAllowed(host, allowedHosts);
|
|
299
301
|
}
|
|
302
|
+
function wildcardBindHostAllowed(host, allowedHosts) {
|
|
303
|
+
if (host === void 0 || host === "") return false;
|
|
304
|
+
return isLoopbackHost(host) || hostMatchesBind(host, "0.0.0.0") || inAllowedHosts(host, allowedHosts);
|
|
305
|
+
}
|
|
306
|
+
function refererNamesHost(referer, host) {
|
|
307
|
+
if (!referer) return false;
|
|
308
|
+
try {
|
|
309
|
+
return new URL(referer).host.toLowerCase() === host.toLowerCase();
|
|
310
|
+
} catch {
|
|
311
|
+
return false;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
function requestFromAnotherSite(headers) {
|
|
315
|
+
const site = headers.fetchSite;
|
|
316
|
+
if (site !== void 0) return site === "cross-site" || site === "same-site";
|
|
317
|
+
const { host } = headers;
|
|
318
|
+
if (!host || isLoopbackHost(host)) return false;
|
|
319
|
+
return !refererNamesHost(headers.referer, host);
|
|
320
|
+
}
|
|
300
321
|
function firstForwarded(value) {
|
|
301
322
|
const first = value?.split(",")[0]?.trim();
|
|
302
323
|
return first === "" ? void 0 : first;
|
|
@@ -466,7 +487,7 @@ function clearElementScreenshotIsolation() {
|
|
|
466
487
|
page.__hfThumbnailFaded = [];
|
|
467
488
|
}
|
|
468
489
|
|
|
469
|
-
// ../studio-server/dist/chunk-
|
|
490
|
+
// ../studio-server/dist/chunk-KWJGKBS5.js
|
|
470
491
|
import { resolve } from "path";
|
|
471
492
|
function isAutoProxyEnabled(adapter) {
|
|
472
493
|
return adapter.autoProxy !== false;
|
|
@@ -702,6 +723,17 @@ function studioMotionRenderRuntime(manifestContent, activeCompositionPath) {
|
|
|
702
723
|
|
|
703
724
|
// ../studio-server/dist/index.js
|
|
704
725
|
import { Hono } from "hono";
|
|
726
|
+
|
|
727
|
+
// ../core/dist/studioPreviewMark.js
|
|
728
|
+
var STUDIO_PREVIEW_MARK_META = "hyperframes-studio-preview";
|
|
729
|
+
var STUDIO_PREVIEW_CAPTURE_MODE = "capture";
|
|
730
|
+
var PREVIEW_FOR_ANOTHER_SITE_META = "hyperframes-preview-for-another-site";
|
|
731
|
+
var STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
|
|
732
|
+
var STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
|
|
733
|
+
var STUDIO_PREVIEW_ERROR_KINDS = "__hfPreviewErrorKinds";
|
|
734
|
+
var refusedPreviewMessage = (status) => `The preview page could not be loaded (HTTP ${status}).`;
|
|
735
|
+
|
|
736
|
+
// ../studio-server/dist/index.js
|
|
705
737
|
import { readFile } from "fs/promises";
|
|
706
738
|
import { join as join2 } from "path";
|
|
707
739
|
import { bodyLimit } from "hono/body-limit";
|
|
@@ -3994,16 +4026,6 @@ import { createReadStream, existsSync as existsSync5, readFileSync as readFileSy
|
|
|
3994
4026
|
import { Readable } from "stream";
|
|
3995
4027
|
import { join as join8, resolve as resolve4 } from "path";
|
|
3996
4028
|
import { createHash as createHash3 } from "crypto";
|
|
3997
|
-
|
|
3998
|
-
// ../core/dist/studioPreviewMark.js
|
|
3999
|
-
var STUDIO_PREVIEW_MARK_META = "hyperframes-studio-preview";
|
|
4000
|
-
var STUDIO_PREVIEW_CAPTURE_MODE = "capture";
|
|
4001
|
-
var STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
|
|
4002
|
-
var STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
|
|
4003
|
-
var STUDIO_PREVIEW_ERROR_KINDS = "__hfPreviewErrorKinds";
|
|
4004
|
-
var refusedPreviewMessage = (status) => `The preview page could not be loaded (HTTP ${status}).`;
|
|
4005
|
-
|
|
4006
|
-
// ../studio-server/dist/index.js
|
|
4007
4029
|
import { readlinkSync as readlinkSync2 } from "fs";
|
|
4008
4030
|
import { dirname as dirname4, join as join7, parse as parse2, relative as relative3, resolve as resolve32 } from "path";
|
|
4009
4031
|
import { readFileSync as readFileSync7 } from "fs";
|
|
@@ -4039,14 +4061,14 @@ import { dirname as dirname6, join as join11 } from "path";
|
|
|
4039
4061
|
import { createHash as createHash5, randomUUID as randomUUID2 } from "crypto";
|
|
4040
4062
|
import { isIP } from "net";
|
|
4041
4063
|
import { existsSync as existsSync7, readFileSync as readFileSync10, statSync as statSync7 } from "fs";
|
|
4042
|
-
import { join as join12, resolve as resolve5 } from "path";
|
|
4064
|
+
import { join as join12, relative as relative4, resolve as resolve5 } from "path";
|
|
4043
4065
|
import { execFile } from "child_process";
|
|
4044
4066
|
import { readFileSync as readFileSync11, rmSync as rmSync5, statSync as statSync8 } from "fs";
|
|
4045
|
-
import { basename as basename2, dirname as dirname7, join as join13, relative as
|
|
4067
|
+
import { basename as basename2, dirname as dirname7, join as join13, relative as relative5, sep as sep3 } from "path";
|
|
4046
4068
|
import { createHash as createHash6, randomBytes } from "crypto";
|
|
4047
4069
|
import { existsSync as existsSync8 } from "fs";
|
|
4048
4070
|
import { existsSync as existsSync9, readFileSync as readFileSync12, statSync as statSync9 } from "fs";
|
|
4049
|
-
import { join as join14, resolve as resolve6 } from "path";
|
|
4071
|
+
import { join as join14, relative as relative6, resolve as resolve6 } from "path";
|
|
4050
4072
|
import { spawn as spawn2 } from "child_process";
|
|
4051
4073
|
import { closeSync as closeSync3, constants as constants2, fstatSync as fstatSync3, openSync as openSync3, readSync } from "fs";
|
|
4052
4074
|
import { streamSSE as streamSSE2 } from "hono/streaming";
|
|
@@ -4147,8 +4169,8 @@ var PATH_ATTR = /(\s(?:src|href|poster|xlink:href)\s*=\s*)(?:"([^"]*)"|'([^']*)'
|
|
|
4147
4169
|
var CSS_ROOT_URL = /(\burl\(\s*)(["']?)(\/(?!\/)[^"')\s]*)\2/gi;
|
|
4148
4170
|
var projectRelative = (path, base) => ROOT_PATH.test(path) && path !== "/" && !path.startsWith(base) ? path.slice(1) : path;
|
|
4149
4171
|
var underBase = (path, base) => {
|
|
4150
|
-
const
|
|
4151
|
-
return
|
|
4172
|
+
const relative7 = projectRelative(path, base);
|
|
4173
|
+
return relative7 === path ? path : base + relative7;
|
|
4152
4174
|
};
|
|
4153
4175
|
function withRootPathsRelative(html, base) {
|
|
4154
4176
|
const css = (text2) => text2.replace(
|
|
@@ -5055,7 +5077,7 @@ function resolveGsapWriter(env) {
|
|
|
5055
5077
|
throw new Error(`Invalid ${GSAP_WRITER_MIGRATION.flag}=${configured}; expected recast or acorn`);
|
|
5056
5078
|
}
|
|
5057
5079
|
async function loadGsapParser() {
|
|
5058
|
-
return import("./gsapParser-
|
|
5080
|
+
return import("./gsapParser-TSPNHW7F.js");
|
|
5059
5081
|
}
|
|
5060
5082
|
function isDanglingSymlinkInProject(projectDir, lexicalPath) {
|
|
5061
5083
|
if (!isSafePath(projectDir, dirname3(lexicalPath))) return false;
|
|
@@ -5918,7 +5940,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5918
5940
|
let block = extractGsapScriptBlock(html);
|
|
5919
5941
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5920
5942
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5921
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5943
|
+
const { GSAP_CDN } = await import("./dist-T62DJJZX.js");
|
|
5922
5944
|
const bootstrap = [
|
|
5923
5945
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5924
5946
|
"<script>",
|
|
@@ -7920,7 +7942,48 @@ function corsProjectVideos(html) {
|
|
|
7920
7942
|
parts.push(html.slice(from));
|
|
7921
7943
|
return parts.join("");
|
|
7922
7944
|
}
|
|
7945
|
+
var JobAbandonedError = class extends Error {
|
|
7946
|
+
constructor() {
|
|
7947
|
+
super("job abandoned before it started");
|
|
7948
|
+
this.name = "JobAbandonedError";
|
|
7949
|
+
}
|
|
7950
|
+
};
|
|
7951
|
+
function createJobSlots(limit) {
|
|
7952
|
+
let running = 0;
|
|
7953
|
+
const waiting = [];
|
|
7954
|
+
const acquire = (signal) => new Promise((resolve7, reject) => {
|
|
7955
|
+
if (signal?.aborted) return reject(new JobAbandonedError());
|
|
7956
|
+
if (running < limit) {
|
|
7957
|
+
running++;
|
|
7958
|
+
return resolve7();
|
|
7959
|
+
}
|
|
7960
|
+
const leave = () => {
|
|
7961
|
+
waiting.splice(waiting.indexOf(start), 1);
|
|
7962
|
+
reject(new JobAbandonedError());
|
|
7963
|
+
};
|
|
7964
|
+
const start = () => {
|
|
7965
|
+
signal?.removeEventListener("abort", leave);
|
|
7966
|
+
resolve7();
|
|
7967
|
+
};
|
|
7968
|
+
waiting.push(start);
|
|
7969
|
+
signal?.addEventListener("abort", leave, { once: true });
|
|
7970
|
+
});
|
|
7971
|
+
const release = () => {
|
|
7972
|
+
const next = waiting.shift();
|
|
7973
|
+
if (next) next();
|
|
7974
|
+
else running--;
|
|
7975
|
+
};
|
|
7976
|
+
return async function run(job, signal) {
|
|
7977
|
+
await acquire(signal);
|
|
7978
|
+
try {
|
|
7979
|
+
return await job();
|
|
7980
|
+
} finally {
|
|
7981
|
+
release();
|
|
7982
|
+
}
|
|
7983
|
+
};
|
|
7984
|
+
}
|
|
7923
7985
|
var PROJECT_SIGNATURE_META = "hyperframes-project-signature";
|
|
7986
|
+
var runStillJob = createJobSlots(4);
|
|
7924
7987
|
function escapeGsapUrl(url) {
|
|
7925
7988
|
return url.replace(/&/g, "&").replace(/"/g, """);
|
|
7926
7989
|
}
|
|
@@ -8411,7 +8474,11 @@ ${etag}`;
|
|
|
8411
8474
|
return c.text("not found", 404);
|
|
8412
8475
|
}
|
|
8413
8476
|
try {
|
|
8414
|
-
const
|
|
8477
|
+
const inSlot = (make) => runStillJob(make, c.req.raw.signal);
|
|
8478
|
+
const ask = () => resolveStill(project.dir, file, at, proxyBox, inSlot, c.req.raw.signal);
|
|
8479
|
+
const still = await ask().catch(
|
|
8480
|
+
(err) => err instanceof JobAbandonedError && !c.req.raw.signal.aborted ? ask() : Promise.reject(err)
|
|
8481
|
+
);
|
|
8415
8482
|
return new Response(readFileSync6(still), {
|
|
8416
8483
|
headers: { "Content-Type": "image/jpeg", "Cache-Control": "private, max-age=3600" }
|
|
8417
8484
|
});
|
|
@@ -8986,9 +9053,9 @@ async function generateThumbnail(loadSharp, path, signal) {
|
|
|
8986
9053
|
async function resolveSource(adapter, id, url) {
|
|
8987
9054
|
const project = await adapter.resolveProject(id);
|
|
8988
9055
|
if (!project) throw new HTTPException(404);
|
|
8989
|
-
const
|
|
8990
|
-
if (!/\.jpe?g$/i.test(
|
|
8991
|
-
const path = pinWithinProject(project.dir,
|
|
9056
|
+
const relative7 = requestSubPath(url, "projects/:id/image-thumbnail");
|
|
9057
|
+
if (!/\.jpe?g$/i.test(relative7)) throw new HTTPException(415);
|
|
9058
|
+
const path = pinWithinProject(project.dir, relative7);
|
|
8992
9059
|
if (!path) throw new HTTPException(404);
|
|
8993
9060
|
const info = await stat(path).catch(() => {
|
|
8994
9061
|
throw new HTTPException(404);
|
|
@@ -9277,7 +9344,10 @@ function registerWaveformRoutes(api, adapter) {
|
|
|
9277
9344
|
const stats = statSync7(audioPath, { throwIfNoEntry: false });
|
|
9278
9345
|
if (!stats) return c.json({ error: "file not found" }, 404);
|
|
9279
9346
|
const cacheDir = join12(project.dir, ".waveform-cache");
|
|
9280
|
-
const cachePath = join12(
|
|
9347
|
+
const cachePath = join12(
|
|
9348
|
+
cacheDir,
|
|
9349
|
+
buildWaveformCacheKey(relative4(project.dir, audioPath), stats)
|
|
9350
|
+
);
|
|
9281
9351
|
try {
|
|
9282
9352
|
if (isWaveformCacheDirectory(cacheDir) && existsSync7(cachePath)) {
|
|
9283
9353
|
const peaks2 = JSON.parse(readFileSync10(cachePath, "utf-8"));
|
|
@@ -9531,7 +9601,7 @@ async function extractThenPublishWhole(extract, mediaPath, mediaTime, imagePath)
|
|
|
9531
9601
|
}
|
|
9532
9602
|
async function extractStill(projectDir, absPath, source, playhead, tools) {
|
|
9533
9603
|
const fileDir = dirname7(absPath);
|
|
9534
|
-
const mediaPath = pinWithinProject(projectDir,
|
|
9604
|
+
const mediaPath = pinWithinProject(projectDir, relative5(projectDir, join13(fileDir, source.src)));
|
|
9535
9605
|
if (!mediaPath) return { error: `forbidden media path: ${source.src}`, status: 403 };
|
|
9536
9606
|
const freezeDir = join13(projectDir, ...FREEZE_DIR);
|
|
9537
9607
|
const fileName = freezeStillFileName(source.id, playhead, tools.stillToken());
|
|
@@ -9547,7 +9617,7 @@ async function extractStill(projectDir, absPath, source, playhead, tools) {
|
|
|
9547
9617
|
imagePath
|
|
9548
9618
|
);
|
|
9549
9619
|
if (failed) return failed;
|
|
9550
|
-
const depth =
|
|
9620
|
+
const depth = relative5(projectDir, fileDir).split(sep3).filter(Boolean).length;
|
|
9551
9621
|
const stillPath = `${FREEZE_DIR.join("/")}/${fileName}`;
|
|
9552
9622
|
return { imageSrc: `${"../".repeat(depth)}${stillPath}`, stillPath, imagePath };
|
|
9553
9623
|
}
|
|
@@ -9790,7 +9860,7 @@ function registerPeakRoutes(api, adapter, decode = decodePeakMap) {
|
|
|
9790
9860
|
const stats = statSync9(mediaPath, { throwIfNoEntry: false });
|
|
9791
9861
|
if (!stats?.isFile()) return c.json({ error: "file not found" }, 404);
|
|
9792
9862
|
const cacheDir = join14(project.dir, ".waveform-cache");
|
|
9793
|
-
const cachePath = join14(cacheDir, buildPeakMapCacheKey(
|
|
9863
|
+
const cachePath = join14(cacheDir, buildPeakMapCacheKey(relative6(project.dir, mediaPath), stats));
|
|
9794
9864
|
const cached = readCachedBins(cacheDir, cachePath);
|
|
9795
9865
|
if (cached) return c.json({ binSeconds: PEAK_BIN_SECONDS, bins: cached });
|
|
9796
9866
|
let bins;
|
|
@@ -10488,16 +10558,21 @@ function previewErrorPage(status) {
|
|
|
10488
10558
|
const message = refusedPreviewMessage(status);
|
|
10489
10559
|
return `<!doctype html><meta charset="utf-8"><script>window.${STUDIO_PREVIEW_ERRORS}=[${JSON.stringify(message)}]</script><p>${message}</p>`;
|
|
10490
10560
|
}
|
|
10491
|
-
var
|
|
10492
|
-
|
|
10493
|
-
["
|
|
10561
|
+
var ANY_FILE_THE_PREVIEW_SERVES = /./;
|
|
10562
|
+
var GRANTED_TYPES = /* @__PURE__ */ new Map([
|
|
10563
|
+
["font", /^font\//],
|
|
10564
|
+
["script", /^text\/javascript\b/],
|
|
10565
|
+
["image", /^image\//],
|
|
10566
|
+
["video", /^video\//],
|
|
10567
|
+
["audio", /^audio\//],
|
|
10568
|
+
["empty", ANY_FILE_THE_PREVIEW_SERVES]
|
|
10494
10569
|
]);
|
|
10495
10570
|
var TOKEN_SEGMENT = /^~([\w-]{43})$/;
|
|
10496
10571
|
function opaqueFrameLoadGranted(load) {
|
|
10497
|
-
const
|
|
10498
|
-
if (!
|
|
10572
|
+
const type = load.origin === "null" ? GRANTED_TYPES.get(load.dest ?? "") : void 0;
|
|
10573
|
+
if (!type?.test(getMimeType(load.pathname))) return false;
|
|
10499
10574
|
const keepsStoredContentType = load.status === 304;
|
|
10500
|
-
return keepsStoredContentType ||
|
|
10575
|
+
return keepsStoredContentType || type.test(load.contentType ?? "");
|
|
10501
10576
|
}
|
|
10502
10577
|
function createFrameTokens() {
|
|
10503
10578
|
const secret = randomBytes2(32);
|
|
@@ -10557,22 +10632,50 @@ async function answerRefusedFrameWithPage(c, next) {
|
|
|
10557
10632
|
headers
|
|
10558
10633
|
});
|
|
10559
10634
|
}
|
|
10560
|
-
var fromAnotherSite = (c) => {
|
|
10561
|
-
|
|
10562
|
-
|
|
10563
|
-
|
|
10635
|
+
var fromAnotherSite = (c) => requestFromAnotherSite({
|
|
10636
|
+
fetchSite: c.req.header("sec-fetch-site"),
|
|
10637
|
+
host: c.req.header("host") ?? urlHost(c.req.url),
|
|
10638
|
+
referer: c.req.header("referer")
|
|
10639
|
+
});
|
|
10564
10640
|
var isThumbnailCapture = (c) => c.req.query(PREVIEW_CAPTURE_PARAM) !== void 0;
|
|
10641
|
+
async function markPreviewForAnotherSite(c) {
|
|
10642
|
+
if (c.res.status !== 200 || !c.res.headers.get("content-type")?.startsWith("text/html")) return;
|
|
10643
|
+
const headers = new Headers(c.res.headers);
|
|
10644
|
+
headers.delete("content-length");
|
|
10645
|
+
headers.delete("etag");
|
|
10646
|
+
const marked = injectTagsAtHeadStart(
|
|
10647
|
+
await c.res.text(),
|
|
10648
|
+
`<meta name="${PREVIEW_FOR_ANOTHER_SITE_META}">`
|
|
10649
|
+
);
|
|
10650
|
+
c.res = void 0;
|
|
10651
|
+
c.res = new Response(marked, { status: 200, headers });
|
|
10652
|
+
}
|
|
10653
|
+
var FRAMED_DESTS = /* @__PURE__ */ new Set(["document", "iframe", "frame", "embed", "object", "fencedframe"]);
|
|
10654
|
+
var framedByAnotherSite = (c) => {
|
|
10655
|
+
if (!fromAnotherSite(c)) return false;
|
|
10656
|
+
const dest = c.req.header("sec-fetch-dest");
|
|
10657
|
+
return dest === void 0 || FRAMED_DESTS.has(dest);
|
|
10658
|
+
};
|
|
10659
|
+
function withoutValidators(request) {
|
|
10660
|
+
const headers = new Headers(request.headers);
|
|
10661
|
+
headers.delete("if-none-match");
|
|
10662
|
+
headers.delete("if-modified-since");
|
|
10663
|
+
return new Request(request, { headers });
|
|
10664
|
+
}
|
|
10565
10665
|
var sandboxPreviewForAnotherSiteOrCapture = (sandboxCaptures) => async (c, next) => {
|
|
10666
|
+
if (framedByAnotherSite(c)) c.req.raw = withoutValidators(c.req.raw);
|
|
10566
10667
|
await next();
|
|
10567
10668
|
c.header("Vary", "Sec-Fetch-Site", { append: true });
|
|
10568
|
-
|
|
10669
|
+
const anotherSite = fromAnotherSite(c);
|
|
10670
|
+
if (anotherSite || sandboxCaptures && isThumbnailCapture(c))
|
|
10569
10671
|
c.header("Content-Security-Policy", "sandbox allow-scripts");
|
|
10672
|
+
if (anotherSite) await markPreviewForAnotherSite(c);
|
|
10570
10673
|
};
|
|
10571
|
-
|
|
10674
|
+
var refuseForAnotherSite = (what) => async (c, next) => {
|
|
10572
10675
|
if (fromAnotherSite(c))
|
|
10573
|
-
return c.json({ error:
|
|
10676
|
+
return c.json({ error: `forbidden: ${what} requested by another site` }, 403);
|
|
10574
10677
|
return next();
|
|
10575
|
-
}
|
|
10678
|
+
};
|
|
10576
10679
|
function urlHost(url) {
|
|
10577
10680
|
try {
|
|
10578
10681
|
return new URL(url).host || void 0;
|
|
@@ -10606,7 +10709,9 @@ function createStudioApi(adapter, options = {}) {
|
|
|
10606
10709
|
if (!projectId) return c.json({ error: "not found" }, 404);
|
|
10607
10710
|
return c.json({ token: frameTokens.tokenFor(projectId) }, 200, { "Cache-Control": "no-store" });
|
|
10608
10711
|
});
|
|
10609
|
-
api.use("/projects/:id/thumbnail/*",
|
|
10712
|
+
api.use("/projects/:id/thumbnail/*", refuseForAnotherSite("thumbnail"));
|
|
10713
|
+
api.use("/projects/:id/waveform/*", refuseForAnotherSite("waveform"));
|
|
10714
|
+
api.use("/projects/:id/peaks/*", refuseForAnotherSite("peaks"));
|
|
10610
10715
|
api.use(async function rejectCrossOriginWrites(c, next) {
|
|
10611
10716
|
if (c.req.method === "GET" || c.req.method === "HEAD" || c.req.method === "OPTIONS") {
|
|
10612
10717
|
return next();
|
|
@@ -10757,7 +10862,7 @@ ${key}`).digest("hex").slice(0, 32)}.html`);
|
|
|
10757
10862
|
}
|
|
10758
10863
|
};
|
|
10759
10864
|
}
|
|
10760
|
-
var
|
|
10865
|
+
var GRANTED_TYPES2 = /* @__PURE__ */ new Set(["Font", "Script", "Stylesheet", "Image", "Media", "Fetch", "XHR"]);
|
|
10761
10866
|
var PROXY_PARAM = "hf-proxy";
|
|
10762
10867
|
var VIDEO_FILE = /\.(mp4|webm|mov|mkv|avi|m4v|mxf|mts|m2ts)$/i;
|
|
10763
10868
|
function capturePreviewPrefix(captureUrl) {
|
|
@@ -10788,7 +10893,7 @@ function captureLoadGrant(load, captureUrl) {
|
|
|
10788
10893
|
const prefix = capturePreviewPrefix(captureUrl);
|
|
10789
10894
|
if (!prefix || !load.url.startsWith(prefix)) return null;
|
|
10790
10895
|
const url = new URL(load.url);
|
|
10791
|
-
if (isDotPath(url, prefix) || !
|
|
10896
|
+
if (isDotPath(url, prefix) || !GRANTED_TYPES2.has(load.resourceType)) return null;
|
|
10792
10897
|
const proxyWait = (load.resourceType === "XHR" || load.resourceType === "Fetch") && url.searchParams.has(PROXY_PARAM) && VIDEO_FILE.test(url.pathname);
|
|
10793
10898
|
if (load.method === "OPTIONS") return proxyWait ? "preflight" : null;
|
|
10794
10899
|
return load.method === "GET" ? "read" : null;
|
|
@@ -10830,7 +10935,7 @@ async function grantCaptureLoads(cdp, captureUrl) {
|
|
|
10830
10935
|
void sent.catch(() => void 0);
|
|
10831
10936
|
});
|
|
10832
10937
|
await cdp.send("Fetch.enable", {
|
|
10833
|
-
patterns: [...
|
|
10938
|
+
patterns: [...GRANTED_TYPES2].map((resourceType) => ({
|
|
10834
10939
|
urlPattern: `${prefix}*`,
|
|
10835
10940
|
resourceType,
|
|
10836
10941
|
requestStage: "Response"
|
|
@@ -10907,6 +11012,8 @@ export {
|
|
|
10907
11012
|
previewAllowedHostsFromEnv,
|
|
10908
11013
|
identityAllowed,
|
|
10909
11014
|
hostHeaderAllowed,
|
|
11015
|
+
wildcardBindHostAllowed,
|
|
11016
|
+
requestFromAnotherSite,
|
|
10910
11017
|
sameOriginPost,
|
|
10911
11018
|
stampProjectHfIds,
|
|
10912
11019
|
stampProjectHfIdsAsync,
|
|
@@ -10917,6 +11024,7 @@ export {
|
|
|
10917
11024
|
createStudioMotionRenderBodyScript,
|
|
10918
11025
|
STUDIO_PREVIEW_MARK_META,
|
|
10919
11026
|
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
11027
|
+
PREVIEW_FOR_ANOTHER_SITE_META,
|
|
10920
11028
|
buildSubCompositionHtml,
|
|
10921
11029
|
compositionsAffectedBy,
|
|
10922
11030
|
applyFileMutations,
|
|
@@ -4,6 +4,9 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
terminalText
|
|
9
|
+
} from "./chunk-IJYIIHGK.js";
|
|
7
10
|
import {
|
|
8
11
|
c
|
|
9
12
|
} from "./chunk-JCNPHRGX.js";
|
|
@@ -24,9 +27,10 @@ function formatLintFindings({ results, totalErrors, totalWarnings, totalInfos },
|
|
|
24
27
|
if (!verbose && finding.severity === "info") return;
|
|
25
28
|
const prefix = finding.severity === "error" ? c.error("\u2717") : finding.severity === "warning" ? c.warn("\u26A0") : c.dim("\u2139");
|
|
26
29
|
const fileLabel = findingFileLabel(file, finding, multiFile);
|
|
27
|
-
const loc = showElementId && finding.elementId ? ` ${c.accent(`[${finding.elementId}]`)}` : "";
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
const loc = showElementId && finding.elementId ? ` ${c.accent(`[${terminalText(finding.elementId)}]`)}` : "";
|
|
31
|
+
const message = terminalText(finding.message);
|
|
32
|
+
lines.push(` ${prefix} ${fileLabel}${c.bold(finding.code)}${loc}: ${message}`);
|
|
33
|
+
if (finding.fixHint) lines.push(` ${c.dim(`Fix: ${terminalText(finding.fixHint)}`)}`);
|
|
30
34
|
};
|
|
31
35
|
if (errorsFirst) {
|
|
32
36
|
for (const f of result.findings) if (f.severity === "error") format(f);
|
|
@@ -57,9 +61,9 @@ function formatLintStartupMessage(lintResult, mode) {
|
|
|
57
61
|
return [` Lint: ${counts} \u2014 ${hint}.`];
|
|
58
62
|
}
|
|
59
63
|
function findingFileLabel(file, finding, multiFile) {
|
|
60
|
-
if (finding.line === void 0) return multiFile ? c.dim(`[${file}] `) : "";
|
|
64
|
+
if (finding.line === void 0) return multiFile ? c.dim(`[${terminalText(file)}] `) : "";
|
|
61
65
|
const column = finding.column === void 0 ? "" : `:${finding.column}`;
|
|
62
|
-
return c.dim(`[${finding.file ?? file}:${finding.line}${column}] `);
|
|
66
|
+
return c.dim(`[${terminalText(finding.file ?? file)}:${finding.line}${column}] `);
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
export {
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
replaceFileAtomically
|
|
9
|
+
} from "./chunk-KCF6Q54R.js";
|
|
10
|
+
|
|
11
|
+
// src/utils/projectRecords.ts
|
|
12
|
+
import {
|
|
13
|
+
closeSync,
|
|
14
|
+
constants,
|
|
15
|
+
fstatSync,
|
|
16
|
+
lstatSync,
|
|
17
|
+
mkdirSync,
|
|
18
|
+
openSync,
|
|
19
|
+
readSync,
|
|
20
|
+
unlinkSync
|
|
21
|
+
} from "fs";
|
|
22
|
+
import { join } from "path";
|
|
23
|
+
var NO_FOLLOW = constants.O_NOFOLLOW ?? 0;
|
|
24
|
+
var NON_BLOCK = constants.O_NONBLOCK ?? 0;
|
|
25
|
+
function recordsDir(projectDir, create = false) {
|
|
26
|
+
const dir = join(projectDir, ".hyperframes");
|
|
27
|
+
try {
|
|
28
|
+
return lstatSync(dir).isDirectory() ? dir : null;
|
|
29
|
+
} catch {
|
|
30
|
+
if (!create) return null;
|
|
31
|
+
try {
|
|
32
|
+
mkdirSync(dir);
|
|
33
|
+
return dir;
|
|
34
|
+
} catch {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function readPlainFile(path, maxBytes) {
|
|
40
|
+
let fd;
|
|
41
|
+
try {
|
|
42
|
+
fd = openSync(path, constants.O_RDONLY | NO_FOLLOW | NON_BLOCK);
|
|
43
|
+
} catch {
|
|
44
|
+
return "";
|
|
45
|
+
}
|
|
46
|
+
try {
|
|
47
|
+
const stats = fstatSync(fd);
|
|
48
|
+
const named = lstatSync(path);
|
|
49
|
+
if (!stats.isFile() || !named.isFile() || named.ino !== stats.ino || named.dev !== stats.dev)
|
|
50
|
+
return "";
|
|
51
|
+
const length = Math.min(stats.size, maxBytes);
|
|
52
|
+
const buffer = Buffer.alloc(length);
|
|
53
|
+
readSync(fd, buffer, 0, length, stats.size - length);
|
|
54
|
+
return buffer.toString("utf8");
|
|
55
|
+
} catch {
|
|
56
|
+
return "";
|
|
57
|
+
} finally {
|
|
58
|
+
closeSync(fd);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function readRecord(projectDir, name, maxBytes) {
|
|
62
|
+
const dir = recordsDir(projectDir);
|
|
63
|
+
return dir ? readPlainFile(join(dir, name), maxBytes) : "";
|
|
64
|
+
}
|
|
65
|
+
function recordChangedAt(projectDir, name) {
|
|
66
|
+
const dir = recordsDir(projectDir);
|
|
67
|
+
try {
|
|
68
|
+
const stats = dir ? lstatSync(join(dir, name)) : null;
|
|
69
|
+
return stats?.isFile() ? stats.mtimeMs : 0;
|
|
70
|
+
} catch {
|
|
71
|
+
return 0;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function replaceFile(path, data, mode) {
|
|
75
|
+
try {
|
|
76
|
+
replaceFileAtomically(path, data, mode);
|
|
77
|
+
return true;
|
|
78
|
+
} catch {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function writeRecord(projectDir, name, data) {
|
|
83
|
+
const dir = recordsDir(projectDir, true);
|
|
84
|
+
return dir !== null && replaceFile(join(dir, name), data, 384);
|
|
85
|
+
}
|
|
86
|
+
function removeRecord(projectDir, name) {
|
|
87
|
+
const dir = recordsDir(projectDir);
|
|
88
|
+
try {
|
|
89
|
+
if (!dir || !lstatSync(join(dir, name)).isFile()) return false;
|
|
90
|
+
unlinkSync(join(dir, name));
|
|
91
|
+
return true;
|
|
92
|
+
} catch {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export {
|
|
98
|
+
readPlainFile,
|
|
99
|
+
readRecord,
|
|
100
|
+
recordChangedAt,
|
|
101
|
+
replaceFile,
|
|
102
|
+
writeRecord,
|
|
103
|
+
removeRecord
|
|
104
|
+
};
|