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
|
@@ -4,13 +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
|
-
TIMING_TOLERANCE_SECONDS,
|
|
9
|
-
resolveCompositionDuration
|
|
10
|
-
} from "./chunk-CZGHFATT.js";
|
|
11
7
|
import {
|
|
12
8
|
findFfBinary
|
|
13
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HYRPH6LL.js";
|
|
14
10
|
import {
|
|
15
11
|
cleanAssetUrl,
|
|
16
12
|
collectSubCompositionSrcs,
|
|
@@ -22,7 +18,11 @@ import {
|
|
|
22
18
|
resolveExistingLocalAsset,
|
|
23
19
|
resolveLocalAssetCandidates,
|
|
24
20
|
resolveProjectRelativeSrc
|
|
25
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AKMY4QVI.js";
|
|
22
|
+
import {
|
|
23
|
+
TIMING_TOLERANCE_SECONDS,
|
|
24
|
+
resolveCompositionDuration
|
|
25
|
+
} from "./chunk-CZGHFATT.js";
|
|
26
26
|
import {
|
|
27
27
|
COLOR_GRADING_SOURCE_TAGS,
|
|
28
28
|
COLOR_GROUP_TAG,
|
|
@@ -49,10 +49,10 @@ import {
|
|
|
49
49
|
rewriteAssetPath,
|
|
50
50
|
spansOverlap,
|
|
51
51
|
validateColorGradingContract
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-C2KEGBR3.js";
|
|
53
53
|
import {
|
|
54
54
|
encodeUrlPath
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-T5ELONXY.js";
|
|
56
56
|
import {
|
|
57
57
|
parseHTML
|
|
58
58
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
isSceneLikeCompositionId,
|
|
64
64
|
parseSlideshowManifest,
|
|
65
65
|
resolveSlideshow
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-EPQC3FGZ.js";
|
|
67
67
|
import {
|
|
68
68
|
base,
|
|
69
69
|
recursive,
|
|
@@ -4680,7 +4680,17 @@ function buildLintContext(html, options = {}) {
|
|
|
4680
4680
|
rootRelativePath: style.rootRelativePath
|
|
4681
4681
|
}))
|
|
4682
4682
|
];
|
|
4683
|
-
const scripts =
|
|
4683
|
+
const scripts = [
|
|
4684
|
+
...structure.scripts,
|
|
4685
|
+
...(options.externalScripts ?? []).map((script) => ({
|
|
4686
|
+
attrs: script.attrs,
|
|
4687
|
+
content: script.content,
|
|
4688
|
+
raw: script.content,
|
|
4689
|
+
index: -1,
|
|
4690
|
+
file: script.file,
|
|
4691
|
+
rootRelativePath: script.rootRelativePath
|
|
4692
|
+
}))
|
|
4693
|
+
];
|
|
4684
4694
|
const compositionIds = collectCompositionIds(tags);
|
|
4685
4695
|
const rootTag = findRootTag(source, tags);
|
|
4686
4696
|
const rootCompositionId = readDecodedAttr(rootTag?.raw || "", "data-composition-id");
|
|
@@ -5268,7 +5278,10 @@ var coreRules = [
|
|
|
5268
5278
|
}
|
|
5269
5279
|
if (/(?:^|\s)data-no-timeline(?=[\s=/]|$)/i.test(rootTag?.attrs || "")) return [];
|
|
5270
5280
|
const findings = [];
|
|
5271
|
-
|
|
5281
|
+
const registered = [source, ...(options.externalScripts ?? []).map((script) => script.content)];
|
|
5282
|
+
if (!registered.some(
|
|
5283
|
+
(text) => TIMELINE_REGISTRY_INIT_PATTERN.test(text) || TIMELINE_REGISTRY_ASSIGN_PATTERN.test(text) || TIMELINE_REGISTRY_OBJECT_LITERAL_PATTERN.test(text)
|
|
5284
|
+
)) {
|
|
5272
5285
|
findings.push({
|
|
5273
5286
|
code: "missing_timeline_registry",
|
|
5274
5287
|
severity: "error",
|
|
@@ -5439,9 +5452,9 @@ var coreRules = [
|
|
|
5439
5452
|
({ scripts, locate }) => {
|
|
5440
5453
|
const findings = [];
|
|
5441
5454
|
for (const script of scripts) {
|
|
5442
|
-
const
|
|
5443
|
-
|
|
5444
|
-
|
|
5455
|
+
const tag = `<script ${script.attrs}>`;
|
|
5456
|
+
const type = readDecodedAttr(tag, "type")?.trim().toLowerCase() ?? "";
|
|
5457
|
+
if (readDecodedAttr(tag, "src") !== null || SCRIPT_SYNTAX_EXEMPT_TYPES.has(type)) continue;
|
|
5445
5458
|
const syntaxError = getInlineScriptSyntaxError(script.content);
|
|
5446
5459
|
if (!syntaxError) continue;
|
|
5447
5460
|
findings.push({
|
|
@@ -10274,6 +10287,9 @@ function extractFontFaceFamilies(styles) {
|
|
|
10274
10287
|
}
|
|
10275
10288
|
return families;
|
|
10276
10289
|
}
|
|
10290
|
+
function declaredFontFamilies(styles, options) {
|
|
10291
|
+
return /* @__PURE__ */ new Set([...extractFontFaceFamilies(styles), ...options.projectFontFamilies ?? []]);
|
|
10292
|
+
}
|
|
10277
10293
|
function normalizeUsedFontName(part) {
|
|
10278
10294
|
const name = part.trim().replace(/\s*!important\s*$/i, "").replace(/^['"]|['"]$/g, "").trim().toLowerCase();
|
|
10279
10295
|
if (!name || name.includes("(") || name.includes(")")) return null;
|
|
@@ -10383,7 +10399,7 @@ var fontRules = [
|
|
|
10383
10399
|
// so there is nothing for the author to act on.
|
|
10384
10400
|
({ styles, options }) => {
|
|
10385
10401
|
if (!options.distributed) return [];
|
|
10386
|
-
const declared =
|
|
10402
|
+
const declared = declaredFontFamilies(styles, options);
|
|
10387
10403
|
const used = extractUsedFontFamilies(styles);
|
|
10388
10404
|
const aliased = collectAliasedFonts(used, declared);
|
|
10389
10405
|
if (aliased.length === 0) return [];
|
|
@@ -10399,7 +10415,7 @@ var fontRules = [
|
|
|
10399
10415
|
({ styles, source, rawSource, options, locate }) => {
|
|
10400
10416
|
if (isRegistrySourceFile(options.filePath) || isRegistryInstalledFile(rawSource)) return [];
|
|
10401
10417
|
const findings = [];
|
|
10402
|
-
const declared =
|
|
10418
|
+
const declared = declaredFontFamilies(styles, options);
|
|
10403
10419
|
const used = extractUsedFontFamilies(styles);
|
|
10404
10420
|
const googleFonts = collectGoogleFontFamilies(source, styles);
|
|
10405
10421
|
const undeclared = used.filter(
|
|
@@ -11232,6 +11248,30 @@ function collectExternalStyles(projectDir, html, compSrcPath) {
|
|
|
11232
11248
|
}
|
|
11233
11249
|
return styles;
|
|
11234
11250
|
}
|
|
11251
|
+
var MAX_EXTERNAL_SCRIPT_BYTES = 1e6;
|
|
11252
|
+
function collectExternalScripts(projectDir, html, compSrcPath) {
|
|
11253
|
+
const scripts = [];
|
|
11254
|
+
const { document } = parseHTML(html);
|
|
11255
|
+
for (const element of querySelectorAllIncludingTemplates(document, "script[src]")) {
|
|
11256
|
+
const src = element.getAttribute("src") ?? "";
|
|
11257
|
+
if (!isLocalStylesheetHref(src) || /\.min\.m?js(?:[?#]|$)/i.test(src)) continue;
|
|
11258
|
+
const path = src.split(/[?#]/)[0] ?? src;
|
|
11259
|
+
const besideFile = compSrcPath ? join3(dirname2(compSrcPath), path) : path;
|
|
11260
|
+
const script = resolveExistingLocalAsset(projectDir, besideFile) ?? (compSrcPath && staysInsideProjectRoot(path) ? resolveExistingLocalAsset(projectDir, path) : null);
|
|
11261
|
+
if (!script) continue;
|
|
11262
|
+
const read = readProjectFile(script.resolved);
|
|
11263
|
+
if (read.kind !== "file" || read.text.length > MAX_EXTERNAL_SCRIPT_BYTES) continue;
|
|
11264
|
+
const attrs = Array.from(element.attributes).map(({ name, value }) => `${name}="${value.replace(/&/g, "&").replace(/"/g, """)}"`).join(" ");
|
|
11265
|
+
scripts.push({
|
|
11266
|
+
src,
|
|
11267
|
+
attrs,
|
|
11268
|
+
content: read.text,
|
|
11269
|
+
file: join3(projectDir, script.rootRelativePath),
|
|
11270
|
+
rootRelativePath: script.rootRelativePath
|
|
11271
|
+
});
|
|
11272
|
+
}
|
|
11273
|
+
return scripts;
|
|
11274
|
+
}
|
|
11235
11275
|
function collectCssSources(projectDir, html, compSrcPath) {
|
|
11236
11276
|
const sources = [];
|
|
11237
11277
|
const { document } = parseHTML(html);
|
|
@@ -11265,6 +11305,42 @@ function resolveCssAssetCandidates(projectDir, url, htmlCompSrcPath, cssRootRela
|
|
|
11265
11305
|
}
|
|
11266
11306
|
return resolveLocalAssetCandidates(projectDir, url);
|
|
11267
11307
|
}
|
|
11308
|
+
function mountedSources(projectDir, rootHtml, rootCompSrcPath) {
|
|
11309
|
+
const sources = [{ html: rootHtml, compSrcPath: rootCompSrcPath }];
|
|
11310
|
+
const seen = /* @__PURE__ */ new Set();
|
|
11311
|
+
for (const source of sources) {
|
|
11312
|
+
const { document } = parseHTML(source.html);
|
|
11313
|
+
for (const host of querySelectorAllIncludingTemplates(document, "[data-composition-src]")) {
|
|
11314
|
+
const src = host.getAttribute("data-composition-src")?.trim();
|
|
11315
|
+
if (!src || isUnresolvedAssetPlaceholder(src) || isRemoteOrInlineUrl(src)) continue;
|
|
11316
|
+
const path = resolve(projectDir, src);
|
|
11317
|
+
if (seen.has(path) || !isWithinProjectRoot(projectDir, path)) continue;
|
|
11318
|
+
seen.add(path);
|
|
11319
|
+
const read = readProjectFile(path);
|
|
11320
|
+
if (read.kind !== "file") continue;
|
|
11321
|
+
sources.push({
|
|
11322
|
+
html: read.text,
|
|
11323
|
+
compSrcPath: relative2(resolve(projectDir), path).replace(/\\/g, "/")
|
|
11324
|
+
});
|
|
11325
|
+
}
|
|
11326
|
+
}
|
|
11327
|
+
return sources;
|
|
11328
|
+
}
|
|
11329
|
+
function declaredProjectFontFamilies(projectDir, sources) {
|
|
11330
|
+
const families = /* @__PURE__ */ new Set();
|
|
11331
|
+
for (const { html, compSrcPath } of sources) {
|
|
11332
|
+
const { document } = parseHTML(html);
|
|
11333
|
+
const styles = [
|
|
11334
|
+
...querySelectorAllIncludingTemplates(document, "style").map((style) => ({
|
|
11335
|
+
content: style.textContent ?? ""
|
|
11336
|
+
})),
|
|
11337
|
+
...collectLocalStylesheets(projectDir, document, compSrcPath)
|
|
11338
|
+
];
|
|
11339
|
+
for (const family of extractFontFaceFamilies(styles)) families.add(family);
|
|
11340
|
+
for (const family of collectGoogleFontFamilies(html, styles)) families.add(family);
|
|
11341
|
+
}
|
|
11342
|
+
return [...families];
|
|
11343
|
+
}
|
|
11268
11344
|
async function lintProject(projectDir, entryFile, hostOptions = {}) {
|
|
11269
11345
|
const indexPath = entryFile ? resolve(entryFile) : resolve(projectDir, "index.html");
|
|
11270
11346
|
if (entryFile && !isWithinProjectRoot(projectDir, indexPath)) {
|
|
@@ -11277,11 +11353,17 @@ async function lintProject(projectDir, entryFile, hostOptions = {}) {
|
|
|
11277
11353
|
let totalWarnings = 0;
|
|
11278
11354
|
let totalInfos = 0;
|
|
11279
11355
|
const rootHtml = readFileSync(indexPath, "utf-8");
|
|
11356
|
+
const projectFontFamilies = declaredProjectFontFamilies(
|
|
11357
|
+
projectDir,
|
|
11358
|
+
mountedSources(projectDir, rootHtml, rootCompSrcPath)
|
|
11359
|
+
);
|
|
11280
11360
|
const rootResult = await lintHyperframeHtml(rootHtml, {
|
|
11281
11361
|
...hostOptions,
|
|
11282
11362
|
filePath: indexPath,
|
|
11283
11363
|
compSrcPath: rootFile,
|
|
11284
|
-
externalStyles: collectExternalStyles(projectDir, rootHtml, rootCompSrcPath)
|
|
11364
|
+
externalStyles: collectExternalStyles(projectDir, rootHtml, rootCompSrcPath),
|
|
11365
|
+
projectFontFamilies,
|
|
11366
|
+
externalScripts: collectExternalScripts(projectDir, rootHtml, rootCompSrcPath)
|
|
11285
11367
|
});
|
|
11286
11368
|
results.push({ file: rootFile, result: rootResult, contentHash: contentDigest(rootHtml) });
|
|
11287
11369
|
totalErrors += rootResult.errorCount;
|
|
@@ -11315,7 +11397,9 @@ async function lintProject(projectDir, entryFile, hostOptions = {}) {
|
|
|
11315
11397
|
filePath,
|
|
11316
11398
|
isSubComposition: true,
|
|
11317
11399
|
compSrcPath,
|
|
11318
|
-
externalStyles: collectExternalStyles(projectDir, html, compSrcPath)
|
|
11400
|
+
externalStyles: collectExternalStyles(projectDir, html, compSrcPath),
|
|
11401
|
+
projectFontFamilies,
|
|
11402
|
+
externalScripts: collectExternalScripts(projectDir, html, compSrcPath)
|
|
11319
11403
|
});
|
|
11320
11404
|
results.push({
|
|
11321
11405
|
file: `compositions/${file}`,
|
|
@@ -11333,6 +11417,7 @@ async function lintProject(projectDir, entryFile, hostOptions = {}) {
|
|
|
11333
11417
|
...lintAudioSrcNotFound(projectDir, allHtmlSources),
|
|
11334
11418
|
...lintMissingLocalAsset(projectDir, allHtmlSources),
|
|
11335
11419
|
...lintTextureMaskAssetNotFound(projectDir, allHtmlSources),
|
|
11420
|
+
...lintLinkedStylesheetAssets(projectDir, allHtmlSources),
|
|
11336
11421
|
...!entryFile ? lintMultipleRootCompositions(projectDir) : [],
|
|
11337
11422
|
...!entryFile ? lintBlankRootWithStandaloneComposition(rootHtml, allHtmlSources) : [],
|
|
11338
11423
|
...lintDuplicateAudioTracks(projectDir, rootHtml),
|
|
@@ -11542,6 +11627,62 @@ function lintTextureMaskAssetNotFound(projectDir, htmlSources) {
|
|
|
11542
11627
|
};
|
|
11543
11628
|
});
|
|
11544
11629
|
}
|
|
11630
|
+
function nearestAncestorMatch(projectDir, cssRootRelativePath, url) {
|
|
11631
|
+
const root = resolve(projectDir);
|
|
11632
|
+
for (let dir = resolve(root, dirname2(cssRootRelativePath), ".."); ; dir = dirname2(dir)) {
|
|
11633
|
+
if (!isWithinProjectRoot(projectDir, dir)) return null;
|
|
11634
|
+
if (resolveLocalAssetCandidates(projectDir, relative2(root, join3(dir, url))).some(existsSync2)) {
|
|
11635
|
+
return relative2(dirname2(resolve(root, cssRootRelativePath)), join3(dir, url)).replace(
|
|
11636
|
+
/\\/g,
|
|
11637
|
+
"/"
|
|
11638
|
+
);
|
|
11639
|
+
}
|
|
11640
|
+
if (dir === root) return null;
|
|
11641
|
+
}
|
|
11642
|
+
}
|
|
11643
|
+
function lintLinkedStylesheetAssets(projectDir, htmlSources) {
|
|
11644
|
+
const seen = /* @__PURE__ */ new Set();
|
|
11645
|
+
const findings = [];
|
|
11646
|
+
for (const { html, compSrcPath } of htmlSources) {
|
|
11647
|
+
for (const { content, rootRelativePath } of collectLocalStylesheets(
|
|
11648
|
+
projectDir,
|
|
11649
|
+
parseHTML(html).document,
|
|
11650
|
+
compSrcPath
|
|
11651
|
+
)) {
|
|
11652
|
+
let root;
|
|
11653
|
+
try {
|
|
11654
|
+
root = postcss4.parse(content);
|
|
11655
|
+
} catch (error) {
|
|
11656
|
+
if (!(error instanceof postcss4.CssSyntaxError)) throw error;
|
|
11657
|
+
continue;
|
|
11658
|
+
}
|
|
11659
|
+
root.walkDecls((declaration) => {
|
|
11660
|
+
if (/^(?:-webkit-)?mask-image$/i.test(declaration.prop)) return;
|
|
11661
|
+
for (const match of declaration.value.matchAll(CSS_URL_RE)) {
|
|
11662
|
+
const rawUrl = match[1] ?? match[2] ?? match[3] ?? "";
|
|
11663
|
+
if (isUnresolvedAssetPlaceholder(rawUrl)) continue;
|
|
11664
|
+
const url = cleanAssetUrl(rawUrl);
|
|
11665
|
+
if (!url || isRemoteOrInlineUrl(url) || url.startsWith("/")) continue;
|
|
11666
|
+
if (resolveCssAssetCandidates(projectDir, url, void 0, rootRelativePath).some(existsSync2))
|
|
11667
|
+
continue;
|
|
11668
|
+
const key = `${rootRelativePath}\0${url}`;
|
|
11669
|
+
if (seen.has(key)) continue;
|
|
11670
|
+
seen.add(key);
|
|
11671
|
+
const found = nearestAncestorMatch(projectDir, rootRelativePath, url);
|
|
11672
|
+
findings.push({
|
|
11673
|
+
code: "missing_stylesheet_asset",
|
|
11674
|
+
severity: "warning",
|
|
11675
|
+
file: join3(projectDir, rootRelativePath),
|
|
11676
|
+
message: `${rootRelativePath} references url(${url}), which is not found beside the stylesheet (looked in ${dirname2(rootRelativePath)}/). The browser resolves url() from the stylesheet, so the file will 404.`,
|
|
11677
|
+
fixHint: found ? `A file exists at "${found}" relative to the stylesheet. Change the url() to that path.` : `Add "${url}" beside the stylesheet, or point the url() at an existing file.`
|
|
11678
|
+
});
|
|
11679
|
+
}
|
|
11680
|
+
});
|
|
11681
|
+
}
|
|
11682
|
+
}
|
|
11683
|
+
return findings;
|
|
11684
|
+
}
|
|
11685
|
+
var PAGES_OPENED_BESIDE_INDEX = /* @__PURE__ */ new Set(["caption-skin.html", "podcast-lanes.html"]);
|
|
11545
11686
|
function lintMultipleRootCompositions(projectDir) {
|
|
11546
11687
|
const findings = [];
|
|
11547
11688
|
try {
|
|
@@ -11550,7 +11691,7 @@ function lintMultipleRootCompositions(projectDir) {
|
|
|
11550
11691
|
);
|
|
11551
11692
|
const rootCompositions = [];
|
|
11552
11693
|
for (const file of rootHtmlFiles) {
|
|
11553
|
-
if (file
|
|
11694
|
+
if (PAGES_OPENED_BESIDE_INDEX.has(file)) continue;
|
|
11554
11695
|
const content = readFileSync(join3(projectDir, file), "utf-8");
|
|
11555
11696
|
if (/data-composition-id/i.test(content)) {
|
|
11556
11697
|
rootCompositions.push(file);
|
|
@@ -9,7 +9,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
9
9
|
import { execFileSync } from "child_process";
|
|
10
10
|
import { accessSync, closeSync, constants, existsSync, openSync, readSync } from "fs";
|
|
11
11
|
import { createRequire } from "module";
|
|
12
|
-
import { delimiter, dirname, join, resolve } from "path";
|
|
12
|
+
import { basename, delimiter, dirname, join, resolve } from "path";
|
|
13
13
|
var FFMPEG_PATH_ENV = "HYPERFRAMES_FFMPEG_PATH";
|
|
14
14
|
var FFPROBE_PATH_ENV = "HYPERFRAMES_FFPROBE_PATH";
|
|
15
15
|
var ENV_BY_NAME = {
|
|
@@ -47,12 +47,13 @@ function runsOnThisMac(candidate) {
|
|
|
47
47
|
return true;
|
|
48
48
|
}
|
|
49
49
|
if (!isX86OnlyMachO(candidate)) return true;
|
|
50
|
-
|
|
50
|
+
const name = basename(candidate);
|
|
51
|
+
if (!skippedX86Binaries.has(name)) skippedX86Binaries.set(name, candidate);
|
|
51
52
|
return false;
|
|
52
53
|
}
|
|
53
|
-
var
|
|
54
|
-
function getSkippedX86Binary() {
|
|
55
|
-
return
|
|
54
|
+
var skippedX86Binaries = /* @__PURE__ */ new Map();
|
|
55
|
+
function getSkippedX86Binary(name) {
|
|
56
|
+
return skippedX86Binaries.get(name);
|
|
56
57
|
}
|
|
57
58
|
function isExecutablePathCandidate(candidate) {
|
|
58
59
|
if (process.platform === "win32") return existsSync(candidate);
|
|
@@ -99,7 +100,7 @@ function binaryFileName(name) {
|
|
|
99
100
|
}
|
|
100
101
|
function findInProjectLocalBin(name) {
|
|
101
102
|
const candidate = resolve(".hyperframes", "bin", binaryFileName(name));
|
|
102
|
-
return existsSync(candidate) ? candidate : void 0;
|
|
103
|
+
return existsSync(candidate) && runsOnThisMac(candidate) ? candidate : void 0;
|
|
103
104
|
}
|
|
104
105
|
function tryResolve(fromFile, request) {
|
|
105
106
|
try {
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
DEFAULT_REGISTRY_URL,
|
|
9
9
|
fetchItemFile,
|
|
10
10
|
validRegistryItem
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IJI2JNN7.js";
|
|
12
12
|
import {
|
|
13
13
|
publishRegistryFile,
|
|
14
14
|
registryTargetPath
|
|
15
15
|
} from "./chunk-T2WJO4XM.js";
|
|
16
16
|
import {
|
|
17
17
|
validateVariables
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OWFSGDQS.js";
|
|
19
19
|
import {
|
|
20
20
|
realProjectRoot
|
|
21
21
|
} from "./chunk-OFQWTKPW.js";
|
|
22
22
|
import {
|
|
23
23
|
isCompositionVariable
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-C2KEGBR3.js";
|
|
25
25
|
|
|
26
26
|
// src/registry/installer.ts
|
|
27
27
|
import { createHash } from "crypto";
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
DEFAULT_VP9_CPU_USED,
|
|
9
9
|
isHttpUrl,
|
|
10
10
|
runFfmpeg
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4XQQQ4KN.js";
|
|
12
12
|
import {
|
|
13
13
|
renameWithRetry
|
|
14
14
|
} from "./chunk-YWRUQ7XZ.js";
|
|
15
15
|
import {
|
|
16
16
|
parseAnimatedGifMetadata
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OWFSGDQS.js";
|
|
18
18
|
import {
|
|
19
19
|
parseHTML
|
|
20
20
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -6,23 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
gotoWhenSent
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HOTXWVVP.js";
|
|
10
10
|
import {
|
|
11
11
|
pageNavigationTimeoutMs,
|
|
12
12
|
windowsChromeCrashRemediation
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BN75GXZM.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveCompositionViewportFromHtml
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PBPHKD56.js";
|
|
17
17
|
import {
|
|
18
18
|
launchManagedBrowser,
|
|
19
19
|
resolveManagedGpuMode,
|
|
20
20
|
rethrowAfterBrowserCleanup
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XZEHFUQF.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveLocalBrowserGpuMode,
|
|
24
24
|
resolveLocalWebGpu
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-B5HFCGI7.js";
|
|
26
26
|
import {
|
|
27
27
|
c
|
|
28
28
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
assertWebGpuAdapterAvailable,
|
|
31
31
|
compositionRequiresWebGpu,
|
|
32
32
|
oneProcessOverPipe
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4XQQQ4KN.js";
|
|
34
34
|
import {
|
|
35
35
|
normalizeErrorMessage
|
|
36
36
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -138,7 +138,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
138
138
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
139
139
|
});
|
|
140
140
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
141
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
141
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-D7AO7PGH.js");
|
|
142
142
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
143
143
|
await waitForImagesReady(
|
|
144
144
|
page,
|
|
@@ -187,7 +187,7 @@ async function installPageFunctionGuard(page) {
|
|
|
187
187
|
async function openSettledCompositionPage(html, url, options) {
|
|
188
188
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
189
189
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
190
|
-
const answer = (await import("./staticProjectServer-
|
|
190
|
+
const answer = (await import("./staticProjectServer-Q23A6XU2.js")).inProcessAnswer(url);
|
|
191
191
|
const noListen = answer !== void 0;
|
|
192
192
|
let chromeBrowser;
|
|
193
193
|
try {
|
|
@@ -198,7 +198,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
198
198
|
options.onBrowserReady?.();
|
|
199
199
|
const page = await chromeBrowser.newPage();
|
|
200
200
|
await installPageFunctionGuard(page);
|
|
201
|
-
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-
|
|
201
|
+
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-D7AO7PGH.js");
|
|
202
202
|
await installMediaRenderIdBridge(page);
|
|
203
203
|
await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
|
|
204
204
|
await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
|
|
@@ -219,7 +219,7 @@ async function launchCompositionBrowser(html, noListen, options) {
|
|
|
219
219
|
const { ensureBrowser, findSystemBrowser } = await import("./manager-ENFYM32B.js");
|
|
220
220
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
221
221
|
const puppeteer = await import("puppeteer-core");
|
|
222
|
-
const { buildChromeArgs } = await import("./src-
|
|
222
|
+
const { buildChromeArgs } = await import("./src-D7AO7PGH.js");
|
|
223
223
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
224
224
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
225
225
|
let softwareWebGpu = false;
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
ratioOf,
|
|
9
|
+
readClip,
|
|
10
|
+
round
|
|
11
|
+
} from "./chunk-VJM6NX54.js";
|
|
12
|
+
|
|
13
|
+
// src/measure/look.ts
|
|
14
|
+
var LOOK_FLOOR = { luma: 1, contrast: 1, saturation: 0.01 };
|
|
15
|
+
function look(clip, fps = 2, roi) {
|
|
16
|
+
const { frames } = readClip(clip, { fps, width: 160, roi });
|
|
17
|
+
const per = frames.map((f) => {
|
|
18
|
+
let [l, l2, s, warm, mid, tinted] = [0, 0, 0, 0, 0, 0];
|
|
19
|
+
const n = f.length / 3;
|
|
20
|
+
for (let i = 0; i < f.length; i += 3) {
|
|
21
|
+
const [r, g, b] = [f[i], f[i + 1], f[i + 2]];
|
|
22
|
+
const y = 0.299 * r + 0.587 * g + 0.114 * b;
|
|
23
|
+
const [mx, mn] = [Math.max(r, g, b), Math.min(r, g, b)];
|
|
24
|
+
l += y;
|
|
25
|
+
l2 += y * y;
|
|
26
|
+
s += mx ? (mx - mn) / mx : 0;
|
|
27
|
+
warm += r - b;
|
|
28
|
+
if (y > 40 && y < 220) {
|
|
29
|
+
mid++;
|
|
30
|
+
if (mx - mn > 25) tinted++;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const mean = l / n;
|
|
34
|
+
return {
|
|
35
|
+
luma: mean,
|
|
36
|
+
contrast: Math.sqrt(Math.max(0, l2 / n - mean * mean)),
|
|
37
|
+
sat: s / n,
|
|
38
|
+
warm: warm / n,
|
|
39
|
+
bw: tinted < 0.02 * Math.max(1, mid)
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
const avg = (k) => per.reduce((a, p) => a + p[k], 0) / (per.length || 1);
|
|
43
|
+
return {
|
|
44
|
+
frames: per.length,
|
|
45
|
+
luma: round(avg("luma"), 1),
|
|
46
|
+
contrast: round(avg("contrast"), 1),
|
|
47
|
+
saturation: round(avg("sat"), 3),
|
|
48
|
+
bw_share: round(per.filter((p) => p.bw).length / (per.length || 1), 2),
|
|
49
|
+
warmth: round(avg("warm"), 1)
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function compareLook(ref, yours) {
|
|
53
|
+
const ratio = (k) => round(ratioOf(yours[k], ref[k], LOOK_FLOOR[k]), 2);
|
|
54
|
+
return {
|
|
55
|
+
luma_ratio: ratio("luma"),
|
|
56
|
+
contrast_ratio: ratio("contrast"),
|
|
57
|
+
saturation_ratio: ratio("saturation"),
|
|
58
|
+
bw_share_diff: round(yours.bw_share - ref.bw_share, 2),
|
|
59
|
+
warmth_diff: round(yours.warmth - ref.warmth, 1)
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function sameLook(c) {
|
|
63
|
+
return Math.abs(c.luma_ratio - 1) <= 0.15 && Math.abs(c.contrast_ratio - 1) <= 0.25 && Math.abs(c.saturation_ratio - 1) <= 0.25 && Math.abs(c.warmth_diff) <= 12;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export {
|
|
67
|
+
look,
|
|
68
|
+
compareLook,
|
|
69
|
+
sameLook
|
|
70
|
+
};
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
probeAudioTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UQVAAEPQ.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveWithinProject
|
|
12
12
|
} from "./chunk-ALVXFXUG.js";
|
|
@@ -14,18 +14,18 @@ import {
|
|
|
14
14
|
MAX_AUDIO_GAIN_DB,
|
|
15
15
|
formatAudioGain,
|
|
16
16
|
isAudibleVideoElement
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UQECNXFA.js";
|
|
18
18
|
import {
|
|
19
19
|
findFfBinary
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HYRPH6LL.js";
|
|
21
21
|
import {
|
|
22
22
|
decodeWellFormedEscapes,
|
|
23
23
|
decodedUrlPath,
|
|
24
24
|
readMediaOffsetSeconds
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-C2KEGBR3.js";
|
|
26
26
|
import {
|
|
27
27
|
decodeAuthoredAttribute
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-T5ELONXY.js";
|
|
29
29
|
|
|
30
30
|
// ../studio-server/dist/chunk-H4NVSSDJ.js
|
|
31
31
|
import { execFile } from "child_process";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
shouldTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-45UOXUUH.js";
|
|
10
10
|
|
|
11
11
|
// src/telemetry/renderObservability.ts
|
|
12
12
|
function renderObservabilityTelemetryPayload(observability) {
|
|
@@ -4,35 +4,35 @@ 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
|
-
readJsonFlag
|
|
9
|
-
} from "./chunk-XFMO3BEN.js";
|
|
10
7
|
import {
|
|
11
8
|
RegistryCompatibilityError,
|
|
12
9
|
gateRegistryItemsCompatibility
|
|
13
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BDEBKAD2.js";
|
|
14
11
|
import {
|
|
15
12
|
DEFAULT_PROJECT_CONFIG,
|
|
16
13
|
createProjectConfig,
|
|
17
14
|
loadProjectConfig,
|
|
18
15
|
projectConfigPath,
|
|
19
16
|
recordProjectRegistryItems
|
|
20
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2GMHYOV3.js";
|
|
21
18
|
import {
|
|
22
19
|
resolveItemWithDependencies,
|
|
23
20
|
resolveItemsByTag
|
|
24
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MUHOFRGW.js";
|
|
25
22
|
import {
|
|
26
23
|
InvalidVariableValuesError,
|
|
27
24
|
prepareItem,
|
|
28
25
|
publishItem
|
|
29
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IQ7FABPU.js";
|
|
30
27
|
import {
|
|
31
28
|
DEFAULT_REGISTRY_URL
|
|
32
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-IJI2JNN7.js";
|
|
30
|
+
import {
|
|
31
|
+
readJsonFlag
|
|
32
|
+
} from "./chunk-EHZESMRB.js";
|
|
33
33
|
import {
|
|
34
34
|
trackRegistryItemAdded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-LAIGIOEA.js";
|
|
36
36
|
import {
|
|
37
37
|
defineCommand
|
|
38
38
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-2GICKZ3I.js";
|
|
42
42
|
import {
|
|
43
43
|
ITEM_TYPE_DIRS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-OWFSGDQS.js";
|
|
45
45
|
import {
|
|
46
46
|
isProjectRootMissing,
|
|
47
47
|
realpath
|
|
@@ -409,6 +409,15 @@ var add_default = defineCommand({
|
|
|
409
409
|
const projectDir = resolve(args.dir ?? process.cwd());
|
|
410
410
|
const json = args.json === true;
|
|
411
411
|
const skipClipboard = args.clipboard === false;
|
|
412
|
+
if (!existsSync(projectDir)) {
|
|
413
|
+
failCaught(
|
|
414
|
+
new Error(
|
|
415
|
+
`Project folder not found: ${projectDir}. --dir is the project root, not where the block lands (that is its compositions/ folder), and it must already exist. Create one with \`hyperframes init <dir>\`.`
|
|
416
|
+
),
|
|
417
|
+
json,
|
|
418
|
+
c.error
|
|
419
|
+
);
|
|
420
|
+
}
|
|
412
421
|
const hasConfigBefore = existsSync(projectConfigPath(projectDir));
|
|
413
422
|
const names = Array.isArray(args._) && args._.length > 1 ? args._.map(String) : [args.name];
|
|
414
423
|
if (names.length > 1) {
|