hyperframes 0.8.222 → 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-6MPLIWVP.js → add-JEPKJ2F4.js} +15 -15
- package/dist/{agentPromptGenerator-X7SQPCXZ.js → agentPromptGenerator-ZBNWLX5D.js} +7 -7
- package/dist/{animatedGifPrep-ESOJ4FQ7.js → animatedGifPrep-43LLMTN5.js} +7 -7
- package/dist/api.d.ts +5 -3
- package/dist/api.js +33 -22
- package/dist/{asset-Y735VQV6.js → asset-M6SH6PUW.js} +5 -5
- package/dist/{assetCataloger-AOJAUEZW.js → assetCataloger-BLQ7UVJ5.js} +8 -8
- package/dist/{audio-VMMCGPOV.js → audio-J3QREJK4.js} +150 -1158
- package/dist/{auth-BD5NHYRA.js → auth-7TRCBCKA.js} +5 -5
- package/dist/{autoUpdate-VTMNHOAJ.js → autoUpdate-WTFSYLTK.js} +4 -4
- package/dist/{backgroundChecks-SUDYQZSW.js → backgroundChecks-YZW7AMMJ.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-4NR7RMT7.js → batchRender-LDZ6NO2X.js} +11 -11
- package/dist/{beats-PKEHQHBY.js → beats-JWUADKHV.js} +14 -14
- package/dist/{benchmark-K55DDFHG.js → benchmark-QOQZ7UGD.js} +13 -13
- package/dist/billing-3GVNEE56.js +86 -0
- package/dist/{browser-G2WFWJJ3.js → browser-4HNCSPUR.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-MNG2UVH3.js → bundleWithLocalizedFonts-GTKHB45M.js} +2 -2
- package/dist/{capture-24PIC3TZ.js → capture-5OYZNIOR.js} +31 -31
- package/dist/{capture-U3EEAPI6.js → capture-XSRWYHAM.js} +7 -7
- package/dist/{captureCompositionFrame-KL4V6ORD.js → captureCompositionFrame-4F7PPQKB.js} +17 -17
- package/dist/{captureTimeout-RIMG6IYH.js → captureTimeout-7Y2RUBCU.js} +3 -1
- package/dist/{catalog-J3BU4TFW.js → catalog-4FVQSID5.js} +16 -16
- package/dist/{catch-up-LDGNMEGL.js → catch-up-KQVK2QZC.js} +8 -8
- package/dist/{check-J6HG6EKE.js → check-3YHLB6FM.js} +47 -46
- package/dist/{checkAudio-MAX7JUYG.js → checkAudio-7ZSZVBSJ.js} +15 -15
- package/dist/{checkBrowser-3W74WJ26.js → checkBrowser-VX5CHNQS.js} +40 -39
- package/dist/{chunk-L55LAERP.js → chunk-2KDHJCH2.js} +2 -2
- package/dist/{chunk-CVY6OIKN.js → chunk-2M6B2JKZ.js} +73 -39
- package/dist/{chunk-OROHGC7W.js → chunk-2QQO3J3B.js} +7 -7
- package/dist/chunk-2WVQ3CCN.js +113 -0
- package/dist/{chunk-RRPO44PE.js → chunk-34GAW4GO.js} +5 -5
- package/dist/{chunk-WWT6ETQA.js → chunk-35NDLXHZ.js} +50 -55
- package/dist/{chunk-YHL4CVTF.js → chunk-3NHCTTLP.js} +15 -15
- package/dist/chunk-3ZDOAVZM.js +570 -0
- package/dist/{chunk-6ZLDIMPL.js → chunk-4H4DR36N.js} +2 -2
- package/dist/{chunk-IB7UYGXR.js → chunk-4ZAOAPWP.js} +17 -11
- package/dist/{chunk-GOWU3NCE.js → chunk-52B3AOIV.js} +1 -1
- package/dist/{chunk-F6QV5N3A.js → chunk-53JEHQBW.js} +2 -2
- package/dist/{chunk-YEKJOA47.js → chunk-53TKUWDX.js} +3 -3
- package/dist/{chunk-6MUI2H6P.js → chunk-54Q3H2UQ.js} +5 -2
- package/dist/chunk-5KAGTSLY.js +205 -0
- package/dist/{chunk-5ZBMHUY2.js → chunk-5LOZWO2M.js} +1 -1
- package/dist/{chunk-DSHFKKSZ.js → chunk-5N5FYE5K.js} +2 -2
- package/dist/{chunk-ZBNK6X5O.js → chunk-652ERUZD.js} +2 -2
- package/dist/{chunk-DP5LF7GF.js → chunk-66W5IWLO.js} +12 -0
- package/dist/{chunk-JQWITWVC.js → chunk-6QIYQ43G.js} +2 -2
- package/dist/chunk-6UWSEXQ3.js +5030 -0
- package/dist/{chunk-35JKCWYI.js → chunk-7HSV5SJ4.js} +3 -3
- package/dist/{chunk-3RXZZIDQ.js → chunk-7RTPHNOO.js} +2 -2
- package/dist/{chunk-6CFBFWLF.js → chunk-A25SCSOK.js} +1 -1
- package/dist/{chunk-SJGE5I5F.js → chunk-ADVVQX4I.js} +1 -1
- package/dist/{chunk-GHEYGMKD.js → chunk-AMQFGICP.js} +1 -1
- package/dist/chunk-BAXL3U3T.js +312 -0
- package/dist/{chunk-YSTBSLWY.js → chunk-BEMGUGGJ.js} +1 -1
- package/dist/chunk-BTK3T4HJ.js +250 -0
- package/dist/{chunk-UBDO4EHA.js → chunk-C5JKRCSG.js} +1 -1
- package/dist/{chunk-ZLXWRYOO.js → chunk-CGX4EOGT.js} +3 -3
- package/dist/{chunk-ZPTNLDOB.js → chunk-D4M37ATV.js} +2 -2
- package/dist/chunk-DY7PQLIE.js +248 -0
- package/dist/{chunk-DNTPNSH5.js → chunk-E2ZY4GWH.js} +5 -5
- package/dist/{chunk-QYRMR45H.js → chunk-E47ZWDMH.js} +1 -1
- package/dist/{chunk-EGJ4UECR.js → chunk-EHZESMRB.js} +8 -2
- package/dist/{chunk-VJVVWYP6.js → chunk-EQFDOQTG.js} +1 -1
- package/dist/{chunk-42Q3VX34.js → chunk-F34GYYXO.js} +5 -5
- package/dist/{chunk-7IH3RSSG.js → chunk-F3CTUCFD.js} +12 -12
- package/dist/chunk-F7T57BZZ.js +95 -0
- package/dist/{chunk-BDZSH6P3.js → chunk-FJ3KUOUZ.js} +1 -1
- package/dist/{chunk-7KBS6ZLB.js → chunk-FPR57WRR.js} +2 -2
- package/dist/{chunk-BPIY5LB3.js → chunk-G45NYKSM.js} +39 -4
- package/dist/{chunk-AXVTL7B6.js → chunk-GE4ABM5K.js} +2 -2
- package/dist/{chunk-HQDHMAUI.js → chunk-GLTSINRP.js} +1 -1
- package/dist/chunk-GQ2QER6M.js +70 -0
- package/dist/{chunk-Y7IV5MAK.js → chunk-H6APAFKE.js} +2 -2
- package/dist/{chunk-5GSEM63G.js → chunk-HANNA5JJ.js} +1 -1
- package/dist/{chunk-RIGSGNDQ.js → chunk-HDPW7THH.js} +30 -21
- package/dist/{chunk-L37AZWB2.js → chunk-HIPW4JXL.js} +3 -3
- package/dist/{chunk-VQMHDS2V.js → chunk-HT3D5AKG.js} +52 -12
- package/dist/{chunk-K5UCRKUK.js → chunk-IORJ42GY.js} +2 -2
- package/dist/{chunk-OAXWHPNS.js → chunk-IYYQRNIZ.js} +1 -1
- package/dist/{chunk-G675S644.js → chunk-J7FVF73D.js} +33 -31
- package/dist/{chunk-S2HWGG5O.js → chunk-JHOPRAJN.js} +1 -1
- package/dist/{chunk-WJYFJGYT.js → chunk-JIF347PW.js} +3 -3
- package/dist/{chunk-XHD7RKEZ.js → chunk-JK2KNL6F.js} +2 -2
- package/dist/{chunk-CZOC7WY7.js → chunk-JKLWWGE6.js} +1 -1
- package/dist/{chunk-SKCS4SUZ.js → chunk-JMP52GTN.js} +44 -19
- package/dist/chunk-JUF43Q7Q.js +59 -0
- package/dist/chunk-K3QT232E.js +71 -0
- package/dist/chunk-KEDN4LSV.js +1048 -0
- package/dist/{chunk-G2EY3MVW.js → chunk-L4ULTWCD.js} +1 -1
- package/dist/{chunk-7D2LTSNV.js → chunk-LRS4FV5W.js} +3 -3
- package/dist/{chunk-VMRQDPFL.js → chunk-M336YVCP.js} +1 -1
- package/dist/{chunk-6W3DY5BP.js → chunk-MA5AQK7T.js} +2 -2
- package/dist/{chunk-EQGKUPBJ.js → chunk-MCDNAIFF.js} +1 -1
- package/dist/{chunk-EOUKB53E.js → chunk-MOXNAVCW.js} +1 -1
- package/dist/{chunk-AIXH3V5A.js → chunk-NFUR6NNT.js} +20 -5
- package/dist/{chunk-AN4USOFT.js → chunk-NI35PAVN.js} +2 -2
- package/dist/{chunk-E5IIR67Q.js → chunk-O2VKGYSK.js} +1 -1
- package/dist/chunk-ODJ2WBZX.js +288 -0
- package/dist/{chunk-52VXA3SC.js → chunk-OZMZFJDW.js} +1 -1
- package/dist/{chunk-EE7YWKDY.js → chunk-PKMAWQUI.js} +4 -4
- package/dist/{chunk-D6LGD472.js → chunk-POOLZTMZ.js} +6 -4
- package/dist/chunk-QK6ZNEBW.js +46 -0
- package/dist/{chunk-NUE44RN2.js → chunk-QOI46C6F.js} +17 -4
- package/dist/{chunk-MESSJFK3.js → chunk-QOYZ3U6G.js} +39 -29
- package/dist/{chunk-ZAJQFY5Q.js → chunk-QU5OYMTB.js} +15 -2
- package/dist/{chunk-HOTXWVVP.js → chunk-R2C5EON5.js} +2 -6
- package/dist/{chunk-FMKI7ZLM.js → chunk-RR5QE7DB.js} +2 -2
- package/dist/{chunk-OQLYKDL5.js → chunk-RU7KMDFL.js} +1 -1
- package/dist/{chunk-ONMTNYGR.js → chunk-RXJUMVCA.js} +1 -1
- package/dist/chunk-RZ6CXJ56.js +24 -0
- package/dist/{chunk-GODT7QDZ.js → chunk-SGMCQAYU.js} +3 -3
- package/dist/{chunk-QOZPWIYV.js → chunk-THL3N377.js} +19 -16
- package/dist/{chunk-IGBOFU2Y.js → chunk-UCPEABYK.js} +2 -2
- package/dist/{chunk-AOHG22HQ.js → chunk-UZ5AWZCA.js} +6 -6
- package/dist/{chunk-4VEXJTUT.js → chunk-VCJE7IMY.js} +2 -2
- package/dist/{chunk-Z5VQBRU2.js → chunk-VPMHRLJH.js} +3 -3
- package/dist/{chunk-FT3CNACL.js → chunk-VXRBPWVW.js} +144 -41
- package/dist/{chunk-537WSYHU.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-DC26QLB7.js → chunk-X5BSSPC2.js} +1 -1
- package/dist/{chunk-DIXTEVWQ.js → chunk-Y5HVDK7X.js} +3 -3
- package/dist/{chunk-EHSBBBR2.js → chunk-YGGZ23BB.js} +2 -0
- package/dist/{chunk-NHXGFQWQ.js → chunk-Z7GIHPAZ.js} +1 -1
- package/dist/{chunk-XC3BGWCJ.js → chunk-ZFQSXMX6.js} +1 -1
- package/dist/{chunk-P5M3AXEP.js → chunk-ZGQC6IU7.js} +1 -1
- package/dist/{chunk-KEY2VA65.js → chunk-ZLZXGJ63.js} +6 -20
- package/dist/{clean-K6IM3LC4.js → clean-SXEI6FT4.js} +24 -24
- package/dist/cli.js +73 -63
- package/dist/{cloud-OV7EA4BJ.js → cloud-SKN6FWAZ.js} +4 -4
- package/dist/{cloudrun-ZEMODIOP.js → cloudrun-RHPVVXCR.js} +9 -9
- package/dist/{compare-MJZ3D3HA.js → compare-RTXF2NSK.js} +36 -36
- package/dist/{compiler-6KKETX77.js → compiler-SKRY6FPA.js} +4 -4
- package/dist/{component-EVXMYIP3.js → component-2NPF5PA6.js} +6 -6
- package/dist/{compositions-PZ7FQ7WN.js → compositions-AZRVHGBT.js} +17 -17
- package/dist/curve-QSFEGBUH.js +329 -0
- package/dist/cuts-6AWEJH2H.js +123 -0
- package/dist/{delete-DL3XA4QV.js → delete-NOHFVICL.js} +9 -9
- package/dist/{deploy-VEYP3IP5.js → deploy-UFRADJOA.js} +10 -10
- package/dist/describeProject-F43LI3YQ.js +56 -0
- package/dist/{destroy-BQ5R7LUF.js → destroy-IQLGADZM.js} +6 -6
- package/dist/diff-3WS6NMSE.js +1825 -0
- package/dist/{dist-SHMQOKMF.js → dist-24QQO5IL.js} +2 -2
- package/dist/{dist-M77KFAYW.js → dist-YEYUGCOR.js} +2 -2
- package/dist/{docs-VAF5NM5B.js → docs-IB3KETC6.js} +1 -1
- package/dist/{doctor-JM2WHH7Y.js → doctor-F4VJYQXC.js} +13 -13
- package/dist/energy-BN3QD6Y7.js +134 -0
- package/dist/events-5W7ETFWR.js +221 -0
- package/dist/{events-GW5I5RCG.js → events-PZH4C7VA.js} +5 -5
- package/dist/{events-S7KVBRSL.js → events-YJ3XSIPL.js} +6 -6
- package/dist/extract-S34DWGAD.js +309 -0
- package/dist/face-3SCJADG4.js +171 -0
- package/dist/{feedback-7OR5FVTX.js → feedback-3K6NSKIC.js} +16 -16
- package/dist/{ffmpeg-A7CSIX3U.js → ffmpeg-2RBDDMHU.js} +7 -7
- package/dist/{figma-444HKFX5.js → figma-NWAJYMAI.js} +3 -3
- package/dist/fontLocalizeCli.js +10 -10
- package/dist/frames-6UARLPLK.js +352 -0
- package/dist/generate-KBVWFVXN.js +74 -0
- package/dist/{get-6UTF3225.js → get-SEZZMLQ3.js} +8 -8
- package/dist/{gpuPolicy-ORPUS5Z2.js → gpuPolicy-VIZAJ3GY.js} +7 -7
- package/dist/{grade-compare-UCTAYN3B.js → grade-compare-PMAK4PJD.js} +40 -37
- package/dist/{heifImagePrep-ED6V6RFN.js → heifImagePrep-6NYIR7WN.js} +8 -8
- package/dist/{help-HZR32XWP.js → help-4UPSHWI2.js} +7 -1
- package/dist/{history-TQ56MZIA.js → history-VNAZEQDE.js} +11 -11
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +70 -70
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/index-gen-OPMQ5WSN.js +61 -0
- package/dist/{info-RPIIP7RN.js → info-OREET5PM.js} +11 -11
- package/dist/{init-ONAWKHFW.js → init-K7AEJBAL.js} +33 -32
- package/dist/{inspect-A75PYOWJ.js → inspect-STME5DNY.js} +37 -36
- package/dist/{installer-ISMCCFBZ.js → installer-NQA4KXRP.js} +4 -4
- package/dist/{keyframes-2I75DP3O.js → keyframes-JQWZ235Q.js} +10 -10
- package/dist/{lambda-4QIHGPGJ.js → lambda-RJNLW2EO.js} +21 -21
- package/dist/{layout-GW7WE7RT.js → layout-MTZWBPNZ.js} +37 -36
- package/dist/{lint-OWP72OZQ.js → lint-AQWTSL75.js} +12 -12
- package/dist/{lintProject-XYQ5L7RQ.js → lintProject-6H64SX3V.js} +2 -2
- package/dist/{list-WVK7ZCPW.js → list-ZEBZ5DB5.js} +9 -9
- package/dist/{localPage-IQWHN7BH.js → localPage-CQ3H4N2N.js} +7 -7
- package/dist/{login-Q5CNHYWU.js → login-VHCZHENV.js} +17 -11
- package/dist/{logout-6VFJ7WMW.js → logout-LHTQV2BZ.js} +3 -3
- package/dist/look-25TSRPSV.js +180 -0
- package/dist/{manager-JCYVNEWH.js → manager-57SX7D5G.js} +9 -8
- package/dist/manifest-QSJYVERU.js +49 -0
- package/dist/measure-Y2R3G5OJ.js +46 -0
- package/dist/{media-treatment-M5IUP7H4.js → media-treatment-3G2IVS64.js} +20 -20
- package/dist/{media-use-ZNTB7W6N.js → media-use-LUAOZJNV.js} +10 -6
- package/dist/{models-CFXKDYZ3.js → models-NT56FKRG.js} +15 -15
- package/dist/{motionShot-CWUEI4ZM.js → motionShot-P4NTFKYS.js} +20 -20
- package/dist/{normalize-QJVXFMWO.js → normalize-MBNGRVQA.js} +2 -1
- package/dist/{normalize-audio-FASY33LR.js → normalize-audio-2DUTZ6QK.js} +12 -12
- package/dist/{open-KOVVESYN.js → open-OATYOOR7.js} +15 -15
- package/dist/{parakeetRunner-E4IP5SL4.js → parakeetRunner-UASHW3A4.js} +13 -12
- package/dist/{pipeline-C6EZVV43.js → pipeline-GGAYP5Q6.js} +11 -11
- package/dist/{play-MZJI6SMH.js → play-GHXBJS3T.js} +28 -28
- package/dist/{policies-J5BWAZHM.js → policies-EERREOZJ.js} +6 -4
- package/dist/{preflight-K4SPUWXP.js → preflight-6VOP3IOI.js} +8 -8
- package/dist/{present-7L7ZTG7F.js → present-M7UYHVEZ.js} +23 -23
- package/dist/{preview-QGDVMR3X.js → preview-YWT5WA3W.js} +26 -26
- package/dist/probe-CQAGZJLP.js +178 -0
- package/dist/{producer-EJPNNY3E.js → producer-OU2BCMLY.js} +1 -1
- package/dist/{progress-X3QFO3FE.js → progress-STSH2JRY.js} +2 -2
- package/dist/{projectConfig-EEF6OPXO.js → projectConfig-UI4NZDN7.js} +6 -6
- package/dist/{prompts-VAO7RDKX.js → prompts-ZEVFT7US.js} +2 -2
- package/dist/{publication-5KF44AKQ.js → publication-VPJZQCLA.js} +2 -2
- package/dist/{publish-SSKWZ5TE.js → publish-7RA2MK2M.js} +18 -18
- package/dist/{refresh-I6ITGHKL.js → refresh-AM2ULRRV.js} +3 -3
- package/dist/{remove-background-PCL6I5SZ.js → remove-background-A5KJUH6W.js} +14 -14
- package/dist/{render-UPRWOGLS.js → render-EMW4I6C6.js} +45 -45
- package/dist/{render-DH4UA7KW.js → render-IYV73CG6.js} +10 -10
- package/dist/{render-DRWQ6F37.js → render-Z5IS4AUP.js} +39 -39
- package/dist/{render-batch-EBW5WHB5.js → render-batch-IN2ZXPS7.js} +10 -10
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-ZSZXNRFP.js → resolver-DIXFK5ZR.js} +4 -4
- package/dist/run-MCVU7AZX.js +31 -0
- package/dist/{sam-QA7JT7IM.js → sam-EGFXZF56.js} +2 -2
- package/dist/{screenshotCapture-4THETOMD.js → screenshotCapture-RUDON2HB.js} +2 -2
- package/dist/{sherpa-IKVUCBOW.js → sherpa-SAY3I7PK.js} +12 -11
- 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/media-use/SKILL.md +20 -21
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +26 -1
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +33 -0
- package/dist/skills/media-use/references/heygen.md +58 -0
- package/dist/skills/media-use/references/operations.md +9 -6
- package/dist/skills/media-use/references/setup-providers.md +11 -12
- package/dist/skills/media-use/scripts/lib/index-gen.d.mts +1 -0
- package/dist/skills/media-use/scripts/lib/manifest.d.mts +21 -0
- package/dist/{skills-ZREHX3TU.js → skills-YWQ5XKH6.js} +9 -9
- package/dist/{skillsUpdateCheck-PPJ5NGAL.js → skillsUpdateCheck-ST5ZFEET.js} +5 -5
- package/dist/{snapshot-KPFLZNEL.js → snapshot-57YYYE5J.js} +43 -42
- package/dist/{src-QRV3466B.js → src-7MEBCSTP.js} +9 -9
- package/dist/{src-EPOGDJTT.js → src-LNSJHD25.js} +10 -6
- package/dist/{state-6QHNNHDA.js → state-W3AS6O2J.js} +2 -2
- package/dist/{staticProjectServer-ERKLMZVM.js → staticProjectServer-TTJSAB2Q.js} +19 -19
- package/dist/{status-4AAPTTRW.js → status-FGXBUX2T.js} +36 -11
- package/dist/studio/assets/hyperframes-player-Bzcd9O2g.js +478 -0
- package/dist/studio/assets/{index-C8VIUiGz.js → index-CZI-XmnO.js} +119 -119
- package/dist/studio/assets/{index-CVPNbydK.js → index-LW6kxYVF.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-7WFZIIPL.js → studio-api-57E36S5N.js} +15 -15
- package/dist/{studioServer-3XZTLI26.js → studioServer-2AIRUNBA.js} +55 -55
- package/dist/sync-52GUXEYZ.js +115 -0
- package/dist/{telemetry-BMLI4TMC.js → telemetry-RVY6RSCD.js} +6 -6
- package/dist/{telemetry-QHYJJAJU.js → telemetry-T73TKZOL.js} +1 -1
- package/dist/{timeline-EDCDO2ZR.js → timeline-MMZF4AX3.js} +31 -27
- package/dist/{tokens-2ZFLFO3K.js → tokens-WGWCYFTY.js} +5 -5
- package/dist/{transcribe-Y2LPBT7I.js → transcribe-6BF5FFPV.js} +39 -22
- package/dist/{transcribe-3WMH62HH.js → transcribe-YYDHXRQW.js} +11 -10
- package/dist/{tts-BVTJEP72.js → tts-ZLNNIS6W.js} +5 -5
- package/dist/{updateCheck-5LFZGC3P.js → updateCheck-AAR5LLUF.js} +4 -4
- package/dist/{upgrade-X7QVSEKP.js → upgrade-Y7CIRL4B.js} +5 -5
- package/dist/{urlDownloader-TYD6ROKL.js → urlDownloader-KZOD7EWX.js} +6 -6
- package/dist/{validate-26KQ5VX7.js → validate-K3PHAA2E.js} +30 -30
- package/dist/{video-BPKLZIJK.js → video-Z6EBVCAT.js} +9 -9
- package/dist/warmCheck.js +47 -46
- package/package.json +1 -1
- package/dist/chunk-LL3VMDAC.js +0 -5013
- package/dist/studio/assets/hyperframes-player-Dka6e1BG.js +0 -478
- package/dist/{chunk-NOH32H42.js → chunk-HBAUU3IK.js} +124 -124
- package/dist/{synthesize-4JC74JW5.js → synthesize-DIT2SR3D.js} +5 -5
|
@@ -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";
|
|
@@ -38,6 +41,28 @@ import { randomUUID } from "crypto";
|
|
|
38
41
|
import { renameSync, rmSync as rmSync2 } from "fs";
|
|
39
42
|
import { basename as basename2, dirname, extname, join as join3 } from "path";
|
|
40
43
|
|
|
44
|
+
// src/background-removal/frameReader.ts
|
|
45
|
+
async function* readFrames(stream, frameBytes) {
|
|
46
|
+
let frame;
|
|
47
|
+
let filled = 0;
|
|
48
|
+
for await (const chunk of stream) {
|
|
49
|
+
let at = 0;
|
|
50
|
+
while (at < chunk.length) {
|
|
51
|
+
frame ??= Buffer.allocUnsafe(frameBytes);
|
|
52
|
+
const take = Math.min(frameBytes - filled, chunk.length - at);
|
|
53
|
+
chunk.copy(frame, filled, at, at + take);
|
|
54
|
+
filled += take;
|
|
55
|
+
at += take;
|
|
56
|
+
if (filled === frameBytes) {
|
|
57
|
+
const whole = frame;
|
|
58
|
+
frame = void 0;
|
|
59
|
+
filled = 0;
|
|
60
|
+
yield whole;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
41
66
|
// src/background-removal/coremlTemp.ts
|
|
42
67
|
import { mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
43
68
|
import { homedir, tmpdir } from "os";
|
|
@@ -183,7 +208,20 @@ async function createSession(options = {}) {
|
|
|
183
208
|
graphOptimizationLevel: "all"
|
|
184
209
|
});
|
|
185
210
|
const coreMlTemp = choice.label === "CoreML" ? trackCoreMlTemp() : void 0;
|
|
186
|
-
|
|
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
|
+
});
|
|
187
225
|
let session;
|
|
188
226
|
let providerUsed = choice.label;
|
|
189
227
|
try {
|
|
@@ -226,38 +264,44 @@ async function createSession(options = {}) {
|
|
|
226
264
|
return await session.run({ [inputName]: tensor });
|
|
227
265
|
}
|
|
228
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
|
+
};
|
|
229
292
|
return {
|
|
230
293
|
get provider() {
|
|
231
294
|
return providerUsed;
|
|
232
295
|
},
|
|
233
296
|
async process(rgb, width, height, withBackground = false) {
|
|
234
|
-
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
const expectedBytes = width * height * 4;
|
|
239
|
-
if (!rgbaBuf || rgbaBuf.length !== expectedBytes) {
|
|
240
|
-
rgbaBuf = Buffer.allocUnsafe(expectedBytes);
|
|
241
|
-
}
|
|
242
|
-
if (withBackground) {
|
|
243
|
-
if (!rgbaBgBuf || rgbaBgBuf.length !== expectedBytes) {
|
|
244
|
-
rgbaBgBuf = Buffer.allocUnsafe(expectedBytes);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
return await postprocess(
|
|
248
|
-
sharp,
|
|
249
|
-
output,
|
|
250
|
-
rgb,
|
|
251
|
-
width,
|
|
252
|
-
height,
|
|
253
|
-
maskBuf,
|
|
254
|
-
rgbaBuf,
|
|
255
|
-
withBackground ? rgbaBgBuf : null
|
|
256
|
-
);
|
|
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;
|
|
257
301
|
},
|
|
258
302
|
async close() {
|
|
259
303
|
unregister?.();
|
|
260
|
-
await
|
|
304
|
+
await release();
|
|
261
305
|
coreMlTemp?.forget();
|
|
262
306
|
}
|
|
263
307
|
};
|
|
@@ -391,7 +435,7 @@ async function decoderTransposesDimensions(inputPath) {
|
|
|
391
435
|
}
|
|
392
436
|
async function probeMedia(inputPath) {
|
|
393
437
|
const isImage = inferInputKind(inputPath) === "image";
|
|
394
|
-
const engine = await import("./src-
|
|
438
|
+
const engine = await import("./src-LNSJHD25.js");
|
|
395
439
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
396
440
|
if (isImage) {
|
|
397
441
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -476,16 +520,6 @@ function buildEncoderArgs(format, width, height, fps, outputPath, quality = DEFA
|
|
|
476
520
|
}
|
|
477
521
|
return [...base, "-frames:v", "1", "-pix_fmt", "rgba", "-update", "1", outputPath];
|
|
478
522
|
}
|
|
479
|
-
async function* readFrames(stream, frameBytes) {
|
|
480
|
-
let buffered = Buffer.alloc(0);
|
|
481
|
-
for await (const chunk of stream) {
|
|
482
|
-
buffered = buffered.length === 0 ? chunk : Buffer.concat([buffered, chunk]);
|
|
483
|
-
while (buffered.length >= frameBytes) {
|
|
484
|
-
yield Buffer.from(buffered.subarray(0, frameBytes));
|
|
485
|
-
buffered = buffered.subarray(frameBytes);
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
523
|
function resolveRenderTargets(inputPath, outputPath, backgroundOutputPath) {
|
|
490
524
|
const format = inferOutputFormat(outputPath);
|
|
491
525
|
const inputKind = inferInputKind(inputPath);
|
|
@@ -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";
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
Fix,
|
|
9
|
+
pearson,
|
|
10
|
+
readClip,
|
|
11
|
+
round,
|
|
12
|
+
runFfmpeg,
|
|
13
|
+
videoClip
|
|
14
|
+
} from "./chunk-BTK3T4HJ.js";
|
|
15
|
+
|
|
16
|
+
// src/measure/sync.ts
|
|
17
|
+
var RATE = 16e3;
|
|
18
|
+
function samples(info, start, seconds) {
|
|
19
|
+
const raw = runFfmpeg([
|
|
20
|
+
...["-ss", String(start), "-i", info.path, "-t", String(seconds), "-vn"],
|
|
21
|
+
...["-af", "aresample=async=1:first_pts=0"],
|
|
22
|
+
...["-ac", "1", "-ar", String(RATE), "-f", "f32le", "-"]
|
|
23
|
+
]);
|
|
24
|
+
return new Float32Array(raw.buffer.slice(raw.byteOffset, raw.byteOffset + (raw.byteLength & ~3)));
|
|
25
|
+
}
|
|
26
|
+
function avSync(info, mouth, start, end, maxLagMs = 400) {
|
|
27
|
+
if (!info.audio)
|
|
28
|
+
throw new Fix(
|
|
29
|
+
`${info.path} has no sound`,
|
|
30
|
+
"measure sync needs the picture and its sound in one file"
|
|
31
|
+
);
|
|
32
|
+
if (!(maxLagMs > 0)) throw new Fix("--max-lag-ms must be positive", "--max-lag-ms 400");
|
|
33
|
+
const { frames, w, h } = readClip(videoClip(info.path, start, end - start, info), {
|
|
34
|
+
roi: mouth,
|
|
35
|
+
width: 160,
|
|
36
|
+
gray: true
|
|
37
|
+
});
|
|
38
|
+
const motion = frames.map((f, i) => {
|
|
39
|
+
if (!i) return 0;
|
|
40
|
+
let s = 0;
|
|
41
|
+
for (let k = 0; k < f.length; k++) s += Math.abs(f[k] - frames[i - 1][k]);
|
|
42
|
+
return s / (w * h);
|
|
43
|
+
});
|
|
44
|
+
const audio = samples(info, start, end - start);
|
|
45
|
+
const frame = 1 / info.fps;
|
|
46
|
+
const envelope = frames.map((_, i) => {
|
|
47
|
+
const [a, b] = [Math.floor(i * frame * RATE), Math.floor((i + 1) * frame * RATE)];
|
|
48
|
+
const chunk = audio.subarray(a, Math.max(b, a + 1));
|
|
49
|
+
let s = 0;
|
|
50
|
+
for (const v of chunk) s += v * v;
|
|
51
|
+
return chunk.length ? Math.sqrt(s / chunk.length) : 0;
|
|
52
|
+
});
|
|
53
|
+
const speech = envelope.slice(1).map((v, i) => Math.abs(v - envelope[i]));
|
|
54
|
+
const mouthMotion = motion.slice(1);
|
|
55
|
+
const reach = Math.max(1, Math.round(maxLagMs / 1e3 / frame));
|
|
56
|
+
const curve = Array.from({ length: 2 * reach + 1 }, (_, i) => {
|
|
57
|
+
const lag2 = i - reach;
|
|
58
|
+
const [a, b] = lag2 >= 0 ? [speech.slice(0, speech.length - lag2), mouthMotion.slice(lag2)] : [speech.slice(-lag2), mouthMotion.slice(0, lag2)];
|
|
59
|
+
return { lag: lag2, r: Math.min(a.length, b.length) < 10 ? null : pearson(a, b) };
|
|
60
|
+
});
|
|
61
|
+
const top = Math.max(...envelope);
|
|
62
|
+
const active = top > 0 ? envelope.filter((v) => v > 0.1 * top).length / envelope.length : 0;
|
|
63
|
+
const base = {
|
|
64
|
+
speech_active_fraction: round(active, 3),
|
|
65
|
+
mouth_motion_mean: round(mouthMotion.reduce((s, v) => s + v, 0) / (mouthMotion.length || 1), 3)
|
|
66
|
+
};
|
|
67
|
+
const valid = curve.filter((c) => c.r !== null);
|
|
68
|
+
if (!valid.length)
|
|
69
|
+
return {
|
|
70
|
+
best_lag_frames: null,
|
|
71
|
+
best_lag_ms: null,
|
|
72
|
+
peak_correlation: null,
|
|
73
|
+
zero_lag_correlation: null,
|
|
74
|
+
margin_over_other_lags: null,
|
|
75
|
+
confidence: "none",
|
|
76
|
+
...base,
|
|
77
|
+
note: "no mouth motion or no change in the sound in this window; check the ROI and the window"
|
|
78
|
+
};
|
|
79
|
+
const best = curve.reduce(
|
|
80
|
+
(b, c, i) => (c.r ?? -Infinity) > (curve[b].r ?? -Infinity) ? i : b,
|
|
81
|
+
0
|
|
82
|
+
);
|
|
83
|
+
const peak = curve[best].r;
|
|
84
|
+
let shift = 0;
|
|
85
|
+
const [left, right] = [curve[best - 1]?.r, curve[best + 1]?.r];
|
|
86
|
+
if (typeof left === "number" && typeof right === "number") {
|
|
87
|
+
const bend = left - 2 * peak + right;
|
|
88
|
+
if (bend < 0) shift = 0.5 * (left - right) / bend;
|
|
89
|
+
}
|
|
90
|
+
const lag = curve[best].lag;
|
|
91
|
+
const rest = curve.filter((c) => Math.abs(c.lag - lag) > 2 && c.r !== null).map((c) => c.r);
|
|
92
|
+
const margin = rest.length ? peak - Math.max(...rest) : null;
|
|
93
|
+
const edge = best === 0 || best === curve.length - 1;
|
|
94
|
+
const confidence = peak >= 0.5 && margin !== null && margin >= 0.1 && !edge && active >= 0.1 ? "high" : peak >= 0.3 && !edge ? "medium" : "low";
|
|
95
|
+
const notes = [
|
|
96
|
+
...edge ? ["the peak is at the search edge; raise --max-lag-ms or check the window"] : [],
|
|
97
|
+
...active < 0.1 ? ["little speech in this window; choose a span with continuous speech"] : []
|
|
98
|
+
];
|
|
99
|
+
return {
|
|
100
|
+
best_lag_frames: round(lag + shift, 2),
|
|
101
|
+
best_lag_ms: round((lag + shift) * frame * 1e3, 1),
|
|
102
|
+
peak_correlation: round(peak, 3),
|
|
103
|
+
zero_lag_correlation: round(curve.find((c) => c.lag === 0)?.r ?? 0, 3),
|
|
104
|
+
margin_over_other_lags: margin === null ? null : round(margin, 3),
|
|
105
|
+
confidence,
|
|
106
|
+
...base,
|
|
107
|
+
note: notes.join("; ") || null
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export {
|
|
112
|
+
avSync
|
|
113
|
+
};
|
|
@@ -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,11 +19,7 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
MEDIA_LINK_ATTR,
|
|
25
|
-
relinkSplitHalves
|
|
26
|
-
} from "./chunk-AW3XJY4S.js";
|
|
22
|
+
} from "./chunk-G45NYKSM.js";
|
|
27
23
|
import {
|
|
28
24
|
DEFAULT_TARGET_LUFS,
|
|
29
25
|
absoluteLoudnessPlan,
|
|
@@ -32,22 +28,11 @@ import {
|
|
|
32
28
|
requestedProjectPath,
|
|
33
29
|
requiredFfmpeg,
|
|
34
30
|
resolveLocalAudioPath
|
|
35
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-652ERUZD.js";
|
|
36
32
|
import {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
UNDO_MODES,
|
|
41
|
-
clearFileWriteReceipt,
|
|
42
|
-
createProjectSignature,
|
|
43
|
-
createWriteToken,
|
|
44
|
-
fileContentVersion,
|
|
45
|
-
recordFileWriteReceipt,
|
|
46
|
-
resolveProjectAndSignature,
|
|
47
|
-
resolveProjectSignature,
|
|
48
|
-
serveWhileOpen,
|
|
49
|
-
settledFileTag
|
|
50
|
-
} from "./chunk-ZAJQFY5Q.js";
|
|
33
|
+
MEDIA_LINK_ATTR,
|
|
34
|
+
relinkSplitHalves
|
|
35
|
+
} from "./chunk-AW3XJY4S.js";
|
|
51
36
|
import {
|
|
52
37
|
PROXY_PARAMS_VERSION,
|
|
53
38
|
PROXY_PENDING_RETRY_AFTER_SECONDS,
|
|
@@ -70,11 +55,26 @@ import {
|
|
|
70
55
|
scanProjectMedia,
|
|
71
56
|
shouldPrewarmProxy,
|
|
72
57
|
waitForProxy
|
|
73
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-GE4ABM5K.js";
|
|
74
59
|
import {
|
|
75
60
|
probeAudioTrack,
|
|
76
61
|
probeMediaMetadata
|
|
77
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-E47ZWDMH.js";
|
|
63
|
+
import {
|
|
64
|
+
HistoryBusyError,
|
|
65
|
+
MAX_WINDOW_IDLE_MS,
|
|
66
|
+
STUDIO_SIGNATURE_MANIFEST_PATHS,
|
|
67
|
+
UNDO_MODES,
|
|
68
|
+
clearFileWriteReceipt,
|
|
69
|
+
createProjectSignature,
|
|
70
|
+
createWriteToken,
|
|
71
|
+
fileContentVersion,
|
|
72
|
+
recordFileWriteReceipt,
|
|
73
|
+
resolveProjectAndSignature,
|
|
74
|
+
resolveProjectSignature,
|
|
75
|
+
serveWhileOpen,
|
|
76
|
+
settledFileTag
|
|
77
|
+
} from "./chunk-QU5OYMTB.js";
|
|
78
78
|
import {
|
|
79
79
|
STUDIO_MOTION_PATH,
|
|
80
80
|
createStudioMotionRenderBodyScript,
|
|
@@ -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,10 +273,10 @@ 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-
|
|
279
|
-
const { lintProject } = await import("./lintProject-
|
|
278
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-TTJSAB2Q.js");
|
|
279
|
+
const { lintProject } = await import("./lintProject-6H64SX3V.js");
|
|
280
280
|
const lintResult = await lintProject(projectDir);
|
|
281
281
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
282
282
|
const html = await bundleToSingleHtml(projectDir);
|
|
@@ -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);
|