hyperframes 0.8.223 → 0.8.224
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-PBLOPJHC.js → add-JEPKJ2F4.js} +14 -14
- package/dist/{agentPromptGenerator-OD74HKYZ.js → agentPromptGenerator-ZBNWLX5D.js} +5 -5
- package/dist/{animatedGifPrep-QCG2BTDC.js → animatedGifPrep-43LLMTN5.js} +5 -5
- package/dist/api.js +21 -21
- package/dist/{asset-KHXCO4OR.js → asset-M6SH6PUW.js} +5 -5
- package/dist/{assetCataloger-ZX5WZTDQ.js → assetCataloger-BLQ7UVJ5.js} +6 -6
- package/dist/{audio-7AH2C6PB.js → audio-J3QREJK4.js} +19 -19
- package/dist/{auth-DJWMGXQB.js → auth-7TRCBCKA.js} +4 -4
- package/dist/{autoUpdate-KJMLYSHE.js → autoUpdate-WTFSYLTK.js} +4 -4
- package/dist/{backgroundChecks-XLVQMMXY.js → backgroundChecks-YZW7AMMJ.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-UR67LI4H.js → batchRender-LDZ6NO2X.js} +6 -6
- package/dist/{beats-ISWSYNN6.js → beats-JWUADKHV.js} +11 -11
- package/dist/{benchmark-7JUATINH.js → benchmark-QOQZ7UGD.js} +13 -13
- package/dist/{billing-VGKY3FMX.js → billing-3GVNEE56.js} +4 -4
- package/dist/{browser-HNGQB47C.js → browser-4HNCSPUR.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-4XWX2XPS.js → bundleWithLocalizedFonts-GTKHB45M.js} +2 -2
- package/dist/{capture-LBEGVQTJ.js → capture-5OYZNIOR.js} +16 -16
- package/dist/{capture-GFDP5THL.js → capture-XSRWYHAM.js} +7 -7
- package/dist/{captureCompositionFrame-5L3J4MZ4.js → captureCompositionFrame-4F7PPQKB.js} +15 -15
- package/dist/{captureTimeout-RIMG6IYH.js → captureTimeout-7Y2RUBCU.js} +3 -1
- package/dist/{catalog-SNUTPI57.js → catalog-4FVQSID5.js} +15 -15
- package/dist/{catch-up-FE3HDMLJ.js → catch-up-KQVK2QZC.js} +8 -8
- package/dist/{check-MQCBMOKA.js → check-3YHLB6FM.js} +42 -42
- package/dist/{checkAudio-6VPMLIY6.js → checkAudio-7ZSZVBSJ.js} +8 -8
- package/dist/{checkBrowser-SHUVFQ4S.js → checkBrowser-VX5CHNQS.js} +35 -35
- package/dist/{chunk-K5GMPWMG.js → chunk-2KDHJCH2.js} +2 -2
- package/dist/{chunk-FORV75JT.js → chunk-2M6B2JKZ.js} +51 -29
- package/dist/{chunk-N6XKBBT5.js → chunk-2QQO3J3B.js} +7 -7
- package/dist/{chunk-SDBVVDBW.js → chunk-2WVQ3CCN.js} +1 -1
- package/dist/{chunk-DFK4RMNE.js → chunk-34GAW4GO.js} +5 -5
- package/dist/{chunk-G5KX4X6W.js → chunk-35NDLXHZ.js} +32 -37
- package/dist/{chunk-ZEKV5T3I.js → chunk-3NHCTTLP.js} +14 -14
- package/dist/{chunk-QZGKKQ77.js → chunk-3ZDOAVZM.js} +4 -4
- package/dist/{chunk-6ZLDIMPL.js → chunk-4H4DR36N.js} +2 -2
- package/dist/{chunk-JO4LHFFP.js → chunk-4ZAOAPWP.js} +17 -11
- package/dist/{chunk-KJGYQVFD.js → chunk-52B3AOIV.js} +1 -1
- package/dist/{chunk-B5HFCGI7.js → chunk-53JEHQBW.js} +2 -2
- package/dist/{chunk-664JAO7C.js → chunk-53TKUWDX.js} +3 -3
- package/dist/{chunk-NZZQCWUC.js → chunk-5KAGTSLY.js} +4 -4
- package/dist/{chunk-5ZBMHUY2.js → chunk-5LOZWO2M.js} +1 -1
- package/dist/{chunk-UGUWSAJT.js → chunk-5N5FYE5K.js} +2 -2
- package/dist/{chunk-KCDWRMTC.js → chunk-652ERUZD.js} +2 -2
- package/dist/{chunk-DP5LF7GF.js → chunk-66W5IWLO.js} +12 -0
- package/dist/{chunk-CYE2NNFF.js → chunk-6QIYQ43G.js} +2 -2
- package/dist/chunk-6UWSEXQ3.js +5030 -0
- package/dist/{chunk-I6OY5MS6.js → chunk-7HSV5SJ4.js} +3 -3
- package/dist/{chunk-FKBWONRY.js → chunk-7RTPHNOO.js} +1 -1
- package/dist/{chunk-MUHOFRGW.js → chunk-A25SCSOK.js} +1 -1
- package/dist/{chunk-SJGE5I5F.js → chunk-ADVVQX4I.js} +1 -1
- package/dist/{chunk-M4UVOUWC.js → chunk-AMQFGICP.js} +1 -1
- package/dist/{chunk-AW7UW2Z7.js → chunk-BAXL3U3T.js} +2 -2
- package/dist/{chunk-VBCBHDIW.js → chunk-BEMGUGGJ.js} +1 -1
- package/dist/{chunk-VJM6NX54.js → chunk-BTK3T4HJ.js} +1 -1
- package/dist/{chunk-UBDO4EHA.js → chunk-C5JKRCSG.js} +1 -1
- package/dist/{chunk-OVINGNLQ.js → chunk-CGX4EOGT.js} +3 -3
- package/dist/{chunk-JNQCM6CR.js → chunk-D4M37ATV.js} +2 -2
- package/dist/{chunk-BN75GXZM.js → chunk-E2ZY4GWH.js} +5 -5
- package/dist/{chunk-UQVAAEPQ.js → chunk-E47ZWDMH.js} +1 -1
- package/dist/{chunk-IJI2JNN7.js → chunk-EQFDOQTG.js} +1 -1
- package/dist/{chunk-OL2C3ODS.js → chunk-F34GYYXO.js} +4 -4
- package/dist/{chunk-KT2WLSX5.js → chunk-F3CTUCFD.js} +9 -9
- package/dist/{chunk-WGOIJN57.js → chunk-F7T57BZZ.js} +3 -3
- package/dist/{chunk-OWFSGDQS.js → chunk-FJ3KUOUZ.js} +1 -1
- package/dist/{chunk-7KBS6ZLB.js → chunk-FPR57WRR.js} +2 -2
- package/dist/{chunk-C466I3DT.js → chunk-G45NYKSM.js} +38 -3
- package/dist/{chunk-UFYWGUUV.js → chunk-GE4ABM5K.js} +2 -2
- package/dist/{chunk-BDEBKAD2.js → chunk-GLTSINRP.js} +1 -1
- package/dist/{chunk-JTZHDD63.js → chunk-GQ2QER6M.js} +1 -1
- package/dist/{chunk-AKTI2SHL.js → chunk-H6APAFKE.js} +2 -2
- package/dist/{chunk-WWOHLNFO.js → chunk-HANNA5JJ.js} +1 -1
- package/dist/{chunk-WUXDIF5D.js → chunk-HDPW7THH.js} +23 -15
- package/dist/{chunk-XZEHFUQF.js → chunk-HIPW4JXL.js} +3 -3
- package/dist/{chunk-B6F33PUK.js → chunk-IORJ42GY.js} +2 -2
- package/dist/{chunk-A5WWEW6U.js → chunk-IYYQRNIZ.js} +1 -1
- package/dist/{chunk-3FGEDDSA.js → chunk-J7FVF73D.js} +24 -22
- package/dist/{chunk-S2HWGG5O.js → chunk-JHOPRAJN.js} +1 -1
- package/dist/{chunk-RKVKFXYB.js → chunk-JIF347PW.js} +3 -3
- package/dist/{chunk-QNLHDYYO.js → chunk-JK2KNL6F.js} +1 -1
- package/dist/{chunk-7XWCCFYW.js → chunk-JKLWWGE6.js} +1 -1
- package/dist/{chunk-EX75C5HT.js → chunk-JMP52GTN.js} +39 -18
- package/dist/{chunk-EF735J3K.js → chunk-JUF43Q7Q.js} +1 -1
- package/dist/{chunk-OZM6VLD7.js → chunk-K3QT232E.js} +1 -1
- package/dist/{chunk-PHEPL7OX.js → chunk-KEDN4LSV.js} +2 -2
- package/dist/{chunk-A2KNKY4Z.js → chunk-L4ULTWCD.js} +1 -1
- package/dist/{chunk-2HBB5U52.js → chunk-LRS4FV5W.js} +3 -3
- package/dist/{chunk-VMRQDPFL.js → chunk-M336YVCP.js} +1 -1
- package/dist/{chunk-P5QGZMGC.js → chunk-MA5AQK7T.js} +2 -2
- package/dist/{chunk-EQGKUPBJ.js → chunk-MCDNAIFF.js} +1 -1
- package/dist/{chunk-MTVL7FWZ.js → chunk-MOXNAVCW.js} +1 -1
- package/dist/{chunk-4XQQQ4KN.js → chunk-NFUR6NNT.js} +19 -4
- package/dist/{chunk-LAIGIOEA.js → chunk-NI35PAVN.js} +2 -2
- package/dist/{chunk-LV5AVW6U.js → chunk-O2VKGYSK.js} +1 -1
- package/dist/{chunk-4JRFMRCQ.js → chunk-ODJ2WBZX.js} +1 -1
- package/dist/{chunk-PBPHKD56.js → chunk-OZMZFJDW.js} +1 -1
- package/dist/{chunk-SX7ESVCQ.js → chunk-PKMAWQUI.js} +2 -2
- package/dist/{chunk-44IPXXSK.js → chunk-POOLZTMZ.js} +3 -3
- package/dist/{chunk-EJOFIHX4.js → chunk-QK6ZNEBW.js} +1 -1
- package/dist/{chunk-45UOXUUH.js → chunk-QOI46C6F.js} +2 -2
- package/dist/{chunk-RWSVSCOP.js → chunk-QOYZ3U6G.js} +1 -1
- package/dist/{chunk-HOTXWVVP.js → chunk-R2C5EON5.js} +2 -6
- package/dist/{chunk-Y4INSXS7.js → chunk-RR5QE7DB.js} +2 -2
- package/dist/{chunk-RORIFIUW.js → chunk-RU7KMDFL.js} +1 -1
- package/dist/{chunk-ONMTNYGR.js → chunk-RXJUMVCA.js} +1 -1
- package/dist/{chunk-WQLTKHPP.js → chunk-SGMCQAYU.js} +2 -2
- package/dist/{chunk-6LE7K3YM.js → chunk-THL3N377.js} +12 -12
- package/dist/{chunk-IQ7FABPU.js → chunk-UCPEABYK.js} +2 -2
- package/dist/{chunk-KWYK65GR.js → chunk-UZ5AWZCA.js} +3 -3
- package/dist/{chunk-NLWG5TU7.js → chunk-VCJE7IMY.js} +1 -1
- package/dist/{chunk-SNFVQDKE.js → chunk-VPMHRLJH.js} +3 -3
- package/dist/{chunk-44YG42L5.js → chunk-VXRBPWVW.js} +7 -7
- package/dist/{chunk-PX7Y4HMM.js → chunk-W7MJPKBJ.js} +1 -1
- package/dist/{chunk-26AQTUU4.js → chunk-WJD3GVAA.js} +1 -1
- package/dist/{chunk-DS372VSV.js → chunk-WW7Z2W73.js} +2 -2
- package/dist/{chunk-7LKEHM2R.js → chunk-X5BSSPC2.js} +1 -1
- package/dist/{chunk-M7HNGAWN.js → chunk-Y5HVDK7X.js} +2 -2
- package/dist/{chunk-EHSBBBR2.js → chunk-YGGZ23BB.js} +2 -0
- package/dist/{chunk-UVF4U3ZF.js → chunk-Z7GIHPAZ.js} +1 -1
- package/dist/{chunk-XC3BGWCJ.js → chunk-ZFQSXMX6.js} +1 -1
- package/dist/{chunk-2GMHYOV3.js → chunk-ZGQC6IU7.js} +1 -1
- package/dist/{chunk-CXEU6XNL.js → chunk-ZLZXGJ63.js} +1 -1
- package/dist/{clean-JZOPMJMV.js → clean-SXEI6FT4.js} +18 -18
- package/dist/cli.js +73 -66
- package/dist/{cloud-VMPF2KMA.js → cloud-SKN6FWAZ.js} +4 -4
- package/dist/{cloudrun-LA2FKS2F.js → cloudrun-RHPVVXCR.js} +8 -8
- package/dist/{compare-IQCFSC5Z.js → compare-RTXF2NSK.js} +32 -32
- package/dist/{compiler-J7OZQIPD.js → compiler-SKRY6FPA.js} +2 -2
- package/dist/{component-TRGBVFCI.js → component-2NPF5PA6.js} +6 -6
- package/dist/{compositions-FOC2CAZX.js → compositions-AZRVHGBT.js} +13 -13
- package/dist/{curve-ID3Z522S.js → curve-QSFEGBUH.js} +11 -11
- package/dist/{cuts-MWHQSE2Z.js → cuts-6AWEJH2H.js} +12 -12
- package/dist/{delete-47KZ7PLI.js → delete-NOHFVICL.js} +9 -9
- package/dist/{deploy-NTNEO4TI.js → deploy-UFRADJOA.js} +4 -4
- package/dist/{describeProject-WWREIVQV.js → describeProject-F43LI3YQ.js} +6 -6
- package/dist/{destroy-6NWJMQX2.js → destroy-IQLGADZM.js} +3 -3
- package/dist/{diff-GH4KCQGQ.js → diff-3WS6NMSE.js} +23 -23
- package/dist/{dist-XW7FATO6.js → dist-YEYUGCOR.js} +2 -2
- package/dist/{docs-VAF5NM5B.js → docs-IB3KETC6.js} +1 -1
- package/dist/{doctor-4ZH7WFU6.js → doctor-F4VJYQXC.js} +11 -11
- package/dist/{energy-2C65KXBH.js → energy-BN3QD6Y7.js} +12 -12
- package/dist/{events-QO5G2VCC.js → events-5W7ETFWR.js} +14 -14
- package/dist/{events-Q3EBOW2Y.js → events-PZH4C7VA.js} +5 -5
- package/dist/{events-FUFFA55P.js → events-YJ3XSIPL.js} +6 -6
- package/dist/{extract-Z6TLBM5B.js → extract-S34DWGAD.js} +12 -12
- package/dist/{face-WI6BPPUG.js → face-3SCJADG4.js} +12 -12
- package/dist/{feedback-M5GZWDXP.js → feedback-3K6NSKIC.js} +14 -14
- package/dist/{ffmpeg-27H6P7ZU.js → ffmpeg-2RBDDMHU.js} +5 -5
- package/dist/{figma-AI6TSWVO.js → figma-NWAJYMAI.js} +3 -3
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{frames-WUTLVZIR.js → frames-6UARLPLK.js} +13 -13
- package/dist/{generate-3CJREF5U.js → generate-KBVWFVXN.js} +17 -17
- package/dist/{get-KTDRE33B.js → get-SEZZMLQ3.js} +8 -8
- package/dist/{gpuPolicy-Z4MM64HY.js → gpuPolicy-VIZAJ3GY.js} +5 -5
- package/dist/{grade-compare-IM7Z7HWI.js → grade-compare-PMAK4PJD.js} +33 -33
- package/dist/{heifImagePrep-CXI2ZMUX.js → heifImagePrep-6NYIR7WN.js} +6 -6
- package/dist/{help-5FR6BRLR.js → help-4UPSHWI2.js} +1 -1
- package/dist/{history-5P5YVP5H.js → history-VNAZEQDE.js} +10 -10
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +64 -64
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-5ZGNJJVA.js → info-OREET5PM.js} +11 -11
- package/dist/{init-NWIAEYSX.js → init-K7AEJBAL.js} +29 -29
- package/dist/{inspect-HBLAVW5C.js → inspect-STME5DNY.js} +33 -33
- package/dist/{installer-KVFTBZZ5.js → installer-NQA4KXRP.js} +4 -4
- package/dist/{keyframes-LFCLUY2R.js → keyframes-JQWZ235Q.js} +10 -10
- package/dist/{lambda-RFWTTMLU.js → lambda-RJNLW2EO.js} +19 -19
- package/dist/{layout-WOG2Y5ND.js → layout-MTZWBPNZ.js} +33 -33
- package/dist/{lint-7MALXMMF.js → lint-AQWTSL75.js} +10 -10
- package/dist/{list-XRYAT24W.js → list-ZEBZ5DB5.js} +9 -9
- package/dist/{localPage-IN36JVJU.js → localPage-CQ3H4N2N.js} +5 -5
- package/dist/{login-32WGVGTM.js → login-VHCZHENV.js} +8 -8
- package/dist/{logout-SLI6YTHI.js → logout-LHTQV2BZ.js} +3 -3
- package/dist/{look-ZWVE6JO3.js → look-25TSRPSV.js} +12 -12
- package/dist/{manager-SFL6GLYX.js → manager-57SX7D5G.js} +6 -6
- package/dist/{measure-Q74BJTRQ.js → measure-Y2R3G5OJ.js} +10 -10
- package/dist/{media-treatment-3R6DYEAZ.js → media-treatment-3G2IVS64.js} +15 -15
- package/dist/{media-use-ZM2WCRQC.js → media-use-LUAOZJNV.js} +3 -3
- package/dist/{models-NNC53UPU.js → models-NT56FKRG.js} +13 -13
- package/dist/{motionShot-5BI5JFUP.js → motionShot-P4NTFKYS.js} +18 -18
- package/dist/{normalize-audio-6Z2WN56Q.js → normalize-audio-2DUTZ6QK.js} +12 -12
- package/dist/{open-5NCEN6RC.js → open-OATYOOR7.js} +15 -15
- package/dist/{parakeetRunner-DH3XKR3C.js → parakeetRunner-UASHW3A4.js} +10 -10
- package/dist/{pipeline-CGEGQAPH.js → pipeline-GGAYP5Q6.js} +9 -9
- package/dist/{play-K37BN736.js → play-GHXBJS3T.js} +23 -23
- package/dist/{policies-U4PFXF5E.js → policies-EERREOZJ.js} +2 -2
- package/dist/{preflight-CG7H3D5B.js → preflight-6VOP3IOI.js} +6 -6
- package/dist/{present-KQ53DOHA.js → present-M7UYHVEZ.js} +19 -19
- package/dist/{preview-V7CYHL6U.js → preview-YWT5WA3W.js} +21 -21
- package/dist/{probe-JVW2MPY3.js → probe-CQAGZJLP.js} +11 -11
- package/dist/{producer-UD32S7PX.js → producer-OU2BCMLY.js} +1 -1
- package/dist/{progress-X3QFO3FE.js → progress-STSH2JRY.js} +2 -2
- package/dist/{projectConfig-WXCB5AZE.js → projectConfig-UI4NZDN7.js} +6 -6
- package/dist/{prompts-VAO7RDKX.js → prompts-ZEVFT7US.js} +2 -2
- package/dist/{publication-KG4UDZRM.js → publication-VPJZQCLA.js} +2 -2
- package/dist/{publish-MEQB543T.js → publish-7RA2MK2M.js} +14 -14
- package/dist/{refresh-2LU4XDL7.js → refresh-AM2ULRRV.js} +3 -3
- package/dist/{remove-background-FSV5KQK3.js → remove-background-A5KJUH6W.js} +12 -12
- package/dist/{render-SQXZAGPQ.js → render-EMW4I6C6.js} +38 -38
- package/dist/{render-O4S4SURS.js → render-IYV73CG6.js} +9 -9
- package/dist/{render-SY4AXKXC.js → render-Z5IS4AUP.js} +23 -23
- package/dist/{render-batch-GTZQUB3H.js → render-batch-IN2ZXPS7.js} +9 -9
- package/dist/{resolver-BQZNCVJS.js → resolver-DIXFK5ZR.js} +4 -4
- package/dist/{run-67OPNJGD.js → run-MCVU7AZX.js} +4 -4
- package/dist/{sam-QA7JT7IM.js → sam-EGFXZF56.js} +2 -2
- package/dist/{screenshotCapture-4THETOMD.js → screenshotCapture-RUDON2HB.js} +2 -2
- package/dist/{sherpa-KH3PJAUG.js → sherpa-SAY3I7PK.js} +9 -9
- package/dist/{sites-MTLVMYJ6.js → sites-EAGXQOKI.js} +2 -2
- package/dist/skills/hyperframes-cli/SKILL.md +4 -4
- package/dist/skills/hyperframes-cli/references/cloud.md +3 -1
- package/dist/skills/hyperframes-cli/references/preview-render.md +1 -1
- package/dist/{skills-FTZZJGAB.js → skills-YWQ5XKH6.js} +9 -9
- package/dist/{skillsUpdateCheck-LZPD2CZI.js → skillsUpdateCheck-ST5ZFEET.js} +5 -5
- package/dist/{snapshot-4BORZ3ED.js → snapshot-57YYYE5J.js} +37 -37
- package/dist/{src-6ZOFAM3F.js → src-7MEBCSTP.js} +7 -7
- package/dist/{src-D7AO7PGH.js → src-LNSJHD25.js} +8 -4
- package/dist/{state-6QHNNHDA.js → state-W3AS6O2J.js} +2 -2
- package/dist/{staticProjectServer-Q23A6XU2.js → staticProjectServer-TTJSAB2Q.js} +16 -16
- package/dist/{status-VIJRZ4ZK.js → status-FGXBUX2T.js} +6 -6
- package/dist/studio/assets/hyperframes-player-Bzcd9O2g.js +478 -0
- package/dist/studio/assets/{index-DD9KJoEr.js → index-CZI-XmnO.js} +4 -4
- package/dist/studio/assets/{index-mbwAH5iR.js → index-LW6kxYVF.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-XVVJZ7YT.js → studio-api-57E36S5N.js} +8 -8
- package/dist/{studioServer-6HG3AMTW.js → studioServer-2AIRUNBA.js} +51 -51
- package/dist/{sync-Q5SRIL7V.js → sync-52GUXEYZ.js} +12 -12
- package/dist/{telemetry-VXPSJ3X3.js → telemetry-RVY6RSCD.js} +6 -6
- package/dist/{telemetry-QHYJJAJU.js → telemetry-T73TKZOL.js} +1 -1
- package/dist/{timeline-6477OWFA.js → timeline-MMZF4AX3.js} +22 -22
- package/dist/{tokens-ZUUNEDKT.js → tokens-WGWCYFTY.js} +5 -5
- package/dist/{transcribe-ITVANIDK.js → transcribe-6BF5FFPV.js} +23 -23
- package/dist/{transcribe-HA4UGLKO.js → transcribe-YYDHXRQW.js} +8 -8
- package/dist/{tts-KMZPHG3K.js → tts-ZLNNIS6W.js} +4 -4
- package/dist/{updateCheck-SVADAQ43.js → updateCheck-AAR5LLUF.js} +4 -4
- package/dist/{upgrade-WKW4FDNF.js → upgrade-Y7CIRL4B.js} +5 -5
- package/dist/{urlDownloader-VWHCESDD.js → urlDownloader-KZOD7EWX.js} +4 -4
- package/dist/{validate-7VG2RLP2.js → validate-K3PHAA2E.js} +27 -27
- package/dist/{video-LM3FYHGG.js → video-Z6EBVCAT.js} +7 -7
- package/dist/warmCheck.js +42 -42
- package/package.json +1 -1
- package/dist/chunk-UQECNXFA.js +0 -5013
- package/dist/studio/assets/hyperframes-player-D0W1SNqK.js +0 -478
|
@@ -19,51 +19,51 @@ import {
|
|
|
19
19
|
preResolveHostileMediaProxies,
|
|
20
20
|
runBrowserCheck,
|
|
21
21
|
samplingBrowserCount
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-HDPW7THH.js";
|
|
23
|
+
import "./chunk-THL3N377.js";
|
|
24
|
+
import "./chunk-3NHCTTLP.js";
|
|
25
25
|
import "./chunk-TQBQYO4L.js";
|
|
26
26
|
import "./chunk-X7MTZ4T2.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-VPMHRLJH.js";
|
|
28
|
+
import "./chunk-2QQO3J3B.js";
|
|
29
29
|
import "./chunk-X7MTZ4T2.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-CGX4EOGT.js";
|
|
31
31
|
import "./chunk-XUHOIDKG.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-35NDLXHZ.js";
|
|
33
|
+
import "./chunk-G45NYKSM.js";
|
|
34
|
+
import "./chunk-652ERUZD.js";
|
|
35
35
|
import "./chunk-AW3XJY4S.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-GE4ABM5K.js";
|
|
37
|
+
import "./chunk-E47ZWDMH.js";
|
|
38
38
|
import "./chunk-QU5OYMTB.js";
|
|
39
39
|
import "./chunk-ALVXFXUG.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-4ZAOAPWP.js";
|
|
41
|
+
import "./chunk-R2C5EON5.js";
|
|
42
|
+
import "./chunk-E2ZY4GWH.js";
|
|
43
|
+
import "./chunk-X5BSSPC2.js";
|
|
44
|
+
import "./chunk-5LOZWO2M.js";
|
|
45
|
+
import "./chunk-YGGZ23BB.js";
|
|
46
|
+
import "./chunk-OZMZFJDW.js";
|
|
47
|
+
import "./chunk-ZGQC6IU7.js";
|
|
48
48
|
import "./chunk-XT7X6QCP.js";
|
|
49
49
|
import "./chunk-5YPMCCCA.js";
|
|
50
50
|
import "./chunk-HVW7ABXD.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-A25SCSOK.js";
|
|
52
52
|
import "./chunk-JHOCK3DG.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-UCPEABYK.js";
|
|
54
|
+
import "./chunk-EQFDOQTG.js";
|
|
55
55
|
import "./chunk-AWDFDFI3.js";
|
|
56
56
|
import "./chunk-P6LJ4Y32.js";
|
|
57
57
|
import "./chunk-T2WJO4XM.js";
|
|
58
58
|
import "./chunk-W4DMQZL5.js";
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-HIPW4JXL.js";
|
|
60
|
+
import "./chunk-53JEHQBW.js";
|
|
61
61
|
import "./chunk-EHZESMRB.js";
|
|
62
62
|
import "./chunk-A4ZTSQLW.js";
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-NI35PAVN.js";
|
|
64
|
+
import "./chunk-QOI46C6F.js";
|
|
65
65
|
import "./chunk-PXVQOMKL.js";
|
|
66
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-MCDNAIFF.js";
|
|
67
67
|
import "./chunk-VLA6UJGH.js";
|
|
68
68
|
import "./chunk-DL4OD7IA.js";
|
|
69
69
|
import "./chunk-S3S4TGEH.js";
|
|
@@ -73,15 +73,15 @@ import "./chunk-2GICKZ3I.js";
|
|
|
73
73
|
import "./chunk-G6OKQMJI.js";
|
|
74
74
|
import "./chunk-EVMY7IPL.js";
|
|
75
75
|
import "./chunk-7FMUTGOH.js";
|
|
76
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-NFUR6NNT.js";
|
|
77
77
|
import "./chunk-Z5J67X44.js";
|
|
78
78
|
import "./chunk-5S7W3TUO.js";
|
|
79
79
|
import "./chunk-D3MUHMFG.js";
|
|
80
|
-
import "./chunk-
|
|
80
|
+
import "./chunk-7RTPHNOO.js";
|
|
81
81
|
import "./chunk-YWRUQ7XZ.js";
|
|
82
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-FJ3KUOUZ.js";
|
|
83
83
|
import "./chunk-MEJH7VEA.js";
|
|
84
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-6UWSEXQ3.js";
|
|
85
85
|
import "./chunk-VC76R6W2.js";
|
|
86
86
|
import "./chunk-OFQWTKPW.js";
|
|
87
87
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -105,15 +105,15 @@ import "./chunk-2RY2LWAA.js";
|
|
|
105
105
|
import "./chunk-EPQC3FGZ.js";
|
|
106
106
|
import "./chunk-WC4MTXGN.js";
|
|
107
107
|
import "./chunk-FBN2M2HK.js";
|
|
108
|
-
import "./chunk-
|
|
108
|
+
import "./chunk-2KDHJCH2.js";
|
|
109
109
|
import "./chunk-BR2JQQC5.js";
|
|
110
110
|
import "./chunk-BLBMPEBX.js";
|
|
111
111
|
import "./chunk-ISN5GRYI.js";
|
|
112
|
-
import "./chunk-
|
|
113
|
-
import "./chunk-
|
|
112
|
+
import "./chunk-ADVVQX4I.js";
|
|
113
|
+
import "./chunk-66W5IWLO.js";
|
|
114
114
|
import "./chunk-J3RXEDR2.js";
|
|
115
115
|
import "./chunk-QBXDU24O.js";
|
|
116
|
-
import "./chunk-
|
|
116
|
+
import "./chunk-MA5AQK7T.js";
|
|
117
117
|
import "./chunk-E63BDV4Z.js";
|
|
118
118
|
import "./chunk-G7VEYUZ2.js";
|
|
119
119
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
} from "./chunk-ISN5GRYI.js";
|
|
18
18
|
import {
|
|
19
19
|
asNotice
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ADVVQX4I.js";
|
|
21
21
|
import {
|
|
22
22
|
isCI,
|
|
23
23
|
isUnattended
|
|
24
24
|
} from "./chunk-J3RXEDR2.js";
|
|
25
25
|
import {
|
|
26
26
|
VERSION
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MA5AQK7T.js";
|
|
28
28
|
|
|
29
29
|
// src/utils/updateCheck.ts
|
|
30
30
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -15,22 +15,25 @@ import {
|
|
|
15
15
|
findFFmpeg,
|
|
16
16
|
findFFprobe,
|
|
17
17
|
getFFmpegInstallHint
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HANNA5JJ.js";
|
|
19
19
|
import {
|
|
20
20
|
registerBrowserSessionCleanup
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HIPW4JXL.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_VP9_CPU_USED,
|
|
24
24
|
SDR_RGB_TO_BT709_FILTER,
|
|
25
25
|
SDR_RGB_TO_TAGGED_BT709_FILTER,
|
|
26
26
|
renderProvenanceArgs
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-NFUR6NNT.js";
|
|
28
28
|
import {
|
|
29
29
|
runCancellableProcess
|
|
30
30
|
} from "./chunk-X6JUUQCM.js";
|
|
31
31
|
import {
|
|
32
32
|
processIsAlive
|
|
33
33
|
} from "./chunk-KGPLIH7B.js";
|
|
34
|
+
import {
|
|
35
|
+
drainToExit
|
|
36
|
+
} from "./chunk-66W5IWLO.js";
|
|
34
37
|
|
|
35
38
|
// src/background-removal/pipeline.ts
|
|
36
39
|
import { spawn } from "child_process";
|
|
@@ -205,7 +208,20 @@ async function createSession(options = {}) {
|
|
|
205
208
|
graphOptimizationLevel: "all"
|
|
206
209
|
});
|
|
207
210
|
const coreMlTemp = choice.label === "CoreML" ? trackCoreMlTemp() : void 0;
|
|
208
|
-
|
|
211
|
+
if (coreMlTemp) drainToExit();
|
|
212
|
+
let stopped = false;
|
|
213
|
+
let inFlight;
|
|
214
|
+
let released = false;
|
|
215
|
+
const release = async () => {
|
|
216
|
+
if (released || !session) return;
|
|
217
|
+
released = true;
|
|
218
|
+
await session.release();
|
|
219
|
+
};
|
|
220
|
+
const unregister = coreMlTemp && registerBrowserSessionCleanup(async () => {
|
|
221
|
+
stopped = true;
|
|
222
|
+
await inFlight;
|
|
223
|
+
await release();
|
|
224
|
+
});
|
|
209
225
|
let session;
|
|
210
226
|
let providerUsed = choice.label;
|
|
211
227
|
try {
|
|
@@ -248,38 +264,44 @@ async function createSession(options = {}) {
|
|
|
248
264
|
return await session.run({ [inputName]: tensor });
|
|
249
265
|
}
|
|
250
266
|
};
|
|
267
|
+
const convert = async (rgb, width, height, withBackground) => {
|
|
268
|
+
const tensor = await preprocess(sharp, ort, rgb, width, height, inputData);
|
|
269
|
+
const outputs = await run(tensor);
|
|
270
|
+
const output = outputs[outputName];
|
|
271
|
+
if (!output) throw new Error(`Model did not return output '${outputName}'`);
|
|
272
|
+
const expectedBytes = width * height * 4;
|
|
273
|
+
if (!rgbaBuf || rgbaBuf.length !== expectedBytes) {
|
|
274
|
+
rgbaBuf = Buffer.allocUnsafe(expectedBytes);
|
|
275
|
+
}
|
|
276
|
+
if (withBackground) {
|
|
277
|
+
if (!rgbaBgBuf || rgbaBgBuf.length !== expectedBytes) {
|
|
278
|
+
rgbaBgBuf = Buffer.allocUnsafe(expectedBytes);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
return await postprocess(
|
|
282
|
+
sharp,
|
|
283
|
+
output,
|
|
284
|
+
rgb,
|
|
285
|
+
width,
|
|
286
|
+
height,
|
|
287
|
+
maskBuf,
|
|
288
|
+
rgbaBuf,
|
|
289
|
+
withBackground ? rgbaBgBuf : null
|
|
290
|
+
);
|
|
291
|
+
};
|
|
251
292
|
return {
|
|
252
293
|
get provider() {
|
|
253
294
|
return providerUsed;
|
|
254
295
|
},
|
|
255
296
|
async process(rgb, width, height, withBackground = false) {
|
|
256
|
-
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
const expectedBytes = width * height * 4;
|
|
261
|
-
if (!rgbaBuf || rgbaBuf.length !== expectedBytes) {
|
|
262
|
-
rgbaBuf = Buffer.allocUnsafe(expectedBytes);
|
|
263
|
-
}
|
|
264
|
-
if (withBackground) {
|
|
265
|
-
if (!rgbaBgBuf || rgbaBgBuf.length !== expectedBytes) {
|
|
266
|
-
rgbaBgBuf = Buffer.allocUnsafe(expectedBytes);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
return await postprocess(
|
|
270
|
-
sharp,
|
|
271
|
-
output,
|
|
272
|
-
rgb,
|
|
273
|
-
width,
|
|
274
|
-
height,
|
|
275
|
-
maskBuf,
|
|
276
|
-
rgbaBuf,
|
|
277
|
-
withBackground ? rgbaBgBuf : null
|
|
278
|
-
);
|
|
297
|
+
if (stopped) throw new Error("Background removal was stopped.");
|
|
298
|
+
const frame = convert(rgb, width, height, withBackground);
|
|
299
|
+
inFlight = frame.catch(() => void 0);
|
|
300
|
+
return await frame;
|
|
279
301
|
},
|
|
280
302
|
async close() {
|
|
281
303
|
unregister?.();
|
|
282
|
-
await
|
|
304
|
+
await release();
|
|
283
305
|
coreMlTemp?.forget();
|
|
284
306
|
}
|
|
285
307
|
};
|
|
@@ -413,7 +435,7 @@ async function decoderTransposesDimensions(inputPath) {
|
|
|
413
435
|
}
|
|
414
436
|
async function probeMedia(inputPath) {
|
|
415
437
|
const isImage = inferInputKind(inputPath) === "image";
|
|
416
|
-
const engine = await import("./src-
|
|
438
|
+
const engine = await import("./src-LNSJHD25.js");
|
|
417
439
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
418
440
|
if (isImage) {
|
|
419
441
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-35NDLXHZ.js";
|
|
11
11
|
import {
|
|
12
12
|
PROXY_VARIANT_CONFIG,
|
|
13
13
|
ProxyCapacityError,
|
|
@@ -18,23 +18,23 @@ import {
|
|
|
18
18
|
recordProxyRequest,
|
|
19
19
|
resolveProxy,
|
|
20
20
|
resolveProxyVariantRequest
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GE4ABM5K.js";
|
|
22
22
|
import {
|
|
23
23
|
findStageProxyBox
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OZMZFJDW.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveAutoProxy
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZGQC6IU7.js";
|
|
28
28
|
import {
|
|
29
29
|
listenOnBrowserSafePort
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-NFUR6NNT.js";
|
|
31
31
|
import {
|
|
32
32
|
stripSdrPngColourTags
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-7RTPHNOO.js";
|
|
34
34
|
import {
|
|
35
35
|
PREVIEW_PROXY_BOX_PARAM,
|
|
36
36
|
parsePreviewProxyBox
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-FJ3KUOUZ.js";
|
|
38
38
|
import {
|
|
39
39
|
decodeWellFormedEscapes
|
|
40
40
|
} from "./chunk-C2KEGBR3.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-J3OVTOVC.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IYYQRNIZ.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-2GICKZ3I.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NFUR6NNT.js";
|
|
33
33
|
import {
|
|
34
34
|
getFreeDiskMb,
|
|
35
35
|
getShmSizeMb,
|
|
@@ -41,14 +41,14 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
getUpdateMeta,
|
|
43
43
|
withMeta
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-2KDHJCH2.js";
|
|
45
45
|
import {
|
|
46
46
|
CONFIG_PATH,
|
|
47
47
|
withFileLock
|
|
48
48
|
} from "./chunk-BLBMPEBX.js";
|
|
49
49
|
import {
|
|
50
50
|
VERSION
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-MA5AQK7T.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeErrorMessage
|
|
54
54
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -240,7 +240,7 @@ function checkEnvironment() {
|
|
|
240
240
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
241
241
|
}
|
|
242
242
|
async function checkWhisper() {
|
|
243
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
243
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-57SX7D5G.js");
|
|
244
244
|
const result = findWhisper();
|
|
245
245
|
if (result) {
|
|
246
246
|
return { ok: true, detail: result.executablePath };
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-G45NYKSM.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_TARGET_LUFS,
|
|
25
25
|
absoluteLoudnessPlan,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
requestedProjectPath,
|
|
29
29
|
requiredFfmpeg,
|
|
30
30
|
resolveLocalAudioPath
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-652ERUZD.js";
|
|
32
32
|
import {
|
|
33
33
|
MEDIA_LINK_ATTR,
|
|
34
34
|
relinkSplitHalves
|
|
@@ -55,11 +55,11 @@ import {
|
|
|
55
55
|
scanProjectMedia,
|
|
56
56
|
shouldPrewarmProxy,
|
|
57
57
|
waitForProxy
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-GE4ABM5K.js";
|
|
59
59
|
import {
|
|
60
60
|
probeAudioTrack,
|
|
61
61
|
probeMediaMetadata
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-E47ZWDMH.js";
|
|
63
63
|
import {
|
|
64
64
|
HistoryBusyError,
|
|
65
65
|
MAX_WINDOW_IDLE_MS,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
ensureHfIds,
|
|
116
116
|
stampHfIdsInPlace,
|
|
117
117
|
stripSdrPngColourTags
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-7RTPHNOO.js";
|
|
119
119
|
import {
|
|
120
120
|
PREVIEW_PROXY_BOX_PARAM,
|
|
121
121
|
PREVIEW_PROXY_LIGHT_PARAM,
|
|
@@ -127,7 +127,7 @@ import {
|
|
|
127
127
|
fpsToNumber,
|
|
128
128
|
parseFps,
|
|
129
129
|
parsePreviewProxyBox
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-FJ3KUOUZ.js";
|
|
131
131
|
import {
|
|
132
132
|
GSAP_BASE_URL_META,
|
|
133
133
|
gsapCdnDist,
|
|
@@ -149,7 +149,7 @@ import {
|
|
|
149
149
|
resolveRateSpec,
|
|
150
150
|
sourceTimeAt,
|
|
151
151
|
stripEmbeddedRuntimeScripts
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-6UWSEXQ3.js";
|
|
153
153
|
import {
|
|
154
154
|
ProjectRootMissingError,
|
|
155
155
|
folderGone,
|
|
@@ -3671,8 +3671,17 @@ import { dirname as dirname4, join as join7, parse as parse2, relative as relati
|
|
|
3671
3671
|
import { readFileSync as readFileSync7 } from "fs";
|
|
3672
3672
|
import { join as join9 } from "path";
|
|
3673
3673
|
import { streamSSE } from "hono/streaming";
|
|
3674
|
-
import {
|
|
3674
|
+
import {
|
|
3675
|
+
createReadStream as createReadStream2,
|
|
3676
|
+
existsSync as existsSync6,
|
|
3677
|
+
lstatSync as lstatSync3,
|
|
3678
|
+
readFileSync as readFileSync8,
|
|
3679
|
+
unlinkSync as unlinkSync3,
|
|
3680
|
+
readdirSync as readdirSync3,
|
|
3681
|
+
statSync as statSync5
|
|
3682
|
+
} from "fs";
|
|
3675
3683
|
import { dirname as dirname5, join as join10 } from "path";
|
|
3684
|
+
import { Readable as Readable2 } from "stream";
|
|
3676
3685
|
import { HTTPException } from "hono/http-exception";
|
|
3677
3686
|
import { open, stat } from "fs/promises";
|
|
3678
3687
|
import { createHash as createHash4 } from "crypto";
|
|
@@ -5592,7 +5601,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5592
5601
|
let block = extractGsapScriptBlock(html);
|
|
5593
5602
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5594
5603
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5595
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5604
|
+
const { GSAP_CDN } = await import("./dist-YEYUGCOR.js");
|
|
5596
5605
|
const bootstrap = [
|
|
5597
5606
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5598
5607
|
"<script>",
|
|
@@ -8268,23 +8277,25 @@ function registerRenderRoutes(api, adapter) {
|
|
|
8268
8277
|
const ext = RENDER_EXTENSIONS.find((e) => filePath.endsWith(e));
|
|
8269
8278
|
return (ext && RENDER_MIME[ext]) ?? "video/mp4";
|
|
8270
8279
|
}
|
|
8280
|
+
function renderFileResponse(filePath, disposition, filename, method) {
|
|
8281
|
+
const headers = {
|
|
8282
|
+
"Content-Type": renderContentType(filePath),
|
|
8283
|
+
"Content-Disposition": contentDispositionHeader(disposition, filename),
|
|
8284
|
+
...disposition === "inline" ? { "Accept-Ranges": "bytes" } : {},
|
|
8285
|
+
"Content-Length": String(statSync5(filePath).size)
|
|
8286
|
+
};
|
|
8287
|
+
if (method === "HEAD") return new Response(null, { headers });
|
|
8288
|
+
const body = Readable2.toWeb(createReadStream2(filePath));
|
|
8289
|
+
return new Response(body, { headers });
|
|
8290
|
+
}
|
|
8271
8291
|
api.get("/render/:jobId/view", (c) => {
|
|
8272
8292
|
const { jobId } = c.req.param();
|
|
8273
8293
|
const job = renderJobs.get(jobId);
|
|
8274
8294
|
if (!job?.outputPath || !isPlainFile(job.outputPath)) {
|
|
8275
8295
|
return c.json({ error: "not found" }, 404);
|
|
8276
8296
|
}
|
|
8277
|
-
const contentType = renderContentType(job.outputPath);
|
|
8278
8297
|
const filename = job.outputPath.split("/").pop() ?? `render.mp4`;
|
|
8279
|
-
|
|
8280
|
-
return new Response(content, {
|
|
8281
|
-
headers: {
|
|
8282
|
-
"Content-Type": contentType,
|
|
8283
|
-
"Content-Disposition": contentDispositionHeader("inline", filename),
|
|
8284
|
-
"Accept-Ranges": "bytes",
|
|
8285
|
-
"Content-Length": String(content.length)
|
|
8286
|
-
}
|
|
8287
|
-
});
|
|
8298
|
+
return renderFileResponse(job.outputPath, "inline", filename, c.req.method);
|
|
8288
8299
|
});
|
|
8289
8300
|
api.get("/render/:jobId/download", (c) => {
|
|
8290
8301
|
const { jobId } = c.req.param();
|
|
@@ -8292,15 +8303,8 @@ function registerRenderRoutes(api, adapter) {
|
|
|
8292
8303
|
if (!job?.outputPath || !isPlainFile(job.outputPath)) {
|
|
8293
8304
|
return c.json({ error: "not found" }, 404);
|
|
8294
8305
|
}
|
|
8295
|
-
const contentType = renderContentType(job.outputPath);
|
|
8296
8306
|
const filename = job.outputPath.split("/").pop() ?? `render.mp4`;
|
|
8297
|
-
|
|
8298
|
-
return new Response(content, {
|
|
8299
|
-
headers: {
|
|
8300
|
-
"Content-Type": contentType,
|
|
8301
|
-
"Content-Disposition": contentDispositionHeader("attachment", filename)
|
|
8302
|
-
}
|
|
8303
|
-
});
|
|
8307
|
+
return renderFileResponse(job.outputPath, "attachment", filename, c.req.method);
|
|
8304
8308
|
});
|
|
8305
8309
|
async function renderDirectories(jobId) {
|
|
8306
8310
|
const outputPath = renderJobs.get(jobId)?.outputPath;
|
|
@@ -8331,16 +8335,7 @@ function registerRenderRoutes(api, adapter) {
|
|
|
8331
8335
|
const fp = resolveWithinProject(rendersDir, filename);
|
|
8332
8336
|
if (!fp || isPrivateProjectFile(project.dir, fp)) return c.json({ error: "forbidden" }, 403);
|
|
8333
8337
|
if (!existsSync6(fp)) return c.json({ error: "not found" }, 404);
|
|
8334
|
-
|
|
8335
|
-
const content = readFileSync8(fp);
|
|
8336
|
-
return new Response(content, {
|
|
8337
|
-
headers: {
|
|
8338
|
-
"Content-Type": contentType,
|
|
8339
|
-
"Content-Disposition": contentDispositionHeader("inline", filename),
|
|
8340
|
-
"Accept-Ranges": "bytes",
|
|
8341
|
-
"Content-Length": String(content.length)
|
|
8342
|
-
}
|
|
8343
|
-
});
|
|
8338
|
+
return renderFileResponse(fp, "inline", filename, c.req.method);
|
|
8344
8339
|
});
|
|
8345
8340
|
api.get("/projects/:id/renders", async (c) => {
|
|
8346
8341
|
const project = await adapter.resolveProject(c.req.param("id"));
|
|
@@ -6,23 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VPMHRLJH.js";
|
|
10
10
|
import {
|
|
11
11
|
installPageFunctionGuard,
|
|
12
12
|
resolveCliChromeGpuMode,
|
|
13
13
|
seekCompositionTimeline,
|
|
14
14
|
waitForRuntimeReady
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4ZAOAPWP.js";
|
|
16
16
|
import {
|
|
17
17
|
pageNavigationTimeoutMs
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-E2ZY4GWH.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveCompositionViewportFromHtml
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OZMZFJDW.js";
|
|
22
22
|
import {
|
|
23
23
|
launchManagedBrowser,
|
|
24
24
|
resolveManagedGpuMode
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-HIPW4JXL.js";
|
|
26
26
|
import {
|
|
27
27
|
defineCommand
|
|
28
28
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -31,22 +31,22 @@ import {
|
|
|
31
31
|
} from "./chunk-2GICKZ3I.js";
|
|
32
32
|
import {
|
|
33
33
|
resolveNaturalMediaTimelineDuration
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-6UWSEXQ3.js";
|
|
35
35
|
import {
|
|
36
36
|
decodeWellFormedEscapes
|
|
37
37
|
} from "./chunk-C2KEGBR3.js";
|
|
38
38
|
import {
|
|
39
39
|
printDeprecationNotice,
|
|
40
40
|
withMeta
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-2KDHJCH2.js";
|
|
42
42
|
import {
|
|
43
43
|
failureMessage,
|
|
44
44
|
jsonFailure
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ADVVQX4I.js";
|
|
46
46
|
import {
|
|
47
47
|
failCommand,
|
|
48
48
|
setCommandExitCode
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-66W5IWLO.js";
|
|
50
50
|
import {
|
|
51
51
|
normalizeErrorMessage
|
|
52
52
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -252,7 +252,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
252
252
|
async function localizeRemoteAssets(html) {
|
|
253
253
|
let dir;
|
|
254
254
|
try {
|
|
255
|
-
const { loadProducer } = await import("./producer-
|
|
255
|
+
const { loadProducer } = await import("./producer-OU2BCMLY.js");
|
|
256
256
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
257
257
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
258
258
|
const assetDir = dir;
|
|
@@ -273,9 +273,9 @@ async function localizeRemoteAssets(html) {
|
|
|
273
273
|
}
|
|
274
274
|
async function validateInBrowser(project, opts) {
|
|
275
275
|
const projectDir = project.dir;
|
|
276
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
276
|
+
const { bundleToSingleHtml } = await import("./compiler-SKRY6FPA.js");
|
|
277
277
|
const { ensureBrowser } = await import("./manager-ENFYM32B.js");
|
|
278
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
278
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-TTJSAB2Q.js");
|
|
279
279
|
const { lintProject } = await import("./lintProject-6H64SX3V.js");
|
|
280
280
|
const lintResult = await lintProject(projectDir);
|
|
281
281
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
@@ -297,9 +297,9 @@ async function validateInBrowser(project, opts) {
|
|
|
297
297
|
try {
|
|
298
298
|
const browser = await ensureBrowser();
|
|
299
299
|
const puppeteer = await import("puppeteer-core");
|
|
300
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
300
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-LNSJHD25.js");
|
|
301
301
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
302
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-
|
|
302
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-VIZAJ3GY.js");
|
|
303
303
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
304
304
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
305
305
|
const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|
|
@@ -7,23 +7,23 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
findCuts,
|
|
9
9
|
signatures
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-K3QT232E.js";
|
|
11
11
|
import {
|
|
12
12
|
jsonArg,
|
|
13
13
|
num,
|
|
14
14
|
runMeasure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-F7T57BZZ.js";
|
|
16
16
|
import {
|
|
17
17
|
idempotencyKey,
|
|
18
18
|
runJob
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5KAGTSLY.js";
|
|
20
20
|
import {
|
|
21
21
|
Fix,
|
|
22
22
|
probeVideo,
|
|
23
23
|
round,
|
|
24
24
|
runFfmpeg,
|
|
25
25
|
videoClip
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BTK3T4HJ.js";
|
|
27
27
|
import {
|
|
28
28
|
defineCommand
|
|
29
29
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
errorBox
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5LOZWO2M.js";
|
|
10
10
|
import {
|
|
11
11
|
failUsage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-66W5IWLO.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/compositionEntry.ts
|
|
15
15
|
import { realpathSync } from "fs";
|