hyperframes 0.8.221 → 0.8.223
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-7CVO7K6M.js → add-PBLOPJHC.js} +16 -15
- package/dist/{agentPromptGenerator-YFC2SJLF.js → agentPromptGenerator-OD74HKYZ.js} +12 -11
- package/dist/{animatedGifPrep-YSMY5GU2.js → animatedGifPrep-QCG2BTDC.js} +12 -11
- package/dist/api.d.ts +5 -3
- package/dist/api.js +38 -26
- package/dist/{asset-ZVKHSO3M.js → asset-KHXCO4OR.js} +2 -2
- package/dist/{assetCataloger-6IBSEOK7.js → assetCataloger-ZX5WZTDQ.js} +13 -12
- package/dist/{audio-JUV3TVSW.js → audio-7AH2C6PB.js} +153 -1160
- package/dist/{auth-2J6FP462.js → auth-DJWMGXQB.js} +5 -5
- package/dist/{autoUpdate-ML6EZK6D.js → autoUpdate-KJMLYSHE.js} +2 -2
- package/dist/{backgroundChecks-MAWP2REX.js → backgroundChecks-XLVQMMXY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-Z7MGNJZH.js → batchRender-UR67LI4H.js} +12 -9
- package/dist/{beats-LRZOZUUQ.js → beats-ISWSYNN6.js} +54 -22
- package/dist/{benchmark-XJWLDTIL.js → benchmark-7JUATINH.js} +12 -11
- package/dist/billing-VGKY3FMX.js +86 -0
- package/dist/{browser-STEVEWWA.js → browser-HNGQB47C.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-WH63ZWUT.js → bundleWithLocalizedFonts-4XWX2XPS.js} +2 -2
- package/dist/{capture-VB5ID7HT.js → capture-GFDP5THL.js} +3 -3
- package/dist/{capture-U3ZT3GNI.js → capture-LBEGVQTJ.js} +80 -38
- package/dist/{captureCompositionFrame-MXJ3WO2R.js → captureCompositionFrame-5L3J4MZ4.js} +18 -17
- package/dist/{catalog-ICGHSRPZ.js → catalog-SNUTPI57.js} +16 -15
- package/dist/{catch-up-DJPQKXQB.js → catch-up-FE3HDMLJ.js} +4 -4
- package/dist/{check-TL7AGWPO.js → check-MQCBMOKA.js} +47 -45
- package/dist/{checkAudio-GPTU6EGB.js → checkAudio-6VPMLIY6.js} +22 -21
- package/dist/{checkBrowser-FG5DAW2R.js → checkBrowser-SHUVFQ4S.js} +45 -39
- package/dist/{chunk-YKMFCE5B.js → chunk-2GMHYOV3.js} +1 -1
- package/dist/{chunk-TNQCXU37.js → chunk-2HBB5U52.js} +1 -1
- package/dist/{chunk-UNQ3CVKW.js → chunk-3FGEDDSA.js} +27 -28
- package/dist/{chunk-HSHKLYDI.js → chunk-44IPXXSK.js} +7 -5
- package/dist/{chunk-TVT465RJ.js → chunk-44YG42L5.js} +144 -41
- package/dist/{chunk-ZBLSSWSE.js → chunk-45UOXUUH.js} +16 -3
- package/dist/chunk-4JRFMRCQ.js +288 -0
- package/dist/{chunk-M2F6VGCP.js → chunk-4XQQQ4KN.js} +85 -50
- package/dist/{chunk-6MUI2H6P.js → chunk-54Q3H2UQ.js} +5 -2
- package/dist/{chunk-67CALYTU.js → chunk-664JAO7C.js} +1 -1
- package/dist/{chunk-H3HC6U4I.js → chunk-6LE7K3YM.js} +17 -14
- package/dist/{chunk-Z7YQEDA5.js → chunk-7LKEHM2R.js} +1 -1
- package/dist/{chunk-I45R2REQ.js → chunk-7XWCCFYW.js} +1 -1
- package/dist/{chunk-L63FJVSC.js → chunk-A2KNKY4Z.js} +1 -1
- package/dist/{chunk-MEB6HWBM.js → chunk-A5WWEW6U.js} +2 -2
- package/dist/{chunk-PBNWRWKA.js → chunk-AKMY4QVI.js} +2 -1
- package/dist/{chunk-OPKSVV4G.js → chunk-AKTI2SHL.js} +2 -2
- package/dist/{chunk-VZBJ5BQF.js → chunk-AW3XJY4S.js} +1 -1
- package/dist/chunk-AW7UW2Z7.js +312 -0
- package/dist/{chunk-DWTFLQ3P.js → chunk-B2ZZYISD.js} +4 -2
- package/dist/{chunk-625I5VBE.js → chunk-B5HFCGI7.js} +2 -2
- package/dist/{chunk-AZXDEC2G.js → chunk-B6F33PUK.js} +6 -8
- package/dist/{chunk-AW7A27JM.js → chunk-BDEBKAD2.js} +1 -1
- package/dist/{chunk-322M35EB.js → chunk-BN75GXZM.js} +3 -3
- package/dist/{chunk-KSC4O2RY.js → chunk-C2KEGBR3.js} +53 -4
- package/dist/{chunk-6YW3FEHC.js → chunk-C466I3DT.js} +9 -8
- package/dist/{chunk-M2BCU4Y5.js → chunk-CXEU6XNL.js} +6 -20
- package/dist/{chunk-KQPP4NIZ.js → chunk-CYE2NNFF.js} +2 -2
- package/dist/{chunk-U6WH572X.js → chunk-DFK4RMNE.js} +5 -5
- package/dist/chunk-DY7PQLIE.js +248 -0
- package/dist/chunk-EF735J3K.js +59 -0
- package/dist/{chunk-XFMO3BEN.js → chunk-EHZESMRB.js} +18 -6
- package/dist/chunk-EJOFIHX4.js +46 -0
- package/dist/{chunk-3422KMTD.js → chunk-EPQC3FGZ.js} +4 -0
- package/dist/{chunk-2ZNURTH5.js → chunk-EX75C5HT.js} +4459 -4312
- package/dist/{chunk-4ZM727AO.js → chunk-FKBWONRY.js} +5 -5
- package/dist/{chunk-YISDQ7YP.js → chunk-FORV75JT.js} +26 -14
- package/dist/{chunk-ZKPRJPWN.js → chunk-G5KX4X6W.js} +59 -59
- package/dist/{chunk-SGTEKMJW.js → chunk-HOTXWVVP.js} +93 -5
- package/dist/{chunk-LYZB5CJN.js → chunk-HT3D5AKG.js} +160 -19
- package/dist/{chunk-BIROA7JM.js → chunk-HYRPH6LL.js} +7 -6
- package/dist/{chunk-35JKCWYI.js → chunk-I6OY5MS6.js} +1 -1
- package/dist/{chunk-S5GOFDX5.js → chunk-IJI2JNN7.js} +1 -1
- package/dist/{chunk-SAKL7SZH.js → chunk-IQ7FABPU.js} +3 -3
- package/dist/{chunk-YV2QQUTL.js → chunk-JNQCM6CR.js} +2 -2
- package/dist/{chunk-TMK3MW7B.js → chunk-JO4LHFFP.js} +10 -10
- package/dist/chunk-JTZHDD63.js +70 -0
- package/dist/{chunk-YSZ4VMXI.js → chunk-K5GMPWMG.js} +1 -1
- package/dist/{chunk-ROVRC3CG.js → chunk-KCDWRMTC.js} +5 -5
- package/dist/{chunk-74E7EHVH.js → chunk-KJGYQVFD.js} +1 -1
- package/dist/{chunk-3STL4WJ6.js → chunk-KT2WLSX5.js} +19 -10
- package/dist/{chunk-OMLDAF44.js → chunk-KWYK65GR.js} +9 -8
- package/dist/{chunk-F6WHVEUS.js → chunk-LAIGIOEA.js} +5 -1
- package/dist/{chunk-3PJ3HVLG.js → chunk-LV5AVW6U.js} +1 -1
- package/dist/{chunk-XETZLYGW.js → chunk-M4UVOUWC.js} +2 -2
- package/dist/{chunk-DMCU2ELU.js → chunk-M7HNGAWN.js} +3 -3
- package/dist/chunk-MEJH7VEA.js +63 -0
- package/dist/{chunk-MYXFBIJO.js → chunk-MTVL7FWZ.js} +1 -1
- package/dist/{chunk-MYNBV7WG.js → chunk-MUHOFRGW.js} +1 -1
- package/dist/{chunk-7DVR3DL3.js → chunk-N6XKBBT5.js} +8 -8
- package/dist/{chunk-OOEOJPFY.js → chunk-NLWG5TU7.js} +2 -2
- package/dist/chunk-NZZQCWUC.js +205 -0
- package/dist/{chunk-ZOLKM3VZ.js → chunk-OL2C3ODS.js} +9 -9
- package/dist/{chunk-QLQVQQP6.js → chunk-OVINGNLQ.js} +3 -3
- package/dist/{chunk-MXVH6UW6.js → chunk-OWFSGDQS.js} +6 -57
- package/dist/chunk-OZM6VLD7.js +71 -0
- package/dist/{chunk-5YT2KHPO.js → chunk-P5QGZMGC.js} +2 -2
- package/dist/{chunk-NYOQP6DO.js → chunk-PBPHKD56.js} +1 -1
- package/dist/chunk-PHEPL7OX.js +1048 -0
- package/dist/{chunk-AZI2T2KO.js → chunk-PX7Y4HMM.js} +1 -1
- package/dist/{chunk-IDWJJ7PP.js → chunk-QNLHDYYO.js} +2 -2
- package/dist/{chunk-N4XNRHFM.js → chunk-QNW43LWB.js} +1 -1
- package/dist/{chunk-24F7TOW2.js → chunk-QU5OYMTB.js} +140 -54
- package/dist/chunk-QZGKKQ77.js +570 -0
- package/dist/{chunk-NQOCM4KQ.js → chunk-RKVKFXYB.js} +3 -3
- package/dist/{chunk-Y4GLFHO5.js → chunk-RORIFIUW.js} +1 -1
- package/dist/{chunk-MESSJFK3.js → chunk-RWSVSCOP.js} +38 -28
- package/dist/chunk-RZ6CXJ56.js +24 -0
- package/dist/chunk-SDBVVDBW.js +113 -0
- package/dist/{chunk-YBNF5ZOC.js → chunk-SFS5BTQ3.js} +1 -1
- package/dist/{chunk-BQNTY7J5.js → chunk-SNFVQDKE.js} +1 -1
- package/dist/{chunk-J74ZUXVU.js → chunk-SWC3QIEH.js} +1 -1
- package/dist/{chunk-D2RQVJLZ.js → chunk-SX7ESVCQ.js} +5 -29
- package/dist/{chunk-P6FGS4U6.js → chunk-UFYWGUUV.js} +6 -6
- package/dist/{chunk-GSCFMG4C.js → chunk-UGUWSAJT.js} +3 -3
- package/dist/chunk-UQECNXFA.js +5013 -0
- package/dist/{chunk-XDTCPMR3.js → chunk-UQVAAEPQ.js} +2 -2
- package/dist/{chunk-NHXGFQWQ.js → chunk-UVF4U3ZF.js} +1 -1
- package/dist/{chunk-YSTBSLWY.js → chunk-VBCBHDIW.js} +1 -1
- package/dist/chunk-VJM6NX54.js +250 -0
- package/dist/{chunk-5SKC4G26.js → chunk-VMRQDPFL.js} +1 -1
- package/dist/chunk-WGOIJN57.js +95 -0
- package/dist/{chunk-RVCWVOXM.js → chunk-WQLTKHPP.js} +3 -3
- package/dist/{chunk-RVIMLJXC.js → chunk-WUXDIF5D.js} +60 -23
- package/dist/{chunk-QYUXDFJY.js → chunk-WWOHLNFO.js} +12 -10
- package/dist/{chunk-JGZUG5V4.js → chunk-XZEHFUQF.js} +2 -2
- package/dist/{chunk-6HKUUBAV.js → chunk-Y4INSXS7.js} +2 -2
- package/dist/{chunk-O7WR4AHX.js → chunk-ZEKV5T3I.js} +14 -14
- package/dist/{clean-3NMJWZXK.js → clean-JZOPMJMV.js} +27 -26
- package/dist/cli.js +59 -56
- package/dist/{cloud-CB3NYNUR.js → cloud-VMPF2KMA.js} +4 -4
- package/dist/{cloudrun-2CTKCIXV.js → cloudrun-LA2FKS2F.js} +10 -9
- package/dist/commands/layout-audit.browser.js +19 -3
- package/dist/commands/motion-signature.browser.js +8 -4
- package/dist/{compare-FVY3AMTT.js → compare-IQCFSC5Z.js} +37 -36
- package/dist/{compiler-SEQRWEEN.js → compiler-J7OZQIPD.js} +8 -8
- package/dist/{component-AEMJRROX.js → component-TRGBVFCI.js} +3 -3
- package/dist/{compositions-NRBSIBGZ.js → compositions-FOC2CAZX.js} +18 -17
- package/dist/curve-ID3Z522S.js +329 -0
- package/dist/cuts-MWHQSE2Z.js +123 -0
- package/dist/{delete-T4E53ELR.js → delete-47KZ7PLI.js} +5 -5
- package/dist/{deploy-PUF2DW3H.js → deploy-NTNEO4TI.js} +8 -8
- package/dist/describeProject-WWREIVQV.js +56 -0
- package/dist/{deterministicFonts-2ISM3LMW.js → deterministicFonts-LV2JMOJL.js} +2 -2
- package/dist/diff-GH4KCQGQ.js +1825 -0
- package/dist/{dist-VARV35QH.js → dist-24QQO5IL.js} +6 -6
- package/dist/{dist-B6C3DU6I.js → dist-XW7FATO6.js} +7 -6
- package/dist/{doctor-FVBU575B.js → doctor-4ZH7WFU6.js} +16 -15
- package/dist/{dotEnv-BGFXSQOA.js → dotEnv-33RDHX7P.js} +1 -1
- package/dist/energy-2C65KXBH.js +134 -0
- package/dist/{events-RSPDI7FX.js → events-FUFFA55P.js} +3 -3
- package/dist/{events-DZ5PRR6F.js → events-Q3EBOW2Y.js} +2 -2
- package/dist/events-QO5G2VCC.js +221 -0
- package/dist/extract-Z6TLBM5B.js +309 -0
- package/dist/face-WI6BPPUG.js +171 -0
- package/dist/{feedback-AALA3OA7.js → feedback-M5GZWDXP.js} +16 -15
- package/dist/{ffmpeg-YXKE5CUE.js → ffmpeg-27H6P7ZU.js} +13 -12
- package/dist/{figma-37R727XZ.js → figma-AI6TSWVO.js} +3 -3
- package/dist/fontLocalizeCli.js +16 -15
- package/dist/frames-WUTLVZIR.js +352 -0
- package/dist/generate-3CJREF5U.js +74 -0
- package/dist/{get-L3VKJ6JF.js → get-KTDRE33B.js} +5 -5
- package/dist/{gpuPolicy-6QIFFWAI.js → gpuPolicy-Z4MM64HY.js} +12 -11
- package/dist/{grade-compare-7IN5QDJD.js → grade-compare-IM7Z7HWI.js} +41 -37
- package/dist/{heifImagePrep-AWII25PM.js → heifImagePrep-CXI2ZMUX.js} +13 -12
- package/dist/{help-B4MB7MWW.js → help-5FR6BRLR.js} +7 -1
- package/dist/{history-TQO6AWEQ.js → history-5P5YVP5H.js} +17 -8
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +72 -72
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/hyperframes-slideshow.global.js +8 -8
- package/dist/index-gen-OPMQ5WSN.js +61 -0
- package/dist/{info-7CBHVXSG.js → info-5ZGNJJVA.js} +11 -10
- package/dist/{init-D7HKPQ5A.js → init-NWIAEYSX.js} +35 -33
- package/dist/{inspect-VHDQL55M.js → inspect-HBLAVW5C.js} +38 -36
- package/dist/{installer-EJNLL6SV.js → installer-KVFTBZZ5.js} +8 -7
- package/dist/{keyframes-IFLBMAJP.js → keyframes-LFCLUY2R.js} +7 -7
- package/dist/{lambda-I7EQULHC.js → lambda-RFWTTMLU.js} +19 -18
- package/dist/{layout-MOCEANRO.js → layout-WOG2Y5ND.js} +38 -36
- package/dist/{lint-HFXGSQKN.js → lint-7MALXMMF.js} +12 -12
- package/dist/{lintProject-VCDI6A2W.js → lintProject-6H64SX3V.js} +6 -6
- package/dist/{list-OFYIXVON.js → list-XRYAT24W.js} +5 -5
- package/dist/{localPage-QOOQ5YA2.js → localPage-IN36JVJU.js} +12 -11
- package/dist/{login-WAG7B4PM.js → login-32WGVGTM.js} +15 -9
- package/dist/{logout-6VFJ7WMW.js → logout-SLI6YTHI.js} +2 -2
- package/dist/look-ZWVE6JO3.js +180 -0
- package/dist/{manager-34U5CEFB.js → manager-SFL6GLYX.js} +14 -12
- package/dist/manifest-QSJYVERU.js +49 -0
- package/dist/measure-Q74BJTRQ.js +46 -0
- package/dist/{media-treatment-2TLX6NKS.js → media-treatment-3R6DYEAZ.js} +24 -23
- package/dist/{media-use-ZNTB7W6N.js → media-use-ZM2WCRQC.js} +9 -5
- package/dist/{models-M2F4WTAR.js → models-NNC53UPU.js} +16 -15
- package/dist/{motionShot-6WCTCV4W.js → motionShot-5BI5JFUP.js} +21 -20
- package/dist/{normalize-QJVXFMWO.js → normalize-MBNGRVQA.js} +2 -1
- package/dist/{normalize-audio-T6PIPWOT.js → normalize-audio-6Z2WN56Q.js} +15 -14
- package/dist/{open-BC5METIY.js → open-5NCEN6RC.js} +15 -14
- package/dist/{parakeetRunner-UXVY7PV2.js → parakeetRunner-DH3XKR3C.js} +19 -17
- package/dist/{pipeline-GJAJPWPB.js → pipeline-CGEGQAPH.js} +15 -14
- package/dist/{play-UCIRUHCU.js → play-K37BN736.js} +28 -27
- package/dist/{policies-J5BWAZHM.js → policies-U4PFXF5E.js} +4 -2
- package/dist/{preflight-GVRYYIH5.js → preflight-CG7H3D5B.js} +13 -12
- package/dist/{present-46QLZOK4.js → present-KQ53DOHA.js} +24 -23
- package/dist/{preview-HWXMP7WL.js → preview-V7CYHL6U.js} +26 -25
- package/dist/probe-JVW2MPY3.js +178 -0
- package/dist/{producer-2PBHUE5O.js → producer-UD32S7PX.js} +1 -1
- package/dist/{projectConfig-C4S3LBBX.js → projectConfig-WXCB5AZE.js} +10 -9
- package/dist/{publication-GESNVVMS.js → publication-KG4UDZRM.js} +6 -5
- package/dist/{publish-IBY26S3T.js → publish-MEQB543T.js} +22 -21
- package/dist/{refresh-I6ITGHKL.js → refresh-2LU4XDL7.js} +2 -2
- package/dist/{remove-background-3OBWOHVZ.js → remove-background-FSV5KQK3.js} +16 -15
- package/dist/{render-LSI5WXS7.js → render-O4S4SURS.js} +10 -9
- package/dist/{render-SR5RISLU.js → render-SQXZAGPQ.js} +160 -46
- package/dist/{render-3F6GQ5WW.js → render-SY4AXKXC.js} +40 -39
- package/dist/{render-batch-HV4W3PZM.js → render-batch-GTZQUB3H.js} +10 -9
- package/dist/renderSetupWorker.js +6 -6
- package/dist/{resolver-R5X3HAPE.js → resolver-BQZNCVJS.js} +8 -7
- package/dist/run-67OPNJGD.js +31 -0
- package/dist/{screenshotCapture-U3IYWTDB.js → screenshotCapture-4THETOMD.js} +2 -1
- package/dist/{sherpa-2Q6U4ZFY.js → sherpa-KH3PJAUG.js} +18 -16
- package/dist/skills/hyperframes-cli/references/beats.md +1 -1
- package/dist/skills/media-use/SKILL.md +20 -21
- package/dist/skills/media-use/audio/scripts/lib/gemini-tts.mjs +13 -1
- package/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +10 -0
- 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-FSGXQSHA.js → skills-FTZZJGAB.js} +5 -5
- package/dist/{skillsUpdateCheck-UW6643XX.js → skillsUpdateCheck-LZPD2CZI.js} +3 -3
- package/dist/{slideshow-SJGK4RQS.js → slideshow-ARJR22W4.js} +1 -1
- package/dist/{snapshot-HFPB34Y7.js → snapshot-4BORZ3ED.js} +60 -47
- package/dist/{src-VMTQQUUP.js → src-6ZOFAM3F.js} +21 -14
- package/dist/{src-ROWFWCEN.js → src-D7AO7PGH.js} +12 -11
- package/dist/{staticProjectServer-4TGZJIWN.js → staticProjectServer-Q23A6XU2.js} +25 -24
- package/dist/{status-4AAPTTRW.js → status-VIJRZ4ZK.js} +34 -9
- package/dist/studio/assets/hyperframes-player-D0W1SNqK.js +478 -0
- package/dist/studio/assets/{index-BDE7dwov.js → index-DD9KJoEr.js} +119 -119
- package/dist/studio/assets/{index-D0jGq2dS.js → index-mbwAH5iR.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-TSHXVZ6R.js → studio-api-XVVJZ7YT.js} +24 -19
- package/dist/{studioServer-74ZBLNP2.js → studioServer-6HG3AMTW.js} +77 -114
- package/dist/sync-Q5SRIL7V.js +115 -0
- package/dist/{telemetry-3NDLZOPR.js → telemetry-VXPSJ3X3.js} +3 -3
- package/dist/templates/blank/index.html +1 -1
- package/dist/templates/from-file/index.html +1 -1
- package/dist/{timeline-5IFZJU7M.js → timeline-6477OWFA.js} +31 -26
- package/dist/{tokens-UFNPQVLS.js → tokens-ZUUNEDKT.js} +2 -2
- package/dist/{transcribe-7KQAUHEN.js → transcribe-HA4UGLKO.js} +17 -15
- package/dist/{transcribe-NAXKBIPW.js → transcribe-ITVANIDK.js} +41 -23
- package/dist/{tts-BVTJEP72.js → tts-KMZPHG3K.js} +1 -1
- package/dist/{updateCheck-KDSFL3XX.js → updateCheck-SVADAQ43.js} +2 -2
- package/dist/{upgrade-EXX4C35N.js → upgrade-WKW4FDNF.js} +2 -2
- package/dist/{urlDownloader-4UFCIAPH.js → urlDownloader-VWHCESDD.js} +11 -10
- package/dist/{validate-QYOHY3N6.js → validate-7VG2RLP2.js} +31 -30
- package/dist/{video-HRL3V2R5.js → video-LM3FYHGG.js} +13 -12
- package/dist/warmCheck.js +47 -45
- package/package.json +1 -1
- package/dist/chunk-Q3PPGPEA.js +0 -5061
- package/dist/studio/assets/hyperframes-player-B_wvwarc.js +0 -478
- package/dist/{chunk-NOH32H42.js → chunk-HBAUU3IK.js} +124 -124
- package/dist/{chunk-NHA4NRBE.js → chunk-T5ELONXY.js} +0 -0
- package/dist/{destroy-BQ5R7LUF.js → destroy-6NWJMQX2.js} +4 -4
- package/dist/{synthesize-4JC74JW5.js → synthesize-DIT2SR3D.js} +5 -5
|
@@ -0,0 +1,288 @@
|
|
|
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
|
+
downloadToFile
|
|
9
|
+
} from "./chunk-NO6F7CLR.js";
|
|
10
|
+
import {
|
|
11
|
+
Fix,
|
|
12
|
+
frameAt,
|
|
13
|
+
round,
|
|
14
|
+
runFfmpeg
|
|
15
|
+
} from "./chunk-VJM6NX54.js";
|
|
16
|
+
import {
|
|
17
|
+
verifies
|
|
18
|
+
} from "./chunk-RZ6CXJ56.js";
|
|
19
|
+
|
|
20
|
+
// src/measure/opencv.ts
|
|
21
|
+
import { mkdirSync, readFileSync, renameSync, rmSync } from "fs";
|
|
22
|
+
import { createRequire } from "module";
|
|
23
|
+
import { homedir } from "os";
|
|
24
|
+
import { join } from "path";
|
|
25
|
+
var VERSION = "4.10.0";
|
|
26
|
+
var OPENCV_DIR = join(homedir(), ".cache", "hyperframes", "opencv", VERSION);
|
|
27
|
+
var CASCADES = "https://raw.githubusercontent.com/opencv/opencv/4.10.0/data/haarcascades";
|
|
28
|
+
var FILES = [
|
|
29
|
+
{
|
|
30
|
+
name: "opencv.js",
|
|
31
|
+
bytes: 10378215,
|
|
32
|
+
sha256: "19b46167b59efbef9cc3836264b0b657110833e4b1df84282004b8b3141c048d",
|
|
33
|
+
url: "https://cdn.jsdelivr.net/npm/@techstark/opencv-js@4.10.0-release.1/dist/opencv.js"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "haarcascade_frontalface_alt2.xml",
|
|
37
|
+
bytes: 540616,
|
|
38
|
+
sha256: "7b0c967d9abbdfbde025eb9c786947d151b6426040d07a8f9562ed8fd90724b4",
|
|
39
|
+
url: `${CASCADES}/haarcascade_frontalface_alt2.xml`
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "haarcascade_profileface.xml",
|
|
43
|
+
bytes: 828514,
|
|
44
|
+
sha256: "b39a4a3be45539db146a7fc1d3e761a292c196eb88421185e6a615b3055e612d",
|
|
45
|
+
url: `${CASCADES}/haarcascade_profileface.xml`
|
|
46
|
+
}
|
|
47
|
+
];
|
|
48
|
+
var isCv = (v) => typeof v === "object" && v !== null && "Mat" in v && "matFromArray" in v;
|
|
49
|
+
async function ensureOpenCv(onStatus) {
|
|
50
|
+
const missing = [];
|
|
51
|
+
for (const f of FILES) if (!await verifies(join(OPENCV_DIR, f.name), f)) missing.push(f);
|
|
52
|
+
if (!missing.length) return;
|
|
53
|
+
mkdirSync(OPENCV_DIR, { recursive: true });
|
|
54
|
+
for (const f of missing) {
|
|
55
|
+
onStatus?.(`Downloading ${f.name} (${Math.round(f.bytes / 1e5) / 10} MB, once)...`);
|
|
56
|
+
const temp = join(OPENCV_DIR, `${f.name}.part-${process.pid}`);
|
|
57
|
+
try {
|
|
58
|
+
await downloadToFile(f.url, temp);
|
|
59
|
+
if (!await verifies(temp, f))
|
|
60
|
+
throw new Fix(
|
|
61
|
+
`${f.name} did not match its pinned size and sha256`,
|
|
62
|
+
"run the command again to retry the download"
|
|
63
|
+
);
|
|
64
|
+
renameSync(temp, join(OPENCV_DIR, f.name));
|
|
65
|
+
} catch (err) {
|
|
66
|
+
if (err instanceof Fix) throw err;
|
|
67
|
+
throw new Fix(
|
|
68
|
+
`could not download ${f.name} (${err instanceof Error ? err.message : String(err)})`,
|
|
69
|
+
"check the network and run the command again"
|
|
70
|
+
);
|
|
71
|
+
} finally {
|
|
72
|
+
rmSync(temp, { force: true });
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
var loaded = null;
|
|
77
|
+
function loadOpenCv(onStatus) {
|
|
78
|
+
loaded ??= (async () => {
|
|
79
|
+
await ensureOpenCv(onStatus);
|
|
80
|
+
const mod = createRequire(import.meta.url)(join(OPENCV_DIR, "opencv.js"));
|
|
81
|
+
if (typeof mod !== "object" || mod === null) throw new Error("opencv.js did not load");
|
|
82
|
+
await new Promise((resolve) => {
|
|
83
|
+
if ("Mat" in mod) resolve();
|
|
84
|
+
else Object.assign(mod, { onRuntimeInitialized: () => resolve() });
|
|
85
|
+
});
|
|
86
|
+
Reflect.deleteProperty(mod, "then");
|
|
87
|
+
if (!isCv(mod)) throw new Error("opencv.js did not initialize");
|
|
88
|
+
const cv = mod;
|
|
89
|
+
for (const f of FILES.filter((x) => x.name.endsWith(".xml")))
|
|
90
|
+
cv.FS_createDataFile("/", f.name, readFileSync(join(OPENCV_DIR, f.name)), true, false, false);
|
|
91
|
+
return cv;
|
|
92
|
+
})();
|
|
93
|
+
return loaded;
|
|
94
|
+
}
|
|
95
|
+
var greyMat = (cv, px, w, h) => cv.matFromArray(h, w, cv.CV_8UC1, px);
|
|
96
|
+
|
|
97
|
+
// src/measure/face.ts
|
|
98
|
+
var FACE_HOLDS = 0.25;
|
|
99
|
+
var FACE_SLIDES = 0.15;
|
|
100
|
+
var FACE_FLOOR = 0.06;
|
|
101
|
+
var FACE_MIN = 0.04;
|
|
102
|
+
var WORK_W = 960;
|
|
103
|
+
var STEP = 1.1;
|
|
104
|
+
var WINDOW_PX = 20;
|
|
105
|
+
var RUN_S = 2;
|
|
106
|
+
var ORDER = ["fail", "unmeasured", "warn", "pass"];
|
|
107
|
+
function faceVerdict(height, cast = false) {
|
|
108
|
+
if (height === null) return "unmeasured";
|
|
109
|
+
if (height >= FACE_HOLDS) return "pass";
|
|
110
|
+
return height < (cast ? FACE_SLIDES : FACE_FLOOR) ? "fail" : "warn";
|
|
111
|
+
}
|
|
112
|
+
function sampleFrames(fps, start, end, samples) {
|
|
113
|
+
const k0 = frameAt(start, fps);
|
|
114
|
+
const k1 = Math.max(k0, Math.ceil(end * fps - 1e-6) - 1);
|
|
115
|
+
const n = Math.min(samples, k1 - k0 + 1);
|
|
116
|
+
return [
|
|
117
|
+
...new Set(
|
|
118
|
+
Array.from({ length: n }, (_, i) => k0 + Math.round(i * (k1 - k0) / Math.max(1, n - 1)))
|
|
119
|
+
)
|
|
120
|
+
];
|
|
121
|
+
}
|
|
122
|
+
function minWindow(h, share) {
|
|
123
|
+
const steps = Math.floor(Math.log(Math.max(1, share * h / WINDOW_PX)) / Math.log(STEP) + 1e-9);
|
|
124
|
+
return Math.round(WINDOW_PX * STEP ** steps);
|
|
125
|
+
}
|
|
126
|
+
function readSamples(info, ks, w, h) {
|
|
127
|
+
const runs = [];
|
|
128
|
+
for (const k of ks) {
|
|
129
|
+
const run = runs.at(-1);
|
|
130
|
+
if (run && (info.vfr || (k - run.at(-1)) / info.fps <= RUN_S)) run.push(k);
|
|
131
|
+
else runs.push([k]);
|
|
132
|
+
}
|
|
133
|
+
const size = w * h;
|
|
134
|
+
return runs.flatMap((run) => {
|
|
135
|
+
const k0 = info.vfr ? 0 : run[0];
|
|
136
|
+
const seek = k0 > 0 ? ["-ss", ((k0 - 0.5) / info.fps).toFixed(6)] : [];
|
|
137
|
+
const filters = [
|
|
138
|
+
`select=${run.map((k) => `eq(n\\,${k - k0})`).join("+")}`,
|
|
139
|
+
...w !== info.width || h !== info.height ? [`scale=${w}:${h}`] : [],
|
|
140
|
+
"format=gray"
|
|
141
|
+
];
|
|
142
|
+
const raw = runFfmpeg([
|
|
143
|
+
...seek,
|
|
144
|
+
"-i",
|
|
145
|
+
info.path,
|
|
146
|
+
"-an",
|
|
147
|
+
"-vf",
|
|
148
|
+
filters.join(","),
|
|
149
|
+
"-fps_mode",
|
|
150
|
+
"passthrough",
|
|
151
|
+
"-frames:v",
|
|
152
|
+
String(run.length),
|
|
153
|
+
"-f",
|
|
154
|
+
"rawvideo",
|
|
155
|
+
"-"
|
|
156
|
+
]);
|
|
157
|
+
const frames = [];
|
|
158
|
+
for (let i = 0; i + size <= raw.length; i += size) frames.push(raw.subarray(i, i + size));
|
|
159
|
+
return frames;
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
async function faceBoxes(info, start, end, samples, opts = {}) {
|
|
163
|
+
const cv = await loadOpenCv((m) => console.error(m));
|
|
164
|
+
const ks = sampleFrames(info.fps, start, end, samples);
|
|
165
|
+
const w = Math.min(WORK_W, info.width);
|
|
166
|
+
const h = w === info.width ? info.height : Math.max(2, Math.round(info.height * w / info.width / 2) * 2);
|
|
167
|
+
const frames = readSamples(info, ks, w, h);
|
|
168
|
+
const min = minWindow(h, opts.minFace ?? FACE_MIN);
|
|
169
|
+
const cascades = ["haarcascade_frontalface_alt2.xml", "haarcascade_profileface.xml"].map(
|
|
170
|
+
(name) => {
|
|
171
|
+
const c = new cv.CascadeClassifier();
|
|
172
|
+
c.load(name);
|
|
173
|
+
return c;
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
try {
|
|
177
|
+
return frames.map((px, i) => {
|
|
178
|
+
const gray = greyMat(cv, px, w, h);
|
|
179
|
+
const boxes = [];
|
|
180
|
+
try {
|
|
181
|
+
for (const c of cascades) {
|
|
182
|
+
const found = new cv.RectVector();
|
|
183
|
+
c.detectMultiScale(gray, found, STEP, 5, 0, new cv.Size(min, min));
|
|
184
|
+
for (let j = 0; j < found.size(); j++) {
|
|
185
|
+
const r = found.get(j);
|
|
186
|
+
boxes.push([r.x / w, r.y / h, r.width / w, r.height / h]);
|
|
187
|
+
}
|
|
188
|
+
found.delete();
|
|
189
|
+
}
|
|
190
|
+
} finally {
|
|
191
|
+
gray.delete();
|
|
192
|
+
}
|
|
193
|
+
return { frame: ks[i], t: round(ks[i] / info.fps, 3), boxes };
|
|
194
|
+
});
|
|
195
|
+
} finally {
|
|
196
|
+
for (const c of cascades) c.delete();
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
function subjectFace(boxes, cast = false) {
|
|
200
|
+
return boxes.reduce(
|
|
201
|
+
(a, b) => !a || (cast ? b[3] < a[3] : b[3] > a[3]) ? b : a,
|
|
202
|
+
null
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
function faceSummary(samples, cast = false) {
|
|
206
|
+
const pick = (boxes) => subjectFace(boxes, cast);
|
|
207
|
+
const seen = samples.flatMap((s) => {
|
|
208
|
+
const b = pick(s.boxes);
|
|
209
|
+
return b ? [{ t: s.t, box: b.map((v) => round(v, 4)) }] : [];
|
|
210
|
+
});
|
|
211
|
+
const heights = seen.map((s) => s.box[3]).sort((a, b) => a - b);
|
|
212
|
+
const height = heights.length ? heights[heights.length >> 1] : null;
|
|
213
|
+
const lastFace = pick(samples.at(-1)?.boxes ?? []);
|
|
214
|
+
const last = lastFace ? lastFace[3] : null;
|
|
215
|
+
const verdicts = [faceVerdict(height, cast), faceVerdict(last, cast)];
|
|
216
|
+
return {
|
|
217
|
+
frames_sampled: samples.length,
|
|
218
|
+
frames_with_face: seen.length,
|
|
219
|
+
face_height: height === null ? null : round(height, 3),
|
|
220
|
+
last_face_height: last === null ? null : round(last, 3),
|
|
221
|
+
verdict: verdicts.reduce((a, b) => ORDER.indexOf(b) < ORDER.indexOf(a) ? b : a),
|
|
222
|
+
bands: { pass: FACE_HOLDS, cast_fail_below: FACE_SLIDES, fail_below: FACE_FLOOR },
|
|
223
|
+
boxes: seen,
|
|
224
|
+
...last === null ? {
|
|
225
|
+
note: "no face at the last sampled frame (turned away, covered or missed): look at the frames"
|
|
226
|
+
} : {}
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
var median = (v) => [...v].sort((x, y) => x - y)[v.length >> 1];
|
|
230
|
+
var FIT_MIN_FACES = 2;
|
|
231
|
+
var PAIR_S = 0.1;
|
|
232
|
+
function againstStart(clipDuration, originalDuration, from) {
|
|
233
|
+
return Math.abs(clipDuration - originalDuration) <= 0.5 ? from : 0;
|
|
234
|
+
}
|
|
235
|
+
function faceFit(original, clip, canvas, clipSize, cast = false) {
|
|
236
|
+
const pairs = original.flatMap((o2) => {
|
|
237
|
+
const near = clip.reduce(
|
|
238
|
+
(p, q) => !p || Math.abs(q.t - o2.t) < Math.abs(p.t - o2.t) ? q : p,
|
|
239
|
+
null
|
|
240
|
+
);
|
|
241
|
+
if (!near || Math.abs(near.t - o2.t) > PAIR_S) return [];
|
|
242
|
+
const [a, b] = [subjectFace(o2.boxes, cast), subjectFace(near.boxes, cast)];
|
|
243
|
+
return a && b ? [{ a, b }] : [];
|
|
244
|
+
});
|
|
245
|
+
if (pairs.length < FIT_MIN_FACES) return { moments: pairs.length, transform: null };
|
|
246
|
+
const { width: W, height: H } = canvas;
|
|
247
|
+
const s0 = Math.max(W / clipSize.width, H / clipSize.height);
|
|
248
|
+
const [cw, ch] = [clipSize.width * s0, clipSize.height * s0];
|
|
249
|
+
const [ox, oy] = [(W - cw) / 2, (H - ch) / 2];
|
|
250
|
+
const face = (b, w, h, x0, y0) => ({
|
|
251
|
+
x: x0 + (b[0] + b[2] / 2) * w,
|
|
252
|
+
y: y0 + (b[1] + b[3] / 2) * h,
|
|
253
|
+
h: b[3] * h
|
|
254
|
+
});
|
|
255
|
+
const os = pairs.map((p) => face(p.a, W, H, 0, 0));
|
|
256
|
+
const cs = pairs.map((p) => face(p.b, cw, ch, ox, oy));
|
|
257
|
+
const mid = (v) => ({
|
|
258
|
+
x: median(v.map((f) => f.x)),
|
|
259
|
+
y: median(v.map((f) => f.y)),
|
|
260
|
+
h: median(v.map((f) => f.h))
|
|
261
|
+
});
|
|
262
|
+
const [o, c] = [mid(os), mid(cs)];
|
|
263
|
+
const scale = o.h / c.h;
|
|
264
|
+
const x = o.x - (W / 2 + scale * (c.x - W / 2));
|
|
265
|
+
const y = o.y - (H / 2 + scale * (c.y - H / 2));
|
|
266
|
+
const residual = median(
|
|
267
|
+
pairs.map((_, i) => {
|
|
268
|
+
const [p, q] = [os[i], cs[i]];
|
|
269
|
+
const [mx, my] = [W / 2 + scale * (q.x - W / 2) + x, H / 2 + scale * (q.y - H / 2) + y];
|
|
270
|
+
return Math.hypot(mx - p.x, my - p.y) / p.h;
|
|
271
|
+
})
|
|
272
|
+
);
|
|
273
|
+
return {
|
|
274
|
+
moments: pairs.length,
|
|
275
|
+
transform: { scale: round(scale, 3), x: round(x, 1), y: round(y, 1) },
|
|
276
|
+
original_face: { centre: [round(o.x, 1), round(o.y, 1)], height: round(o.h, 1) },
|
|
277
|
+
clip_face: { centre: [round(c.x, 1), round(c.y, 1)], height: round(c.h, 1) },
|
|
278
|
+
residual: round(residual, 3)
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export {
|
|
283
|
+
faceBoxes,
|
|
284
|
+
faceSummary,
|
|
285
|
+
FIT_MIN_FACES,
|
|
286
|
+
againstStart,
|
|
287
|
+
faceFit
|
|
288
|
+
};
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
renderFrameIdForRenderId,
|
|
43
43
|
resolveAuthoredTimingWindow,
|
|
44
44
|
toFps
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-OWFSGDQS.js";
|
|
46
46
|
import {
|
|
47
47
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
48
48
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
sourceTimeAt,
|
|
86
86
|
timeAtSourceTime,
|
|
87
87
|
volumeSegmentSampleCount
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-UQECNXFA.js";
|
|
89
89
|
import {
|
|
90
90
|
redactTelemetryString,
|
|
91
91
|
redactUrlQueryStrings
|
|
@@ -103,19 +103,19 @@ import {
|
|
|
103
103
|
} from "./chunk-WE42NVH7.js";
|
|
104
104
|
import {
|
|
105
105
|
resolveReferencedStart
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-HT3D5AKG.js";
|
|
107
107
|
import {
|
|
108
108
|
FFMPEG_PATH_ENV,
|
|
109
109
|
FFPROBE_PATH_ENV,
|
|
110
110
|
findFfBinary
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-HYRPH6LL.js";
|
|
112
112
|
import {
|
|
113
113
|
isWithinProjectRoot,
|
|
114
114
|
resolveProjectRelativeSrc
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-AKMY4QVI.js";
|
|
116
116
|
import {
|
|
117
117
|
isPathInside
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-C2KEGBR3.js";
|
|
119
119
|
import {
|
|
120
120
|
parseHTML
|
|
121
121
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -11124,6 +11124,7 @@ async function spawnStreamingEncoder(outputPath, options, signal, config) {
|
|
|
11124
11124
|
}
|
|
11125
11125
|
};
|
|
11126
11126
|
let inputFrameIndex = 0;
|
|
11127
|
+
let drainWaitMs = 0;
|
|
11127
11128
|
const encoder = {
|
|
11128
11129
|
writeFrame: async (buffer) => {
|
|
11129
11130
|
const stdin = ffmpeg.stdin;
|
|
@@ -11145,7 +11146,9 @@ async function spawnStreamingEncoder(outputPath, options, signal, config) {
|
|
|
11145
11146
|
managed.markActivity();
|
|
11146
11147
|
return true;
|
|
11147
11148
|
}
|
|
11149
|
+
const drainStart = Date.now();
|
|
11148
11150
|
const drainResult = await waitForDrainOrExit(stdin);
|
|
11151
|
+
drainWaitMs += Date.now() - drainStart;
|
|
11149
11152
|
if (drainResult !== "drain" || exitStatus !== "running") {
|
|
11150
11153
|
return false;
|
|
11151
11154
|
}
|
|
@@ -11190,7 +11193,7 @@ FFmpeg stopped after ${streamingTimeout} ms without consuming a frame.` : "";
|
|
|
11190
11193
|
};
|
|
11191
11194
|
}
|
|
11192
11195
|
const fileSize = existsSync6(outputPath) ? statSync4(outputPath).size : 0;
|
|
11193
|
-
return { success: true, durationMs, fileSize };
|
|
11196
|
+
return { success: true, durationMs, fileSize, drainWaitMs };
|
|
11194
11197
|
},
|
|
11195
11198
|
getExitStatus: () => exitStatus,
|
|
11196
11199
|
getExitError: () => {
|
|
@@ -11405,7 +11408,52 @@ import {
|
|
|
11405
11408
|
} from "fs";
|
|
11406
11409
|
import { createHash, randomUUID as randomUUID2 } from "crypto";
|
|
11407
11410
|
import dns from "dns";
|
|
11411
|
+
|
|
11412
|
+
// ../engine/src/utils/networkPolicy.ts
|
|
11408
11413
|
import { BlockList, isIP } from "net";
|
|
11414
|
+
var NON_PUBLIC_IPV4_ADDRESSES = new BlockList();
|
|
11415
|
+
for (const [network, prefix] of [
|
|
11416
|
+
["0.0.0.0", 8],
|
|
11417
|
+
["10.0.0.0", 8],
|
|
11418
|
+
["100.64.0.0", 10],
|
|
11419
|
+
["127.0.0.0", 8],
|
|
11420
|
+
["169.254.0.0", 16],
|
|
11421
|
+
["172.16.0.0", 12],
|
|
11422
|
+
["192.0.0.0", 24],
|
|
11423
|
+
["192.0.2.0", 24],
|
|
11424
|
+
["192.88.99.0", 24],
|
|
11425
|
+
["192.168.0.0", 16],
|
|
11426
|
+
["198.18.0.0", 15],
|
|
11427
|
+
["198.51.100.0", 24],
|
|
11428
|
+
["203.0.113.0", 24],
|
|
11429
|
+
["224.0.0.0", 4],
|
|
11430
|
+
["240.0.0.0", 4]
|
|
11431
|
+
]) {
|
|
11432
|
+
NON_PUBLIC_IPV4_ADDRESSES.addSubnet(network, prefix, "ipv4");
|
|
11433
|
+
}
|
|
11434
|
+
var NON_PUBLIC_IPV6_ADDRESSES = new BlockList();
|
|
11435
|
+
for (const [network, prefix] of [
|
|
11436
|
+
["::", 128],
|
|
11437
|
+
["::1", 128],
|
|
11438
|
+
["::ffff:0:0", 96],
|
|
11439
|
+
["fc00::", 7],
|
|
11440
|
+
["fe80::", 10],
|
|
11441
|
+
["fec0::", 10],
|
|
11442
|
+
["ff00::", 8],
|
|
11443
|
+
["2001:db8::", 32]
|
|
11444
|
+
]) {
|
|
11445
|
+
NON_PUBLIC_IPV6_ADDRESSES.addSubnet(network, prefix, "ipv6");
|
|
11446
|
+
}
|
|
11447
|
+
function isBlockedNetworkHost(hostname) {
|
|
11448
|
+
const h = hostname.toLowerCase().replace(/\.$/, "").replace(/^\[|\]$/g, "");
|
|
11449
|
+
if (h === "localhost" || h.endsWith(".localhost") || h.endsWith(".local") || h.endsWith(".internal"))
|
|
11450
|
+
return true;
|
|
11451
|
+
const addressType = isIP(h);
|
|
11452
|
+
if (addressType === 0) return false;
|
|
11453
|
+
return addressType === 4 ? NON_PUBLIC_IPV4_ADDRESSES.check(h, "ipv4") : NON_PUBLIC_IPV6_ADDRESSES.check(h, "ipv6");
|
|
11454
|
+
}
|
|
11455
|
+
|
|
11456
|
+
// ../engine/src/utils/urlDownloader.ts
|
|
11409
11457
|
import { dirname as dirname4, extname as extname2, join as join10 } from "path";
|
|
11410
11458
|
import { Readable, Transform } from "stream";
|
|
11411
11459
|
import { pipeline } from "stream/promises";
|
|
@@ -11501,47 +11549,6 @@ function isRetryableNetworkCause(error) {
|
|
|
11501
11549
|
const code = typeof error === "object" && error !== null && "code" in error && typeof error.code === "string" ? error.code : "";
|
|
11502
11550
|
return RETRYABLE_NETWORK_CODES.has(code) || code.startsWith("UND_ERR_") || /fetch failed|network|socket|connection reset|terminated/i.test(message);
|
|
11503
11551
|
}
|
|
11504
|
-
var NON_PUBLIC_IPV4_ADDRESSES = new BlockList();
|
|
11505
|
-
for (const [network, prefix] of [
|
|
11506
|
-
["0.0.0.0", 8],
|
|
11507
|
-
["10.0.0.0", 8],
|
|
11508
|
-
["100.64.0.0", 10],
|
|
11509
|
-
["127.0.0.0", 8],
|
|
11510
|
-
["169.254.0.0", 16],
|
|
11511
|
-
["172.16.0.0", 12],
|
|
11512
|
-
["192.0.0.0", 24],
|
|
11513
|
-
["192.0.2.0", 24],
|
|
11514
|
-
["192.88.99.0", 24],
|
|
11515
|
-
["192.168.0.0", 16],
|
|
11516
|
-
["198.18.0.0", 15],
|
|
11517
|
-
["198.51.100.0", 24],
|
|
11518
|
-
["203.0.113.0", 24],
|
|
11519
|
-
["224.0.0.0", 4],
|
|
11520
|
-
["240.0.0.0", 4]
|
|
11521
|
-
]) {
|
|
11522
|
-
NON_PUBLIC_IPV4_ADDRESSES.addSubnet(network, prefix, "ipv4");
|
|
11523
|
-
}
|
|
11524
|
-
var NON_PUBLIC_IPV6_ADDRESSES = new BlockList();
|
|
11525
|
-
for (const [network, prefix] of [
|
|
11526
|
-
["::", 128],
|
|
11527
|
-
["::1", 128],
|
|
11528
|
-
["::ffff:0:0", 96],
|
|
11529
|
-
["fc00::", 7],
|
|
11530
|
-
["fe80::", 10],
|
|
11531
|
-
["fec0::", 10],
|
|
11532
|
-
["ff00::", 8],
|
|
11533
|
-
["2001:db8::", 32]
|
|
11534
|
-
]) {
|
|
11535
|
-
NON_PUBLIC_IPV6_ADDRESSES.addSubnet(network, prefix, "ipv6");
|
|
11536
|
-
}
|
|
11537
|
-
function isBlockedNetworkHost(hostname) {
|
|
11538
|
-
const h = hostname.toLowerCase().replace(/\.$/, "").replace(/^\[|\]$/g, "");
|
|
11539
|
-
if (h === "localhost" || h.endsWith(".localhost") || h.endsWith(".local") || h.endsWith(".internal"))
|
|
11540
|
-
return true;
|
|
11541
|
-
const addressType = isIP(h);
|
|
11542
|
-
if (addressType === 0) return false;
|
|
11543
|
-
return addressType === 4 ? NON_PUBLIC_IPV4_ADDRESSES.check(h, "ipv4") : NON_PUBLIC_IPV6_ADDRESSES.check(h, "ipv6");
|
|
11544
|
-
}
|
|
11545
11552
|
function assertPublicHttpsUrl(url) {
|
|
11546
11553
|
let parsed;
|
|
11547
11554
|
try {
|
|
@@ -13177,6 +13184,16 @@ var EXTRACTION_SLOTS = Math.max(1, Math.floor(cpus().length / 2));
|
|
|
13177
13184
|
var inExtractionSlot = createConcurrencyLimit(EXTRACTION_SLOTS);
|
|
13178
13185
|
var TAIL_PROBE_SLOTS = Math.max(1, Number(process.env.HF_TAIL_PROBE_SLOTS) || 16);
|
|
13179
13186
|
var inTailProbeSlot = createConcurrencyLimit(TAIL_PROBE_SLOTS);
|
|
13187
|
+
function framesWrittenReader(onProgress) {
|
|
13188
|
+
if (!onProgress) return void 0;
|
|
13189
|
+
let seen = 0;
|
|
13190
|
+
const read = ffmpegStatsReader(({ frames }) => {
|
|
13191
|
+
if (frames === void 0 || frames <= seen) return;
|
|
13192
|
+
onProgress({ done: frames - seen });
|
|
13193
|
+
seen = frames;
|
|
13194
|
+
});
|
|
13195
|
+
return (chunk) => read(chunk);
|
|
13196
|
+
}
|
|
13180
13197
|
function splitFrameRanges(ranges, segmentFrames) {
|
|
13181
13198
|
const segments = [];
|
|
13182
13199
|
for (const range of ranges) {
|
|
@@ -13222,6 +13239,7 @@ async function runSegmentedExtraction(job) {
|
|
|
13222
13239
|
{
|
|
13223
13240
|
...job.runOptions,
|
|
13224
13241
|
signal,
|
|
13242
|
+
onStderr: framesWrittenReader(job.onProgress),
|
|
13225
13243
|
timeout: stallTimeoutMs(
|
|
13226
13244
|
job.runOptions.timeout,
|
|
13227
13245
|
await leadInSecondsUnlessAborted(videoPath, seek, signal),
|
|
@@ -13369,10 +13387,12 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
13369
13387
|
options.frameRanges ?? [{ firstFrame: 0, frames: totalFrames }],
|
|
13370
13388
|
segmentFrames
|
|
13371
13389
|
),
|
|
13372
|
-
runOptions
|
|
13390
|
+
runOptions,
|
|
13391
|
+
onProgress: options.onProgress
|
|
13373
13392
|
}) : inExtractionSlot(
|
|
13374
13393
|
async () => runFfmpeg([...hwaccel, ...args, ...filterArgsFor(startTime), ...encodeArgs], {
|
|
13375
13394
|
...runOptions,
|
|
13395
|
+
onStderr: framesWrittenReader(options.onProgress),
|
|
13376
13396
|
timeout: stallTimeoutMs(
|
|
13377
13397
|
ffmpegProcessTimeout,
|
|
13378
13398
|
options.finalFrameOnly ? startTime : await leadInSecondsUnlessAborted(videoPath, startTime, signal),
|
|
@@ -13381,6 +13401,9 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
13381
13401
|
}),
|
|
13382
13402
|
signal
|
|
13383
13403
|
);
|
|
13404
|
+
options.onProgress?.({
|
|
13405
|
+
planned: options.frameRanges ? options.frameRanges.reduce((sum, range) => sum + range.frames, 0) : totalFrames
|
|
13406
|
+
});
|
|
13384
13407
|
let processResult = await extract(decodeWithVideoToolbox ? ["-hwaccel", "videotoolbox"] : []);
|
|
13385
13408
|
const ffmpegExitedFailing = processResult.terminationReason === "exit" && !processResult.success && !processResult.failureReason;
|
|
13386
13409
|
const videoToolboxWasOptional = decodeWithVideoToolbox && !keepsHdrForChrome;
|
|
@@ -13491,6 +13514,17 @@ var FINAL_FRAME_LOGICAL_DURATION_SECONDS = 1e-6;
|
|
|
13491
13514
|
function isVideoPastTimelineEnd(video, timelineEnd) {
|
|
13492
13515
|
return video.start >= timelineEnd;
|
|
13493
13516
|
}
|
|
13517
|
+
function alignClipStartToFirstOutputFrame(video, fps) {
|
|
13518
|
+
if (video.loop || !Number.isFinite(video.start) || video.start < 0 || !(fps > 0)) return;
|
|
13519
|
+
const position = exportClipWindow(video.start, Infinity, fps).start * fps;
|
|
13520
|
+
const firstFrame = Math.abs(position - Math.round(position)) < 1e-6 ? Math.round(position) : Math.ceil(position);
|
|
13521
|
+
const shift = firstFrame / fps - video.start;
|
|
13522
|
+
if (shift === 0) return;
|
|
13523
|
+
const playbackRate = normalizeRateSpec(video.playbackRate);
|
|
13524
|
+
video.mediaStart += sourceTimeAt(playbackRate, shift);
|
|
13525
|
+
video.playbackRate = shiftRateLane(playbackRate, shift);
|
|
13526
|
+
video.start += shift;
|
|
13527
|
+
}
|
|
13494
13528
|
function rebaseVideoToWindow(video, window2) {
|
|
13495
13529
|
if (window2.preserveTimelinePhase) return;
|
|
13496
13530
|
const start = Math.abs(window2.compositionStart) < 1e-9 ? 0 : window2.compositionStart;
|
|
@@ -14301,6 +14335,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
14301
14335
|
}
|
|
14302
14336
|
try {
|
|
14303
14337
|
const metadata = videoMetadata[index] ?? await extractMediaMetadata(videoPath);
|
|
14338
|
+
alignClipStartToFirstOutputFrame(video, fps);
|
|
14304
14339
|
const initialWindow = resolveVideoExtractionWindow(video, metadata, options.timelineEnd);
|
|
14305
14340
|
const window2 = await resolveFinalFrameExtractionWindow(
|
|
14306
14341
|
videoPath,
|
|
@@ -19081,9 +19116,9 @@ export {
|
|
|
19081
19116
|
HF_AUDIO_GROUP_TAG,
|
|
19082
19117
|
HF_AUDIO_GROUP_ATTR,
|
|
19083
19118
|
isSelfOrAncestorHidden,
|
|
19119
|
+
isBlockedNetworkHost,
|
|
19084
19120
|
safeDownloadUrlIdentity,
|
|
19085
19121
|
writeUrlDownloadTelemetry,
|
|
19086
|
-
isBlockedNetworkHost,
|
|
19087
19122
|
assertPublicHttpsUrl,
|
|
19088
19123
|
_setDownloadFetchForTests,
|
|
19089
19124
|
fetchPublicHttpsText,
|
|
@@ -4,6 +4,9 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
readJsonFileText
|
|
9
|
+
} from "./chunk-EHZESMRB.js";
|
|
7
10
|
import {
|
|
8
11
|
parseHTML
|
|
9
12
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -16,7 +19,7 @@ function detectFormat(filePath) {
|
|
|
16
19
|
const ext = extname(filePath).toLowerCase();
|
|
17
20
|
if (ext === ".srt") return "srt";
|
|
18
21
|
if (ext === ".vtt") return "vtt";
|
|
19
|
-
if (ext === ".json") return detectJsonFormat(JSON.parse(
|
|
22
|
+
if (ext === ".json") return detectJsonFormat(JSON.parse(readJsonFileText(filePath)));
|
|
20
23
|
throw new Error(`Unsupported transcript file extension: ${ext}. Use .json, .srt, or .vtt`);
|
|
21
24
|
}
|
|
22
25
|
function detectJsonFormat(raw) {
|
|
@@ -288,7 +291,7 @@ ${cue.text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">")}`
|
|
|
288
291
|
}
|
|
289
292
|
function loadTranscript(filePath) {
|
|
290
293
|
const ext = extname(filePath).toLowerCase();
|
|
291
|
-
const content =
|
|
294
|
+
const content = readJsonFileText(filePath);
|
|
292
295
|
if (ext === ".srt") {
|
|
293
296
|
const words2 = parseSrt(content).map((w, i) => ({ ...w, id: w.id ?? `w${i}` }));
|
|
294
297
|
return { words: words2, format: "srt" };
|
|
@@ -9,27 +9,30 @@ import {
|
|
|
9
9
|
} from "./chunk-TQBQYO4L.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SNFVQDKE.js";
|
|
13
13
|
import {
|
|
14
14
|
serveStaticProjectHtml
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-N6XKBBT5.js";
|
|
16
16
|
import {
|
|
17
17
|
AUDIT_SEEK_OPTIONS,
|
|
18
18
|
installPageFunctionGuard,
|
|
19
19
|
seekCompositionTimeline,
|
|
20
20
|
waitForCompositionFonts,
|
|
21
21
|
waitForRuntimeReady
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JO4LHFFP.js";
|
|
23
23
|
import {
|
|
24
24
|
gotoWhenSent
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-HOTXWVVP.js";
|
|
26
26
|
import {
|
|
27
27
|
pageNavigationTimeoutMs
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BN75GXZM.js";
|
|
29
29
|
import {
|
|
30
30
|
launchManagedBrowser,
|
|
31
31
|
resolveManagedGpuMode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XZEHFUQF.js";
|
|
33
|
+
import {
|
|
34
|
+
readJsonFileText
|
|
35
|
+
} from "./chunk-EHZESMRB.js";
|
|
33
36
|
import {
|
|
34
37
|
defineCommand
|
|
35
38
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -39,7 +42,7 @@ import {
|
|
|
39
42
|
import {
|
|
40
43
|
printDeprecationNotice,
|
|
41
44
|
withMeta
|
|
42
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-K5GMPWMG.js";
|
|
43
46
|
import {
|
|
44
47
|
failureMessage,
|
|
45
48
|
jsonFailure
|
|
@@ -50,7 +53,7 @@ import {
|
|
|
50
53
|
} from "./chunk-DP5LF7GF.js";
|
|
51
54
|
|
|
52
55
|
// src/commands/layout.ts
|
|
53
|
-
import { existsSync as existsSync2, readFileSync
|
|
56
|
+
import { existsSync as existsSync2, readFileSync } from "fs";
|
|
54
57
|
import { dirname, join as join2 } from "path";
|
|
55
58
|
import { fileURLToPath } from "url";
|
|
56
59
|
|
|
@@ -527,7 +530,7 @@ function collectSamplingTargets(assertions) {
|
|
|
527
530
|
}
|
|
528
531
|
|
|
529
532
|
// src/utils/motionSpec.ts
|
|
530
|
-
import { existsSync,
|
|
533
|
+
import { existsSync, readdirSync } from "fs";
|
|
531
534
|
import { basename, join } from "path";
|
|
532
535
|
function isObject(value) {
|
|
533
536
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -620,7 +623,7 @@ function findMotionSpec(projectDir) {
|
|
|
620
623
|
function readMotionSpec(path) {
|
|
621
624
|
let raw;
|
|
622
625
|
try {
|
|
623
|
-
raw = JSON.parse(
|
|
626
|
+
raw = JSON.parse(readJsonFileText(path));
|
|
624
627
|
} catch (err) {
|
|
625
628
|
return { ok: false, errors: [`could not read ${basename(path)}: ${err.message}`] };
|
|
626
629
|
}
|
|
@@ -706,7 +709,7 @@ async function collectTweenBoundaries(page) {
|
|
|
706
709
|
});
|
|
707
710
|
}
|
|
708
711
|
async function bundleProjectHtml(projectDir) {
|
|
709
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
712
|
+
const { bundleToSingleHtml } = await import("./compiler-J7OZQIPD.js");
|
|
710
713
|
return bundleToSingleHtml(projectDir);
|
|
711
714
|
}
|
|
712
715
|
async function alignViewportToComposition(page, url) {
|
|
@@ -725,13 +728,13 @@ async function alignViewportToComposition(page, url) {
|
|
|
725
728
|
async function runLayoutAudit(projectDir, opts) {
|
|
726
729
|
const { ensureBrowser } = await import("./manager-ENFYM32B.js");
|
|
727
730
|
const puppeteer = await import("puppeteer-core");
|
|
728
|
-
const { buildChromeArgs } = await import("./src-
|
|
731
|
+
const { buildChromeArgs } = await import("./src-D7AO7PGH.js");
|
|
729
732
|
const {
|
|
730
733
|
assertWebGpuAdapterAvailable,
|
|
731
734
|
compositionRequiresWebGpu,
|
|
732
735
|
resolveLocalBrowserGpuMode,
|
|
733
736
|
resolveLocalWebGpu
|
|
734
|
-
} = await import("./gpuPolicy-
|
|
737
|
+
} = await import("./gpuPolicy-Z4MM64HY.js");
|
|
735
738
|
const html = await bundleProjectHtml(projectDir);
|
|
736
739
|
const server = await serveStaticProjectHtml(
|
|
737
740
|
projectDir,
|
|
@@ -801,7 +804,7 @@ async function runLayoutAudit(projectDir, opts) {
|
|
|
801
804
|
function loadBrowserScript(name) {
|
|
802
805
|
const candidates = [join2(__dirname, name), join2(__dirname, "commands", name)];
|
|
803
806
|
for (const candidate of candidates) {
|
|
804
|
-
if (existsSync2(candidate)) return
|
|
807
|
+
if (existsSync2(candidate)) return readFileSync(candidate, "utf-8");
|
|
805
808
|
}
|
|
806
809
|
throw new Error(`Missing browser script ${name}`);
|
|
807
810
|
}
|