@ignix-social/editor 0.1.0
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/LICENSE +190 -0
- package/NOTICE +54 -0
- package/README.md +23 -0
- package/bin/ignix-editor.mjs +8 -0
- package/package.json +53 -0
- package/patches/index.mjs +53 -0
- package/scripts/build-ffmpeg-macos.sh +35 -0
- package/scripts/build-whisper-macos.sh +21 -0
- package/scripts/vendor.mjs +41 -0
- package/skills/ignix-editor/SKILL.md +132 -0
- package/src/audio.mjs +31 -0
- package/src/binaries.json +46 -0
- package/src/binaries.mjs +83 -0
- package/src/cli.mjs +254 -0
- package/src/prepare.mjs +74 -0
- package/src/runtime/ignix-frame.js +92 -0
- package/src/transcribe.mjs +71 -0
- package/src/validate.mjs +71 -0
- package/templates/blank/index.html +41 -0
- package/vendor/hyperframes/README.md +181 -0
- package/vendor/hyperframes/UPSTREAM.json +12 -0
- package/vendor/hyperframes/bin/hyperframes-localize-fonts.mjs +12 -0
- package/vendor/hyperframes/bin/hyperframes.mjs +11 -0
- package/vendor/hyperframes/dist/add-LR3ZR2A5.js +79 -0
- package/vendor/hyperframes/dist/agentPromptGenerator-VIIPZCJ3.js +143 -0
- package/vendor/hyperframes/dist/animatedGifPrep-P2T6YM7Z.js +34 -0
- package/vendor/hyperframes/dist/asset-BE2DOV72.js +26 -0
- package/vendor/hyperframes/dist/assetCataloger-VBLPHX24.js +340 -0
- package/vendor/hyperframes/dist/auth-RCQB2ZT7.js +60 -0
- package/vendor/hyperframes/dist/autoUpdate-RJAX3DAZ.js +268 -0
- package/vendor/hyperframes/dist/backgroundChecks-H2LCUIMJ.js +61 -0
- package/vendor/hyperframes/dist/backgroundChecksWorker.js +26 -0
- package/vendor/hyperframes/dist/batchRender-FT7AP7XH.js +355 -0
- package/vendor/hyperframes/dist/beat-analyzer.global.js +338 -0
- package/vendor/hyperframes/dist/beats-Y2EOP72P.js +309 -0
- package/vendor/hyperframes/dist/benchmark-MZ7GY3JW.js +231 -0
- package/vendor/hyperframes/dist/browser-HUTAMRQE.js +237 -0
- package/vendor/hyperframes/dist/bundleWithLocalizedFonts-5QOPOB5D.js +52 -0
- package/vendor/hyperframes/dist/capture-RLZA6EMR.js +4079 -0
- package/vendor/hyperframes/dist/capture-SZZ4IYJK.js +290 -0
- package/vendor/hyperframes/dist/captureFile-LYOJOUIE.js +15 -0
- package/vendor/hyperframes/dist/captureTimeout-PA4FYWT5.js +27 -0
- package/vendor/hyperframes/dist/catalog-KYU55EWR.js +1001 -0
- package/vendor/hyperframes/dist/check-TCG4PXLR.js +1697 -0
- package/vendor/hyperframes/dist/checkBrowser-RPMO4OW5.js +1032 -0
- package/vendor/hyperframes/dist/chunk-2EAXUCCE.js +88 -0
- package/vendor/hyperframes/dist/chunk-2EGFTPWD.js +1077 -0
- package/vendor/hyperframes/dist/chunk-2PSPARWP.js +6058 -0
- package/vendor/hyperframes/dist/chunk-2YN64IN5.js +5747 -0
- package/vendor/hyperframes/dist/chunk-3GXQPCJC.js +682 -0
- package/vendor/hyperframes/dist/chunk-3ZP5DXE7.js +15 -0
- package/vendor/hyperframes/dist/chunk-4NWOGZZS.js +1990 -0
- package/vendor/hyperframes/dist/chunk-4PFZPP2N.js +587 -0
- package/vendor/hyperframes/dist/chunk-4THIAPBL.js +128 -0
- package/vendor/hyperframes/dist/chunk-4YYJOFKS.js +28 -0
- package/vendor/hyperframes/dist/chunk-54HJ63Q2.js +29 -0
- package/vendor/hyperframes/dist/chunk-5ETJX6WM.js +89 -0
- package/vendor/hyperframes/dist/chunk-5IAKAQA7.js +389 -0
- package/vendor/hyperframes/dist/chunk-5Z63TBTX.js +37 -0
- package/vendor/hyperframes/dist/chunk-6BEFEWFB.js +25 -0
- package/vendor/hyperframes/dist/chunk-6CSYCFQV.js +68 -0
- package/vendor/hyperframes/dist/chunk-6CTIGJY7.js +154 -0
- package/vendor/hyperframes/dist/chunk-7HG4BFIN.js +93 -0
- package/vendor/hyperframes/dist/chunk-7JZ4FXP2.js +118 -0
- package/vendor/hyperframes/dist/chunk-A2Z4Z4VL.js +2961 -0
- package/vendor/hyperframes/dist/chunk-AMKC3AXA.js +25 -0
- package/vendor/hyperframes/dist/chunk-AVUUN2XD.js +4847 -0
- package/vendor/hyperframes/dist/chunk-AWDFDFI3.js +46 -0
- package/vendor/hyperframes/dist/chunk-AWNBM3MZ.js +94 -0
- package/vendor/hyperframes/dist/chunk-BXCMXMJQ.js +73 -0
- package/vendor/hyperframes/dist/chunk-BZ56MTDX.js +6 -0
- package/vendor/hyperframes/dist/chunk-CFKU7HTK.js +171 -0
- package/vendor/hyperframes/dist/chunk-CWPVM2QV.js +308 -0
- package/vendor/hyperframes/dist/chunk-DPVXBVLL.js +31292 -0
- package/vendor/hyperframes/dist/chunk-DQBY7FRR.js +397 -0
- package/vendor/hyperframes/dist/chunk-E6RPWJVC.js +213 -0
- package/vendor/hyperframes/dist/chunk-EISRN4E6.js +294 -0
- package/vendor/hyperframes/dist/chunk-EOVYQ3IG.js +143 -0
- package/vendor/hyperframes/dist/chunk-F3WZGU7C.js +479 -0
- package/vendor/hyperframes/dist/chunk-FCSIGXXP.js +366 -0
- package/vendor/hyperframes/dist/chunk-FI4I7CME.js +56 -0
- package/vendor/hyperframes/dist/chunk-FLWXXDNS.js +15 -0
- package/vendor/hyperframes/dist/chunk-GK4AIFIH.js +11171 -0
- package/vendor/hyperframes/dist/chunk-GMECXFAN.js +57 -0
- package/vendor/hyperframes/dist/chunk-GULOKZLI.js +155 -0
- package/vendor/hyperframes/dist/chunk-H4YZZ2VQ.js +68 -0
- package/vendor/hyperframes/dist/chunk-H6QMKUYA.js +477 -0
- package/vendor/hyperframes/dist/chunk-HBBJFK6I.js +273 -0
- package/vendor/hyperframes/dist/chunk-HRUGC23L.js +212 -0
- package/vendor/hyperframes/dist/chunk-HVW7ABXD.js +19 -0
- package/vendor/hyperframes/dist/chunk-HW6OYASV.js +344 -0
- package/vendor/hyperframes/dist/chunk-HWKCIWQT.js +3578 -0
- package/vendor/hyperframes/dist/chunk-I465DBM6.js +1214 -0
- package/vendor/hyperframes/dist/chunk-IGLEPPTN.js +24 -0
- package/vendor/hyperframes/dist/chunk-IGNAAHS3.js +433 -0
- package/vendor/hyperframes/dist/chunk-IHFUKJOR.js +85 -0
- package/vendor/hyperframes/dist/chunk-IQ3OUQ5Z.js +213 -0
- package/vendor/hyperframes/dist/chunk-ISN5GRYI.js +20 -0
- package/vendor/hyperframes/dist/chunk-IUZFXWSV.js +446 -0
- package/vendor/hyperframes/dist/chunk-JH556Q42.js +647 -0
- package/vendor/hyperframes/dist/chunk-JTHMTOMQ.js +601 -0
- package/vendor/hyperframes/dist/chunk-K2EQN4VU.js +405 -0
- package/vendor/hyperframes/dist/chunk-K2FTXJYH.js +16044 -0
- package/vendor/hyperframes/dist/chunk-K4WIOZFP.js +32 -0
- package/vendor/hyperframes/dist/chunk-K4WKGXRC.js +18 -0
- package/vendor/hyperframes/dist/chunk-KBJUXVOJ.js +172 -0
- package/vendor/hyperframes/dist/chunk-KC5XXX3X.js +590 -0
- package/vendor/hyperframes/dist/chunk-KNU5COPB.js +29 -0
- package/vendor/hyperframes/dist/chunk-KZI44OPA.js +185 -0
- package/vendor/hyperframes/dist/chunk-L3YOGIPG.js +48 -0
- package/vendor/hyperframes/dist/chunk-LAOCA3MQ.js +189 -0
- package/vendor/hyperframes/dist/chunk-LCSMOLGX.js +312 -0
- package/vendor/hyperframes/dist/chunk-LFGJWOVA.js +61 -0
- package/vendor/hyperframes/dist/chunk-LHSR3M4M.js +498 -0
- package/vendor/hyperframes/dist/chunk-LYNI3FOL.js +123 -0
- package/vendor/hyperframes/dist/chunk-M2WBOQ2Q.js +54 -0
- package/vendor/hyperframes/dist/chunk-MRF4AMKD.js +104 -0
- package/vendor/hyperframes/dist/chunk-MWB3ZIFM.js +852 -0
- package/vendor/hyperframes/dist/chunk-NGKM64BP.js +39 -0
- package/vendor/hyperframes/dist/chunk-NXMYHJAL.js +43 -0
- package/vendor/hyperframes/dist/chunk-OAF4XJOW.js +192 -0
- package/vendor/hyperframes/dist/chunk-OFQWTKPW.js +117 -0
- package/vendor/hyperframes/dist/chunk-P6LJ4Y32.js +4662 -0
- package/vendor/hyperframes/dist/chunk-PBN6GBJE.js +108 -0
- package/vendor/hyperframes/dist/chunk-PDAMK4Q5.js +28 -0
- package/vendor/hyperframes/dist/chunk-PFCFR3KZ.js +20 -0
- package/vendor/hyperframes/dist/chunk-PJ3HDUCY.js +108 -0
- package/vendor/hyperframes/dist/chunk-PMRBLBUP.js +152 -0
- package/vendor/hyperframes/dist/chunk-PPQUYWTW.js +240 -0
- package/vendor/hyperframes/dist/chunk-Q5X2B5WT.js +29 -0
- package/vendor/hyperframes/dist/chunk-Q7IU7MOR.js +351 -0
- package/vendor/hyperframes/dist/chunk-QC4FJVLM.js +371 -0
- package/vendor/hyperframes/dist/chunk-QNYYOUU3.js +1318 -0
- package/vendor/hyperframes/dist/chunk-RDNNAKEP.js +161 -0
- package/vendor/hyperframes/dist/chunk-RMHUQGRK.js +657 -0
- package/vendor/hyperframes/dist/chunk-RQVDTPGD.js +6 -0
- package/vendor/hyperframes/dist/chunk-RVCWIIZ7.js +68 -0
- package/vendor/hyperframes/dist/chunk-S3D6GE5W.js +72 -0
- package/vendor/hyperframes/dist/chunk-S3S4TGEH.js +424 -0
- package/vendor/hyperframes/dist/chunk-S7NPLFWV.js +11395 -0
- package/vendor/hyperframes/dist/chunk-SHB5VDMH.js +51 -0
- package/vendor/hyperframes/dist/chunk-TCLGPL65.js +860 -0
- package/vendor/hyperframes/dist/chunk-THXFSPLV.js +40 -0
- package/vendor/hyperframes/dist/chunk-TJSTGSAW.js +354 -0
- package/vendor/hyperframes/dist/chunk-TQFG7HTI.js +1024 -0
- package/vendor/hyperframes/dist/chunk-TVCRUG2S.js +265 -0
- package/vendor/hyperframes/dist/chunk-TWWSYAKJ.js +24 -0
- package/vendor/hyperframes/dist/chunk-U7CZBDMV.js +27 -0
- package/vendor/hyperframes/dist/chunk-UEZXMWG3.js +139 -0
- package/vendor/hyperframes/dist/chunk-UYEZTK4U.js +61 -0
- package/vendor/hyperframes/dist/chunk-VC76R6W2.js +27 -0
- package/vendor/hyperframes/dist/chunk-VFCKXTBB.js +159 -0
- package/vendor/hyperframes/dist/chunk-VWG7OQKU.js +22 -0
- package/vendor/hyperframes/dist/chunk-VXVRPIJA.js +105 -0
- package/vendor/hyperframes/dist/chunk-WBLXWOYK.js +15 -0
- package/vendor/hyperframes/dist/chunk-WERLJGIC.js +20 -0
- package/vendor/hyperframes/dist/chunk-WMQNIQDJ.js +2057 -0
- package/vendor/hyperframes/dist/chunk-WPHMNO44.js +4528 -0
- package/vendor/hyperframes/dist/chunk-X5HWXQPU.js +113 -0
- package/vendor/hyperframes/dist/chunk-X7MTZ4T2.js +6 -0
- package/vendor/hyperframes/dist/chunk-XH4DSOS5.js +59 -0
- package/vendor/hyperframes/dist/chunk-XS4EJSKU.js +23 -0
- package/vendor/hyperframes/dist/chunk-XT5P4QMO.js +181 -0
- package/vendor/hyperframes/dist/chunk-XT7X6QCP.js +6 -0
- package/vendor/hyperframes/dist/chunk-XUHOIDKG.js +6 -0
- package/vendor/hyperframes/dist/chunk-XUXGIA7H.js +485 -0
- package/vendor/hyperframes/dist/chunk-XZABUQTX.js +113 -0
- package/vendor/hyperframes/dist/chunk-Y6W4DVPS.js +356 -0
- package/vendor/hyperframes/dist/chunk-YEIFI443.js +44 -0
- package/vendor/hyperframes/dist/chunk-YQZNILVH.js +375 -0
- package/vendor/hyperframes/dist/chunk-Z27A7NUB.js +65 -0
- package/vendor/hyperframes/dist/chunk-Z6B37SNM.js +3081 -0
- package/vendor/hyperframes/dist/chunk-ZJUKFZ2P.js +10954 -0
- package/vendor/hyperframes/dist/chunk-ZKDMAOFU.js +32 -0
- package/vendor/hyperframes/dist/chunk-ZMXUQLI2.js +17219 -0
- package/vendor/hyperframes/dist/chunk-ZTZ7NCJT.js +58 -0
- package/vendor/hyperframes/dist/chunk-ZTZA4UWZ.js +108 -0
- package/vendor/hyperframes/dist/clean-W57E5YQ3.js +293 -0
- package/vendor/hyperframes/dist/cli.js +495 -0
- package/vendor/hyperframes/dist/cloud-FFTJGZ24.js +70 -0
- package/vendor/hyperframes/dist/cloudrun-AJUTHUEA.js +763 -0
- package/vendor/hyperframes/dist/colors-HKWSZCGK.js +15 -0
- package/vendor/hyperframes/dist/commands/contrast-audit.browser.js +459 -0
- package/vendor/hyperframes/dist/commands/layout-audit.browser.js +2102 -0
- package/vendor/hyperframes/dist/commands/motion-sample.browser.js +74 -0
- package/vendor/hyperframes/dist/commands/motion-signature.browser.js +374 -0
- package/vendor/hyperframes/dist/compare-AYCTT55F.js +421 -0
- package/vendor/hyperframes/dist/compiler-QO36EXLS.js +121 -0
- package/vendor/hyperframes/dist/component-VFFR2O7T.js +176 -0
- package/vendor/hyperframes/dist/compositions-QTVN3U2A.js +228 -0
- package/vendor/hyperframes/dist/contactSheet-27SRU7A4.js +22 -0
- package/vendor/hyperframes/dist/delete-ZAKYCB7I.js +114 -0
- package/vendor/hyperframes/dist/deploy-MX76RZ36.js +101 -0
- package/vendor/hyperframes/dist/destroy-H2TZBYHH.js +42 -0
- package/vendor/hyperframes/dist/deterministicFonts-HAEMV4TM.js +50 -0
- package/vendor/hyperframes/dist/dist-EWXJGN63.js +129 -0
- package/vendor/hyperframes/dist/dist-FNNGCKFS.js +29 -0
- package/vendor/hyperframes/dist/dist-S3PJNPXQ.js +392 -0
- package/vendor/hyperframes/dist/docker/Dockerfile.render +65 -0
- package/vendor/hyperframes/dist/docs/compositions.md +67 -0
- package/vendor/hyperframes/dist/docs/data-attributes.md +27 -0
- package/vendor/hyperframes/dist/docs/examples.md +19 -0
- package/vendor/hyperframes/dist/docs/gsap.md +26 -0
- package/vendor/hyperframes/dist/docs/rendering.md +35 -0
- package/vendor/hyperframes/dist/docs/troubleshooting.md +29 -0
- package/vendor/hyperframes/dist/docs-QAPJEGLS.js +131 -0
- package/vendor/hyperframes/dist/doctor-AI7C3FON.js +67 -0
- package/vendor/hyperframes/dist/dom-IROKGVJI.js +14 -0
- package/vendor/hyperframes/dist/dotEnv-AECLXQSO.js +14 -0
- package/vendor/hyperframes/dist/events-7LALYNKZ.js +92 -0
- package/vendor/hyperframes/dist/events-FQY3HGKZ.js +88 -0
- package/vendor/hyperframes/dist/feedback-WCMDMSTK.js +472 -0
- package/vendor/hyperframes/dist/ffmpeg-QIUFEFTY.js +35 -0
- package/vendor/hyperframes/dist/figma-64WY462P.js +63 -0
- package/vendor/hyperframes/dist/fontData.generated-NXAOI4GH.js +13 -0
- package/vendor/hyperframes/dist/fontLocalizeCli.js +132 -0
- package/vendor/hyperframes/dist/get-FPOMJMZB.js +103 -0
- package/vendor/hyperframes/dist/gpuPolicy-2ZUZE5D6.js +38 -0
- package/vendor/hyperframes/dist/grade-compare-E2CKPST4.js +647 -0
- package/vendor/hyperframes/dist/gsapParser-DIYYX6JT.js +2846 -0
- package/vendor/hyperframes/dist/gsapParserAcorn-E3GEIRZB.js +28 -0
- package/vendor/hyperframes/dist/help-YRQIDDML.js +197 -0
- package/vendor/hyperframes/dist/history-PP5NDRV3.js +571 -0
- package/vendor/hyperframes/dist/hyperframe-runtime.js +1081 -0
- package/vendor/hyperframes/dist/hyperframe.manifest.json +22 -0
- package/vendor/hyperframes/dist/hyperframe.runtime.iife.js +1081 -0
- package/vendor/hyperframes/dist/hyperframes-player.global.js +474 -0
- package/vendor/hyperframes/dist/hyperframes-slideshow.global.js +149 -0
- package/vendor/hyperframes/dist/info-SEX3B7JL.js +153 -0
- package/vendor/hyperframes/dist/init-U3AKHO5B.js +1147 -0
- package/vendor/hyperframes/dist/inspect-Q3K6EDEK.js +97 -0
- package/vendor/hyperframes/dist/installer-K6O5WF44.js +37 -0
- package/vendor/hyperframes/dist/keyframes-DC64JCI3.js +2602 -0
- package/vendor/hyperframes/dist/lambda-D7UMN4DJ.js +451 -0
- package/vendor/hyperframes/dist/layout-XSPPDHOO.js +86 -0
- package/vendor/hyperframes/dist/lib-TPG2ZMAX.js +128 -0
- package/vendor/hyperframes/dist/lint-7DQZE7L3.js +164 -0
- package/vendor/hyperframes/dist/lintProject-OHBBM3DJ.js +27 -0
- package/vendor/hyperframes/dist/list-4K5MVDQX.js +162 -0
- package/vendor/hyperframes/dist/login-NTX4OWXL.js +377 -0
- package/vendor/hyperframes/dist/logout-Q654A3SI.js +100 -0
- package/vendor/hyperframes/dist/manager-67P2XFXQ.js +34 -0
- package/vendor/hyperframes/dist/manager-CT3D67CG.js +38 -0
- package/vendor/hyperframes/dist/manager-GFN75DM4.js +30 -0
- package/vendor/hyperframes/dist/media-treatment-5FYAOPNL.js +972 -0
- package/vendor/hyperframes/dist/media-use-4XXGABIL.js +113 -0
- package/vendor/hyperframes/dist/models-C4E4IWJD.js +137 -0
- package/vendor/hyperframes/dist/motionShot-S4MIGMT5.js +614 -0
- package/vendor/hyperframes/dist/normalize-O76AC4HE.js +333 -0
- package/vendor/hyperframes/dist/normalize-audio-CSFTXLXD.js +276 -0
- package/vendor/hyperframes/dist/open-2ZD6BHZG.js +115 -0
- package/vendor/hyperframes/dist/pipeline-TNGWUZQC.js +54 -0
- package/vendor/hyperframes/dist/play-CTMUXX6E.js +349 -0
- package/vendor/hyperframes/dist/policies-FSDZVS2E.js +292 -0
- package/vendor/hyperframes/dist/preflight-SMNV6RW2.js +45 -0
- package/vendor/hyperframes/dist/present-WQVHV5CR.js +350 -0
- package/vendor/hyperframes/dist/preview-JOJXTH75.js +1820 -0
- package/vendor/hyperframes/dist/producer-ECLEN5RP.js +13 -0
- package/vendor/hyperframes/dist/progress-FBIEEB7Y.js +73 -0
- package/vendor/hyperframes/dist/projectConfig-HYJMJ5BY.js +56 -0
- package/vendor/hyperframes/dist/publication-HQ5Y3KBM.js +29 -0
- package/vendor/hyperframes/dist/publish-VHDYQASC.js +430 -0
- package/vendor/hyperframes/dist/refresh-K24ETHMA.js +53 -0
- package/vendor/hyperframes/dist/remove-background-W2YX2NVH.js +253 -0
- package/vendor/hyperframes/dist/render-AO5VX3YI.js +177 -0
- package/vendor/hyperframes/dist/render-LNO62LEL.js +2367 -0
- package/vendor/hyperframes/dist/render-TTQI7TGN.js +796 -0
- package/vendor/hyperframes/dist/render-batch-YH7CTWNY.js +284 -0
- package/vendor/hyperframes/dist/renderCancellation-JPIHE47X.js +35 -0
- package/vendor/hyperframes/dist/renderSetupWorker.js +79 -0
- package/vendor/hyperframes/dist/resolver-IZ647GBZ.js +38 -0
- package/vendor/hyperframes/dist/runtimeVersion.js +18 -0
- package/vendor/hyperframes/dist/screenshotCapture-ECBTLCU6.js +179 -0
- package/vendor/hyperframes/dist/shaderTransitionWorker.js +44 -0
- package/vendor/hyperframes/dist/sherpa-KKLNW6U2.js +314 -0
- package/vendor/hyperframes/dist/sherpaWorker.js +77 -0
- package/vendor/hyperframes/dist/sites-TNVKZS73.js +52 -0
- package/vendor/hyperframes/dist/skill-ZHVLH7KX.js +15 -0
- package/vendor/hyperframes/dist/skills/hyperframes/SKILL.md +152 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/brief-contract.md +108 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/brief-format.md +72 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/capability-menu.md +47 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/frame-worker-core.md +80 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/intent-interview.md +73 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/pitch-round.md +40 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/plugin-installation.md +43 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/production-loop.md +26 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/review-loop.md +37 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/route-briefs.md +11 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/embedded-captions.md +11 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/faceless-explainer.md +12 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/general-video.md +12 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/motion-graphics.md +11 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/music-to-video.md +12 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/pr-to-video.md +28 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/product-launch-video.md +13 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/remotion-to-hyperframes.md +9 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/slideshow.md +11 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/routes/talking-head-recut.md +11 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/script-format.md +52 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/skill-lifecycle.md +35 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/storyboard-format.md +99 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/subagent-dispatch.md +35 -0
- package/vendor/hyperframes/dist/skills/hyperframes/references/workflow-catalog.md +10 -0
- package/vendor/hyperframes/dist/skills/hyperframes/scripts/lib/frame-packets-core.mjs +194 -0
- package/vendor/hyperframes/dist/skills/hyperframes/scripts/plugin-cli.mjs +88 -0
- package/vendor/hyperframes/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +117 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/SKILL.md +189 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/beats.md +19 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/cloud.md +163 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/cloudrun.md +62 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/compare-and-batch.md +105 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/doctor-browser.md +57 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/init-and-scaffold.md +74 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/lambda.md +185 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +132 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/preview-render.md +193 -0
- package/vendor/hyperframes/dist/skills/hyperframes-cli/references/upgrade-info-misc.md +134 -0
- package/vendor/hyperframes/dist/skills/media-use/SKILL.md +100 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/CREDITS.md +35 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/chime.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/click-soft.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/click.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/error.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/glitch-1.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/glitch-2.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/glitch-3.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/impact-bass-1.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/impact-bass-2.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/key-press.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/manifest.json +97 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/notification.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/ping.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/pop.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/riser.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/sparkle.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/typing.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/whoosh-cinematic.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/whoosh-short.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/assets/sfx/whoosh.mp3 +0 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/bgm.md +76 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/captions/authoring.md +163 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/captions/motion.md +87 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/captions/transcript-handling.md +97 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/remove-background.md +143 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/requirements.md +29 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/sfx.md +42 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/transcribe.md +52 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/tts-to-captions.md +35 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/references/tts.md +260 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/audio.mjs +311 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/audio.test.mjs +159 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +131 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/heygen-tts.mjs +122 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/heygen-tts.test.mjs +38 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/heygen-voice.mjs +98 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/heygen-voice.test.mjs +233 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/audio-meta.mjs +39 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/audio-meta.test.mjs +136 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/bgm-volume.mjs +4 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/bgm.mjs +257 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/bgm.test.mjs +74 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/concurrency.mjs +14 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/concurrency.test.mjs +41 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-auth.mjs +43 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-auth.py +52 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-auth.test.mjs +86 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-auth_test.py +90 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-tts.mjs +122 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +243 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/heygen.mjs +197 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +185 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/media-record.mjs +114 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/media-record.test.mjs +205 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/python.mjs +77 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/python.test.mjs +136 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/sfx.mjs +165 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/sfx.test.mjs +121 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/tts.mjs +389 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/tts.spawn.test.mjs +158 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +230 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/lyria-recipe.py +136 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/wait-bgm.mjs +175 -0
- package/vendor/hyperframes/dist/skills/media-use/audio/scripts/wait-bgm.test.mjs +108 -0
- package/vendor/hyperframes/dist/skills/media-use/luts/README.md +28 -0
- package/vendor/hyperframes/dist/skills/media-use/luts/index.json +57 -0
- package/vendor/hyperframes/dist/skills/media-use/references/audio.md +20 -0
- package/vendor/hyperframes/dist/skills/media-use/references/grading.md +160 -0
- package/vendor/hyperframes/dist/skills/media-use/references/media-treatment-recipes.md +929 -0
- package/vendor/hyperframes/dist/skills/media-use/references/media-treatments.md +202 -0
- package/vendor/hyperframes/dist/skills/media-use/references/memory.md +37 -0
- package/vendor/hyperframes/dist/skills/media-use/references/meta.md +61 -0
- package/vendor/hyperframes/dist/skills/media-use/references/operations.md +327 -0
- package/vendor/hyperframes/dist/skills/media-use/references/resolve.md +150 -0
- package/vendor/hyperframes/dist/skills/media-use/references/setup-providers.md +80 -0
- package/vendor/hyperframes/dist/skills/media-use/references/telemetry-dashboard.md +49 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/audio-duck.mjs +113 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/compatibility.test.mjs +96 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/dither.mjs +328 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/dither.test.mjs +176 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/eval.mjs +369 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/adopt.mjs +128 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/adopt.test.mjs +95 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/bgm-provider.mjs +20 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/brand-provider.mjs +59 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +119 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/bundled-sfx-provider.test.mjs +139 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cache.mjs +148 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/candidates.mjs +91 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/candidates.test.mjs +155 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/codex-provider.mjs +161 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/codex-provider.test.mjs +34 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/config-lock.d.mts +3 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/config-lock.mjs +45 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/config-lock.test.mjs +79 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/coverage.test.mjs +136 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cube-build.mjs +181 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cube-build.test.mjs +80 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cube-validate.mjs +198 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cube-validate.test.mjs +125 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cutlist.mjs +184 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/cutlist.test.mjs +162 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/duck.mjs +95 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/duck.test.mjs +153 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/error-diffusion.mjs +230 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/error-diffusion.test.mjs +102 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/ff-binaries.mjs +37 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/freeze.mjs +72 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/freeze.test.mjs +138 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/grade-analyzer.mjs +265 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/grade-analyzer.test.mjs +285 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-cli.mjs +191 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-cli.test.mjs +301 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-search.mjs +45 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-search.test.mjs +49 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-video-provider.mjs +138 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/heygen-video-provider.test.mjs +435 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/image-provider.mjs +44 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/index-gen.mjs +63 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/local-media-search.mjs +32 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/local-models.mjs +318 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/local-models.test.mjs +220 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/local-run.mjs +78 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/local-run.test.mjs +121 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/logo-provider.mjs +244 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/logo-provider.test.mjs +298 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/ltx-video-provider.mjs +94 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/ltx-video-provider.test.mjs +316 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/lut-preset-provider.mjs +271 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/lut-preset-provider.test.mjs +199 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/manifest.d.mts +19 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/manifest.mjs +279 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/manifest.test.mjs +397 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/match.mjs +47 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-fetch.mjs +85 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-fetch.test.mjs +197 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-home.mjs +20 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-home.test.mjs +61 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-search.d.mts +9 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/media-search.mjs +107 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/mflux-provider.mjs +128 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/mflux-provider.test.mjs +174 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/misses.mjs +49 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/misses.test.mjs +89 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/npx-sync.mjs +31 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/npx-sync.test.mjs +50 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/parakeet-words.mjs +27 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/parakeet-words.test.mjs +44 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/prefs-store.mjs +180 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/prefs-store.test.mjs +189 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/probe.mjs +41 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/probe.test.mjs +148 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/providers.mjs +5 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/recipe-store.mjs +367 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/recipe-store.test.mjs +367 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/registry.mjs +212 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/registry.test.mjs +262 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/search.mjs +24 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/search.test.mjs +32 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/sfx-provider.mjs +23 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/specs.mjs +132 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/specs.test.mjs +157 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/stats.mjs +117 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/stats.test.mjs +165 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/svg-sanitize.mjs +21 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/telemetry.mjs +210 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/telemetry.test.mjs +437 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/test-home.test.mjs +10 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/transcriptCutFade.mjs +21 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/transcriptCutFade.test.mjs +33 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/tts-local-provider.mjs +94 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +72 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/usage.mjs +57 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/usage.test.mjs +54 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/voice-provider.mjs +57 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/voice-provider.test.mjs +46 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/lib/words.mjs +18 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/prefs.mjs +70 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/recipe.mjs +103 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/resolve-plugin.test.mjs +62 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/resolve.mjs +1369 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/transcribe.mjs +194 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/transcribe.test.mjs +112 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/transcript-cut.mjs +270 -0
- package/vendor/hyperframes/dist/skills/media-use/scripts/transcript-cut.test.mjs +117 -0
- package/vendor/hyperframes/dist/skills-MJ2J4GEM.js +808 -0
- package/vendor/hyperframes/dist/skillsUpdateCheck-TKTYQN5R.js +26 -0
- package/vendor/hyperframes/dist/slideshow-EJ4IMY6P.js +24 -0
- package/vendor/hyperframes/dist/snapshot-KIVDUUMN.js +875 -0
- package/vendor/hyperframes/dist/src-6YQBJGWR.js +202 -0
- package/vendor/hyperframes/dist/src-PVYUYV3M.js +471 -0
- package/vendor/hyperframes/dist/state-KAXGHF77.js +26 -0
- package/vendor/hyperframes/dist/staticProjectServer-7EU666GS.js +49 -0
- package/vendor/hyperframes/dist/status-YM52BQ6S.js +311 -0
- package/vendor/hyperframes/dist/studio/assets/hyperframes-player-Cp8e_Zst.js +473 -0
- package/vendor/hyperframes/dist/studio/assets/index-BX3KHhGX.js +71 -0
- package/vendor/hyperframes/dist/studio/assets/index-CASEBNy2.js +1 -0
- package/vendor/hyperframes/dist/studio/assets/index-D11atkBt.css +1 -0
- package/vendor/hyperframes/dist/studio/assets/index-DMTt9nTf.js +531 -0
- package/vendor/hyperframes/dist/studio/assets/index-oE1pOdAy.js +399 -0
- package/vendor/hyperframes/dist/studio/chunk-5VSXRGIX.js +948 -0
- package/vendor/hyperframes/dist/studio/chunk-5VSXRGIX.js.map +1 -0
- package/vendor/hyperframes/dist/studio/chunk-7UQWVN52.js +938 -0
- package/vendor/hyperframes/dist/studio/chunk-7UQWVN52.js.map +1 -0
- package/vendor/hyperframes/dist/studio/chunk-EEXSYY5F.js +190 -0
- package/vendor/hyperframes/dist/studio/chunk-EEXSYY5F.js.map +1 -0
- package/vendor/hyperframes/dist/studio/chunk-FOEID72M.js +1441 -0
- package/vendor/hyperframes/dist/studio/chunk-FOEID72M.js.map +1 -0
- package/vendor/hyperframes/dist/studio/chunk-PZ5AY32C.js +10 -0
- package/vendor/hyperframes/dist/studio/chunk-PZ5AY32C.js.map +1 -0
- package/vendor/hyperframes/dist/studio/chunk-TDWGXBUT.js +1103 -0
- package/vendor/hyperframes/dist/studio/chunk-TDWGXBUT.js.map +1 -0
- package/vendor/hyperframes/dist/studio/domEditingLayers-IEVLO54Z.js +47 -0
- package/vendor/hyperframes/dist/studio/domEditingLayers-IEVLO54Z.js.map +1 -0
- package/vendor/hyperframes/dist/studio/favicon.svg +14 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/audio.svg +7 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/captions.svg +5 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/composition.svg +12 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/image.svg +18 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/music.svg +10 -0
- package/vendor/hyperframes/dist/studio/icons/timeline/text.svg +3 -0
- package/vendor/hyperframes/dist/studio/index.css +165 -0
- package/vendor/hyperframes/dist/studio/index.css.map +1 -0
- package/vendor/hyperframes/dist/studio/index.d.ts +4296 -0
- package/vendor/hyperframes/dist/studio/index.html +23 -0
- package/vendor/hyperframes/dist/studio/index.js +99693 -0
- package/vendor/hyperframes/dist/studio/index.js.map +1 -0
- package/vendor/hyperframes/dist/studio/player.d.ts +30 -0
- package/vendor/hyperframes/dist/studio/player.js +10 -0
- package/vendor/hyperframes/dist/studio/player.js.map +1 -0
- package/vendor/hyperframes/dist/studio/styles/tailwind-preset.d.ts +39 -0
- package/vendor/hyperframes/dist/studio/styles/tailwind-preset.js +50 -0
- package/vendor/hyperframes/dist/studio/styles/tailwind-preset.js.map +1 -0
- package/vendor/hyperframes/dist/studio/styles.css +1 -0
- package/vendor/hyperframes/dist/studio/ui.d.ts +296 -0
- package/vendor/hyperframes/dist/studio/ui.js +66 -0
- package/vendor/hyperframes/dist/studio/ui.js.map +1 -0
- package/vendor/hyperframes/dist/studio-api-PNQZRPX5.js +136 -0
- package/vendor/hyperframes/dist/studioSelectionClient-IUUPKUHZ.js +25 -0
- package/vendor/hyperframes/dist/studioServer-UWRBPIOJ.js +1457 -0
- package/vendor/hyperframes/dist/synthesize-K62TIZWI.js +182 -0
- package/vendor/hyperframes/dist/system-EZYZNUFD.js +44 -0
- package/vendor/hyperframes/dist/telemetry-2YC4SGQU.js +144 -0
- package/vendor/hyperframes/dist/telemetry-QMYM4WME.js +95 -0
- package/vendor/hyperframes/dist/templates/_shared/AGENTS.md +107 -0
- package/vendor/hyperframes/dist/templates/_shared/CLAUDE.md +107 -0
- package/vendor/hyperframes/dist/templates/blank/index.html +55 -0
- package/vendor/hyperframes/dist/templates/from-file/index.html +75 -0
- package/vendor/hyperframes/dist/templates/warm-grain/compositions/captions.html +154 -0
- package/vendor/hyperframes/dist/templates/warm-grain/compositions/graphics.html +162 -0
- package/vendor/hyperframes/dist/templates/warm-grain/compositions/intro.html +87 -0
- package/vendor/hyperframes/dist/templates/warm-grain/index.html +264 -0
- package/vendor/hyperframes/dist/templates/warm-grain/registry-item.json +34 -0
- package/vendor/hyperframes/dist/timeline-77Z3BBQM.js +1377 -0
- package/vendor/hyperframes/dist/tokens-OBGTYE4Z.js +92 -0
- package/vendor/hyperframes/dist/transcribe-7NVFHCGA.js +387 -0
- package/vendor/hyperframes/dist/transcribe-BNSJRR4M.js +62 -0
- package/vendor/hyperframes/dist/tts-P3LIPIL5.js +234 -0
- package/vendor/hyperframes/dist/updateCheck-UDWIJ4ZQ.js +39 -0
- package/vendor/hyperframes/dist/upgrade-CT3CPO3E.js +231 -0
- package/vendor/hyperframes/dist/urlDownloader-H6WRI2UE.js +39 -0
- package/vendor/hyperframes/dist/usage-EC3KFUIJ.js +2139 -0
- package/vendor/hyperframes/dist/validate-65QDZJWZ.js +70 -0
- package/vendor/hyperframes/dist/video-FGSGKRSV.js +261 -0
- package/vendor/hyperframes/dist/workspaceBuildCheck-TOLGAI4T.js +133 -0
- package/vendor/hyperframes/package.json +80 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import test from "node:test";
|
|
3
|
+
import { ERROR_DIFFUSION_ALGORITHMS, applyErrorDiffusionRgba } from "./error-diffusion.mjs";
|
|
4
|
+
|
|
5
|
+
const EXPECTED_GRADIENTS = {
|
|
6
|
+
"floyd-steinberg": "00000101/00010101/00100101/00010111/01010101/01011011",
|
|
7
|
+
atkinson: "00000011/00001100/00010011/00010111/01001101/00111011",
|
|
8
|
+
"jarvis-judice-ninke": "00000011/00001011/00011001/00101111/00100111/01011011",
|
|
9
|
+
stucki: "00000011/00010101/00010110/00101011/00101101/01010111",
|
|
10
|
+
burkes: "00000101/00010011/00010110/00101011/01010111/00101011",
|
|
11
|
+
sierra: "00000011/00010101/00010110/00100111/00110111/00101101",
|
|
12
|
+
"sierra-lite": "00000101/00010101/00100101/00010110/01010111/01010101",
|
|
13
|
+
"two-row-sierra": "00000101/00010011/00010110/00101011/00101101/01011011",
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
test("exposes the eight article error-diffusion algorithms", () => {
|
|
17
|
+
assert.deepEqual(Object.keys(ERROR_DIFFUSION_ALGORITHMS), Object.keys(EXPECTED_GRADIENTS));
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
test("matches deterministic golden patterns for every diffusion kernel", () => {
|
|
21
|
+
const width = 8;
|
|
22
|
+
const height = 6;
|
|
23
|
+
const source = new Uint8ClampedArray(width * height * 4);
|
|
24
|
+
for (let y = 0; y < height; y++) {
|
|
25
|
+
for (let x = 0; x < width; x++) {
|
|
26
|
+
const value = Math.round((255 * (x + y * 0.7)) / (width - 1 + (height - 1) * 0.7));
|
|
27
|
+
const offset = (y * width + x) * 4;
|
|
28
|
+
source[offset] = value;
|
|
29
|
+
source[offset + 1] = Math.round(value * 0.8);
|
|
30
|
+
source[offset + 2] = Math.round(value * 0.55);
|
|
31
|
+
source[offset + 3] = 17 + x + y;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
for (const [algorithm, expected] of Object.entries(EXPECTED_GRADIENTS)) {
|
|
36
|
+
const output = source.slice();
|
|
37
|
+
applyErrorDiffusionRgba(output, width, height, {
|
|
38
|
+
algorithm,
|
|
39
|
+
brightness: 1,
|
|
40
|
+
contrast: 1,
|
|
41
|
+
detail: 1,
|
|
42
|
+
palette: ["#000000", "#ffffff"],
|
|
43
|
+
pointSize: 1,
|
|
44
|
+
});
|
|
45
|
+
const rows = [];
|
|
46
|
+
for (let y = 0; y < height; y++) {
|
|
47
|
+
let row = "";
|
|
48
|
+
for (let x = 0; x < width; x++) row += output[(y * width + x) * 4] ? "1" : "0";
|
|
49
|
+
rows.push(row);
|
|
50
|
+
}
|
|
51
|
+
assert.equal(rows.join("/"), expected, algorithm);
|
|
52
|
+
for (let i = 0; i < width * height; i++) assert.equal(output[i * 4 + 3], source[i * 4 + 3]);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
test("fills point-size blocks from their center sample", () => {
|
|
57
|
+
const data = new Uint8ClampedArray([
|
|
58
|
+
0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 5, 255, 255, 255, 6, 0, 0, 0, 7, 255,
|
|
59
|
+
255, 255, 8,
|
|
60
|
+
]);
|
|
61
|
+
applyErrorDiffusionRgba(
|
|
62
|
+
data,
|
|
63
|
+
4,
|
|
64
|
+
2,
|
|
65
|
+
{
|
|
66
|
+
algorithm: "floyd-steinberg",
|
|
67
|
+
brightness: 1,
|
|
68
|
+
contrast: 1,
|
|
69
|
+
detail: 1,
|
|
70
|
+
palette: ["#000000", "#ffffff"],
|
|
71
|
+
pointSize: 2,
|
|
72
|
+
},
|
|
73
|
+
new Float32Array(6),
|
|
74
|
+
);
|
|
75
|
+
assert.deepEqual(
|
|
76
|
+
[...data],
|
|
77
|
+
[
|
|
78
|
+
255, 255, 255, 1, 255, 255, 255, 2, 255, 255, 255, 3, 255, 255, 255, 4, 255, 255, 255, 5, 255,
|
|
79
|
+
255, 255, 6, 255, 255, 255, 7, 255, 255, 255, 8,
|
|
80
|
+
],
|
|
81
|
+
);
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
test("preserves authored palette order and validates the public contract", () => {
|
|
85
|
+
const reversed = new Uint8ClampedArray([0, 0, 0, 255]);
|
|
86
|
+
applyErrorDiffusionRgba(reversed, 1, 1, {
|
|
87
|
+
palette: ["#ffffff", "#000000"],
|
|
88
|
+
});
|
|
89
|
+
assert.deepEqual([...reversed], [255, 255, 255, 255]);
|
|
90
|
+
|
|
91
|
+
assert.throws(
|
|
92
|
+
() => applyErrorDiffusionRgba(new Uint8ClampedArray(4), 1, 1, { palette: ["#000000"] }),
|
|
93
|
+
/2 to 6 colors/,
|
|
94
|
+
);
|
|
95
|
+
assert.throws(
|
|
96
|
+
() =>
|
|
97
|
+
applyErrorDiffusionRgba(new Uint8ClampedArray(4), 1, 1, {
|
|
98
|
+
algorithm: "ordered-bayer",
|
|
99
|
+
}),
|
|
100
|
+
/unknown error-diffusion algorithm/,
|
|
101
|
+
);
|
|
102
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { execFileSync } from "node:child_process";
|
|
2
|
+
import { resolve } from "node:path";
|
|
3
|
+
|
|
4
|
+
// The binaries media-use spawns: HYPERFRAMES_FFMPEG_PATH / HYPERFRAMES_FFPROBE_PATH when set, else PATH.
|
|
5
|
+
// A set path that is not a working ffmpeg/ffprobe throws, so a broken override never reads as "no metadata".
|
|
6
|
+
const runsByPath = new Map();
|
|
7
|
+
|
|
8
|
+
export class FfBinarySettingError extends Error {}
|
|
9
|
+
|
|
10
|
+
function configuredOr(name, envVar) {
|
|
11
|
+
const setting = process.env[envVar]?.trim();
|
|
12
|
+
if (!setting) return name;
|
|
13
|
+
const path = resolve(setting);
|
|
14
|
+
if (!runsByPath.has(path)) runsByPath.set(path, isWorking(path, name));
|
|
15
|
+
if (!runsByPath.get(path)) {
|
|
16
|
+
const why = `${envVar} names "${path}", which is not a working ${name}: fix it or unset it.`;
|
|
17
|
+
throw new FfBinarySettingError(why);
|
|
18
|
+
}
|
|
19
|
+
return path;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function isWorking(path, name) {
|
|
23
|
+
try {
|
|
24
|
+
const out = execFileSync(path, ["-version"], {
|
|
25
|
+
encoding: "utf8",
|
|
26
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
27
|
+
timeout: 15000,
|
|
28
|
+
windowsHide: true,
|
|
29
|
+
});
|
|
30
|
+
return out.startsWith(`${name} version`);
|
|
31
|
+
} catch {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const ffmpegBinary = () => configuredOr("ffmpeg", "HYPERFRAMES_FFMPEG_PATH");
|
|
37
|
+
export const ffprobeBinary = () => configuredOr("ffprobe", "HYPERFRAMES_FFPROBE_PATH");
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { fetchMedia, isPublicMediaUrl, readCappedBody } from "./media-fetch.mjs";
|
|
2
|
+
import { sanitizeSvg } from "./svg-sanitize.mjs";
|
|
3
|
+
import { writeFileSync, copyFileSync, mkdirSync, readFileSync } from "node:fs";
|
|
4
|
+
import { dirname } from "node:path";
|
|
5
|
+
|
|
6
|
+
// ponytail: bound the download so a hostile/runaway URL can't fill the disk.
|
|
7
|
+
// 256MB covers any real media asset; raise if 4K video sources ever exceed it.
|
|
8
|
+
const MAX_FREEZE_BYTES = 256 * 1024 * 1024;
|
|
9
|
+
// Bounds only the wait for response headers; a large video body may stream for minutes.
|
|
10
|
+
const FREEZE_HEADERS_TIMEOUT_MS = 10_000;
|
|
11
|
+
|
|
12
|
+
const isSvgPath = (destPath) => /\.svg$/i.test(destPath);
|
|
13
|
+
|
|
14
|
+
// Every logo/icon SVG comes from a third-party host (theSVG, a --from URL, a local file), so it
|
|
15
|
+
// passes the Figma import's sanitizeSvg allowlist before it touches disk.
|
|
16
|
+
function writeFrozen(destPath, buffer) {
|
|
17
|
+
mkdirSync(dirname(destPath), { recursive: true });
|
|
18
|
+
const bytes = isSvgPath(destPath) ? Buffer.from(sanitizeSvg(buffer.toString("utf8"))) : buffer;
|
|
19
|
+
writeFileSync(destPath, bytes);
|
|
20
|
+
return bytes.byteLength;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export async function freezeUrl(url, destPath) {
|
|
24
|
+
const where = String(url).slice(0, 80);
|
|
25
|
+
const headerWait = new AbortController();
|
|
26
|
+
const timer = setTimeout(
|
|
27
|
+
() =>
|
|
28
|
+
headerWait.abort(
|
|
29
|
+
new Error(`freeze failed: no response within ${FREEZE_HEADERS_TIMEOUT_MS} ms for ${where}`),
|
|
30
|
+
),
|
|
31
|
+
FREEZE_HEADERS_TIMEOUT_MS,
|
|
32
|
+
);
|
|
33
|
+
const res = await fetchMedia(url, { signal: headerWait.signal }).finally(() =>
|
|
34
|
+
clearTimeout(timer),
|
|
35
|
+
);
|
|
36
|
+
if (!res.ok) throw new Error(`freeze failed: HTTP ${res.status} for ${where}`);
|
|
37
|
+
|
|
38
|
+
const body = await readCappedBody(res, MAX_FREEZE_BYTES, `freeze failed for ${where}`);
|
|
39
|
+
if (body.byteLength === 0) throw new Error(`freeze failed: empty response for ${where}`);
|
|
40
|
+
|
|
41
|
+
return writeFrozen(destPath, body);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function freezeLocalFile(srcPath, destPath) {
|
|
45
|
+
if (isSvgPath(destPath)) {
|
|
46
|
+
writeFrozen(destPath, readFileSync(srcPath));
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
mkdirSync(dirname(destPath), { recursive: true });
|
|
50
|
+
copyFileSync(srcPath, destPath);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Ingest accepts a DIRECT public media URL only — not a platform page. yt-dlp is
|
|
54
|
+
// deliberately out (cloud IPs get blocked, and it's brittle); the supported case
|
|
55
|
+
// is "user points at their own file or a direct asset link". A direct URL is a
|
|
56
|
+
// non-platform host whose path ends in a known media extension.
|
|
57
|
+
const PLATFORM_HOSTS =
|
|
58
|
+
/(^|\.)(youtube\.com|youtu\.be|vimeo\.com|tiktok\.com|instagram\.com|twitter\.com|x\.com|facebook\.com|dailymotion\.com)$/i;
|
|
59
|
+
const MEDIA_EXT = /\.(mp3|wav|m4a|aac|ogg|flac|mp4|mov|webm|mkv|png|jpe?g|webp|gif|svg|avif)$/i;
|
|
60
|
+
|
|
61
|
+
export function isDirectMediaUrl(u) {
|
|
62
|
+
let url;
|
|
63
|
+
try {
|
|
64
|
+
url = new URL(u);
|
|
65
|
+
} catch {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
if (url.protocol !== "http:" && url.protocol !== "https:") return false;
|
|
69
|
+
if (PLATFORM_HOSTS.test(url.hostname)) return false;
|
|
70
|
+
if (!isPublicMediaUrl(url)) return false;
|
|
71
|
+
return MEDIA_EXT.test(url.pathname);
|
|
72
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { strict as assert } from "node:assert";
|
|
2
|
+
import { test } from "node:test";
|
|
3
|
+
import { mkdtempSync, readFileSync, writeFileSync } from "node:fs";
|
|
4
|
+
import { tmpdir } from "node:os";
|
|
5
|
+
import { join } from "node:path";
|
|
6
|
+
import { isDirectMediaUrl, freezeUrl, freezeLocalFile } from "./freeze.mjs";
|
|
7
|
+
|
|
8
|
+
const HOSTILE_SVG =
|
|
9
|
+
'<svg xmlns="http://www.w3.org/2000/svg"><script>alert(1)</script>' +
|
|
10
|
+
'<rect onload="alert(2)" width="1" height="1"/>' +
|
|
11
|
+
'<a href="javascript:alert(3)"><circle r="1"/></a></svg>';
|
|
12
|
+
|
|
13
|
+
test("accepts direct public media URLs", () => {
|
|
14
|
+
assert.equal(isDirectMediaUrl("https://cdn.example.com/clip.mp4"), true);
|
|
15
|
+
assert.equal(isDirectMediaUrl("https://example.com/a/b/track.mp3"), true);
|
|
16
|
+
assert.equal(isDirectMediaUrl("http://example.com/logo.svg"), true);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
test("rejects platform pages (no yt-dlp)", () => {
|
|
20
|
+
assert.equal(isDirectMediaUrl("https://www.youtube.com/watch?v=abc"), false);
|
|
21
|
+
assert.equal(isDirectMediaUrl("https://youtu.be/abc"), false);
|
|
22
|
+
assert.equal(isDirectMediaUrl("https://vimeo.com/12345"), false);
|
|
23
|
+
assert.equal(isDirectMediaUrl("https://x.com/u/status/1"), false);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
test("rejects non-direct / non-media URLs", () => {
|
|
27
|
+
assert.equal(isDirectMediaUrl("https://example.com/page"), false, "no media extension");
|
|
28
|
+
assert.equal(isDirectMediaUrl("ftp://example.com/a.mp4"), false, "non-http(s)");
|
|
29
|
+
assert.equal(isDirectMediaUrl("not a url"), false);
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
test("rejects local / private hosts (SSRF guard, m11)", () => {
|
|
33
|
+
for (const u of [
|
|
34
|
+
"http://localhost/a.mp4",
|
|
35
|
+
"http://127.0.0.1/a.mp4",
|
|
36
|
+
"http://127.1.2.3/a.mp4",
|
|
37
|
+
"http://0.0.0.0/a.mp4",
|
|
38
|
+
"http://10.0.0.5/a.mp4",
|
|
39
|
+
"http://192.168.1.1/a.mp4",
|
|
40
|
+
"http://172.16.0.1/a.mp4",
|
|
41
|
+
"http://172.31.255.255/a.mp4",
|
|
42
|
+
"http://169.254.169.254/a.mp4", // cloud metadata endpoint
|
|
43
|
+
"http://printer.local/a.mp4",
|
|
44
|
+
"http://svc.internal/a.mp4",
|
|
45
|
+
"http://[::1]/a.mp4",
|
|
46
|
+
"http://[fe80::1]/a.mp4",
|
|
47
|
+
"http://[fd00::1]/a.mp4",
|
|
48
|
+
]) {
|
|
49
|
+
assert.equal(isDirectMediaUrl(u), false, `should block ${u}`);
|
|
50
|
+
}
|
|
51
|
+
// A public host that merely starts with similar digits is still allowed.
|
|
52
|
+
assert.equal(isDirectMediaUrl("https://172.40.0.1/a.mp4"), true, "172.40 is public");
|
|
53
|
+
assert.equal(isDirectMediaUrl("https://11.example.com/a.mp4"), true);
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
test("freezeUrl strips <script>, on* handlers and javascript: hrefs from a fetched SVG", async (t) => {
|
|
57
|
+
t.mock.method(
|
|
58
|
+
globalThis,
|
|
59
|
+
"fetch",
|
|
60
|
+
async () =>
|
|
61
|
+
new Response(HOSTILE_SVG, { status: 200, headers: { "content-type": "image/svg+xml" } }),
|
|
62
|
+
);
|
|
63
|
+
const dest = join(mkdtempSync(join(tmpdir(), "media-use-freeze-")), "logo.svg");
|
|
64
|
+
await freezeUrl("https://example.com/hostile.svg", dest);
|
|
65
|
+
const out = readFileSync(dest, "utf8");
|
|
66
|
+
assert.ok(!out.includes("<script"), "script element stripped");
|
|
67
|
+
assert.ok(!out.includes("onload="), "event handler stripped");
|
|
68
|
+
assert.ok(!out.includes("javascript:"), "javascript: href stripped");
|
|
69
|
+
assert.ok(out.includes("<circle"), "benign markup survives");
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
// Puts setTimeout and AbortSignal.timeout on node:test's fake clock.
|
|
73
|
+
function fakeClock(t) {
|
|
74
|
+
t.mock.timers.enable({ apis: ["setTimeout"] });
|
|
75
|
+
t.mock.method(AbortSignal, "timeout", (ms) => {
|
|
76
|
+
const controller = new AbortController();
|
|
77
|
+
setTimeout(() => controller.abort(new DOMException("timed out", "TimeoutError")), ms);
|
|
78
|
+
return controller.signal;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
test("freezeUrl keeps streaming a slow body past the header timeout", async (t) => {
|
|
83
|
+
fakeClock(t);
|
|
84
|
+
let body;
|
|
85
|
+
t.mock.method(globalThis, "fetch", async (_url, { signal }) => {
|
|
86
|
+
const stream = new ReadableStream({
|
|
87
|
+
start(controller) {
|
|
88
|
+
body = controller;
|
|
89
|
+
// undici aborts the body stream too when the request signal fires.
|
|
90
|
+
signal.addEventListener("abort", () => controller.error(signal.reason));
|
|
91
|
+
controller.enqueue(new Uint8Array([1, 2, 3]));
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
return new Response(stream, { status: 200 });
|
|
95
|
+
});
|
|
96
|
+
const dest = join(mkdtempSync(join(tmpdir(), "media-use-freeze-")), "clip.mp4");
|
|
97
|
+
const frozen = freezeUrl("https://cdn.example.com/clip.mp4", dest);
|
|
98
|
+
await new Promise(setImmediate);
|
|
99
|
+
t.mock.timers.tick(60_000);
|
|
100
|
+
body.enqueue(new Uint8Array([4, 5]));
|
|
101
|
+
body.close();
|
|
102
|
+
assert.equal(await frozen, 5);
|
|
103
|
+
assert.deepEqual([...readFileSync(dest)], [1, 2, 3, 4, 5]);
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
test("freezeUrl times out when no response headers arrive", { timeout: 5_000 }, async (t) => {
|
|
107
|
+
fakeClock(t);
|
|
108
|
+
t.mock.method(
|
|
109
|
+
globalThis,
|
|
110
|
+
"fetch",
|
|
111
|
+
(_url, { signal }) =>
|
|
112
|
+
new Promise((_, reject) => signal.addEventListener("abort", () => reject(signal.reason))),
|
|
113
|
+
);
|
|
114
|
+
const dest = join(mkdtempSync(join(tmpdir(), "media-use-freeze-")), "clip.mp4");
|
|
115
|
+
const frozen = freezeUrl("https://cdn.example.com/clip.mp4", dest);
|
|
116
|
+
t.mock.timers.tick(10_000);
|
|
117
|
+
await assert.rejects(frozen, /no response within 10000 ms/);
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
test("freezeLocalFile strips the same hostile SVG content from a local source", () => {
|
|
121
|
+
const srcDir = mkdtempSync(join(tmpdir(), "media-use-freeze-src-"));
|
|
122
|
+
const src = join(srcDir, "in.svg");
|
|
123
|
+
writeFileSync(src, HOSTILE_SVG);
|
|
124
|
+
const dest = join(mkdtempSync(join(tmpdir(), "media-use-freeze-dest-")), "logo.svg");
|
|
125
|
+
freezeLocalFile(src, dest);
|
|
126
|
+
const out = readFileSync(dest, "utf8");
|
|
127
|
+
assert.ok(!out.includes("<script"));
|
|
128
|
+
assert.ok(!out.includes("onload="));
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
test("freezeLocalFile still byte-copies a non-SVG file untouched", () => {
|
|
132
|
+
const srcDir = mkdtempSync(join(tmpdir(), "media-use-freeze-src-"));
|
|
133
|
+
const src = join(srcDir, "in.png");
|
|
134
|
+
writeFileSync(src, Buffer.from([0x89, 0x50, 0x4e, 0x47]));
|
|
135
|
+
const dest = join(mkdtempSync(join(tmpdir(), "media-use-freeze-dest-")), "logo.png");
|
|
136
|
+
freezeLocalFile(src, dest);
|
|
137
|
+
assert.deepEqual(readFileSync(dest), Buffer.from([0x89, 0x50, 0x4e, 0x47]));
|
|
138
|
+
});
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
// Vendored plain-JS copy of packages/core/src/mediaGradeAnalyzer.ts.
|
|
2
|
+
// packages/core/src/mediaGradeAnalyzer.vendoredParity.test.ts guards behavior drift.
|
|
3
|
+
import { execFileSync } from "node:child_process";
|
|
4
|
+
import { basename, extname } from "node:path";
|
|
5
|
+
|
|
6
|
+
const IMAGE_EXT = new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".bmp", ".tif", ".tiff"]);
|
|
7
|
+
const SAMPLE_FRAMES = 5;
|
|
8
|
+
const DEFAULT_TIMEOUT_MS = 15_000;
|
|
9
|
+
|
|
10
|
+
const ADJUST_LIMITS = {
|
|
11
|
+
exposure: { min: -2, max: 2 },
|
|
12
|
+
contrast: { min: -1, max: 1 },
|
|
13
|
+
whites: { min: -1, max: 1 },
|
|
14
|
+
blacks: { min: -1, max: 1 },
|
|
15
|
+
temperature: { min: -1, max: 1 },
|
|
16
|
+
tint: { min: -1, max: 1 },
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
function clamp(value, key) {
|
|
20
|
+
const limit = ADJUST_LIMITS[key];
|
|
21
|
+
if (!Number.isFinite(value)) return 0;
|
|
22
|
+
return Math.min(limit.max, Math.max(limit.min, value));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function round(value) {
|
|
26
|
+
const rounded = Math.round(value * 1000) / 1000;
|
|
27
|
+
return Object.is(rounded, -0) ? 0 : rounded;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function average(values) {
|
|
31
|
+
return values.reduce((sum, value) => sum + value, 0) / Math.max(1, values.length);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function probeMedia(mediaPath, ffprobePath) {
|
|
35
|
+
try {
|
|
36
|
+
const raw = execFileSync(
|
|
37
|
+
ffprobePath,
|
|
38
|
+
[
|
|
39
|
+
"-v",
|
|
40
|
+
"error",
|
|
41
|
+
"-select_streams",
|
|
42
|
+
"v:0",
|
|
43
|
+
"-show_entries",
|
|
44
|
+
"stream=color_space,color_transfer,color_primaries,pix_fmt,duration:format=duration",
|
|
45
|
+
"-of",
|
|
46
|
+
"json",
|
|
47
|
+
"--",
|
|
48
|
+
mediaPath,
|
|
49
|
+
],
|
|
50
|
+
{ encoding: "utf8", timeout: 5_000, stdio: ["ignore", "pipe", "pipe"] },
|
|
51
|
+
);
|
|
52
|
+
const parsed = JSON.parse(raw);
|
|
53
|
+
const stream = Array.isArray(parsed.streams) ? (parsed.streams[0] ?? {}) : {};
|
|
54
|
+
const duration = Number(stream.duration ?? parsed.format?.duration);
|
|
55
|
+
const text = (key) =>
|
|
56
|
+
typeof stream[key] === "string" && stream[key] ? stream[key] : "unknown";
|
|
57
|
+
return {
|
|
58
|
+
duration: Number.isFinite(duration) && duration > 0 ? duration : null,
|
|
59
|
+
colorSpace: text("color_space"),
|
|
60
|
+
transfer: text("color_transfer"),
|
|
61
|
+
primaries: text("color_primaries"),
|
|
62
|
+
pixelFormat: text("pix_fmt"),
|
|
63
|
+
};
|
|
64
|
+
} catch {
|
|
65
|
+
return {
|
|
66
|
+
duration: null,
|
|
67
|
+
colorSpace: "unknown",
|
|
68
|
+
transfer: "unknown",
|
|
69
|
+
primaries: "unknown",
|
|
70
|
+
pixelFormat: "unknown",
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function parseMediaTreatmentSignalStats(raw) {
|
|
76
|
+
const frames = [];
|
|
77
|
+
let current = null;
|
|
78
|
+
for (const line of String(raw).split(/\r?\n/)) {
|
|
79
|
+
// One digit is enough: .* consumes the rest without overlapping repetitions.
|
|
80
|
+
const frame = line.match(/^frame:\d.*pts_time:([+-]?(?:\d+(?:\.\d+)?|\.\d+))/);
|
|
81
|
+
if (frame) {
|
|
82
|
+
if (current) frames.push(current);
|
|
83
|
+
current = { ptsTime: Number(frame[1]) };
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
const stat = line.match(/lavfi\.signalstats\.([A-Z]+)=([+-]?(?:\d+(?:\.\d+)?|\.\d+))/);
|
|
87
|
+
if (!stat) continue;
|
|
88
|
+
current ??= {};
|
|
89
|
+
current[stat[1]] = Number(stat[2]);
|
|
90
|
+
}
|
|
91
|
+
if (current) frames.push(current);
|
|
92
|
+
return frames.filter(
|
|
93
|
+
(frame) =>
|
|
94
|
+
Number.isFinite(frame.YMIN) &&
|
|
95
|
+
Number.isFinite(frame.YLOW) &&
|
|
96
|
+
Number.isFinite(frame.YAVG) &&
|
|
97
|
+
Number.isFinite(frame.YHIGH) &&
|
|
98
|
+
Number.isFinite(frame.YMAX) &&
|
|
99
|
+
Number.isFinite(frame.UAVG) &&
|
|
100
|
+
Number.isFinite(frame.VAVG),
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function summarizeFrames(frames) {
|
|
105
|
+
if (frames.length === 0) throw new Error("FFmpeg returned no analyzable video frames");
|
|
106
|
+
return {
|
|
107
|
+
frames: frames.length,
|
|
108
|
+
yMin: Math.min(...frames.map((frame) => frame.YMIN)),
|
|
109
|
+
yLow: average(frames.map((frame) => frame.YLOW)),
|
|
110
|
+
yAvg: average(frames.map((frame) => frame.YAVG)),
|
|
111
|
+
yHigh: average(frames.map((frame) => frame.YHIGH)),
|
|
112
|
+
yMax: Math.max(...frames.map((frame) => frame.YMAX)),
|
|
113
|
+
uAvg: average(frames.map((frame) => frame.UAVG)),
|
|
114
|
+
vAvg: average(frames.map((frame) => frame.VAVG)),
|
|
115
|
+
satAvg: average(frames.map((frame) => frame.SATAVG ?? 0)),
|
|
116
|
+
shadowClipRisk: average(frames.map((frame) => (frame.YLOW <= 16 ? 1 : 0))),
|
|
117
|
+
highlightClipRisk: average(frames.map((frame) => (frame.YHIGH >= 235 ? 1 : 0))),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function suggestedExposure(normalizedAverage, yLow, yHigh) {
|
|
122
|
+
if (normalizedAverage < 0.28 && yHigh / 255 < 0.65) {
|
|
123
|
+
return clamp((0.32 - normalizedAverage) * 1.2, "exposure");
|
|
124
|
+
}
|
|
125
|
+
if (normalizedAverage > 0.72 && yLow / 255 > 0.3) {
|
|
126
|
+
return clamp((0.68 - normalizedAverage) * 1.2, "exposure");
|
|
127
|
+
}
|
|
128
|
+
return 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function suggestedTemperature(uAverage, vAverage) {
|
|
132
|
+
const chromaWarmth = (vAverage - 128 + (128 - uAverage)) / 128;
|
|
133
|
+
return Math.abs(chromaWarmth) >= 0.08 ? clamp(-chromaWarmth * 0.25, "temperature") : 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function suggestedTint(uAverage, vAverage) {
|
|
137
|
+
const cast = uAverage + vAverage - 256;
|
|
138
|
+
return Math.abs(cast) >= 10 ? clamp(-cast / 512, "tint") : 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function statsToAdjust(stats) {
|
|
142
|
+
const yMin = Number(stats.yMin);
|
|
143
|
+
const yLow = Number(stats.yLow ?? stats.yMin);
|
|
144
|
+
const yMax = Number(stats.yMax);
|
|
145
|
+
const yHigh = Number(stats.yHigh ?? stats.yMax);
|
|
146
|
+
const yAvg = Number(stats.yAvg);
|
|
147
|
+
const uAvg = Number(stats.uAvg);
|
|
148
|
+
const vAvg = Number(stats.vAvg);
|
|
149
|
+
const shadowClipRisk = Number(stats.shadowClipRisk ?? (yLow <= 16 ? 1 : 0));
|
|
150
|
+
const highlightClipRisk = Number(stats.highlightClipRisk ?? (yHigh >= 235 ? 1 : 0));
|
|
151
|
+
const percentileSpread = (yHigh - yLow) / 255;
|
|
152
|
+
const normalizedAverage = yAvg / 255;
|
|
153
|
+
const contrast = percentileSpread < 0.35 ? clamp((0.35 - percentileSpread) * 0.4, "contrast") : 0;
|
|
154
|
+
|
|
155
|
+
return {
|
|
156
|
+
adjust: {
|
|
157
|
+
exposure: round(suggestedExposure(normalizedAverage, yLow, yHigh)),
|
|
158
|
+
contrast: round(contrast),
|
|
159
|
+
blacks: round(clamp(shadowClipRisk * 0.08, "blacks")),
|
|
160
|
+
whites: round(clamp(-highlightClipRisk * 0.08, "whites")),
|
|
161
|
+
temperature: round(suggestedTemperature(uAvg, vAvg)),
|
|
162
|
+
tint: round(suggestedTint(uAvg, vAvg)),
|
|
163
|
+
},
|
|
164
|
+
measured: {
|
|
165
|
+
frames: Number(stats.frames ?? 1),
|
|
166
|
+
yMin: round(yMin),
|
|
167
|
+
yLow: round(yLow),
|
|
168
|
+
yAvg: round(yAvg),
|
|
169
|
+
yHigh: round(yHigh),
|
|
170
|
+
yMax: round(yMax),
|
|
171
|
+
uAvg: round(uAvg),
|
|
172
|
+
vAvg: round(vAvg),
|
|
173
|
+
satAvg: round(Number(stats.satAvg ?? 0)),
|
|
174
|
+
shadowClipRisk: round(shadowClipRisk),
|
|
175
|
+
highlightClipRisk: round(highlightClipRisk),
|
|
176
|
+
},
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export function summarizeMediaTreatmentAnalysis(probe, frames) {
|
|
181
|
+
const result = statsToAdjust(summarizeFrames(frames));
|
|
182
|
+
const hdr = ["smpte2084", "arib-std-b67"].includes(probe.transfer);
|
|
183
|
+
const diagnosis = [];
|
|
184
|
+
if (result.measured.shadowClipRisk > 0) {
|
|
185
|
+
diagnosis.push("sampled frames contain deep or clipped shadows");
|
|
186
|
+
}
|
|
187
|
+
if (result.measured.highlightClipRisk > 0) {
|
|
188
|
+
diagnosis.push("sampled frames contain bright or clipped highlights");
|
|
189
|
+
}
|
|
190
|
+
if (diagnosis.length === 0) diagnosis.push("no obvious technical imbalance in sampled frames");
|
|
191
|
+
|
|
192
|
+
const warnings = [];
|
|
193
|
+
if (hdr) warnings.push("HDR transfer detected; the realtime treatment path is SDR/Rec.709.");
|
|
194
|
+
if (probe.colorSpace === "unknown" || probe.transfer === "unknown") {
|
|
195
|
+
warnings.push(
|
|
196
|
+
"Source color metadata is incomplete; camera LOG cannot be identified reliably from container metadata alone.",
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
return {
|
|
201
|
+
...result,
|
|
202
|
+
source: {
|
|
203
|
+
colorSpace: probe.colorSpace,
|
|
204
|
+
transfer: probe.transfer,
|
|
205
|
+
primaries: probe.primaries,
|
|
206
|
+
pixelFormat: probe.pixelFormat,
|
|
207
|
+
hdr,
|
|
208
|
+
log: "unknown",
|
|
209
|
+
},
|
|
210
|
+
diagnosis,
|
|
211
|
+
warnings,
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export function analyzeMediaGrade(
|
|
216
|
+
mediaPath,
|
|
217
|
+
{ ffmpegPath = "ffmpeg", ffprobePath = "ffprobe" } = {},
|
|
218
|
+
) {
|
|
219
|
+
try {
|
|
220
|
+
const probe = probeMedia(mediaPath, ffprobePath);
|
|
221
|
+
const isImage = IMAGE_EXT.has(extname(mediaPath).toLowerCase());
|
|
222
|
+
const fps =
|
|
223
|
+
!isImage && probe.duration
|
|
224
|
+
? Math.max(0.1, Math.min(2, SAMPLE_FRAMES / probe.duration))
|
|
225
|
+
: null;
|
|
226
|
+
const filters = [
|
|
227
|
+
fps ? `fps=${fps.toFixed(4)}` : null,
|
|
228
|
+
"format=yuv444p",
|
|
229
|
+
"signalstats",
|
|
230
|
+
"metadata=print:file=-",
|
|
231
|
+
]
|
|
232
|
+
.filter(Boolean)
|
|
233
|
+
.join(",");
|
|
234
|
+
const raw = execFileSync(
|
|
235
|
+
ffmpegPath,
|
|
236
|
+
[
|
|
237
|
+
"-hide_banner",
|
|
238
|
+
"-nostdin",
|
|
239
|
+
"-v",
|
|
240
|
+
"error",
|
|
241
|
+
"-i",
|
|
242
|
+
mediaPath,
|
|
243
|
+
"-vf",
|
|
244
|
+
filters,
|
|
245
|
+
"-frames:v",
|
|
246
|
+
String(SAMPLE_FRAMES),
|
|
247
|
+
"-f",
|
|
248
|
+
"null",
|
|
249
|
+
"-",
|
|
250
|
+
],
|
|
251
|
+
{
|
|
252
|
+
encoding: "utf8",
|
|
253
|
+
timeout: Number(process.env.HYPERFRAMES_ANALYZE_TIMEOUT_MS) || DEFAULT_TIMEOUT_MS,
|
|
254
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
255
|
+
},
|
|
256
|
+
);
|
|
257
|
+
return summarizeMediaTreatmentAnalysis(probe, parseMediaTreatmentSignalStats(raw));
|
|
258
|
+
} catch (error) {
|
|
259
|
+
throw new Error(`grade analysis failed for ${mediaPath}: ${error.message}`);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export function formatMeasuredNote(mediaPath, measured) {
|
|
264
|
+
return `media-use: measured ${basename(mediaPath)}: frames=${measured.frames}, YMIN=${measured.yMin}, YLOW=${measured.yLow}, YAVG=${measured.yAvg}, YHIGH=${measured.yHigh}, YMAX=${measured.yMax}, UAVG=${measured.uAvg}, VAVG=${measured.vAvg}; adjust is a starting suggestion`;
|
|
265
|
+
}
|