@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,119 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
2
|
+
import { extname, join } from "node:path";
|
|
3
|
+
import { rankMediaRows } from "./media-search.mjs";
|
|
4
|
+
|
|
5
|
+
const LIB_DIR =
|
|
6
|
+
process.env.HYPERFRAMES_MEDIA_USE_SFX_DIR ||
|
|
7
|
+
[
|
|
8
|
+
join(import.meta.dirname, "..", "..", "audio", "assets", "sfx"),
|
|
9
|
+
join(
|
|
10
|
+
import.meta.dirname,
|
|
11
|
+
"..",
|
|
12
|
+
"..",
|
|
13
|
+
"..",
|
|
14
|
+
"..",
|
|
15
|
+
"..",
|
|
16
|
+
"skills",
|
|
17
|
+
"media-use",
|
|
18
|
+
"audio",
|
|
19
|
+
"assets",
|
|
20
|
+
"sfx",
|
|
21
|
+
),
|
|
22
|
+
].find((candidate) => existsSync(candidate)) ||
|
|
23
|
+
join(import.meta.dirname, "..", "..", "audio", "assets", "sfx");
|
|
24
|
+
|
|
25
|
+
export const BUNDLED_SFX_RECOVERY_COMMAND = "npx hyperframes skills update media-use";
|
|
26
|
+
|
|
27
|
+
export class BundledSfxAssetsError extends Error {
|
|
28
|
+
constructor(health) {
|
|
29
|
+
super(
|
|
30
|
+
`bundled SFX assets are missing or incomplete (${health.detail}). Repair the installed media-use skill: ${health.fix}`,
|
|
31
|
+
);
|
|
32
|
+
this.name = "BundledSfxAssetsError";
|
|
33
|
+
this.code = health.code;
|
|
34
|
+
this.fix = health.fix;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function unhealthy(detail) {
|
|
39
|
+
return {
|
|
40
|
+
ok: false,
|
|
41
|
+
code: "bundled_sfx_assets_missing",
|
|
42
|
+
detail,
|
|
43
|
+
fix: BUNDLED_SFX_RECOVERY_COMMAND,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function inspectBundledSfxAssets(libraryDir = LIB_DIR) {
|
|
48
|
+
const manifestPath = join(libraryDir, "manifest.json");
|
|
49
|
+
if (!existsSync(manifestPath)) return unhealthy(`manifest not found: ${manifestPath}`);
|
|
50
|
+
|
|
51
|
+
let manifest;
|
|
52
|
+
try {
|
|
53
|
+
manifest = JSON.parse(readFileSync(manifestPath, "utf8"));
|
|
54
|
+
} catch {
|
|
55
|
+
return unhealthy(`manifest is not valid JSON: ${manifestPath}`);
|
|
56
|
+
}
|
|
57
|
+
if (!manifest || typeof manifest !== "object" || Array.isArray(manifest)) {
|
|
58
|
+
return unhealthy(`manifest must contain an object: ${manifestPath}`);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const entries = Object.entries(manifest);
|
|
62
|
+
if (entries.length === 0) return unhealthy(`manifest contains no SFX entries: ${manifestPath}`);
|
|
63
|
+
for (const [key, entry] of entries) {
|
|
64
|
+
if (!entry?.file || typeof entry.file !== "string") {
|
|
65
|
+
return unhealthy(`manifest entry "${key}" has no file`);
|
|
66
|
+
}
|
|
67
|
+
const assetPath = join(libraryDir, entry.file);
|
|
68
|
+
if (!existsSync(assetPath)) return unhealthy(`asset not found: ${assetPath}`);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return {
|
|
72
|
+
ok: true,
|
|
73
|
+
count: entries.length,
|
|
74
|
+
detail: `${entries.length} bundled SFX asset${entries.length === 1 ? "" : "s"} available`,
|
|
75
|
+
fix: "",
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function extensionForBundledSfxFile(filename) {
|
|
80
|
+
return extname(filename) || ".mp3";
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export const bundledSfxProvider = {
|
|
84
|
+
async search(intent, ctx = {}) {
|
|
85
|
+
const libraryDir = ctx.libraryDir || LIB_DIR;
|
|
86
|
+
const health = inspectBundledSfxAssets(libraryDir);
|
|
87
|
+
if (!health.ok) throw new BundledSfxAssetsError(health);
|
|
88
|
+
const manifest = JSON.parse(readFileSync(join(libraryDir, "manifest.json"), "utf8"));
|
|
89
|
+
|
|
90
|
+
const rows = Object.entries(manifest).map(([key, entry]) => ({
|
|
91
|
+
id: key,
|
|
92
|
+
kind: "sfx",
|
|
93
|
+
title: key,
|
|
94
|
+
description: entry?.description || key,
|
|
95
|
+
tags: ["sfx"],
|
|
96
|
+
file: entry?.file || "",
|
|
97
|
+
duration: entry?.duration,
|
|
98
|
+
}));
|
|
99
|
+
const bestRow = rankMediaRows(intent, rows)[0];
|
|
100
|
+
const best =
|
|
101
|
+
bestRow && manifest[bestRow.id]?.file
|
|
102
|
+
? { key: bestRow.id, entry: manifest[bestRow.id] }
|
|
103
|
+
: null;
|
|
104
|
+
if (!best) return null;
|
|
105
|
+
|
|
106
|
+
const localPath = join(libraryDir, best.entry.file);
|
|
107
|
+
return {
|
|
108
|
+
localPath,
|
|
109
|
+
ext: extensionForBundledSfxFile(best.entry.file),
|
|
110
|
+
source: "bundled",
|
|
111
|
+
metadata: {
|
|
112
|
+
description: best.entry.description || best.key,
|
|
113
|
+
duration: best.entry.duration ?? null,
|
|
114
|
+
provider: "bundled.sfx",
|
|
115
|
+
provenance: { library_key: best.key },
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
},
|
|
119
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { strict as assert } from "node:assert";
|
|
2
|
+
import { mkdtempSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import { test } from "node:test";
|
|
6
|
+
import {
|
|
7
|
+
BUNDLED_SFX_RECOVERY_COMMAND,
|
|
8
|
+
BundledSfxAssetsError,
|
|
9
|
+
bundledSfxProvider,
|
|
10
|
+
extensionForBundledSfxFile,
|
|
11
|
+
inspectBundledSfxAssets,
|
|
12
|
+
} from "./bundled-sfx-provider.mjs";
|
|
13
|
+
import { rankMediaRows } from "./media-search.mjs";
|
|
14
|
+
|
|
15
|
+
test("derives bundled SFX extension from the manifest filename", () => {
|
|
16
|
+
assert.equal(extensionForBundledSfxFile("impact.wav"), ".wav");
|
|
17
|
+
assert.equal(extensionForBundledSfxFile("whoosh.ogg"), ".ogg");
|
|
18
|
+
assert.equal(extensionForBundledSfxFile("extensionless"), ".mp3");
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
test("reports an agent-friendly recovery when the bundled SFX manifest is absent", () => {
|
|
22
|
+
const libraryDir = mkdtempSync(join(tmpdir(), "media-use-sfx-missing-"));
|
|
23
|
+
try {
|
|
24
|
+
const health = inspectBundledSfxAssets(libraryDir);
|
|
25
|
+
assert.equal(health.ok, false);
|
|
26
|
+
assert.equal(health.code, "bundled_sfx_assets_missing");
|
|
27
|
+
assert.match(health.detail, /manifest\.json/);
|
|
28
|
+
assert.match(health.fix, /hyperframes skills update media-use/);
|
|
29
|
+
assert.equal(health.fix, BUNDLED_SFX_RECOVERY_COMMAND);
|
|
30
|
+
} finally {
|
|
31
|
+
rmSync(libraryDir, { recursive: true, force: true });
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
test("reports the exact missing file from an incomplete bundled SFX install", () => {
|
|
36
|
+
const libraryDir = mkdtempSync(join(tmpdir(), "media-use-sfx-incomplete-"));
|
|
37
|
+
try {
|
|
38
|
+
writeFileSync(
|
|
39
|
+
join(libraryDir, "manifest.json"),
|
|
40
|
+
JSON.stringify({ whoosh: { file: "whoosh.mp3", description: "transition" } }),
|
|
41
|
+
);
|
|
42
|
+
const health = inspectBundledSfxAssets(libraryDir);
|
|
43
|
+
assert.equal(health.ok, false);
|
|
44
|
+
assert.equal(health.code, "bundled_sfx_assets_missing");
|
|
45
|
+
assert.match(health.detail, /whoosh\.mp3/);
|
|
46
|
+
} finally {
|
|
47
|
+
rmSync(libraryDir, { recursive: true, force: true });
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
test("bundled provider raises a typed install error instead of a generic catalog miss", async () => {
|
|
52
|
+
const libraryDir = mkdtempSync(join(tmpdir(), "media-use-sfx-provider-"));
|
|
53
|
+
try {
|
|
54
|
+
await assert.rejects(
|
|
55
|
+
() => bundledSfxProvider.search("whoosh", { libraryDir }),
|
|
56
|
+
(error) => {
|
|
57
|
+
assert.ok(error instanceof BundledSfxAssetsError);
|
|
58
|
+
assert.equal(error.code, "bundled_sfx_assets_missing");
|
|
59
|
+
assert.match(error.message, /hyperframes skills update media-use/);
|
|
60
|
+
return true;
|
|
61
|
+
},
|
|
62
|
+
);
|
|
63
|
+
} finally {
|
|
64
|
+
rmSync(libraryDir, { recursive: true, force: true });
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
test("accepts a complete bundled SFX library", () => {
|
|
69
|
+
const libraryDir = mkdtempSync(join(tmpdir(), "media-use-sfx-complete-"));
|
|
70
|
+
try {
|
|
71
|
+
mkdirSync(libraryDir, { recursive: true });
|
|
72
|
+
writeFileSync(
|
|
73
|
+
join(libraryDir, "manifest.json"),
|
|
74
|
+
JSON.stringify({ whoosh: { file: "whoosh.mp3", description: "transition" } }),
|
|
75
|
+
);
|
|
76
|
+
writeFileSync(join(libraryDir, "whoosh.mp3"), "audio");
|
|
77
|
+
assert.deepEqual(inspectBundledSfxAssets(libraryDir), {
|
|
78
|
+
ok: true,
|
|
79
|
+
count: 1,
|
|
80
|
+
detail: "1 bundled SFX asset available",
|
|
81
|
+
fix: "",
|
|
82
|
+
});
|
|
83
|
+
} finally {
|
|
84
|
+
rmSync(libraryDir, { recursive: true, force: true });
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
test("prefers an exact key over a longer key with the same words", async () => {
|
|
89
|
+
const libraryDir = mkdtempSync(join(tmpdir(), "media-use-sfx-exact-key-"));
|
|
90
|
+
try {
|
|
91
|
+
writeFileSync(
|
|
92
|
+
join(libraryDir, "manifest.json"),
|
|
93
|
+
JSON.stringify({
|
|
94
|
+
"whoosh-cinematic": { file: "whoosh-cinematic.mp3", description: "long whoosh" },
|
|
95
|
+
whoosh: { file: "whoosh.mp3", description: "short whoosh" },
|
|
96
|
+
}),
|
|
97
|
+
);
|
|
98
|
+
writeFileSync(join(libraryDir, "whoosh-cinematic.mp3"), "cinematic audio");
|
|
99
|
+
writeFileSync(join(libraryDir, "whoosh.mp3"), "exact audio");
|
|
100
|
+
|
|
101
|
+
const result = await bundledSfxProvider.search("whoosh", { libraryDir });
|
|
102
|
+
assert.equal(result?.localPath, join(libraryDir, "whoosh.mp3"));
|
|
103
|
+
assert.equal(result?.metadata.provenance.library_key, "whoosh");
|
|
104
|
+
|
|
105
|
+
const stemmed = await bundledSfxProvider.search("whooshes", { libraryDir });
|
|
106
|
+
assert.equal(stemmed?.localPath, join(libraryDir, "whoosh.mp3"));
|
|
107
|
+
assert.equal(stemmed?.metadata.provenance.library_key, "whoosh");
|
|
108
|
+
} finally {
|
|
109
|
+
rmSync(libraryDir, { recursive: true, force: true });
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
test("literal ids outrank distinct ids with the same stem", () => {
|
|
114
|
+
const rows = [
|
|
115
|
+
{
|
|
116
|
+
id: "cats",
|
|
117
|
+
title: "Cats Fighting",
|
|
118
|
+
description: "fighting cats",
|
|
119
|
+
tags: ["yowl", "fight"],
|
|
120
|
+
kind: "sfx",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: "cat",
|
|
124
|
+
title: "Cat",
|
|
125
|
+
description: "single cat",
|
|
126
|
+
tags: ["meow"],
|
|
127
|
+
kind: "sfx",
|
|
128
|
+
},
|
|
129
|
+
];
|
|
130
|
+
|
|
131
|
+
assert.deepEqual(
|
|
132
|
+
rankMediaRows("cat", rows).map((row) => row.id),
|
|
133
|
+
["cat", "cats"],
|
|
134
|
+
);
|
|
135
|
+
assert.deepEqual(
|
|
136
|
+
rankMediaRows("cats", rows).map((row) => row.id),
|
|
137
|
+
["cats", "cat"],
|
|
138
|
+
);
|
|
139
|
+
});
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { readFileSync, writeFileSync, mkdirSync, existsSync, copyFileSync } from "node:fs";
|
|
2
|
+
import { join, basename } from "node:path";
|
|
3
|
+
import { createHash } from "node:crypto";
|
|
4
|
+
import { readManifest, appendRecord, normalizePrompt } from "./manifest.mjs";
|
|
5
|
+
import { globalMediaDir, mediaHome } from "./media-home.mjs";
|
|
6
|
+
|
|
7
|
+
export { globalMediaDir };
|
|
8
|
+
|
|
9
|
+
const SCHEMA_PREFIX = "mu-v1-";
|
|
10
|
+
const KEY_HEX_CHARS = 16;
|
|
11
|
+
const COMPLETE_SENTINEL = ".hf-complete";
|
|
12
|
+
|
|
13
|
+
export function contentHash(filePath) {
|
|
14
|
+
const bytes = readFileSync(filePath);
|
|
15
|
+
return createHash("sha256").update(bytes).digest("hex");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function cacheEntryDir(rootDir, sha) {
|
|
19
|
+
return join(rootDir, SCHEMA_PREFIX + sha.slice(0, KEY_HEX_CHARS));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function isComplete(entryDir) {
|
|
23
|
+
return existsSync(join(entryDir, COMPLETE_SENTINEL));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function markComplete(entryDir) {
|
|
27
|
+
writeFileSync(join(entryDir, COMPLETE_SENTINEL), "", "utf8");
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// The manifest helpers append their own ".media" to the dir they get, so the
|
|
31
|
+
// global manifest must be addressed by mediaHome(), not by globalMediaDir() — passing
|
|
32
|
+
// the latter nested it at ~/.media/.media/manifest.jsonl, invisible to the
|
|
33
|
+
// Studio /api/assets/global route (which reads the documented flat path).
|
|
34
|
+
export function readGlobalManifest() {
|
|
35
|
+
return readManifest(mediaHome());
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Resolve a content-sha (full or unambiguous prefix) to a reusable global-cache
|
|
39
|
+
// record, for `resolve --reuse <sha>`. Returns null on no match, or
|
|
40
|
+
// { ambiguous: true, count } when a prefix matches multiple distinct entries.
|
|
41
|
+
// Completeness (the .hf-complete sentinel) is left to importFromCache so the
|
|
42
|
+
// caller can surface an "incomplete cache entry" error distinctly from a miss.
|
|
43
|
+
export function findGlobalBySha(shaPrefix) {
|
|
44
|
+
const p = String(shaPrefix || "")
|
|
45
|
+
.toLowerCase()
|
|
46
|
+
.trim();
|
|
47
|
+
if (!p) return null;
|
|
48
|
+
const matches = readGlobalManifest().filter(
|
|
49
|
+
(r) => r.reusable && typeof r.sha === "string" && r.sha.startsWith(p),
|
|
50
|
+
);
|
|
51
|
+
if (matches.length === 0) return null;
|
|
52
|
+
if (matches.length > 1) {
|
|
53
|
+
const exact = matches.find((r) => r.sha === p);
|
|
54
|
+
if (exact) return exact;
|
|
55
|
+
return { ambiguous: true, count: matches.length };
|
|
56
|
+
}
|
|
57
|
+
return matches[0];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function validateCacheHit(match) {
|
|
61
|
+
if (!match?.sha) return null;
|
|
62
|
+
return isComplete(cacheEntryDir(globalMediaDir(), match.sha)) ? match : null;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function cacheGet(prompt, type) {
|
|
66
|
+
const key = normalizePrompt(prompt);
|
|
67
|
+
if (!key) return null;
|
|
68
|
+
return validateCacheHit(
|
|
69
|
+
readGlobalManifest().find(
|
|
70
|
+
(r) =>
|
|
71
|
+
r.reusable &&
|
|
72
|
+
normalizePrompt(r.provenance?.prompt) === key &&
|
|
73
|
+
(type == null || r.type === type),
|
|
74
|
+
),
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function cacheGetByEntity(entity) {
|
|
79
|
+
const lower = entity.toLowerCase();
|
|
80
|
+
return validateCacheHit(
|
|
81
|
+
readGlobalManifest().find((r) => r.reusable && r.entity && r.entity.toLowerCase() === lower),
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function cachePut(filePath, record) {
|
|
86
|
+
const sha = contentHash(filePath);
|
|
87
|
+
// Idempotent: same content already promoted -> don't duplicate the global
|
|
88
|
+
// record. ponytail: skips usage_count bump; add it when the metric is needed.
|
|
89
|
+
const existing = readGlobalManifest().find((r) => r.sha === sha);
|
|
90
|
+
if (existing) return { sha, cached_path: existing.cached_path, deduped: true };
|
|
91
|
+
|
|
92
|
+
const dir = globalMediaDir();
|
|
93
|
+
const entryDir = cacheEntryDir(dir, sha);
|
|
94
|
+
mkdirSync(entryDir, { recursive: true });
|
|
95
|
+
|
|
96
|
+
const dest = join(entryDir, basename(filePath));
|
|
97
|
+
copyFileSync(filePath, dest);
|
|
98
|
+
markComplete(entryDir);
|
|
99
|
+
|
|
100
|
+
const globalRecord = {
|
|
101
|
+
...record,
|
|
102
|
+
sha,
|
|
103
|
+
reusable: true,
|
|
104
|
+
cached_path: dest,
|
|
105
|
+
};
|
|
106
|
+
appendRecord(mediaHome(), globalRecord);
|
|
107
|
+
return { sha, cached_path: dest };
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function importFromCache(cacheRecord, projectDir, localId, localPath) {
|
|
111
|
+
const sha = cacheRecord.sha;
|
|
112
|
+
const entryDir = cacheEntryDir(globalMediaDir(), sha);
|
|
113
|
+
if (!isComplete(entryDir)) return null;
|
|
114
|
+
|
|
115
|
+
const cachedFile = cacheRecord.cached_path;
|
|
116
|
+
if (!cachedFile || !existsSync(cachedFile)) return null;
|
|
117
|
+
|
|
118
|
+
mkdirSync(join(projectDir, ".media"), { recursive: true });
|
|
119
|
+
const fullDest = join(projectDir, localPath);
|
|
120
|
+
mkdirSync(join(fullDest, ".."), { recursive: true });
|
|
121
|
+
copyFileSync(cachedFile, fullDest);
|
|
122
|
+
|
|
123
|
+
const projectRecord = {
|
|
124
|
+
...cacheRecord,
|
|
125
|
+
id: localId,
|
|
126
|
+
path: localPath,
|
|
127
|
+
provenance: {
|
|
128
|
+
...cacheRecord.provenance,
|
|
129
|
+
imported_from: sha,
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
delete projectRecord.sha;
|
|
133
|
+
delete projectRecord.reusable;
|
|
134
|
+
delete projectRecord.cached_path;
|
|
135
|
+
|
|
136
|
+
return projectRecord;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function promote(projectDir, id) {
|
|
140
|
+
const records = readManifest(projectDir);
|
|
141
|
+
const record = records.find((r) => r.id === id);
|
|
142
|
+
if (!record) throw new Error(`asset not found in project manifest: ${id}`);
|
|
143
|
+
|
|
144
|
+
const filePath = join(projectDir, record.path);
|
|
145
|
+
if (!existsSync(filePath)) throw new Error(`asset file not found: ${filePath}`);
|
|
146
|
+
|
|
147
|
+
return cachePut(filePath, record);
|
|
148
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// Reuse candidates: a side-effect-free view of assets already available to this
|
|
2
|
+
// project (its own manifest) and across every project (the global ~/.media
|
|
3
|
+
// cache), so the calling agent can judge semantic fit itself. No download, no
|
|
4
|
+
// provider, no mutation. The ranker only *surfaces* — it orders by lexical
|
|
5
|
+
// overlap but never filters a candidate out on zero overlap (that would
|
|
6
|
+
// pre-empt the agent's judgment); the agent does the semantic call.
|
|
7
|
+
|
|
8
|
+
import { currentRecords } from "./manifest.mjs";
|
|
9
|
+
import { readGlobalManifest } from "./cache.mjs";
|
|
10
|
+
import { tokenOverlap, typesMatch } from "./match.mjs";
|
|
11
|
+
|
|
12
|
+
export const CANDIDATE_CAP = 8;
|
|
13
|
+
|
|
14
|
+
function shape(record, scope, intent) {
|
|
15
|
+
const description = record.description || record.provenance?.prompt || "";
|
|
16
|
+
const prompt = record.provenance?.prompt || null;
|
|
17
|
+
return {
|
|
18
|
+
id: record.id,
|
|
19
|
+
type: record.type,
|
|
20
|
+
scope,
|
|
21
|
+
description,
|
|
22
|
+
prompt,
|
|
23
|
+
provider: record.provenance?.provider || null,
|
|
24
|
+
duration: record.duration ?? null,
|
|
25
|
+
width: record.width ?? null,
|
|
26
|
+
height: record.height ?? null,
|
|
27
|
+
// Only global records carry a content sha — it is the stable reuse handle
|
|
28
|
+
// for `resolve --reuse <sha>`. Project assets are reused by referencing
|
|
29
|
+
// their path directly, so they need no handle.
|
|
30
|
+
sha: scope === "global" ? record.sha || null : null,
|
|
31
|
+
path: scope === "project" ? record.path : null,
|
|
32
|
+
score: intent ? tokenOverlap(intent, `${description} ${prompt || ""}`) : 0,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Rank one scope: type-matched (icon<->image aware), newest-first within equal
|
|
37
|
+
// overlap, ordered by overlap desc. Returns the full ranked list (uncapped).
|
|
38
|
+
function rankScope(records, scope, type, intent) {
|
|
39
|
+
return records
|
|
40
|
+
.filter((r) => typesMatch(r.type, type))
|
|
41
|
+
.reverse() // manifest is append-order (oldest first); newest-first at equal score
|
|
42
|
+
.map((r) => shape(r, scope, intent))
|
|
43
|
+
.sort((a, b) => b.score - a.score); // Array.sort is stable → recency preserved
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// List reuse candidates for `type`, capped per scope. Returns:
|
|
47
|
+
// candidates: capped project candidates followed by capped global candidates
|
|
48
|
+
// truncated: true if either scope had more than `cap`
|
|
49
|
+
// total: { project, global } counts before the cap (machine-readable)
|
|
50
|
+
// similar: count of candidates with lexical overlap > 0 (drives the nudge)
|
|
51
|
+
export function listCandidates({ projectDir, type, intent = "", cap = CANDIDATE_CAP }) {
|
|
52
|
+
const project = rankScope(currentRecords(projectDir), "project", type, intent);
|
|
53
|
+
const global = rankScope(readGlobalManifest(), "global", type, intent);
|
|
54
|
+
const candidates = [...project.slice(0, cap), ...global.slice(0, cap)];
|
|
55
|
+
return {
|
|
56
|
+
candidates,
|
|
57
|
+
truncated: project.length > cap || global.length > cap,
|
|
58
|
+
total: { project: project.length, global: global.length },
|
|
59
|
+
similar: [...project, ...global].filter((c) => c.score > 0).length,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function meta(c) {
|
|
64
|
+
const parts = [];
|
|
65
|
+
if (c.duration != null) parts.push(`${c.duration}s`);
|
|
66
|
+
if (c.width && c.height) parts.push(`${c.width}x${c.height}`);
|
|
67
|
+
if (c.provider) parts.push(c.provider);
|
|
68
|
+
return parts.join(", ");
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Human-readable listing. The agent can read this directly; --json is for
|
|
72
|
+
// programmatic use. Reuse handle differs by scope: path for project, sha for
|
|
73
|
+
// global.
|
|
74
|
+
export function formatCandidates(candidates, { truncated, total } = {}) {
|
|
75
|
+
if (candidates.length === 0) return "no reuse candidates found (project or global cache)";
|
|
76
|
+
const lines = [`${candidates.length} reuse candidate${candidates.length === 1 ? "" : "s"}:`, ""];
|
|
77
|
+
for (const c of candidates) {
|
|
78
|
+
const handle =
|
|
79
|
+
c.scope === "global" ? `--reuse ${String(c.sha).slice(0, 16)}` : c.path || `manifest:${c.id}`;
|
|
80
|
+
const m = meta(c);
|
|
81
|
+
lines.push(` [${c.scope}] ${c.description}${m ? ` (${m})` : ""}`);
|
|
82
|
+
lines.push(` ${handle}`);
|
|
83
|
+
}
|
|
84
|
+
if (truncated && total) {
|
|
85
|
+
lines.push("");
|
|
86
|
+
lines.push(
|
|
87
|
+
` (showing top ${CANDIDATE_CAP} per scope; ${total.project} project / ${total.global} global total — refine --intent to narrow)`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
return lines.join("\n");
|
|
91
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { test } from "node:test";
|
|
2
|
+
import { strict as assert } from "node:assert";
|
|
3
|
+
import { mkdtempSync, rmSync, mkdirSync, writeFileSync } from "node:fs";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import { tmpdir } from "node:os";
|
|
6
|
+
import { listCandidates, formatCandidates, CANDIDATE_CAP } from "./candidates.mjs";
|
|
7
|
+
import { findGlobalBySha } from "./cache.mjs";
|
|
8
|
+
|
|
9
|
+
// candidates + findGlobalBySha are offline (no heygen), so we can point HYPERFRAMES_MEDIA_HOME
|
|
10
|
+
// to a temp dir and seed a fake global ~/.media manifest deterministically.
|
|
11
|
+
function sandbox() {
|
|
12
|
+
const root = mkdtempSync(join(tmpdir(), "mu-cand-"));
|
|
13
|
+
const project = join(root, "proj");
|
|
14
|
+
const home = join(root, "home");
|
|
15
|
+
process.env.HYPERFRAMES_MEDIA_HOME = home;
|
|
16
|
+
return { root, project, home };
|
|
17
|
+
}
|
|
18
|
+
function seedManifest(dir, records) {
|
|
19
|
+
const md = join(dir, ".media");
|
|
20
|
+
mkdirSync(md, { recursive: true });
|
|
21
|
+
writeFileSync(md + "/manifest.jsonl", records.map((r) => JSON.stringify(r)).join("\n") + "\n");
|
|
22
|
+
}
|
|
23
|
+
function proj(id, type, description, prompt) {
|
|
24
|
+
return { id, type, path: `.media/audio/bgm/${id}.wav`, description, provenance: { prompt } };
|
|
25
|
+
}
|
|
26
|
+
function glob(id, type, description, prompt, sha) {
|
|
27
|
+
return {
|
|
28
|
+
id,
|
|
29
|
+
type,
|
|
30
|
+
sha,
|
|
31
|
+
reusable: true,
|
|
32
|
+
cached_path: `/x/${sha}/${id}.wav`,
|
|
33
|
+
description,
|
|
34
|
+
provenance: { prompt, provider: "heygen.audio.sounds" },
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
test("ranks project + global by overlap, tags scope", () => {
|
|
39
|
+
const { root, project, home } = sandbox();
|
|
40
|
+
try {
|
|
41
|
+
seedManifest(project, [proj("bgm_001", "bgm", "calm ambient piano", "calm ambient piano")]);
|
|
42
|
+
seedManifest(home, [
|
|
43
|
+
glob("bgm_009", "bgm", "energetic tech launch", "energetic tech launch", "a".repeat(64)),
|
|
44
|
+
glob("bgm_010", "bgm", "sad corporate piano", "sad corporate piano", "b".repeat(64)),
|
|
45
|
+
]);
|
|
46
|
+
const { candidates } = listCandidates({
|
|
47
|
+
projectDir: project,
|
|
48
|
+
type: "bgm",
|
|
49
|
+
intent: "tech launch",
|
|
50
|
+
});
|
|
51
|
+
assert.equal(candidates[0].scope, "project"); // project listed first
|
|
52
|
+
const g = candidates.filter((c) => c.scope === "global");
|
|
53
|
+
assert.equal(g[0].description, "energetic tech launch"); // higher overlap ranks first
|
|
54
|
+
assert.ok(g[0].score >= g[1].score);
|
|
55
|
+
} finally {
|
|
56
|
+
rmSync(root, { recursive: true, force: true });
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
test("zero-overlap intent still lists candidates (no hard filter)", () => {
|
|
61
|
+
const { root, project, home } = sandbox();
|
|
62
|
+
try {
|
|
63
|
+
seedManifest(project, []);
|
|
64
|
+
seedManifest(home, [glob("bgm_009", "bgm", "driving synth", "driving synth", "c".repeat(64))]);
|
|
65
|
+
const { candidates, similar } = listCandidates({
|
|
66
|
+
projectDir: project,
|
|
67
|
+
type: "bgm",
|
|
68
|
+
intent: "totally unrelated words xyz",
|
|
69
|
+
});
|
|
70
|
+
assert.equal(candidates.length, 1, "listed despite zero overlap");
|
|
71
|
+
assert.equal(candidates[0].score, 0);
|
|
72
|
+
assert.equal(similar, 0, "similar counts only overlap>0");
|
|
73
|
+
} finally {
|
|
74
|
+
rmSync(root, { recursive: true, force: true });
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
test("caps per scope and reports truncation + totals", () => {
|
|
79
|
+
const { root, project, home } = sandbox();
|
|
80
|
+
try {
|
|
81
|
+
const many = Array.from({ length: CANDIDATE_CAP + 3 }, (_, i) =>
|
|
82
|
+
glob(`bgm_${i}`, "bgm", `track ${i}`, `track ${i}`, String(i).padStart(64, "0")),
|
|
83
|
+
);
|
|
84
|
+
seedManifest(project, []);
|
|
85
|
+
seedManifest(home, many);
|
|
86
|
+
const { candidates, truncated, total } = listCandidates({ projectDir: project, type: "bgm" });
|
|
87
|
+
assert.equal(candidates.length, CANDIDATE_CAP);
|
|
88
|
+
assert.equal(truncated, true);
|
|
89
|
+
assert.equal(total.global, CANDIDATE_CAP + 3);
|
|
90
|
+
} finally {
|
|
91
|
+
rmSync(root, { recursive: true, force: true });
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
test("honors icon<->image adjacency", () => {
|
|
96
|
+
const { root, project, home } = sandbox();
|
|
97
|
+
try {
|
|
98
|
+
seedManifest(project, []);
|
|
99
|
+
seedManifest(home, [glob("image_1", "image", "rocket logo", "rocket logo", "d".repeat(64))]);
|
|
100
|
+
const { candidates } = listCandidates({ projectDir: project, type: "icon", intent: "rocket" });
|
|
101
|
+
assert.equal(candidates.length, 1, "image asset surfaces for icon request");
|
|
102
|
+
} finally {
|
|
103
|
+
rmSync(root, { recursive: true, force: true });
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
test("sha only on global, path only on project", () => {
|
|
108
|
+
const { root, project, home } = sandbox();
|
|
109
|
+
try {
|
|
110
|
+
seedManifest(project, [proj("bgm_001", "bgm", "x", "x")]);
|
|
111
|
+
seedManifest(home, [glob("bgm_009", "bgm", "y", "y", "e".repeat(64))]);
|
|
112
|
+
const { candidates } = listCandidates({ projectDir: project, type: "bgm" });
|
|
113
|
+
const p = candidates.find((c) => c.scope === "project");
|
|
114
|
+
const g = candidates.find((c) => c.scope === "global");
|
|
115
|
+
assert.ok(p.path && !p.sha);
|
|
116
|
+
assert.ok(g.sha && !g.path);
|
|
117
|
+
} finally {
|
|
118
|
+
rmSync(root, { recursive: true, force: true });
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
test("findGlobalBySha resolves unique prefix, flags ambiguity, misses cleanly", () => {
|
|
123
|
+
const { root, project, home } = sandbox();
|
|
124
|
+
try {
|
|
125
|
+
seedManifest(project, []);
|
|
126
|
+
seedManifest(home, [
|
|
127
|
+
glob("bgm_1", "bgm", "a", "a", "abc" + "0".repeat(61)),
|
|
128
|
+
glob("bgm_2", "bgm", "b", "b", "abd" + "0".repeat(61)),
|
|
129
|
+
glob("bgm_3", "bgm", "c", "c", "fff" + "0".repeat(61)),
|
|
130
|
+
]);
|
|
131
|
+
assert.equal(findGlobalBySha("fff").id, "bgm_3", "unique prefix resolves");
|
|
132
|
+
assert.deepEqual(
|
|
133
|
+
{ ambiguous: findGlobalBySha("ab").ambiguous, count: findGlobalBySha("ab").count },
|
|
134
|
+
{ ambiguous: true, count: 2 },
|
|
135
|
+
"ambiguous prefix flagged",
|
|
136
|
+
);
|
|
137
|
+
assert.equal(findGlobalBySha("zzz"), null, "miss returns null");
|
|
138
|
+
assert.equal(findGlobalBySha(""), null, "empty returns null");
|
|
139
|
+
} finally {
|
|
140
|
+
rmSync(root, { recursive: true, force: true });
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
test("formatCandidates shows reuse handles by scope; empty message", () => {
|
|
145
|
+
const { candidates } = {
|
|
146
|
+
candidates: [
|
|
147
|
+
{ scope: "project", description: "p", path: ".media/audio/bgm/bgm_001.wav" },
|
|
148
|
+
{ scope: "global", description: "g", sha: "f".repeat(64) },
|
|
149
|
+
],
|
|
150
|
+
};
|
|
151
|
+
const out = formatCandidates(candidates, {});
|
|
152
|
+
assert.match(out, /\.media\/audio\/bgm\/bgm_001\.wav/);
|
|
153
|
+
assert.match(out, /--reuse ffffffffffffffff/);
|
|
154
|
+
assert.match(formatCandidates([], {}), /no reuse candidates/);
|
|
155
|
+
});
|