hyperframes 0.9.54 → 0.9.56
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-OVHVUHQR.js → add-KW7OTOWF.js} +23 -23
- package/dist/{agentPromptGenerator-L2B3HMHF.js → agentPromptGenerator-NNXUWNU4.js} +14 -13
- package/dist/{animatedGifPrep-YMJH33FX.js → animatedGifPrep-6ATQHQON.js} +15 -14
- package/dist/api.d.ts +4 -2
- package/dist/api.js +46 -44
- package/dist/{appHistory-T3ZLA7QN.js → appHistory-KHX53SGI.js} +6 -4
- package/dist/{asset-ORCN4EVH.js → asset-QVINGJRK.js} +2 -2
- package/dist/{assetCataloger-X23VB66T.js → assetCataloger-DENJPUBH.js} +15 -14
- package/dist/{audio-NHNXBUI2.js → audio-LB7HQYPJ.js} +28 -27
- package/dist/{auth-DQDDXQFC.js → auth-7AGRVI5A.js} +2 -2
- package/dist/{autoUpdate-LF7BJN34.js → autoUpdate-ITCP2JDM.js} +4 -4
- package/dist/{avatars-KFUMWRVX.js → avatars-2K2C74EQ.js} +19 -17
- package/dist/{backgroundChecks-Y6RHADW6.js → backgroundChecks-UOTBCWPN.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-CMG4SVBX.js → batchRender-Z7ESYQDS.js} +9 -7
- package/dist/{beats-JXZBK7JI.js → beats-TG6ZB3XH.js} +14 -14
- package/dist/{benchmark-CLU6JUGY.js → benchmark-RU5MLZHE.js} +20 -20
- package/dist/{billing-5GMYFDMC.js → billing-VB5PYYSN.js} +19 -19
- package/dist/{browser-S4R6LZMF.js → browser-VSQRY5GG.js} +12 -12
- package/dist/{bundleWithLocalizedFonts-SFUFSBEU.js → bundleWithLocalizedFonts-XDPJE355.js} +1 -1
- package/dist/{capture-A3FLQIDI.js → capture-M4FL7MWI.js} +25 -24
- package/dist/{capture-NL7V23HG.js → capture-TQCFWPAT.js} +4 -4
- package/dist/{captureCompositionFrame-R7GYVNTF.js → captureCompositionFrame-XF67Q6YK.js} +20 -19
- package/dist/{captureFile-LXMDM5TD.js → captureFile-F254H22J.js} +3 -3
- package/dist/{catalog-42I7W7AU.js → catalog-24EGH662.js} +23 -23
- package/dist/catalog-artifact/media-vectors.json +205 -0
- package/dist/{catch-up-TFSQZQZD.js → catch-up-L23HGDLB.js} +16 -16
- package/dist/{check-CXRQZBLD.js → check-F4HQVV2M.js} +56 -53
- package/dist/{checkAudio-AJUH6RU6.js → checkAudio-6DT3ONR7.js} +17 -16
- package/dist/{checkBrowser-4BLSYI25.js → checkBrowser-S7P4X7QV.js} +46 -45
- package/dist/{chunk-Q42L7V5T.js → chunk-2GRCTZNS.js} +1 -1
- package/dist/{chunk-EKANCN4D.js → chunk-2ZOJCSLJ.js} +3 -3
- package/dist/{chunk-ER22SVLT.js → chunk-3GVHDPEP.js} +1 -1
- package/dist/{chunk-MPU2CRFV.js → chunk-43CQTZGB.js} +13 -14
- package/dist/{chunk-63ESYLBY.js → chunk-4DJGUZJR.js} +2 -2
- package/dist/{chunk-B6AK5P2D.js → chunk-4GPKDDQZ.js} +7 -7
- package/dist/{chunk-KYUCSRZU.js → chunk-4WSJ5MUN.js} +1 -1
- package/dist/{chunk-T5S7U5C6.js → chunk-52XHPMCX.js} +1 -1
- package/dist/chunk-56T2OGYR.js +5085 -0
- package/dist/{chunk-4Q3Q4NFK.js → chunk-5GSCSZOS.js} +2 -2
- package/dist/{chunk-3L2POG2J.js → chunk-5IE5ZI66.js} +37 -8
- package/dist/{chunk-SWAG64KW.js → chunk-5ZDNSYTO.js} +8 -13
- package/dist/{chunk-N7M2SNAF.js → chunk-664QGMR4.js} +2 -2
- package/dist/chunk-677JGYQL.js +91 -0
- package/dist/{chunk-GA6QR6LN.js → chunk-6LONEKJR.js} +253 -158
- package/dist/{chunk-LEIR7IDJ.js → chunk-6LU6JICP.js} +80 -1
- package/dist/{chunk-SVIA7POL.js → chunk-6XRXUMFG.js} +2 -2
- package/dist/{chunk-4ZFNNWUX.js → chunk-7DKWEIH4.js} +10 -10
- package/dist/{chunk-GEUM7NDY.js → chunk-7E7VKASF.js} +2 -2
- package/dist/{chunk-5HJZGP54.js → chunk-7F4RAWDS.js} +2 -2
- package/dist/{chunk-OWS4ZWEY.js → chunk-7HQC5MDZ.js} +1 -1
- package/dist/{chunk-P4YIRU76.js → chunk-7QFFS657.js} +1 -1
- package/dist/{chunk-AYESPEPQ.js → chunk-7QFLMCTD.js} +6 -1
- package/dist/chunk-AGTBMLNM.js +42 -0
- package/dist/{chunk-BNONW4QT.js → chunk-AN6KWGYI.js} +2 -2
- package/dist/{chunk-JAAIW4JR.js → chunk-ANYW22IT.js} +1 -1
- package/dist/{chunk-JRSBBFUU.js → chunk-APCVZGU6.js} +402 -110
- package/dist/{chunk-7WRLK2K4.js → chunk-B6BWLFAF.js} +2 -2
- package/dist/{chunk-VCKUDUPN.js → chunk-BA33QNKK.js} +199 -15
- package/dist/{chunk-WPSPW7SI.js → chunk-BMVUB2CY.js} +6 -6
- package/dist/{chunk-5XLTJMCN.js → chunk-BPYNILOZ.js} +5 -5
- package/dist/{chunk-H5KHQ6KS.js → chunk-BR7GOCQJ.js} +1 -1
- package/dist/{chunk-6SRBTOGD.js → chunk-BTJYK56C.js} +3 -3
- package/dist/{chunk-EA5W2DWO.js → chunk-BUG5AOPJ.js} +3 -3
- package/dist/{chunk-7RI3U46M.js → chunk-BW4H55SU.js} +1 -1
- package/dist/{chunk-SDFGDNWV.js → chunk-BZXW5QU7.js} +1 -1
- package/dist/{chunk-WPD7JH6F.js → chunk-CBG6MIT2.js} +2 -2
- package/dist/{chunk-O7TIBLSJ.js → chunk-CKIVYAKG.js} +80 -15
- package/dist/{chunk-YVCPUVHV.js → chunk-CKIYT34K.js} +1 -1
- package/dist/{chunk-DWDCE4PO.js → chunk-CLRHKYOK.js} +6 -6
- package/dist/{chunk-3IUBSGD2.js → chunk-CNXZCMJZ.js} +2 -2
- package/dist/{chunk-F64VFCVC.js → chunk-CPSD7337.js} +51 -28
- package/dist/{chunk-73UFPVUC.js → chunk-CUO2HF4M.js} +2 -2
- package/dist/{chunk-JSYLOPVJ.js → chunk-CWIOKI2R.js} +1 -1
- package/dist/{chunk-IB6FFEDH.js → chunk-CXFW7YPT.js} +42 -48
- package/dist/{chunk-YNF3SH26.js → chunk-CZCZ5YXT.js} +3 -2
- package/dist/{chunk-SUG2AA33.js → chunk-D3WRRPHI.js} +10 -10
- package/dist/{chunk-CWXJZB44.js → chunk-DDCXMXAD.js} +11 -11
- package/dist/{chunk-X6TDH2OM.js → chunk-DUZ6Z2ZN.js} +1 -1
- package/dist/{chunk-DXVK3NMV.js → chunk-EBRN4YJH.js} +3 -3
- package/dist/{chunk-RBBWUYMG.js → chunk-EGR2ZFFP.js} +4 -4
- package/dist/{chunk-AU4ZBCR3.js → chunk-EKSS3KI7.js} +1 -1
- package/dist/{chunk-TMV76KPG.js → chunk-EUP7ODOV.js} +1 -1
- package/dist/{chunk-E2DHBP6C.js → chunk-FGGRBKWL.js} +1 -1
- package/dist/{chunk-GIOLHGCC.js → chunk-GTC2STHN.js} +116 -27
- package/dist/{chunk-E7T5SMDK.js → chunk-GWSMTN55.js} +51 -10
- package/dist/{chunk-QGKRHG4Q.js → chunk-HCQXGGVY.js} +18 -18
- package/dist/{chunk-WAAXVZIT.js → chunk-HOCV5AW6.js} +2 -2
- package/dist/{chunk-7RGWVZOS.js → chunk-HVG656G6.js} +3 -3
- package/dist/{chunk-D4EGZYDN.js → chunk-ICDGP335.js} +13 -10
- package/dist/{chunk-NKAW4RVE.js → chunk-IDGWNOBX.js} +1 -1
- package/dist/{chunk-YU5LSWA2.js → chunk-IHX3AFTY.js} +2 -2
- package/dist/{chunk-CAYQATCT.js → chunk-IO7PRQQC.js} +1 -1
- package/dist/{chunk-BDWLBCTG.js → chunk-IRZUZ32B.js} +5 -5
- package/dist/{chunk-QONV77VI.js → chunk-IT2QBRVS.js} +1 -1
- package/dist/{chunk-PXLGDX2S.js → chunk-JDXALWOM.js} +39 -24
- package/dist/{chunk-E7X54BVP.js → chunk-JPEIUGS5.js} +1 -1
- package/dist/{chunk-4IUOWNDS.js → chunk-JQKCRTVQ.js} +2 -2
- package/dist/{chunk-UZJ7Y7WU.js → chunk-KRYXZVA2.js} +3 -3
- package/dist/{chunk-CIYNUD7Q.js → chunk-L27Z3PZT.js} +1 -1
- package/dist/{chunk-CBCB6GPL.js → chunk-L5CBCPUH.js} +60 -33
- package/dist/{chunk-BBDWXUO3.js → chunk-L5NPBGQB.js} +15 -22
- package/dist/{chunk-B5HSHXE2.js → chunk-LH5FRVAO.js} +12 -7
- package/dist/{chunk-YBLBI3O2.js → chunk-LK7F7P2X.js} +6 -3
- package/dist/{chunk-4WK4O5FI.js → chunk-LRQEIKFT.js} +67 -27
- package/dist/{chunk-FUPEHRNT.js → chunk-LRWWCTSJ.js} +2 -2
- package/dist/{chunk-RXJUMVCA.js → chunk-MDRLJ737.js} +5 -2
- package/dist/{chunk-VK3MQSA2.js → chunk-MK4RH5L7.js} +5 -2
- package/dist/{chunk-AROERRUJ.js → chunk-MP52CUHL.js} +2 -2
- package/dist/{chunk-ATKA5KHE.js → chunk-MPOWSPBD.js} +3 -3
- package/dist/{chunk-H7DKHNBF.js → chunk-MVLAPENI.js} +36 -8
- package/dist/{chunk-2PASB3PC.js → chunk-NCJSN6SV.js} +5 -5
- package/dist/{chunk-DVTRMGYG.js → chunk-NFST2HIM.js} +2 -2
- package/dist/{chunk-C7LNWZ7G.js → chunk-OXT2LXZB.js} +8 -6
- package/dist/{chunk-MEGSQW2I.js → chunk-OZDELWQP.js} +2 -29
- package/dist/{chunk-EB4IWBBC.js → chunk-PCKKKICA.js} +18 -4
- package/dist/{chunk-SOMX57XG.js → chunk-PGHROSLJ.js} +4 -4
- package/dist/{chunk-Q3ESTCZH.js → chunk-PGJYA6I3.js} +11 -11
- package/dist/{chunk-NKUUNSII.js → chunk-PHAZT6EB.js} +1 -1
- package/dist/{chunk-KCF6Q54R.js → chunk-PUTPYYE4.js} +1 -1
- package/dist/{chunk-NRGNEP3R.js → chunk-PVF32NRA.js} +2 -2
- package/dist/{chunk-32DAUKF5.js → chunk-Q2TT62RQ.js} +4 -4
- package/dist/{chunk-EXXIFMUX.js → chunk-QBADK3LD.js} +13 -5
- package/dist/{chunk-DOLVT6CH.js → chunk-QJDMX53S.js} +1 -1
- package/dist/{chunk-F7B2YDPM.js → chunk-QNIID7EN.js} +6 -8
- package/dist/{chunk-FICKJQU2.js → chunk-QTZICZWT.js} +4 -4
- package/dist/{chunk-Y6UCMYJZ.js → chunk-R2LP7QPB.js} +1 -1
- package/dist/{chunk-YUDWGRNZ.js → chunk-RCGNYXWK.js} +14 -14
- package/dist/{chunk-CNZOKODL.js → chunk-RFULFCYW.js} +3 -3
- package/dist/{chunk-26RTKW2U.js → chunk-RRT6URIP.js} +2 -2
- package/dist/{chunk-IR2GEREV.js → chunk-SEC76O65.js} +1 -1
- package/dist/{chunk-3NXY6O4X.js → chunk-SGWDJLFL.js} +1 -1
- package/dist/{chunk-RXSPJW77.js → chunk-T5HYPGST.js} +4 -4
- package/dist/{chunk-77U3646W.js → chunk-TVZTTWU7.js} +2 -2
- package/dist/{chunk-ELA3IV4P.js → chunk-TY7EHE4Q.js} +2 -2
- package/dist/{chunk-75TCOXNT.js → chunk-UHVKV5IF.js} +1 -1
- package/dist/{chunk-SULPT5X6.js → chunk-UIMXEY4U.js} +6 -6
- package/dist/{chunk-KWTTELUY.js → chunk-UVPLW55S.js} +37 -1
- package/dist/{chunk-EKCGL4MV.js → chunk-VC4YMXUQ.js} +1 -1
- package/dist/{chunk-H2GJDFF6.js → chunk-VCSQLM36.js} +14 -9
- package/dist/{chunk-VT2K6I4A.js → chunk-VVXSMYXQ.js} +3 -3
- package/dist/{chunk-NCLBKHCX.js → chunk-W4AR7UZH.js} +2 -2
- package/dist/{chunk-TM7D3NOR.js → chunk-WFB4XPJR.js} +45 -11
- package/dist/{chunk-PAA5FUUL.js → chunk-WGWKT7ME.js} +3 -3
- package/dist/{chunk-LRXARA5O.js → chunk-WHX2OV4C.js} +1 -1
- package/dist/{chunk-O6E5HSVF.js → chunk-WUY74LHU.js} +2 -2
- package/dist/{chunk-RZJ7BHXB.js → chunk-XD5T43S7.js} +1 -1
- package/dist/{chunk-3NPZZT2K.js → chunk-XEVAW42J.js} +9 -9
- package/dist/{chunk-JHOCK3DG.js → chunk-XFF4XJZO.js} +11 -3
- package/dist/{chunk-4NG5GSTO.js → chunk-XKNNZ4WR.js} +1 -1
- package/dist/{chunk-3IHRXHJQ.js → chunk-XLP34AJR.js} +2 -2
- package/dist/{chunk-QKYGGUOQ.js → chunk-YDNBMPP3.js} +4 -4
- package/dist/{chunk-PLOVBMJF.js → chunk-YFWFCKKF.js} +291 -235
- package/dist/{chunk-EZQJFCWA.js → chunk-YOMFN6HH.js} +2 -2
- package/dist/{chunk-TRAPS5WB.js → chunk-YQSVPHOS.js} +27 -37
- package/dist/{chunk-OTWFSHYH.js → chunk-YWH7HWDP.js} +269 -145
- package/dist/chunk-YXX6CIHL.js +25 -0
- package/dist/{chunk-TW4DB2NK.js → chunk-Z72VXQPN.js} +2 -2
- package/dist/{chunk-KTLRJZFK.js → chunk-ZIF44RW2.js} +9 -10
- package/dist/{clean-JK4VQMTH.js → clean-VB6BH3FV.js} +30 -29
- package/dist/cli.js +66 -66
- package/dist/{cloud-JZ2WKHQG.js → cloud-7KRPD2K4.js} +4 -4
- package/dist/{cloud-LU4FVT33.js → cloud-A67BW6OH.js} +3 -3
- package/dist/{cloudrun-QBXSGBGX.js → cloudrun-VKBARVVT.js} +22 -9
- package/dist/{compare-YE5BTDCG.js → compare-SE55PMC3.js} +45 -44
- package/dist/{compiler-QEA5UQRG.js → compiler-WK7ABGRW.js} +6 -6
- package/dist/{component-MGT5ZJ4M.js → component-XT2AT3RY.js} +3 -3
- package/dist/{compositions-7OF6FDCH.js → compositions-ZZWLQNDQ.js} +25 -23
- package/dist/{contactSheet-CCHQAZLA.js → contactSheet-MXOASCDR.js} +4 -4
- package/dist/{curve-JQLVUDXR.js → curve-4RQQKZ2K.js} +19 -17
- package/dist/{cuts-MCJP6LMJ.js → cuts-M3QU2CBE.js} +20 -18
- package/dist/{delete-PUYEW3RJ.js → delete-5ZZNPK5G.js} +7 -7
- package/dist/{deploy-M4XGMJM5.js → deploy-VR5SQP4U.js} +9 -4
- package/dist/{describeProject-P7CBZ6NW.js → describeProject-NU5BVVIA.js} +14 -13
- package/dist/{destroy-6XJWSH2A.js → destroy-FFS62PAW.js} +9 -4
- package/dist/{deterministicFonts-OXGNMVJE.js → deterministicFonts-FQQNGORI.js} +4 -4
- package/dist/{diff-BATSO64W.js → diff-NQGTF6GR.js} +58 -52
- package/dist/{dist-T62DJJZX.js → dist-6GYOC3BU.js} +4 -4
- package/dist/{dist-G6W7GKGP.js → dist-APXZ5EN2.js} +3 -3
- package/dist/{dist-PC3EMMET.js → dist-B7IBHWIW.js} +18 -15
- package/dist/{doctor-ONTGSPYF.js → doctor-FATJGTPD.js} +22 -21
- package/dist/{energy-FNZICGW2.js → energy-PHDK6SKL.js} +20 -18
- package/dist/{events-LBHSU7C2.js → events-25VQ2O66.js} +10 -10
- package/dist/{events-6TNBAVVY.js → events-OIWXSBZA.js} +25 -22
- package/dist/{events-ENJZNXWG.js → events-RXVHG2NT.js} +5 -5
- package/dist/{execute-RXTEBACV.js → execute-MKP4Z573.js} +36 -35
- package/dist/{extract-F2CWTMLX.js → extract-YYNYXPOC.js} +20 -18
- package/dist/{face-7HL4CP32.js → face-JSTMFQRM.js} +21 -19
- package/dist/{feedback-4NDDMECH.js → feedback-PY6LMZCX.js} +19 -19
- package/dist/{ffmpeg-3LL345SO.js → ffmpeg-KLIB55FK.js} +13 -12
- package/dist/{figma-474E54NB.js → figma-ACFOXVPM.js} +3 -3
- package/dist/fontLocalizeCli.js +20 -19
- package/dist/{frames-EZWGM7QQ.js → frames-BLZCBXO7.js} +22 -20
- package/dist/{generate-I75DZWDU.js → generate-DMVEKZEV.js} +33 -31
- package/dist/{get-BHU6CBWO.js → get-3WZDQ5YM.js} +7 -7
- package/dist/{gpuPolicy-6J2STCV2.js → gpuPolicy-TT6UCOLQ.js} +13 -12
- package/dist/{grade-compare-D4TBMCBG.js → grade-compare-F5DJ53XH.js} +47 -44
- package/dist/hangReport.js +2 -2
- package/dist/{heifImagePrep-VLYGRKSS.js → heifImagePrep-UV23RWOG.js} +16 -15
- package/dist/{help-2CUXKYJ6.js → help-QMP5KFYW.js} +1 -1
- package/dist/{history-LVAVYTAN.js → history-UOZ4RDEZ.js} +21 -18
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +76 -76
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-SUZOEH6L.js → info-A6KSO64E.js} +21 -20
- package/dist/{init-XI5QN3A6.js → init-OQU46K3Q.js} +52 -47
- package/dist/{ink-OVDZOCQJ.js → ink-HGRKLGII.js} +20 -18
- package/dist/{inspect-INBCGPBD.js → inspect-BKENKUXF.js} +44 -43
- package/dist/{installer-JNQKFCTN.js → installer-Z6FTR7BJ.js} +8 -8
- package/dist/{keyframes-LYZJK4RH.js → keyframes-UDQGWKPW.js} +14 -14
- package/dist/{lambda-DUDXZV6X.js → lambda-SHXQFHLE.js} +23 -22
- package/dist/{layout-JKUJW6A4.js → layout-CJAVQ4D3.js} +44 -43
- package/dist/{lint-NKDC7IJ2.js → lint-RAPNYPWS.js} +15 -15
- package/dist/{lintProject-5Z34NNS4.js → lintProject-JZRM7UKH.js} +3 -3
- package/dist/{list-5HUMDJYL.js → list-4BKFMJQN.js} +7 -7
- package/dist/{localPage-RRBRFR4Y.js → localPage-BJW2TP77.js} +14 -13
- package/dist/{login-C3SHKITR.js → login-S5VZAGCI.js} +4 -4
- package/dist/{look-3TX2U4BE.js → look-V2I6BGUY.js} +20 -18
- package/dist/{manager-MOR255LW.js → manager-OS2FYJI5.js} +14 -13
- package/dist/{manager-45VB2G5F.js → manager-WQWU5VJ4.js} +5 -5
- package/dist/{measure-ZAKBHNGY.js → measure-RO5R2SUZ.js} +11 -11
- package/dist/{media-treatment-QJ35DSED.js → media-treatment-CS7BVMJW.js} +21 -20
- package/dist/{media-use-YBKHJVXL.js → media-use-W3DGCKFB.js} +5 -5
- package/dist/{models-OQHKG7B4.js → models-ZOGYW2SC.js} +18 -17
- package/dist/{motionShot-TWQTREFH.js → motionShot-IMRI7W7T.js} +24 -23
- package/dist/{normalize-audio-PXHPUOMD.js → normalize-audio-HXTFAZUK.js} +14 -14
- package/dist/{open-TVGO5KVF.js → open-LJDQ37KV.js} +25 -24
- package/dist/{parakeetRunner-MVJMZSIG.js → parakeetRunner-CKMSKDH6.js} +21 -20
- package/dist/{pipeline-4S5UE4O4.js → pipeline-ZNCYOTUH.js} +16 -15
- package/dist/{plan-AMBZUX55.js → plan-NCFS5T6W.js} +28 -27
- package/dist/{play-KEAESNBM.js → play-5UZDFFXJ.js} +39 -32
- package/dist/{preflight-K3CM3W55.js → preflight-H5XYFKFF.js} +16 -15
- package/dist/{present-42WDBGBA.js → present-EFXUFT5Y.js} +62 -46
- package/dist/{preview-KSHBU7ZR.js → preview-RV7ALGDQ.js} +35 -33
- package/dist/{probe-TMSXGCL4.js → probe-UB6DM2Q3.js} +20 -18
- package/dist/{producer-KXRSJPJF.js → producer-2PKB5CW5.js} +1 -1
- package/dist/{progress-IY6U35WH.js → progress-S36VQBQW.js} +3 -1
- package/dist/{projectConfig-LOHNVOJG.js → projectConfig-EUH5DILC.js} +12 -12
- package/dist/{publication-LYPU7NTZ.js → publication-VI2AXXKR.js} +6 -6
- package/dist/{publish-PYZXDQJW.js → publish-225GB7R4.js} +25 -25
- package/dist/{remove-background-HVX52VOF.js → remove-background-W2RLEQHJ.js} +17 -16
- package/dist/{render-CM4MCNVA.js → render-KXKBSNOQ.js} +9 -8
- package/dist/{render-57ZYQ53S.js → render-WMWCCMWI.js} +71 -54
- package/dist/{render-5KMA5P2U.js → render-Y3JKWEN4.js} +42 -39
- package/dist/{render-batch-URBBGOVC.js → render-batch-GK6CDHKN.js} +10 -9
- package/dist/renderSetupWorker.js +8 -8
- package/dist/{resolver-UPUCU4XT.js → resolver-5CRZD5XB.js} +9 -9
- package/dist/{reverse-UYS7KVE2.js → reverse-YPYKKQSJ.js} +1 -1
- package/dist/{run-4LNEWQLG.js → run-FQ76QNES.js} +7 -7
- package/dist/{sam-EGFXZF56.js → sam-A4NXDWSU.js} +4 -1
- package/dist/{screenshotCapture-IF5AO5XM.js → screenshotCapture-R6VE66NR.js} +16 -15
- package/dist/{service-OEOC34BD.js → service-P3IKHZFC.js} +18 -17
- package/dist/{share-NS7CMVSU.js → share-BU4VQL3B.js} +21 -20
- package/dist/{sherpa-QBTXL6JA.js → sherpa-44GLXY3A.js} +20 -19
- package/dist/sherpaWorker.js +5 -3
- package/dist/{sites-QK3F4AUS.js → sites-TAX3JLNX.js} +3 -1
- package/dist/skills/hyperframes/SKILL.md +2 -2
- package/dist/skills/hyperframes/references/format.md +11 -2
- package/dist/skills/hyperframes/references/overlays.md +1 -1
- package/dist/skills/hyperframes/references/plugin-installation.md +33 -22
- package/dist/skills/hyperframes/references/sound.md +1 -0
- package/dist/skills/hyperframes/scripts/plugin-cli.mjs +18 -13
- package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +64 -40
- package/dist/skills/hyperframes-cli/SKILL.md +2 -2
- package/dist/skills/media-use/SKILL.md +1 -1
- package/dist/skills/media-use/audio/scripts/lib/bgm.mjs +4 -1
- package/dist/skills/media-use/audio/scripts/lib/bgm.test.mjs +62 -1
- package/dist/skills/media-use/audio/scripts/lib/python.mjs +9 -1
- package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +16 -0
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +27 -2
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.test.mjs +40 -1
- package/dist/skills/media-use/scripts/lib/local-media-search.mjs +52 -23
- package/dist/skills/media-use/scripts/lib/local-media-search.test.mjs +73 -4
- package/dist/skills/media-use/scripts/lib/ltx-video-provider.mjs +3 -1
- package/dist/skills/media-use/scripts/lib/ltx-video-provider.test.mjs +16 -1
- package/dist/skills/media-use/scripts/resolve.mjs +4 -14
- package/dist/skills/media-use/scripts/transcribe.mjs +19 -3
- package/dist/skills/media-use/scripts/transcribe.test.mjs +60 -0
- package/dist/{skills-S5U2MQAI.js → skills-H4OZQ6VR.js} +15 -14
- package/dist/{skillsUpdateCheck-UZ7CZ6VC.js → skillsUpdateCheck-U3XZX7UE.js} +5 -5
- package/dist/{snapshot-YWFWQTAV.js → snapshot-FJQVXBFB.js} +59 -56
- package/dist/{src-N2SMYJ44.js → src-O6BHCR4O.js} +18 -17
- package/dist/{src-UQ3K3UW2.js → src-PAM5LJ6K.js} +12 -11
- package/dist/{start-4IA5GG5D.js → start-R7CYOQ5S.js} +31 -29
- package/dist/{state-7OIPR4BG.js → state-YFRV6TQH.js} +3 -1
- package/dist/{staticProjectServer-5JP25RRX.js → staticProjectServer-4X2OSUN4.js} +29 -28
- package/dist/{status-ITCKXFBF.js → status-VN3FAN4M.js} +21 -21
- package/dist/studio/assets/{hyperframes-player-Oju91F6x.js → hyperframes-player-SRLbmEDB.js} +1 -1
- package/dist/studio/assets/{index-B0VEzzD2.js → index-CgyBYe2L.js} +130 -130
- package/dist/studio/assets/{index-XEm_N45R.js → index-yuN1pZrv.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-p6zibxVM.js → pausedVideoDecoder-DtvSF8bV.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-GENM2XVL.js → studio-api-V3TMIWFB.js} +18 -15
- package/dist/{studioSelectionClient-W2S3H2VO.js → studioSelectionClient-S46TNAAZ.js} +2 -1
- package/dist/{studioServer-SWR5Q3PD.js → studioServer-GY2ZTR2E.js} +90 -77
- package/dist/{sync-CK6TTCXO.js → sync-2V3JYCDE.js} +20 -18
- package/dist/{synthesize-EXNEBJSY.js → synthesize-TQELPMS5.js} +5 -5
- package/dist/{system-JBPJHNTG.js → system-2YOII5LZ.js} +3 -3
- package/dist/{telemetry-T4HQ6AKZ.js → telemetry-KMRZ3IJV.js} +10 -10
- package/dist/{templates-7O7NOIUC.js → templates-EEFY4FPS.js} +129 -37
- package/dist/{timeline-P2PLN53O.js → timeline-HSRGYZ3Q.js} +28 -27
- package/dist/{tokens-SPQN27VG.js → tokens-NYFORL53.js} +2 -2
- package/dist/{transcribe-YJQ3DDDI.js → transcribe-CNIQYQ52.js} +37 -35
- package/dist/{transcribe-SCZG6IM4.js → transcribe-GFFWRWK3.js} +17 -16
- package/dist/{tts-5OAB5XX6.js → tts-NPMDYSXP.js} +1 -1
- package/dist/{update-JYPZW35A.js → update-BDMPUNNA.js} +17 -16
- package/dist/{updateCheck-5M2JJTH3.js → updateCheck-43UZ2USJ.js} +4 -4
- package/dist/{upgrade-BP62FM6V.js → upgrade-Z5B57UWL.js} +7 -7
- package/dist/{urlDownloader-WOZQCE6P.js → urlDownloader-KDZ76BKM.js} +12 -11
- package/dist/{validate-NEC5QLH7.js → validate-UQKZNR5K.js} +35 -34
- package/dist/{video-XEEBISSO.js → video-VR4363OG.js} +15 -14
- package/dist/{voices-GCHA27JA.js → voices-GUWAM3TH.js} +31 -29
- package/dist/warmCheck.js +56 -53
- package/dist/warmCheckClient.js +2 -2
- package/package.json +2 -1
- package/dist/chunk-XGEJPKRY.js +0 -5069
|
@@ -18,6 +18,9 @@ import {
|
|
|
18
18
|
removeTreeBestEffort,
|
|
19
19
|
removeTreeBestEffortAsync
|
|
20
20
|
} from "./chunk-Z5J67X44.js";
|
|
21
|
+
import {
|
|
22
|
+
PREVIEW_FOR_ANOTHER_SITE_META
|
|
23
|
+
} from "./chunk-YXX6CIHL.js";
|
|
21
24
|
import {
|
|
22
25
|
alphaDecoderFor,
|
|
23
26
|
pixelFormatHasAlpha,
|
|
@@ -33,7 +36,7 @@ import {
|
|
|
33
36
|
removeScratch,
|
|
34
37
|
renameWithRetry,
|
|
35
38
|
renameWithRetryAsync
|
|
36
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PUTPYYE4.js";
|
|
37
40
|
import {
|
|
38
41
|
DISTRIBUTED_FPS,
|
|
39
42
|
HF_COLOR_GROUP_ATTR,
|
|
@@ -63,7 +66,7 @@ import {
|
|
|
63
66
|
resolveAuthoredTimingWindow,
|
|
64
67
|
toFps,
|
|
65
68
|
validateVariables
|
|
66
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-JQKCRTVQ.js";
|
|
67
70
|
import {
|
|
68
71
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
69
72
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -89,6 +92,7 @@ import {
|
|
|
89
92
|
gainedVolumePoints,
|
|
90
93
|
htmlInCanvasForm,
|
|
91
94
|
injectScriptsIntoHtml,
|
|
95
|
+
injectTagsAtHeadStart,
|
|
92
96
|
isAudibleVideoElement,
|
|
93
97
|
isBentSegment,
|
|
94
98
|
normalizeAudioFxParams,
|
|
@@ -107,12 +111,12 @@ import {
|
|
|
107
111
|
sourceTimeAt,
|
|
108
112
|
timeAtSourceTime,
|
|
109
113
|
volumeSegmentSampleCount
|
|
110
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-56T2OGYR.js";
|
|
111
115
|
import {
|
|
112
116
|
isPrivateFileUnder,
|
|
113
117
|
isSafePath,
|
|
114
118
|
isStudioPrivatePath
|
|
115
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-UVPLW55S.js";
|
|
116
120
|
import {
|
|
117
121
|
browserPathFromEnv,
|
|
118
122
|
buildChromeLaunchEnv,
|
|
@@ -120,11 +124,12 @@ import {
|
|
|
120
124
|
compareBrowserVersionsDescending,
|
|
121
125
|
exceedsChromeCeiling,
|
|
122
126
|
isManagedChromeDir,
|
|
127
|
+
isPinnedHeadlessShell,
|
|
123
128
|
pickSharedShell
|
|
124
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-6LU6JICP.js";
|
|
125
130
|
import {
|
|
126
131
|
resolveReferencedStart
|
|
127
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-YQSVPHOS.js";
|
|
128
133
|
import {
|
|
129
134
|
isWithinProjectRoot,
|
|
130
135
|
resolveProjectRelativeSrc
|
|
@@ -137,13 +142,13 @@ import {
|
|
|
137
142
|
hostCpuCount,
|
|
138
143
|
isLowMemorySystem,
|
|
139
144
|
usableCpuCount
|
|
140
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-L27Z3PZT.js";
|
|
141
146
|
import {
|
|
142
147
|
isPathInside
|
|
143
148
|
} from "./chunk-IH2C53YV.js";
|
|
144
149
|
import {
|
|
145
150
|
readCompositionVariables
|
|
146
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-BA33QNKK.js";
|
|
147
152
|
import {
|
|
148
153
|
parseHTML
|
|
149
154
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -165,7 +170,7 @@ import {
|
|
|
165
170
|
FFPROBE_PATH_ENV,
|
|
166
171
|
findFfBinary,
|
|
167
172
|
findTrustedExecutable
|
|
168
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-GWSMTN55.js";
|
|
169
174
|
|
|
170
175
|
// ../engine/src/services/referenceBackground.ts
|
|
171
176
|
var REFERENCE_BACKGROUND_FIELD = "reference_background";
|
|
@@ -1030,7 +1035,7 @@ function scanHtmlOpeningTags(html) {
|
|
|
1030
1035
|
|
|
1031
1036
|
// ../engine/src/services/browserManager.ts
|
|
1032
1037
|
import { execFileSync } from "child_process";
|
|
1033
|
-
import { existsSync as existsSync2, readdirSync
|
|
1038
|
+
import { existsSync as existsSync2, readdirSync } from "fs";
|
|
1034
1039
|
import { join as join3 } from "path";
|
|
1035
1040
|
import { homedir } from "os";
|
|
1036
1041
|
|
|
@@ -1344,16 +1349,9 @@ function isSoftwareWebGlRenderer(rendererInfo) {
|
|
|
1344
1349
|
const renderer = rendererInfo.trim().toLowerCase();
|
|
1345
1350
|
return SOFTWARE_WEBGL_RENDERER_TOKENS.some((token) => renderer.includes(token));
|
|
1346
1351
|
}
|
|
1347
|
-
async function
|
|
1352
|
+
async function getPuppeteerCore() {
|
|
1348
1353
|
if (_puppeteer) return _puppeteer;
|
|
1349
|
-
|
|
1350
|
-
const mod = await import("puppeteer");
|
|
1351
|
-
_puppeteer = mod.default;
|
|
1352
|
-
} catch {
|
|
1353
|
-
const mod = await import("puppeteer-core");
|
|
1354
|
-
_puppeteer = mod.default;
|
|
1355
|
-
}
|
|
1356
|
-
if (!_puppeteer) throw new Error("Neither puppeteer nor puppeteer-core found");
|
|
1354
|
+
_puppeteer = (await import("puppeteer-core")).default;
|
|
1357
1355
|
return _puppeteer;
|
|
1358
1356
|
}
|
|
1359
1357
|
var GPU_PROBE_TIMEOUT_MS = 15e3;
|
|
@@ -1419,14 +1417,6 @@ var CACHED_HEADLESS_SHELL_EXECUTABLES = {
|
|
|
1419
1417
|
function cachedHeadlessShellExecutable(hostPlatform = process.platform, hostArch = process.arch) {
|
|
1420
1418
|
return CACHED_HEADLESS_SHELL_EXECUTABLES[`${hostPlatform}/${hostArch}`];
|
|
1421
1419
|
}
|
|
1422
|
-
function isNonEmptyFile(path) {
|
|
1423
|
-
try {
|
|
1424
|
-
const stat = statSync(path, { throwIfNoEntry: false });
|
|
1425
|
-
return stat?.isFile() === true && stat.size > 0;
|
|
1426
|
-
} catch {
|
|
1427
|
-
return false;
|
|
1428
|
-
}
|
|
1429
|
-
}
|
|
1430
1420
|
function findCachedHeadlessShell(baseDir) {
|
|
1431
1421
|
if (!existsSync2(baseDir)) return void 0;
|
|
1432
1422
|
const executable = cachedHeadlessShellExecutable();
|
|
@@ -1437,7 +1427,7 @@ function findCachedHeadlessShell(baseDir) {
|
|
|
1437
1427
|
for (const version of versions) {
|
|
1438
1428
|
if (exceedsChromeCeiling(version, ceiling)) continue;
|
|
1439
1429
|
const binary = join3(baseDir, version, ...executable);
|
|
1440
|
-
if (
|
|
1430
|
+
if (isPinnedHeadlessShell(binary)) return binary;
|
|
1441
1431
|
}
|
|
1442
1432
|
} catch {
|
|
1443
1433
|
}
|
|
@@ -1449,7 +1439,7 @@ function findSharedHeadlessShell(baseDir) {
|
|
|
1449
1439
|
try {
|
|
1450
1440
|
return pickSharedShell(readdirSync(baseDir), (version) => {
|
|
1451
1441
|
const binary = join3(baseDir, version, ...executable);
|
|
1452
|
-
return
|
|
1442
|
+
return isPinnedHeadlessShell(binary) ? binary : void 0;
|
|
1453
1443
|
});
|
|
1454
1444
|
} catch {
|
|
1455
1445
|
return void 0;
|
|
@@ -1461,7 +1451,7 @@ function findManagedHeadlessShell(baseDir) {
|
|
|
1461
1451
|
try {
|
|
1462
1452
|
const version = readdirSync(baseDir).find(isManagedChromeDir);
|
|
1463
1453
|
const binary = version && join3(baseDir, version, ...executable);
|
|
1464
|
-
return binary &&
|
|
1454
|
+
return binary && isPinnedHeadlessShell(binary) ? binary : void 0;
|
|
1465
1455
|
} catch {
|
|
1466
1456
|
return void 0;
|
|
1467
1457
|
}
|
|
@@ -1483,42 +1473,16 @@ function resolveHeadlessShellPath(config) {
|
|
|
1483
1473
|
const shared = join3(homedir(), ".cache", "puppeteer", "chrome-headless-shell");
|
|
1484
1474
|
return findManagedHeadlessShell(ours) ?? findSharedHeadlessShell(shared) ?? findCachedHeadlessShell(ours);
|
|
1485
1475
|
}
|
|
1476
|
+
function launchableBrowserPath(config) {
|
|
1477
|
+
const path = resolveHeadlessShellPath(config);
|
|
1478
|
+
if (path) return path;
|
|
1479
|
+
throw new Error(
|
|
1480
|
+
"[BrowserManager] No verified browser to render with. Run `npx hyperframes browser ensure`, or name one in PRODUCER_HEADLESS_SHELL_PATH."
|
|
1481
|
+
);
|
|
1482
|
+
}
|
|
1486
1483
|
function resolveFullChromePath() {
|
|
1487
|
-
const
|
|
1488
|
-
|
|
1489
|
-
try {
|
|
1490
|
-
versions = readdirSync(baseDir).sort(compareBrowserVersionsDescending);
|
|
1491
|
-
} catch {
|
|
1492
|
-
return void 0;
|
|
1493
|
-
}
|
|
1494
|
-
for (const version of versions) {
|
|
1495
|
-
const candidates = [
|
|
1496
|
-
join3(
|
|
1497
|
-
baseDir,
|
|
1498
|
-
version,
|
|
1499
|
-
"chrome-mac-arm64",
|
|
1500
|
-
"Google Chrome for Testing.app",
|
|
1501
|
-
"Contents",
|
|
1502
|
-
"MacOS",
|
|
1503
|
-
"Google Chrome for Testing"
|
|
1504
|
-
),
|
|
1505
|
-
join3(
|
|
1506
|
-
baseDir,
|
|
1507
|
-
version,
|
|
1508
|
-
"chrome-mac-x64",
|
|
1509
|
-
"Google Chrome for Testing.app",
|
|
1510
|
-
"Contents",
|
|
1511
|
-
"MacOS",
|
|
1512
|
-
"Google Chrome for Testing"
|
|
1513
|
-
),
|
|
1514
|
-
join3(baseDir, version, "chrome-linux64", "chrome"),
|
|
1515
|
-
join3(baseDir, version, "chrome-win64", "chrome.exe")
|
|
1516
|
-
];
|
|
1517
|
-
for (const binary of candidates) {
|
|
1518
|
-
if (existsSync2(binary)) return binary;
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
|
-
return void 0;
|
|
1484
|
+
const named = browserPathFromEnv();
|
|
1485
|
+
return named && existsSync2(named.path) ? named.path : void 0;
|
|
1522
1486
|
}
|
|
1523
1487
|
var ENABLE_BROWSER_POOL = DEFAULT_CONFIG.enableBrowserPool;
|
|
1524
1488
|
var BEGINFRAME_ONLY_FLAGS = /* @__PURE__ */ new Set([
|
|
@@ -1679,7 +1643,7 @@ async function probeBeginFrameSupport(browser, timeoutMs = BEGINFRAME_PROBE_TIME
|
|
|
1679
1643
|
var _autoBrowserGpuModeCache;
|
|
1680
1644
|
async function getPuppeteerOrNull() {
|
|
1681
1645
|
try {
|
|
1682
|
-
return await
|
|
1646
|
+
return await getPuppeteerCore();
|
|
1683
1647
|
} catch {
|
|
1684
1648
|
return null;
|
|
1685
1649
|
}
|
|
@@ -1726,7 +1690,7 @@ async function probeWebGlMode(ppt, options, env, label = "") {
|
|
|
1726
1690
|
const info = await probeHardwareWebGlInfo(ppt, {
|
|
1727
1691
|
args: getHardwareGpuProbeArgs(options.platform ?? process.platform),
|
|
1728
1692
|
browserTimeout: options.browserTimeout ?? DEFAULT_CONFIG.browserTimeout,
|
|
1729
|
-
executablePath: options.chromePath
|
|
1693
|
+
executablePath: launchableBrowserPath({ chromePath: options.chromePath }),
|
|
1730
1694
|
probeLifecycle: options.probeLifecycle,
|
|
1731
1695
|
env
|
|
1732
1696
|
});
|
|
@@ -1823,7 +1787,7 @@ function createBrowserLaunchFingerprint(chromeArgs, config) {
|
|
|
1823
1787
|
forceScreenshot: DEFAULT_CONFIG.forceScreenshot,
|
|
1824
1788
|
...config
|
|
1825
1789
|
};
|
|
1826
|
-
const headlessShell =
|
|
1790
|
+
const headlessShell = launchableBrowserPath(launchConfig);
|
|
1827
1791
|
const beginFrameControlEnabled = chromeArgs.includes("--enable-begin-frame-control");
|
|
1828
1792
|
const requestedCaptureMode = headlessShell && process.platform === "linux" && !launchConfig.forceScreenshot && beginFrameControlEnabled ? "beginframe" : "screenshot";
|
|
1829
1793
|
return {
|
|
@@ -1871,7 +1835,7 @@ async function publicOnlyNetwork(pageServerHost) {
|
|
|
1871
1835
|
}
|
|
1872
1836
|
}
|
|
1873
1837
|
async function launchBrowser(fingerprint) {
|
|
1874
|
-
const ppt = await
|
|
1838
|
+
const ppt = await getPuppeteerCore();
|
|
1875
1839
|
const env = launchEnv(fingerprint);
|
|
1876
1840
|
let captureMode = fingerprint.requestedCaptureMode;
|
|
1877
1841
|
let browser;
|
|
@@ -3041,6 +3005,8 @@ function chunkCrc32(chunkType, chunkData) {
|
|
|
3041
3005
|
}
|
|
3042
3006
|
|
|
3043
3007
|
// ../engine/src/utils/alphaBlit.ts
|
|
3008
|
+
var MAX_RGB48LE_PIXELS = 8192 * 8192;
|
|
3009
|
+
var MAX_SCREENSHOT_PIXELS = 16384 * 16384;
|
|
3044
3010
|
function paeth(a, b, c) {
|
|
3045
3011
|
const p = a + b - c;
|
|
3046
3012
|
const pa = Math.abs(p - a);
|
|
@@ -3050,7 +3016,37 @@ function paeth(a, b, c) {
|
|
|
3050
3016
|
if (pb <= pc) return b;
|
|
3051
3017
|
return c;
|
|
3052
3018
|
}
|
|
3053
|
-
function
|
|
3019
|
+
function inflateScanlines(idatChunks, header, caller, maxPixels) {
|
|
3020
|
+
const { width, height, bitDepth, colorType } = header;
|
|
3021
|
+
if (bitDepth !== 8 && bitDepth !== 16) {
|
|
3022
|
+
throw new Error(`${caller}: unsupported bit depth ${bitDepth} (expected 8 or 16)`);
|
|
3023
|
+
}
|
|
3024
|
+
if (width === 0 || height === 0 || width * height > maxPixels) {
|
|
3025
|
+
throw new Error(
|
|
3026
|
+
`${caller}: ${width}x${height} PNG is outside the supported size (max ${maxPixels} pixels)`
|
|
3027
|
+
);
|
|
3028
|
+
}
|
|
3029
|
+
const channels = colorType === 6 ? 4 : 3;
|
|
3030
|
+
const bpp = channels * (bitDepth / 8);
|
|
3031
|
+
const stride = width * bpp;
|
|
3032
|
+
const expectedLength = height * (stride + 1);
|
|
3033
|
+
let decompressed;
|
|
3034
|
+
try {
|
|
3035
|
+
decompressed = inflateSync(Buffer.concat(idatChunks), { maxOutputLength: expectedLength });
|
|
3036
|
+
} catch (err) {
|
|
3037
|
+
throw new Error(
|
|
3038
|
+
`${caller}: image data does not inflate to ${expectedLength} bytes for ${width}x${height}`,
|
|
3039
|
+
{ cause: err }
|
|
3040
|
+
);
|
|
3041
|
+
}
|
|
3042
|
+
if (decompressed.length !== expectedLength) {
|
|
3043
|
+
throw new Error(
|
|
3044
|
+
`${caller}: image data inflates to ${decompressed.length} bytes, expected ${expectedLength}`
|
|
3045
|
+
);
|
|
3046
|
+
}
|
|
3047
|
+
return { decompressed, bpp, stride };
|
|
3048
|
+
}
|
|
3049
|
+
function decodePngRaw(buf, caller, maxPixels) {
|
|
3054
3050
|
if (buf[0] !== 137 || buf[1] !== 80 || buf[2] !== 78 || buf[3] !== 71 || buf[4] !== 13 || buf[5] !== 10 || buf[6] !== 26 || buf[7] !== 10) {
|
|
3055
3051
|
throw new Error(`${caller}: not a PNG file`);
|
|
3056
3052
|
}
|
|
@@ -3091,11 +3087,12 @@ function decodePngRaw(buf, caller) {
|
|
|
3091
3087
|
`${caller}: Adam7-interlaced PNGs are not supported (interlace method ${interlace})`
|
|
3092
3088
|
);
|
|
3093
3089
|
}
|
|
3094
|
-
const
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3090
|
+
const { decompressed, bpp, stride } = inflateScanlines(
|
|
3091
|
+
idatChunks,
|
|
3092
|
+
{ width, height, bitDepth, colorType },
|
|
3093
|
+
caller,
|
|
3094
|
+
maxPixels
|
|
3095
|
+
);
|
|
3099
3096
|
const rawPixels = Buffer.allocUnsafe(height * stride);
|
|
3100
3097
|
const prevRow = new Uint8Array(stride);
|
|
3101
3098
|
const currRow = new Uint8Array(stride);
|
|
@@ -3142,7 +3139,11 @@ function decodePngRaw(buf, caller) {
|
|
|
3142
3139
|
return { width, height, bitDepth, colorType, rawPixels };
|
|
3143
3140
|
}
|
|
3144
3141
|
function decodePng(buf) {
|
|
3145
|
-
const { width, height, bitDepth, colorType, rawPixels } = decodePngRaw(
|
|
3142
|
+
const { width, height, bitDepth, colorType, rawPixels } = decodePngRaw(
|
|
3143
|
+
buf,
|
|
3144
|
+
"decodePng",
|
|
3145
|
+
MAX_SCREENSHOT_PIXELS
|
|
3146
|
+
);
|
|
3146
3147
|
if (bitDepth !== 8) {
|
|
3147
3148
|
throw new Error(`decodePng: unsupported bit depth ${bitDepth} (expected 8)`);
|
|
3148
3149
|
}
|
|
@@ -3194,7 +3195,11 @@ function encodePng(width, height, rgba) {
|
|
|
3194
3195
|
]);
|
|
3195
3196
|
}
|
|
3196
3197
|
function decodePngToRgb48le(buf) {
|
|
3197
|
-
const { width, height, bitDepth, colorType, rawPixels } = decodePngRaw(
|
|
3198
|
+
const { width, height, bitDepth, colorType, rawPixels } = decodePngRaw(
|
|
3199
|
+
buf,
|
|
3200
|
+
"decodePngToRgb48le",
|
|
3201
|
+
MAX_RGB48LE_PIXELS
|
|
3202
|
+
);
|
|
3198
3203
|
if (bitDepth !== 16) {
|
|
3199
3204
|
throw new Error(`decodePngToRgb48le: unsupported bit depth ${bitDepth} (expected 16)`);
|
|
3200
3205
|
}
|
|
@@ -3519,6 +3524,11 @@ function resampleRgb48leObjectFit(source, srcW, srcH, dstW, dstH, fit = "fill",
|
|
|
3519
3524
|
if (fit === "fill" && srcW === dstW && srcH === dstH) {
|
|
3520
3525
|
return source;
|
|
3521
3526
|
}
|
|
3527
|
+
if (dstW * dstH > MAX_RGB48LE_PIXELS) {
|
|
3528
|
+
throw new Error(
|
|
3529
|
+
`resampleRgb48leObjectFit: ${dstW}x${dstH} target exceeds the ${MAX_RGB48LE_PIXELS}-pixel limit`
|
|
3530
|
+
);
|
|
3531
|
+
}
|
|
3522
3532
|
const pos = parseObjectPosition(objectPosition);
|
|
3523
3533
|
const rect = computeObjectFitRect(srcW, srcH, dstW, dstH, fit, pos);
|
|
3524
3534
|
const dst = Buffer.alloc(dstW * dstH * 6);
|
|
@@ -5490,7 +5500,7 @@ import { fileURLToPath as fileURLToPath2 } from "url";
|
|
|
5490
5500
|
|
|
5491
5501
|
// ../engine/src/utils/ffprobe.ts
|
|
5492
5502
|
import { spawn as spawn3 } from "child_process";
|
|
5493
|
-
import { createReadStream, mkdtempSync as mkdtempSync2, readFileSync as readFileSync2, rmSync, statSync
|
|
5503
|
+
import { createReadStream, mkdtempSync as mkdtempSync2, readFileSync as readFileSync2, rmSync, statSync } from "fs";
|
|
5494
5504
|
import { StringDecoder as StringDecoder2 } from "string_decoder";
|
|
5495
5505
|
import { tmpdir as tmpdir3 } from "os";
|
|
5496
5506
|
import { basename, join as join5 } from "path";
|
|
@@ -6021,7 +6031,7 @@ function mediaFileIdentity(filePath) {
|
|
|
6021
6031
|
return sha256 ? `sha256:${sha256}` : null;
|
|
6022
6032
|
}
|
|
6023
6033
|
try {
|
|
6024
|
-
const stat =
|
|
6034
|
+
const stat = statSync(filePath, { bigint: true });
|
|
6025
6035
|
return [stat.dev, stat.ino, stat.size, stat.mtimeNs, stat.ctimeNs].join(":");
|
|
6026
6036
|
} catch {
|
|
6027
6037
|
return null;
|
|
@@ -6176,7 +6186,7 @@ async function readFileRange(filePath, start, length, signal) {
|
|
|
6176
6186
|
async function hasCompletePngStructure(filePath, signal) {
|
|
6177
6187
|
try {
|
|
6178
6188
|
signal?.throwIfAborted();
|
|
6179
|
-
const fileSize =
|
|
6189
|
+
const fileSize = statSync(filePath).size;
|
|
6180
6190
|
const signature = await readFileRange(filePath, 0, 8, signal);
|
|
6181
6191
|
signal?.throwIfAborted();
|
|
6182
6192
|
if (signature.length !== 8 || !signature.equals(Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]))) {
|
|
@@ -7700,7 +7710,11 @@ async function initDrawElementOrTransparentBackground(session, page, logInitPhas
|
|
|
7700
7710
|
}
|
|
7701
7711
|
if (!forceDE && process.env.HF_FAST_CAPTURE_INTERVAL_SS !== "false") {
|
|
7702
7712
|
const fps = fpsToNumber(session.options.fps);
|
|
7703
|
-
const { frames: atRisk, totalFrames } = await computeTimelineAtRiskFrames(
|
|
7713
|
+
const { frames: atRisk, totalFrames } = await computeTimelineAtRiskFrames(
|
|
7714
|
+
page,
|
|
7715
|
+
fps,
|
|
7716
|
+
session.options.compositionDurationSeconds
|
|
7717
|
+
);
|
|
7704
7718
|
const atRiskFraction = atRisk.size / totalFrames;
|
|
7705
7719
|
const fractionFloor = Number(process.env.HF_FAST_CAPTURE_INTERVAL_FRACTION ?? "0");
|
|
7706
7720
|
logInitPhase(
|
|
@@ -9277,6 +9291,28 @@ var MAX_STATIC_DEDUP_ANALYSIS_FRAMES = 1e6;
|
|
|
9277
9291
|
function isStaticDedupFrameAnalysisSafe(totalFrames) {
|
|
9278
9292
|
return Number.isFinite(totalFrames) && Number.isSafeInteger(totalFrames) && totalFrames > 0 && totalFrames <= MAX_STATIC_DEDUP_ANALYSIS_FRAMES;
|
|
9279
9293
|
}
|
|
9294
|
+
var MAX_TIMELINE_FRAME_INTERVALS = 1e5;
|
|
9295
|
+
function tweenFrameRange(start, end, fps, margin, maxFrame) {
|
|
9296
|
+
const lo = Math.max(0, Math.floor(start * fps) - margin);
|
|
9297
|
+
const hi = Math.min(maxFrame, Math.ceil(end * fps) + margin);
|
|
9298
|
+
if (Number.isNaN(lo) || Number.isNaN(hi) || lo > hi) return null;
|
|
9299
|
+
return [lo, hi];
|
|
9300
|
+
}
|
|
9301
|
+
function mergeFrameRanges(ranges) {
|
|
9302
|
+
const sorted = [...ranges].sort((a, b) => a[0] - b[0]);
|
|
9303
|
+
const merged = [];
|
|
9304
|
+
for (const [lo, hi] of sorted) {
|
|
9305
|
+
const last = merged[merged.length - 1];
|
|
9306
|
+
if (last && lo <= last[1] + 1) last[1] = Math.max(last[1], hi);
|
|
9307
|
+
else merged.push([lo, hi]);
|
|
9308
|
+
}
|
|
9309
|
+
return merged;
|
|
9310
|
+
}
|
|
9311
|
+
function addFrameRanges(target, ranges) {
|
|
9312
|
+
for (const [lo, hi] of mergeFrameRanges(ranges)) {
|
|
9313
|
+
for (let f = lo; f <= hi; f++) target.add(f);
|
|
9314
|
+
}
|
|
9315
|
+
}
|
|
9280
9316
|
async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
|
|
9281
9317
|
const result = await page.evaluate(
|
|
9282
9318
|
(spatialProps, ignored) => {
|
|
@@ -9385,16 +9421,31 @@ async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
|
|
|
9385
9421
|
reason: `static-dedup frame analysis limit (${MAX_STATIC_DEDUP_ANALYSIS_FRAMES})`
|
|
9386
9422
|
};
|
|
9387
9423
|
}
|
|
9388
|
-
|
|
9389
|
-
|
|
9424
|
+
if (intervals.length > MAX_TIMELINE_FRAME_INTERVALS) {
|
|
9425
|
+
return {
|
|
9426
|
+
totalFrames,
|
|
9427
|
+
staticFrameSet: /* @__PURE__ */ new Set(),
|
|
9428
|
+
nonSpatialOnlyFrameSet: /* @__PURE__ */ new Set(),
|
|
9429
|
+
hasVideo,
|
|
9430
|
+
hasCanvas,
|
|
9431
|
+
hasNonGsapAnim,
|
|
9432
|
+
tweenCount,
|
|
9433
|
+
eligible: false,
|
|
9434
|
+
reason: `static-dedup tween interval limit (${MAX_TIMELINE_FRAME_INTERVALS})`
|
|
9435
|
+
};
|
|
9436
|
+
}
|
|
9437
|
+
const animatedRanges = [];
|
|
9438
|
+
const spatialRanges = [];
|
|
9390
9439
|
for (const { start, end, spatial } of intervals) {
|
|
9391
|
-
const
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
|
|
9395
|
-
if (spatial) spatialFrameSet.add(f);
|
|
9396
|
-
}
|
|
9440
|
+
const range = tweenFrameRange(start, end, fps, 0, totalFrames - 1);
|
|
9441
|
+
if (!range) continue;
|
|
9442
|
+
animatedRanges.push(range);
|
|
9443
|
+
if (spatial) spatialRanges.push(range);
|
|
9397
9444
|
}
|
|
9445
|
+
const animated = /* @__PURE__ */ new Set();
|
|
9446
|
+
const spatialFrameSet = /* @__PURE__ */ new Set();
|
|
9447
|
+
addFrameRanges(animated, animatedRanges);
|
|
9448
|
+
addFrameRanges(spatialFrameSet, spatialRanges);
|
|
9398
9449
|
for (const f of await computeClipBoundaryFrames(page, fps)) animated.add(f);
|
|
9399
9450
|
const reasons = [];
|
|
9400
9451
|
if (!(duration > 0)) reasons.push("unknown/zero duration");
|
|
@@ -9891,7 +9942,7 @@ async function verifyAndArmStaticDedup(session, stats, fps, samples, logInitPhas
|
|
|
9891
9942
|
`static-frame dedup: ${verdict.verifiedFrames.size}/${stats.staticFrameSet.size} predicted frame(s) reusable (outcome=${verdict.outcome}, runs=${verdict.stats.completedRuns}/${verdict.stats.plannedRuns}, screenshots=${verdict.stats.screenshots}, seeks=${verdict.stats.seeks}, elapsedMs=${verdict.stats.elapsedMs})`
|
|
9892
9943
|
);
|
|
9893
9944
|
}
|
|
9894
|
-
async function computeTimelineAtRiskFrames(page, fps) {
|
|
9945
|
+
async function computeTimelineAtRiskFrames(page, fps, renderDurationSeconds) {
|
|
9895
9946
|
const result = await page.evaluate(() => {
|
|
9896
9947
|
const AT_RISK_PROPS = /* @__PURE__ */ new Set([
|
|
9897
9948
|
"backdropFilter",
|
|
@@ -9936,15 +9987,19 @@ async function computeTimelineAtRiskFrames(page, fps) {
|
|
|
9936
9987
|
return { intervals: intervals2, duration: duration2 };
|
|
9937
9988
|
});
|
|
9938
9989
|
const { intervals, duration } = result;
|
|
9990
|
+
const totalFrames = Math.max(1, Math.ceil(duration * fps));
|
|
9991
|
+
const lastFrame = Math.max(1, Math.ceil((renderDurationSeconds ?? duration) * fps)) - 1;
|
|
9939
9992
|
const frames = /* @__PURE__ */ new Set();
|
|
9993
|
+
if (intervals.length > MAX_TIMELINE_FRAME_INTERVALS) {
|
|
9994
|
+
addFrameRanges(frames, [[0, lastFrame]]);
|
|
9995
|
+
return { frames, totalFrames };
|
|
9996
|
+
}
|
|
9997
|
+
const ranges = [];
|
|
9940
9998
|
for (const { start, end } of intervals) {
|
|
9941
|
-
const
|
|
9942
|
-
|
|
9943
|
-
for (let f = Math.max(0, lo); f <= hi; f++) {
|
|
9944
|
-
frames.add(f);
|
|
9945
|
-
}
|
|
9999
|
+
const range = tweenFrameRange(start, end, fps, 1, lastFrame);
|
|
10000
|
+
if (range) ranges.push(range);
|
|
9946
10001
|
}
|
|
9947
|
-
|
|
10002
|
+
addFrameRanges(frames, ranges);
|
|
9948
10003
|
return { frames, totalFrames };
|
|
9949
10004
|
}
|
|
9950
10005
|
function isNoCachedPaintRecordError(err) {
|
|
@@ -10797,7 +10852,7 @@ import {
|
|
|
10797
10852
|
openSync,
|
|
10798
10853
|
readFileSync as readFileSync4,
|
|
10799
10854
|
readdirSync as readdirSync3,
|
|
10800
|
-
statSync as
|
|
10855
|
+
statSync as statSync2,
|
|
10801
10856
|
writeFileSync as writeFileSync2,
|
|
10802
10857
|
writeSync
|
|
10803
10858
|
} from "fs";
|
|
@@ -11488,7 +11543,7 @@ async function encodeFramesFromDir(framesDir, framePattern, outputPath, options,
|
|
|
11488
11543
|
failureReason: isExternalFfmpegInterruption(result) ? "external_interruption" : void 0
|
|
11489
11544
|
};
|
|
11490
11545
|
}
|
|
11491
|
-
const fileSize = existsSync6(outputPath) ?
|
|
11546
|
+
const fileSize = existsSync6(outputPath) ? statSync2(outputPath).size : 0;
|
|
11492
11547
|
return {
|
|
11493
11548
|
success: true,
|
|
11494
11549
|
outputPath,
|
|
@@ -11631,7 +11686,7 @@ async function encodeFramesChunkedConcat(framesDir, framePattern, outputPath, op
|
|
|
11631
11686
|
failureReason: concatResult.externalInterruption ? "external_interruption" : void 0
|
|
11632
11687
|
};
|
|
11633
11688
|
}
|
|
11634
|
-
const fileSize = existsSync6(outputPath) ?
|
|
11689
|
+
const fileSize = existsSync6(outputPath) ? statSync2(outputPath).size : 0;
|
|
11635
11690
|
return {
|
|
11636
11691
|
success: true,
|
|
11637
11692
|
outputPath,
|
|
@@ -11864,7 +11919,7 @@ function quantizationTableError(buffer, start, end) {
|
|
|
11864
11919
|
// ../engine/src/services/streamingEncoder.ts
|
|
11865
11920
|
import { spawn as spawn5 } from "child_process";
|
|
11866
11921
|
import { once } from "events";
|
|
11867
|
-
import { existsSync as existsSync7, mkdirSync as mkdirSync3, statSync as
|
|
11922
|
+
import { existsSync as existsSync7, mkdirSync as mkdirSync3, statSync as statSync3 } from "fs";
|
|
11868
11923
|
import { dirname as dirname4 } from "path";
|
|
11869
11924
|
function createFrameReorderBuffer(startFrame, endFrame) {
|
|
11870
11925
|
let cursor = startFrame;
|
|
@@ -12268,7 +12323,7 @@ FFmpeg stopped after ${streamingTimeout} ms without consuming a frame.` : "";
|
|
|
12268
12323
|
}) ? "external_interruption" : void 0
|
|
12269
12324
|
};
|
|
12270
12325
|
}
|
|
12271
|
-
const fileSize = existsSync7(outputPath) ?
|
|
12326
|
+
const fileSize = existsSync7(outputPath) ? statSync3(outputPath).size : 0;
|
|
12272
12327
|
return { success: true, durationMs, fileSize, drainWaitMs };
|
|
12273
12328
|
},
|
|
12274
12329
|
getExitStatus: () => exitStatus,
|
|
@@ -12420,7 +12475,7 @@ function isMemberGroupHidden(groupsById, el) {
|
|
|
12420
12475
|
|
|
12421
12476
|
// ../engine/src/services/videoFrameExtractor.ts
|
|
12422
12477
|
import { copyFileSync as copyFileSync2, existsSync as existsSync11, linkSync as linkSync2, mkdirSync as mkdirSync6, rmSync as rmSync5 } from "fs";
|
|
12423
|
-
import { basename as
|
|
12478
|
+
import { basename as basename3, isAbsolute as isAbsolute2, join as join13, normalize, relative as relative2, win32 } from "path";
|
|
12424
12479
|
|
|
12425
12480
|
// ../engine/src/utils/concurrencyLimit.ts
|
|
12426
12481
|
function createConcurrencyLimit(limit) {
|
|
@@ -12825,7 +12880,7 @@ import {
|
|
|
12825
12880
|
readdirSync as readdirSync4,
|
|
12826
12881
|
rmdirSync,
|
|
12827
12882
|
rmSync as rmSync3,
|
|
12828
|
-
statSync as
|
|
12883
|
+
statSync as statSync4,
|
|
12829
12884
|
statfsSync,
|
|
12830
12885
|
unlinkSync
|
|
12831
12886
|
} from "fs";
|
|
@@ -13428,7 +13483,7 @@ var DiskHeadroomGuard = class {
|
|
|
13428
13483
|
device = 0;
|
|
13429
13484
|
claim(declaredBytes) {
|
|
13430
13485
|
if (this.minFreeBytes === 0) return true;
|
|
13431
|
-
this.device =
|
|
13486
|
+
this.device = statSync4(this.dir).dev;
|
|
13432
13487
|
this.adjustUnreceived(declaredBytes);
|
|
13433
13488
|
return this.keepsMinimum();
|
|
13434
13489
|
}
|
|
@@ -13635,7 +13690,7 @@ async function fetchToPartial(url, partialPath, controller, options, onBodyBytes
|
|
|
13635
13690
|
const readableStream = Readable.fromWeb(response.body);
|
|
13636
13691
|
const fileStream = createWriteStream(partialPath, { flags: "wx" });
|
|
13637
13692
|
await pipeline(readableStream, inspector, fileStream, { signal: controller.signal });
|
|
13638
|
-
const localSize =
|
|
13693
|
+
const localSize = statSync4(partialPath).size;
|
|
13639
13694
|
const sha256Bytes = sha256.digest();
|
|
13640
13695
|
const localSha256 = sha256Bytes.toString("hex");
|
|
13641
13696
|
const md5Base64 = md5.digest("base64");
|
|
@@ -14140,7 +14195,7 @@ function truncateUtf8(text, maxBytes) {
|
|
|
14140
14195
|
}
|
|
14141
14196
|
|
|
14142
14197
|
// ../engine/src/services/extractionCache.ts
|
|
14143
|
-
import { createHash as createHash4
|
|
14198
|
+
import { createHash as createHash4 } from "crypto";
|
|
14144
14199
|
import {
|
|
14145
14200
|
chmodSync,
|
|
14146
14201
|
createReadStream as createReadStream3,
|
|
@@ -14149,11 +14204,11 @@ import {
|
|
|
14149
14204
|
mkdirSync as mkdirSync5,
|
|
14150
14205
|
readdirSync as readdirSync5,
|
|
14151
14206
|
rmSync as rmSync4,
|
|
14152
|
-
statSync as
|
|
14207
|
+
statSync as statSync5,
|
|
14153
14208
|
utimesSync,
|
|
14154
14209
|
writeFileSync as writeFileSync3
|
|
14155
14210
|
} from "fs";
|
|
14156
|
-
import { join as join12 } from "path";
|
|
14211
|
+
import { basename as basename2, dirname as dirname7, join as join12 } from "path";
|
|
14157
14212
|
var COMPLETE_SENTINEL = ".hf-complete";
|
|
14158
14213
|
var GC_MARKER = ".hf-last-gc";
|
|
14159
14214
|
function privateCacheRoot(root, uid = process.getuid?.()) {
|
|
@@ -14177,7 +14232,7 @@ async function readContentSha256(path, signal) {
|
|
|
14177
14232
|
}
|
|
14178
14233
|
function readKeyStat(videoPath) {
|
|
14179
14234
|
try {
|
|
14180
|
-
const stat =
|
|
14235
|
+
const stat = statSync5(videoPath);
|
|
14181
14236
|
return { mtimeMs: Math.floor(stat.mtimeMs), size: stat.size };
|
|
14182
14237
|
} catch {
|
|
14183
14238
|
return null;
|
|
@@ -14216,8 +14271,15 @@ function lookupCacheEntry(rootDir, input) {
|
|
|
14216
14271
|
const complete = existsSync10(join12(dir, COMPLETE_SENTINEL)) && hasFrameFiles(dir);
|
|
14217
14272
|
return { entry: { dir, keyHash }, hit: complete };
|
|
14218
14273
|
}
|
|
14219
|
-
function
|
|
14220
|
-
return
|
|
14274
|
+
function createPartialCacheEntryDir(entry) {
|
|
14275
|
+
return createPartialDir(dirname7(entry.dir), basename2(entry.dir));
|
|
14276
|
+
}
|
|
14277
|
+
function createPartialDir(parent, name) {
|
|
14278
|
+
mkdirSync5(parent, { recursive: true });
|
|
14279
|
+
return createStagingDir(parent, `${name}.partial-${process.pid}-`);
|
|
14280
|
+
}
|
|
14281
|
+
function frameFileCount(dir) {
|
|
14282
|
+
return readdirSync5(dir).filter((file) => file.startsWith(FRAME_FILENAME_PREFIX)).length;
|
|
14221
14283
|
}
|
|
14222
14284
|
function isTargetExistsRenameError(err) {
|
|
14223
14285
|
const code = err.code;
|
|
@@ -14228,8 +14290,9 @@ function adoptPublishedWinner(entry, partialDir) {
|
|
|
14228
14290
|
removeDir(partialDir);
|
|
14229
14291
|
return { dir: entry.dir, published: true };
|
|
14230
14292
|
}
|
|
14231
|
-
function publishCacheEntry(entry, partialDir) {
|
|
14293
|
+
function publishCacheEntry(entry, partialDir, expectedFrames) {
|
|
14232
14294
|
try {
|
|
14295
|
+
if (frameFileCount(partialDir) !== expectedFrames) return { dir: partialDir, published: false };
|
|
14233
14296
|
writeFileSync3(join12(partialDir, COMPLETE_SENTINEL), "", "utf-8");
|
|
14234
14297
|
} catch {
|
|
14235
14298
|
return { dir: partialDir, published: false };
|
|
@@ -14311,7 +14374,7 @@ function removeDir(path) {
|
|
|
14311
14374
|
}
|
|
14312
14375
|
function collectGcEntry(dir, name, now, minAgeMs, stats, remove) {
|
|
14313
14376
|
try {
|
|
14314
|
-
const dirStat =
|
|
14377
|
+
const dirStat = statSync5(dir);
|
|
14315
14378
|
if (isPartialChild(name) && now - dirStat.mtimeMs >= minAgeMs) {
|
|
14316
14379
|
remove(dir);
|
|
14317
14380
|
stats.agedPartialsRemoved += 1;
|
|
@@ -14319,7 +14382,7 @@ function collectGcEntry(dir, name, now, minAgeMs, stats, remove) {
|
|
|
14319
14382
|
}
|
|
14320
14383
|
let lastUseMs = dirStat.mtimeMs;
|
|
14321
14384
|
try {
|
|
14322
|
-
lastUseMs =
|
|
14385
|
+
lastUseMs = statSync5(join12(dir, COMPLETE_SENTINEL)).mtimeMs;
|
|
14323
14386
|
} catch {
|
|
14324
14387
|
}
|
|
14325
14388
|
return { dir, size: directorySizeBytes(dir), lastUseMs, ageMs: now - lastUseMs };
|
|
@@ -14329,7 +14392,7 @@ function collectGcEntry(dir, name, now, minAgeMs, stats, remove) {
|
|
|
14329
14392
|
}
|
|
14330
14393
|
function gcSweepDue(rootDir, maxAgeMs) {
|
|
14331
14394
|
try {
|
|
14332
|
-
return Date.now() -
|
|
14395
|
+
return Date.now() - statSync5(join12(rootDir, GC_MARKER)).mtimeMs > maxAgeMs;
|
|
14333
14396
|
} catch {
|
|
14334
14397
|
return true;
|
|
14335
14398
|
}
|
|
@@ -14499,13 +14562,13 @@ function videoExtractionSourceLabel(src, baseDir) {
|
|
|
14499
14562
|
if (/^(data|blob):/i.test(src)) return "inline video";
|
|
14500
14563
|
if (URL_SCHEME.test(src)) {
|
|
14501
14564
|
try {
|
|
14502
|
-
return
|
|
14565
|
+
return basename3(decodeURIComponent(new URL(src).pathname)) || "remote video";
|
|
14503
14566
|
} catch {
|
|
14504
14567
|
return "remote video";
|
|
14505
14568
|
}
|
|
14506
14569
|
}
|
|
14507
14570
|
const path = src.split(/[?#]/)[0];
|
|
14508
|
-
const lib = WINDOWS_ABSOLUTE.test(path) ? win32 : { isAbsolute: isAbsolute2, relative: relative2, basename:
|
|
14571
|
+
const lib = WINDOWS_ABSOLUTE.test(path) ? win32 : { isAbsolute: isAbsolute2, relative: relative2, basename: basename3, normalize };
|
|
14509
14572
|
const relativePath = lib.isAbsolute(path) ? lib.relative(baseDir, path) : lib.normalize(path);
|
|
14510
14573
|
const label = relativePath.startsWith("..") || lib.isAbsolute(relativePath) ? lib.basename(path) : relativePath;
|
|
14511
14574
|
return label.replace(/\\/g, "/");
|
|
@@ -15242,7 +15305,7 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
15242
15305
|
const diagnostic = `${hdrPrefix}FFmpeg exited with code ${processResult.exitCode}${timeoutSuffix}: ` + processResult.stderr.slice(-500);
|
|
15243
15306
|
const ffmpegReason = ffmpegReasonFrom(processResult.stderr, [
|
|
15244
15307
|
videoPath,
|
|
15245
|
-
|
|
15308
|
+
basename3(videoPath),
|
|
15246
15309
|
videoOutputDir
|
|
15247
15310
|
]);
|
|
15248
15311
|
if (timedOut) {
|
|
@@ -15643,8 +15706,6 @@ function planSupersetGroups(misses, fps) {
|
|
|
15643
15706
|
}
|
|
15644
15707
|
function sliceSupersetMember(member, superset, outputDir, fps, configuredFps) {
|
|
15645
15708
|
const { work } = member.miss;
|
|
15646
|
-
rmSync5(outputDir, { recursive: true, force: true });
|
|
15647
|
-
mkdirSync6(outputDir, { recursive: true });
|
|
15648
15709
|
const requestedFrames = extractionFrameCountForDuration(
|
|
15649
15710
|
work.videoDuration,
|
|
15650
15711
|
configuredFps,
|
|
@@ -15657,7 +15718,11 @@ function sliceSupersetMember(member, superset, outputDir, fps, configuredFps) {
|
|
|
15657
15718
|
if (!sourceFrame) throw new Error(`superset frame ${member.offsetFrames + i} missing`);
|
|
15658
15719
|
linkOrCopyFrame(sourceFrame, join13(outputDir, frameFileName(i + 1, work.format)));
|
|
15659
15720
|
}
|
|
15660
|
-
|
|
15721
|
+
const sliced = extractedFramesFromDirectory(work, outputDir, work.videoPath, fps);
|
|
15722
|
+
if (sliced.totalFrames !== frameCount) {
|
|
15723
|
+
throw new Error(`superset slice holds ${sliced.totalFrames} frames, not ${frameCount}`);
|
|
15724
|
+
}
|
|
15725
|
+
return sliced;
|
|
15661
15726
|
}
|
|
15662
15727
|
async function extractAllVideoFrames(videos, baseDir, options, signal, config, compiledDir) {
|
|
15663
15728
|
if (options.timelineEnd !== void 0 && !Number.isFinite(options.timelineEnd)) {
|
|
@@ -15994,9 +16059,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
15994
16059
|
);
|
|
15995
16060
|
return attempted2.result;
|
|
15996
16061
|
}
|
|
15997
|
-
|
|
15998
|
-
rmSync5(partialDir, { recursive: true, force: true });
|
|
15999
|
-
mkdirSync6(partialDir, { recursive: true });
|
|
16062
|
+
let partialDir = createPartialCacheEntryDir(cacheTarget.entry);
|
|
16000
16063
|
const attempted = await runVideoExtractionWithRetry(
|
|
16001
16064
|
() => extractVideoFramesRange(
|
|
16002
16065
|
work.videoPath,
|
|
@@ -16014,12 +16077,12 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
16014
16077
|
onRetry: () => {
|
|
16015
16078
|
recordTransientRetries(1);
|
|
16016
16079
|
rmSync5(partialDir, { recursive: true, force: true });
|
|
16017
|
-
|
|
16080
|
+
partialDir = createPartialCacheEntryDir(cacheTarget.entry);
|
|
16018
16081
|
}
|
|
16019
16082
|
}
|
|
16020
16083
|
);
|
|
16021
16084
|
const result = attempted.result;
|
|
16022
|
-
const published = publishCacheEntry(cacheTarget.entry, partialDir);
|
|
16085
|
+
const published = publishCacheEntry(cacheTarget.entry, partialDir, result.totalFrames);
|
|
16023
16086
|
if (!published.published) {
|
|
16024
16087
|
breakdown.cachePublishFailures += 1;
|
|
16025
16088
|
return { ...result, ownedByLookup: false };
|
|
@@ -16111,17 +16174,14 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
16111
16174
|
const { miss } = member;
|
|
16112
16175
|
const { work, cacheTarget } = miss;
|
|
16113
16176
|
if (!cacheTarget) {
|
|
16114
|
-
|
|
16115
|
-
|
|
16116
|
-
|
|
16117
|
-
|
|
16118
|
-
fps,
|
|
16119
|
-
configuredFps
|
|
16120
|
-
);
|
|
16177
|
+
const outputDir = join13(options.outputDir, mediaIdPathSegment(work.video.id));
|
|
16178
|
+
rmSync5(outputDir, { recursive: true, force: true });
|
|
16179
|
+
mkdirSync6(outputDir, { recursive: true });
|
|
16180
|
+
return sliceSupersetMember(member, superset, outputDir, fps, configuredFps);
|
|
16121
16181
|
}
|
|
16122
|
-
const partialDir =
|
|
16182
|
+
const partialDir = createPartialCacheEntryDir(cacheTarget.entry);
|
|
16123
16183
|
const sliced = sliceSupersetMember(member, superset, partialDir, fps, configuredFps);
|
|
16124
|
-
const published = publishCacheEntry(cacheTarget.entry, partialDir);
|
|
16184
|
+
const published = publishCacheEntry(cacheTarget.entry, partialDir, sliced.totalFrames);
|
|
16125
16185
|
if (!published.published) {
|
|
16126
16186
|
breakdown.cachePublishFailures += 1;
|
|
16127
16187
|
return { ...sliced, ownedByLookup: false };
|
|
@@ -16131,9 +16191,9 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
16131
16191
|
async function executeSupersetGroup(group) {
|
|
16132
16192
|
const first = group.members[0]?.miss.work;
|
|
16133
16193
|
if (!first) return [];
|
|
16134
|
-
|
|
16194
|
+
let tempDir;
|
|
16135
16195
|
try {
|
|
16136
|
-
|
|
16196
|
+
tempDir = createPartialDir(cacheRootDir ?? options.outputDir, group.groupId);
|
|
16137
16197
|
const superset = await extractVideoFramesRange(
|
|
16138
16198
|
first.videoPath,
|
|
16139
16199
|
group.groupId,
|
|
@@ -16166,7 +16226,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
16166
16226
|
);
|
|
16167
16227
|
return fallback;
|
|
16168
16228
|
} finally {
|
|
16169
|
-
rmSync5(tempDir, { recursive: true, force: true });
|
|
16229
|
+
if (tempDir) rmSync5(tempDir, { recursive: true, force: true });
|
|
16170
16230
|
}
|
|
16171
16231
|
}
|
|
16172
16232
|
const preparedExtractions = await Promise.all(
|
|
@@ -17022,7 +17082,7 @@ async function queryElementStacking(page, nativeHdrIds) {
|
|
|
17022
17082
|
|
|
17023
17083
|
// ../engine/src/services/audioMixer.ts
|
|
17024
17084
|
import { closeSync as closeSync4, existsSync as existsSync13, mkdirSync as mkdirSync7, openSync as openSync4, rmSync as rmSync7, writeFileSync as writeFileSync7 } from "fs";
|
|
17025
|
-
import { join as join17, dirname as
|
|
17085
|
+
import { join as join17, dirname as dirname10, isAbsolute as isAbsolute3, relative as relative3 } from "path";
|
|
17026
17086
|
|
|
17027
17087
|
// ../core/dist/audioFade.js
|
|
17028
17088
|
var HF_AUDIO_FADE_IN_ATTR = "data-fade-in";
|
|
@@ -17059,7 +17119,7 @@ function clampFadesToDuration(fades, duration) {
|
|
|
17059
17119
|
// ../engine/src/services/aacEncode.ts
|
|
17060
17120
|
import { execFile as execFile3 } from "child_process";
|
|
17061
17121
|
import { readFileSync as readFileSync6, writeFileSync as writeFileSync4 } from "fs";
|
|
17062
|
-
import { dirname as
|
|
17122
|
+
import { dirname as dirname8, join as join14 } from "path";
|
|
17063
17123
|
var SAMPLE_RATE = 48e3;
|
|
17064
17124
|
var FRAME_SAMPLES = 1024;
|
|
17065
17125
|
var MIN_SEGMENT_SECONDS = 60;
|
|
@@ -17127,7 +17187,7 @@ async function encodeAac(input, outputPath, totalDuration, {
|
|
|
17127
17187
|
if (!await supportsSettsDuration()) {
|
|
17128
17188
|
return encodeInOnePass(input, outputPath, { signal, timeout, filter });
|
|
17129
17189
|
}
|
|
17130
|
-
const dir = createStagingDir(
|
|
17190
|
+
const dir = createStagingDir(dirname8(outputPath), ".aac-segments-");
|
|
17131
17191
|
try {
|
|
17132
17192
|
const segments = planSegments(totalDuration, count).map((segment, k) => ({
|
|
17133
17193
|
...segment,
|
|
@@ -17293,7 +17353,7 @@ function audioFailureDiagnostics(values) {
|
|
|
17293
17353
|
|
|
17294
17354
|
// ../engine/src/services/audioVolumeEnvelope.ts
|
|
17295
17355
|
import { readFileSync as readFileSync7, rmSync as rmSync6, writeFileSync as writeFileSync5 } from "fs";
|
|
17296
|
-
import { dirname as
|
|
17356
|
+
import { dirname as dirname9, join as join15 } from "path";
|
|
17297
17357
|
|
|
17298
17358
|
// ../core/dist/runtime/mediaVolumeEnvelope.js
|
|
17299
17359
|
function normaliseEnvelope(keyframes, trackStart, baseVolume) {
|
|
@@ -17419,7 +17479,7 @@ function applyVolumeEnvelopeToWav(wavPath, keyframes, trackStart, baseVolume) {
|
|
|
17419
17479
|
const layout = parseWavLayout(buffer);
|
|
17420
17480
|
if (!layout) return false;
|
|
17421
17481
|
scaleSamples(buffer, layout, gainAt);
|
|
17422
|
-
stagingDir = createStagingDir(
|
|
17482
|
+
stagingDir = createStagingDir(dirname9(wavPath), ".hf-volume-");
|
|
17423
17483
|
const tempPath = join15(stagingDir, "audio.wav");
|
|
17424
17484
|
writeFileSync5(tempPath, buffer, { flag: "wx" });
|
|
17425
17485
|
renameWithRetry(tempPath, wavPath);
|
|
@@ -17654,7 +17714,7 @@ import {
|
|
|
17654
17714
|
openSync as openSync3,
|
|
17655
17715
|
readFileSync as readFileSync8,
|
|
17656
17716
|
readSync,
|
|
17657
|
-
statSync as
|
|
17717
|
+
statSync as statSync6,
|
|
17658
17718
|
writeFileSync as writeFileSync6,
|
|
17659
17719
|
writeSync as writeSync2
|
|
17660
17720
|
} from "fs";
|
|
@@ -17739,7 +17799,7 @@ function readWavHeader(path) {
|
|
|
17739
17799
|
if (buf.length < 44 || buf.toString("ascii", 0, 4) !== "RIFF") return null;
|
|
17740
17800
|
const { format, channels, sampleRate, bits, dataBody, dataSize } = readWavChunks(buf);
|
|
17741
17801
|
if (dataBody === void 0 || dataSize === void 0) return null;
|
|
17742
|
-
const dataBytes = resolveDataBytes(dataSize,
|
|
17802
|
+
const dataBytes = resolveDataBytes(dataSize, statSync6(path).size - dataBody);
|
|
17743
17803
|
return {
|
|
17744
17804
|
format,
|
|
17745
17805
|
channels,
|
|
@@ -17979,7 +18039,7 @@ async function applyAudioFxChain(inputWav, chain, outputWav, options) {
|
|
|
17979
18039
|
)
|
|
17980
18040
|
}));
|
|
17981
18041
|
}
|
|
17982
|
-
if (
|
|
18042
|
+
if (statSync6(inputWav).size > MAX_WHOLE_FILE_BYTES) {
|
|
17983
18043
|
const why = options.automation ? "parameter automation is not supported on inputs over 2 GiB" : "the WAV header of an input over 2 GiB could not be read";
|
|
17984
18044
|
throw new AudioFxRenderError(`Audio FX for track ${options.trackId}: ${why} (${inputWav})`);
|
|
17985
18045
|
}
|
|
@@ -18495,7 +18555,7 @@ var FAIL_ON_READ_ERROR_INSTEAD_OF_ENDING_THERE = ["-xerror"];
|
|
|
18495
18555
|
var SIDECAR_WARM_UP_SECONDS = 1;
|
|
18496
18556
|
async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, duration, playbackRate = 1, signal, config, audioSidecarUrl, options) {
|
|
18497
18557
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18498
|
-
const outputDir =
|
|
18558
|
+
const outputDir = dirname10(outputPath);
|
|
18499
18559
|
if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18500
18560
|
const normalizedPlaybackRate = normalizeRateSpec(playbackRate);
|
|
18501
18561
|
const sourceDuration = sourceTimeAt(normalizedPlaybackRate, duration);
|
|
@@ -18641,7 +18701,7 @@ function isRemoteElement(element, baseDir, compiledDir, config) {
|
|
|
18641
18701
|
}
|
|
18642
18702
|
async function generateSilence(outputPath, duration, signal, config) {
|
|
18643
18703
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18644
|
-
const outputDir =
|
|
18704
|
+
const outputDir = dirname10(outputPath);
|
|
18645
18705
|
if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18646
18706
|
const args = [
|
|
18647
18707
|
"-f",
|
|
@@ -18695,7 +18755,7 @@ async function mixAudioTracksFlat(tracks, outputPath, totalDuration, signal, con
|
|
|
18695
18755
|
failures: result2.failure ? [result2.failure] : void 0
|
|
18696
18756
|
};
|
|
18697
18757
|
}
|
|
18698
|
-
const outputDir =
|
|
18758
|
+
const outputDir = dirname10(outputPath);
|
|
18699
18759
|
if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18700
18760
|
const buildFilterComplex = (ignoreAutomation, useNormalize2) => {
|
|
18701
18761
|
const filterParts = [];
|
|
@@ -18804,7 +18864,7 @@ function groupNormalizeOptionUnsupported(stderr) {
|
|
|
18804
18864
|
}
|
|
18805
18865
|
async function mixGroupMembersFlat(memberTracks, outputPath, totalDuration, signal, config) {
|
|
18806
18866
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18807
|
-
const outputDir =
|
|
18867
|
+
const outputDir = dirname10(outputPath);
|
|
18808
18868
|
if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18809
18869
|
const buildInputFilters = (ignoreKeyframes, padMembers) => memberTracks.map((track, i) => {
|
|
18810
18870
|
const volumeFilter = buildVolumeExpression(track, ignoreKeyframes);
|
|
@@ -18937,8 +18997,8 @@ async function mixGroupMembers(memberTracks, outputPath, totalDuration, signal,
|
|
|
18937
18997
|
if (memberTracks.length <= MAX_MIX_INPUTS) {
|
|
18938
18998
|
return mixGroupMembersFlat(memberTracks, outputPath, totalDuration, signal, config);
|
|
18939
18999
|
}
|
|
18940
|
-
mkdirSync7(
|
|
18941
|
-
const scratchDir = createStagingDir(
|
|
19000
|
+
mkdirSync7(dirname10(outputPath), { recursive: true });
|
|
19001
|
+
const scratchDir = createStagingDir(dirname10(outputPath), ".mix-batches-");
|
|
18942
19002
|
try {
|
|
18943
19003
|
const summed = await sumInSlices(memberTracks, scratchDir, totalDuration, signal, config);
|
|
18944
19004
|
if (!summed.success) return summed;
|
|
@@ -18952,8 +19012,8 @@ async function mixAudioTracks(tracks, outputPath, totalDuration, signal, config)
|
|
|
18952
19012
|
if (tracks.length <= MAX_MIX_INPUTS) {
|
|
18953
19013
|
return mixAudioTracksFlat(tracks, outputPath, totalDuration, signal, config);
|
|
18954
19014
|
}
|
|
18955
|
-
mkdirSync7(
|
|
18956
|
-
const scratchDir = createStagingDir(
|
|
19015
|
+
mkdirSync7(dirname10(outputPath), { recursive: true });
|
|
19016
|
+
const scratchDir = createStagingDir(dirname10(outputPath), ".mix-batches-");
|
|
18957
19017
|
try {
|
|
18958
19018
|
const summed = await sumInSlices(tracks, scratchDir, totalDuration, signal, config);
|
|
18959
19019
|
if (!summed.success) {
|
|
@@ -20248,8 +20308,9 @@ function getSystemResources() {
|
|
|
20248
20308
|
// ../engine/src/services/fileServer.ts
|
|
20249
20309
|
import { Hono } from "hono";
|
|
20250
20310
|
import { serve } from "@hono/node-server";
|
|
20251
|
-
import { readFileSync as readFileSync9, openSync as openSync5, fstatSync, closeSync as closeSync5, statSync as
|
|
20311
|
+
import { readFileSync as readFileSync9, openSync as openSync5, fstatSync, closeSync as closeSync5, statSync as statSync7, constants as constants2 } from "fs";
|
|
20252
20312
|
import { join as join20, extname as extname3 } from "path";
|
|
20313
|
+
import { hostname as machineName, networkInterfaces } from "os";
|
|
20253
20314
|
|
|
20254
20315
|
// ../engine/src/utils/loopbackOnly.ts
|
|
20255
20316
|
function isOwnLoopbackHost(host, port) {
|
|
@@ -20306,7 +20367,7 @@ function readRegularFile(filePath) {
|
|
|
20306
20367
|
} catch (error) {
|
|
20307
20368
|
if (error instanceof Error && "code" in error && (error.code === "ENOENT" || error.code === "ENOTDIR"))
|
|
20308
20369
|
return null;
|
|
20309
|
-
if (!
|
|
20370
|
+
if (!statSync7(filePath, { throwIfNoEntry: false })?.isFile()) return null;
|
|
20310
20371
|
throw error;
|
|
20311
20372
|
}
|
|
20312
20373
|
try {
|
|
@@ -20326,6 +20387,31 @@ function resolveContainedPaths(projectDir, compiledDir, relativePath) {
|
|
|
20326
20387
|
if (isPrivateFileUnder(compiledDir, compiledPath, isStudioPrivatePath)) return null;
|
|
20327
20388
|
return { projectPath, compiledPath };
|
|
20328
20389
|
}
|
|
20390
|
+
var OFFER_NO_FRAMING_SITE_AN_EDITING_PORT = `<meta name="${PREVIEW_FOR_ANOTHER_SITE_META}">`;
|
|
20391
|
+
function nameInHost(host) {
|
|
20392
|
+
const bracketed = /^\[([^\]]+)\]/.exec(host);
|
|
20393
|
+
return (bracketed ? bracketed[1] : host.split(":")[0])?.toLowerCase() ?? "";
|
|
20394
|
+
}
|
|
20395
|
+
function isLoopbackName(name) {
|
|
20396
|
+
return name === "localhost" || name === "::1" || /^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(name);
|
|
20397
|
+
}
|
|
20398
|
+
function thisMachinesNames() {
|
|
20399
|
+
const names = /* @__PURE__ */ new Set([machineName().toLowerCase()]);
|
|
20400
|
+
for (const entries of Object.values(networkInterfaces())) {
|
|
20401
|
+
for (const entry of entries ?? []) names.add(entry.address.toLowerCase());
|
|
20402
|
+
}
|
|
20403
|
+
return names;
|
|
20404
|
+
}
|
|
20405
|
+
function hostAllowedFor(bound) {
|
|
20406
|
+
const boundName = bound.replace(/^\[|\]$/g, "").toLowerCase();
|
|
20407
|
+
const wildcard = boundName === "0.0.0.0" || boundName === "::";
|
|
20408
|
+
return (host) => {
|
|
20409
|
+
const name = host ? nameInHost(host) : "";
|
|
20410
|
+
if (name === "") return false;
|
|
20411
|
+
if (isLoopbackName(name) || name === boundName) return true;
|
|
20412
|
+
return wildcard && thisMachinesNames().has(name);
|
|
20413
|
+
};
|
|
20414
|
+
}
|
|
20329
20415
|
function createFileServer(options) {
|
|
20330
20416
|
const {
|
|
20331
20417
|
projectDir,
|
|
@@ -20340,6 +20426,13 @@ function createFileServer(options) {
|
|
|
20340
20426
|
let listeningPort = -1;
|
|
20341
20427
|
const boundToLoopbackOnly = ["127.0.0.1", "localhost", "::1"].includes(hostname);
|
|
20342
20428
|
if (boundToLoopbackOnly) answerOwnLoopbackHostOnly(app, () => listeningPort);
|
|
20429
|
+
if (!boundToLoopbackOnly) {
|
|
20430
|
+
const hostAllowed = hostAllowedFor(hostname);
|
|
20431
|
+
app.use(async function refuseHostNotServedHere(c, next) {
|
|
20432
|
+
if (hostAllowed(c.req.header("host") ?? new URL(c.req.url).host)) return next();
|
|
20433
|
+
return c.text("Forbidden: unknown host", 403);
|
|
20434
|
+
});
|
|
20435
|
+
}
|
|
20343
20436
|
app.get("/*", (c) => {
|
|
20344
20437
|
let requestPath = c.req.path;
|
|
20345
20438
|
if (requestPath === "/") requestPath = "/index.html";
|
|
@@ -20353,7 +20446,9 @@ function createFileServer(options) {
|
|
|
20353
20446
|
if (ext === ".html") {
|
|
20354
20447
|
const rawHtml = content.toString("utf-8");
|
|
20355
20448
|
const html = relativePath === "index.html" ? injectScriptsIntoHtml(rawHtml, headScripts, bodyScripts, stripEmbeddedRuntime) : rawHtml;
|
|
20356
|
-
return c.text(html, 200, {
|
|
20449
|
+
return c.text(injectTagsAtHeadStart(html, OFFER_NO_FRAMING_SITE_AN_EDITING_PORT), 200, {
|
|
20450
|
+
"Content-Type": contentType
|
|
20451
|
+
});
|
|
20357
20452
|
}
|
|
20358
20453
|
return new Response(content, {
|
|
20359
20454
|
status: 200,
|
|
@@ -20661,7 +20756,7 @@ async function launchHdrBrowser(width, height) {
|
|
|
20661
20756
|
const chromePath = resolveFullChromePath();
|
|
20662
20757
|
if (!chromePath) {
|
|
20663
20758
|
throw new Error(
|
|
20664
|
-
"[HDR]
|
|
20759
|
+
"[HDR] Name a full Chrome in HYPERFRAMES_BROWSER_PATH: HDR capture does not start a cached browser."
|
|
20665
20760
|
);
|
|
20666
20761
|
}
|
|
20667
20762
|
const browser = await ppt.launch({
|