hyperframes 0.9.12 → 0.9.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-NLR4EVAF.js → add-JNKCTPWJ.js} +19 -18
- package/dist/{agentPromptGenerator-S3GWYMVC.js → agentPromptGenerator-DSF7AEVE.js} +9 -9
- package/dist/{animatedGifPrep-YU7IOD5D.js → animatedGifPrep-BIEUMGB3.js} +9 -9
- package/dist/api.js +53 -30
- package/dist/{asset-7NPBAXDA.js → asset-V6JAJRCF.js} +5 -5
- package/dist/{assetCataloger-VKJIQCYP.js → assetCataloger-SCLH2WAC.js} +10 -10
- package/dist/{audio-ZNVUZH44.js → audio-JX76VDCY.js} +25 -24
- package/dist/{auth-PTVZNLE6.js → auth-TRE4ASYT.js} +6 -6
- package/dist/{autoUpdate-QJPCV7FB.js → autoUpdate-D5UUCIOR.js} +4 -4
- package/dist/avatars-26EUVWXR.js +168 -0
- package/dist/{backgroundChecks-UA6LCZAG.js → backgroundChecks-RM5GWZIW.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-W4RXBUNE.js → batchRender-5ZEQ6U4N.js} +8 -8
- package/dist/{beats-IG7C72YF.js → beats-3YW7MGZY.js} +27 -19
- package/dist/{benchmark-YUD3XIT2.js → benchmark-MYQTWUO3.js} +15 -15
- package/dist/{billing-5YSYJJ2V.js → billing-2X3JNNM4.js} +100 -23
- package/dist/{browser-TZILXH5J.js → browser-CQSY36GL.js} +8 -8
- package/dist/bundleWithLocalizedFonts-Z6KCDBP2.js +23 -0
- package/dist/{capture-MICLAF6V.js → capture-IK5GIWOS.js} +29 -32
- package/dist/{capture-R77HOGLQ.js → capture-NWBNWBIX.js} +5 -5
- package/dist/{captureCompositionFrame-WBMFZHEF.js → captureCompositionFrame-KR3PELMO.js} +17 -17
- package/dist/{catalog-AMPL57XF.js → catalog-2Q73F42B.js} +20 -19
- package/dist/{catch-up-WQ7ZRRFT.js → catch-up-JP3FL3FX.js} +8 -8
- package/dist/{check-ZPBF3X5D.js → check-UIMXDUPK.js} +51 -50
- package/dist/{checkAudio-IG3BOW2G.js → checkAudio-CSX4G35O.js} +15 -15
- package/dist/{checkBrowser-AIUIKFMJ.js → checkBrowser-MTCJVJYJ.js} +43 -42
- package/dist/{chunk-B3IE7CN2.js → chunk-2BDSLTEG.js} +10 -10
- package/dist/{chunk-URJ7T6T6.js → chunk-2L4HQ5K4.js} +1 -1
- package/dist/{chunk-RFTLWXEX.js → chunk-2NHPNI42.js} +11 -11
- package/dist/{chunk-EPCVE3OX.js → chunk-2OIONPKY.js} +3 -3
- package/dist/{chunk-WTGG734B.js → chunk-2SYOEZ2Z.js} +5 -5
- package/dist/{chunk-HY64QA63.js → chunk-2YT656R2.js} +22 -10
- package/dist/{chunk-NTHJJ6JT.js → chunk-35RZMUTX.js} +7 -7
- package/dist/{chunk-LIN633KG.js → chunk-3B7TDQEW.js} +5 -5
- package/dist/{bundleWithLocalizedFonts-BOIW3CIU.js → chunk-3BHDAXDA.js} +5 -9
- package/dist/{chunk-VWQY3A64.js → chunk-3CXUZSLE.js} +2 -2
- package/dist/{chunk-5WHGO5XU.js → chunk-4MY6FPX4.js} +1 -1
- package/dist/{chunk-V6HV2IDT.js → chunk-4NE6CBMW.js} +1 -1
- package/dist/{chunk-JS6ZTPYC.js → chunk-53UV2EUT.js} +3 -3
- package/dist/{chunk-6IFY3ZQC.js → chunk-5ENBFVPD.js} +5 -5
- package/dist/{chunk-AW3XJY4S.js → chunk-6FDVPIOO.js} +1 -1
- package/dist/{chunk-VECINIPA.js → chunk-6FOO4QTU.js} +2 -2
- package/dist/{chunk-6R2PED3X.js → chunk-6OSVMSGV.js} +10 -10
- package/dist/{chunk-JKSASCBT.js → chunk-6UM5C4R6.js} +2 -2
- package/dist/{chunk-SFS5BTQ3.js → chunk-6YPQSVVR.js} +1 -1
- package/dist/{chunk-N6FGHJ7X.js → chunk-6ZRGEVAM.js} +97 -26
- package/dist/{chunk-2QMEP4LR.js → chunk-7AVR3VZE.js} +1 -1
- package/dist/{chunk-6KV3CMY2.js → chunk-7LQVFIO4.js} +4 -16
- package/dist/{chunk-3IKLV3D4.js → chunk-7NPHPQH5.js} +2 -2
- package/dist/{chunk-OJTXXFYO.js → chunk-7X3UDKJK.js} +1 -1
- package/dist/{chunk-XZP5OW5V.js → chunk-AKE744C5.js} +1 -1
- package/dist/{chunk-64ZWPFAX.js → chunk-AOJBIFKU.js} +2 -2
- package/dist/{chunk-OQKAP6X4.js → chunk-AWV4F5TS.js} +2 -2
- package/dist/{chunk-X5EOH44V.js → chunk-B2RMMRJB.js} +1 -1
- package/dist/{chunk-MWHTLXG4.js → chunk-B3CSMKM7.js} +1 -1
- package/dist/{chunk-MDMQD6BV.js → chunk-B6C33MNL.js} +41 -17
- package/dist/{chunk-7XKWBMBL.js → chunk-BNUN7KXZ.js} +2 -2
- package/dist/{chunk-H7H7XNYY.js → chunk-BXCPOMS3.js} +11 -9
- package/dist/{chunk-TSQZ3DSC.js → chunk-BY7PZB6H.js} +1 -1
- package/dist/{chunk-BONBJJ35.js → chunk-CKEOCCMK.js} +1 -1
- package/dist/{chunk-42TYQPES.js → chunk-CMPHS5E6.js} +2 -2
- package/dist/{chunk-JHILL4BN.js → chunk-CUCP7FKH.js} +461 -1
- package/dist/{chunk-XX77LLFJ.js → chunk-CZ5NNJ6H.js} +120 -25
- package/dist/{chunk-C3NC67BB.js → chunk-D3FZQL5R.js} +8 -8
- package/dist/chunk-D3UCUI7G.js +68 -0
- package/dist/{chunk-VM6T3Z6B.js → chunk-DD47NQJZ.js} +1 -1
- package/dist/{chunk-2VZVMCV6.js → chunk-DSIGJUNY.js} +1 -1
- package/dist/{chunk-E2YXF2EP.js → chunk-DTU4XJNP.js} +4 -4
- package/dist/{chunk-4XGASFTP.js → chunk-DTZSKJV5.js} +3 -3
- package/dist/{chunk-7RM3TB62.js → chunk-DVJUBMS7.js} +1 -1
- package/dist/{chunk-KUXOAS4Z.js → chunk-DX4OFRBN.js} +41 -37
- package/dist/{chunk-Y3ICFPFK.js → chunk-EAO46VPT.js} +3 -3
- package/dist/{chunk-M6JFR7KF.js → chunk-EOCFNE53.js} +21 -32
- package/dist/{chunk-LTBBFLOM.js → chunk-FC2OXEBQ.js} +1 -1
- package/dist/{chunk-BW2RIJKV.js → chunk-FF3VKFCN.js} +163 -98
- package/dist/{chunk-WQ4SMZDF.js → chunk-FQFWGAON.js} +2 -2
- package/dist/{chunk-J3RXEDR2.js → chunk-FYZFURBN.js} +2 -2
- package/dist/{chunk-ZLN3AJKT.js → chunk-FZRTCVU6.js} +1 -1
- package/dist/{chunk-YEBIOQRI.js → chunk-GY7D2OEQ.js} +3 -3
- package/dist/chunk-HNZ2FZIB.js +45 -0
- package/dist/{chunk-2GICKZ3I.js → chunk-HOCC4J5C.js} +1 -1
- package/dist/{chunk-4J4EGANW.js → chunk-HVIQQCLM.js} +16 -16
- package/dist/{chunk-PKLZ5PV2.js → chunk-HZSAOL5O.js} +2 -2
- package/dist/{chunk-3DWH6Z5U.js → chunk-I5PI43EI.js} +1 -1
- package/dist/{chunk-KT4KPBI7.js → chunk-IO3BC2ZK.js} +3 -3
- package/dist/{chunk-4H4DR36N.js → chunk-IOPE4LJ2.js} +1 -1
- package/dist/{chunk-QRCORKYC.js → chunk-IPZ3QGDO.js} +2 -2
- package/dist/{chunk-LV5SL4YW.js → chunk-K5CK4G75.js} +3 -3
- package/dist/{chunk-2VYAX3ZD.js → chunk-L24GJQNZ.js} +16 -12
- package/dist/{chunk-WJD3GVAA.js → chunk-LISUH6KH.js} +1 -1
- package/dist/chunk-LSUM6RTW.js +20 -0
- package/dist/{chunk-ZD3MK4H5.js → chunk-LZYXYJMX.js} +1 -1
- package/dist/{chunk-LO3EX3YP.js → chunk-M34AOUVK.js} +7 -7
- package/dist/{chunk-5LOZWO2M.js → chunk-M3JU24AI.js} +1 -1
- package/dist/{chunk-NQYW4IYN.js → chunk-MWPPZOY5.js} +4 -4
- package/dist/{chunk-KDOJX2HU.js → chunk-MY2W7VWC.js} +15 -15
- package/dist/{chunk-W5AUD5OL.js → chunk-N7ZKI2CE.js} +5 -5
- package/dist/{chunk-73EXHUMD.js → chunk-NBUPR3ZF.js} +1 -1
- package/dist/{chunk-AHLDGEH5.js → chunk-NLEIM52W.js} +84 -22
- package/dist/{chunk-XJG65BB2.js → chunk-NWFIYKEI.js} +10 -10
- package/dist/{chunk-2P5DTXUN.js → chunk-NZTYGWRK.js} +1 -1
- package/dist/{chunk-N74N2I2K.js → chunk-O4ONYFY3.js} +1 -1
- package/dist/{chunk-QFZ3ZSXI.js → chunk-O4ZD7TVR.js} +18 -2
- package/dist/{chunk-FLXZ4GZI.js → chunk-OHN3OJQQ.js} +1 -1
- package/dist/{chunk-C2KEGBR3.js → chunk-OHQRQE7F.js} +1 -394
- package/dist/{chunk-S2UKSI3C.js → chunk-PA27AW3Y.js} +1 -1
- package/dist/{chunk-X6XIY4JY.js → chunk-PCY67JUL.js} +303 -29
- package/dist/{chunk-SG4YBQPY.js → chunk-PYPW33ET.js} +2 -2
- package/dist/{chunk-Z2DJSEQC.js → chunk-QSEHVJFA.js} +75 -219
- package/dist/{chunk-CPMTEWQM.js → chunk-RX2PFZ5W.js} +4 -4
- package/dist/{chunk-OAFGA2FR.js → chunk-SAAJ2O7A.js} +1 -1
- package/dist/{chunk-GAKRZZHQ.js → chunk-SQC4CTD2.js} +2 -2
- package/dist/{chunk-6NKEEHFR.js → chunk-SSBAETRX.js} +6 -6
- package/dist/{chunk-AUYRWWFL.js → chunk-T32JKZX3.js} +3 -3
- package/dist/{chunk-A33GFLPY.js → chunk-T4FLVFQE.js} +1 -1
- package/dist/{chunk-P7Y2YCOF.js → chunk-TESXTEV5.js} +1 -1
- package/dist/{chunk-Q3IT7I2K.js → chunk-TRK77R5G.js} +1 -1
- package/dist/{chunk-EBUA6NWH.js → chunk-TTBCQFRY.js} +2 -2
- package/dist/{chunk-LR5NVYZT.js → chunk-U22NZEQV.js} +2 -2
- package/dist/{chunk-WWBEAKTO.js → chunk-UXS7VE75.js} +1 -1
- package/dist/{chunk-R7EKEIAK.js → chunk-VD5G4Y6U.js} +1 -1
- package/dist/{chunk-ABI256T5.js → chunk-W7ITBVJE.js} +4 -4
- package/dist/{chunk-FC4WF2VQ.js → chunk-WAH2X7FF.js} +2 -2
- package/dist/{chunk-FPR57WRR.js → chunk-WEWXIQPN.js} +1 -1
- package/dist/{chunk-SSZTRWKQ.js → chunk-WXYV47JX.js} +4 -4
- package/dist/{chunk-NWQFOHXF.js → chunk-WYXBJVM2.js} +1 -1
- package/dist/{chunk-FFUBISTD.js → chunk-X46MRJYK.js} +1 -1
- package/dist/{chunk-UH62KSYV.js → chunk-XMOWL46H.js} +3 -3
- package/dist/{chunk-VUMGJLRB.js → chunk-YBR4L5JA.js} +1 -1
- package/dist/{chunk-7FMUTGOH.js → chunk-ZB2XGJSP.js} +152 -5
- package/dist/{chunk-QOF7XZEI.js → chunk-ZE2QZHUH.js} +2 -2
- package/dist/{chunk-ETYQYG6Q.js → chunk-ZFZXGZTX.js} +27 -18
- package/dist/{chunk-AVNF52HR.js → chunk-ZNHWAGMH.js} +1 -1
- package/dist/{chunk-Q225NLQL.js → chunk-ZSAKJRZB.js} +6 -6
- package/dist/{chunk-7W5ZDOLW.js → chunk-ZZBO3GF5.js} +15 -4
- package/dist/{clean-343XOJT3.js → clean-P3SZCIFU.js} +25 -25
- package/dist/cli.js +69 -68
- package/dist/{cloud-2YS272KD.js → cloud-G7YQIVI7.js} +6 -6
- package/dist/{cloud-B6SGMECY.js → cloud-RFM3PYTR.js} +6 -5
- package/dist/{cloudrun-N737TJRC.js → cloudrun-LXZT5UDK.js} +11 -11
- package/dist/{colors-HRL7QSVG.js → colors-CRTWLZ5S.js} +2 -2
- package/dist/{compare-KXCTMXFX.js → compare-BHQHEOMX.js} +39 -38
- package/dist/{compiler-KKIYPREA.js → compiler-V72QWKGC.js} +6 -6
- package/dist/{component-ZUDCIGGD.js → component-6GDCT3GK.js} +6 -6
- package/dist/{compositions-FNFI2QOA.js → compositions-JM6HKCRF.js} +19 -19
- package/dist/{curve-5BMBBCSZ.js → curve-Y7JRXLIJ.js} +16 -16
- package/dist/{cuts-OKUA6BWH.js → cuts-LDVDQTRL.js} +17 -17
- package/dist/{delete-FYMFNSED.js → delete-NCZIKWHU.js} +12 -11
- package/dist/{deploy-YZU2YITA.js → deploy-R4OEJEB6.js} +10 -7
- package/dist/{describeProject-E44RWBJL.js → describeProject-4GKZTYHA.js} +13 -13
- package/dist/{destroy-IQLGADZM.js → destroy-6XY4WQWY.js} +2 -2
- package/dist/{deterministicFonts-GQMT52JQ.js → deterministicFonts-HY5GWGQQ.js} +3 -3
- package/dist/{diff-5X6I6EG5.js → diff-C53GPSNU.js} +55 -36
- package/dist/{dist-GUX66F7V.js → dist-R7SPMKEZ.js} +4 -4
- package/dist/{dist-PCVNVAVC.js → dist-TI44VPHO.js} +6 -4
- package/dist/{dist-PUHEYGA5.js → dist-TJZSSDR2.js} +14 -14
- package/dist/{docs-D22SOQEZ.js → docs-WYJSJGSF.js} +2 -2
- package/dist/{doctor-3DXWW63F.js → doctor-V4RICWU2.js} +16 -16
- package/dist/{energy-4HY7COXH.js → energy-S5Z7CGSB.js} +17 -17
- package/dist/{events-JAGPGK7R.js → events-6HROTYLC.js} +14 -6
- package/dist/{events-TFVE7AUR.js → events-QKJE5XRN.js} +5 -5
- package/dist/{events-ULVZ7V2C.js → events-RAJGQK7Y.js} +19 -19
- package/dist/{extract-5KTFRIH2.js → extract-RYGWEC5V.js} +17 -17
- package/dist/{face-T6D34LR7.js → face-IWRDW2QO.js} +17 -17
- package/dist/{feedback-QQQYENCU.js → feedback-HQTDLLPE.js} +17 -16
- package/dist/{ffmpeg-A2O4HSRD.js → ffmpeg-BX334YEK.js} +9 -9
- package/dist/{figma-4RODZMCT.js → figma-P6U76KGI.js} +5 -5
- package/dist/fontLocalizeCli.js +14 -14
- package/dist/{frames-L43TSSAY.js → frames-G2WYTVWV.js} +18 -18
- package/dist/{generate-7HZKBLPZ.js → generate-ZUE2AVOB.js} +42 -22
- package/dist/{get-MXKV4NUL.js → get-7C3UC46A.js} +12 -11
- package/dist/{gpuPolicy-TKHFDEH2.js → gpuPolicy-5ZVYYWXN.js} +9 -9
- package/dist/{grade-compare-KNXFKMFI.js → grade-compare-IS3OVI7R.js} +43 -42
- package/dist/{heifImagePrep-L2EY67F2.js → heifImagePrep-FBLLKI3P.js} +10 -10
- package/dist/{help-YN43ORVX.js → help-2MPB27YU.js} +3 -3
- package/dist/{history-VAMN53LT.js → history-Q5EBBFPW.js} +10 -10
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +7 -7
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-QKEEGK2R.js → info-TNG5QGFC.js} +13 -13
- package/dist/{init-AAA44PYH.js → init-UFPBBWC7.js} +46 -38
- package/dist/{ink-V6CEFYB6.js → ink-UTPJHGZR.js} +17 -17
- package/dist/{inspect-5JGTWCYO.js → inspect-KXKKPWKX.js} +41 -40
- package/dist/{installer-PUQYKLXZ.js → installer-UTFXM6KP.js} +7 -6
- package/dist/{keyframes-FJNUSXAF.js → keyframes-S6V36BW6.js} +10 -10
- package/dist/{lambda-RYCG67CX.js → lambda-XWHALRKM.js} +22 -22
- package/dist/{layout-DXIPVY3W.js → layout-SSVKZKCZ.js} +41 -40
- package/dist/{lint-JZADWIMR.js → lint-OQWGRKG5.js} +15 -15
- package/dist/{lintProject-EV3EEBY3.js → lintProject-Z2TEXMY4.js} +4 -4
- package/dist/{list-YRLUJMP6.js → list-FYLBMEL7.js} +13 -12
- package/dist/{localPage-KIFKMB2B.js → localPage-4GSU6N3J.js} +9 -9
- package/dist/{login-H74JDEJ2.js → login-JKFCYHRS.js} +10 -9
- package/dist/{logout-UMDA3HDE.js → logout-YACQMRZN.js} +5 -4
- package/dist/{look-WVGBBYFE.js → look-WQ2DOKXH.js} +17 -17
- package/dist/{manager-T633Z2L4.js → manager-F4F4A734.js} +10 -10
- package/dist/{measure-DWQHHY3H.js → measure-XIFLTAMC.js} +11 -11
- package/dist/{media-treatment-JHDDWRFU.js → media-treatment-S3LHQSQQ.js} +21 -21
- package/dist/{media-use-5SDC3MCE.js → media-use-NFM3ZXCF.js} +7 -5
- package/dist/{models-6SOW23N6.js → models-G4KNLV66.js} +17 -17
- package/dist/{motionShot-B4K6LEU3.js → motionShot-IJGA5CBH.js} +20 -20
- package/dist/{normalize-audio-O6STMACD.js → normalize-audio-UP54N6J4.js} +15 -15
- package/dist/{open-VRCTXBD3.js → open-TAEKCYDB.js} +19 -18
- package/dist/{parakeetRunner-MNOIBRZZ.js → parakeetRunner-WFA4K7BH.js} +14 -14
- package/dist/{pipeline-N3M6VXBC.js → pipeline-SNENB5MZ.js} +12 -12
- package/dist/{play-5WUZGJ4B.js → play-QTYMY453.js} +32 -31
- package/dist/{policies-EERREOZJ.js → policies-EV7XPSQC.js} +2 -2
- package/dist/{preflight-XZZXHV42.js → preflight-CZUKW3CW.js} +10 -10
- package/dist/{present-W7OODR7J.js → present-KVHQECWG.js} +25 -25
- package/dist/{preview-NOQSYZAD.js → preview-6U62DM4P.js} +30 -29
- package/dist/{probe-WFIYEXM5.js → probe-UCVL3JDC.js} +17 -17
- package/dist/{producer-HI6M6755.js → producer-A4RPG3XL.js} +1 -1
- package/dist/{progress-STSH2JRY.js → progress-FWJJMPIQ.js} +2 -2
- package/dist/{projectConfig-PUAOWUNS.js → projectConfig-FIW6FPZW.js} +10 -9
- package/dist/{prompts-ZEVFT7US.js → prompts-27EPTM64.js} +2 -2
- package/dist/{publication-K4XAMUI6.js → publication-CCIGDK2X.js} +4 -4
- package/dist/{publish-7W46NJFT.js → publish-VKSABRA4.js} +26 -22
- package/dist/{refresh-4FQFQ2SW.js → refresh-L5C2HPMC.js} +5 -4
- package/dist/{remove-background-SYHNGASQ.js → remove-background-CJJ54SHA.js} +16 -16
- package/dist/{render-GYQZQB2O.js → render-2YY64XPU.js} +354 -71
- package/dist/{render-74JIGKTN.js → render-G54RA46B.js} +307 -76
- package/dist/{render-EF7Y6YYC.js → render-I2MWX5GH.js} +10 -10
- package/dist/{render-batch-JYYP4RXA.js → render-batch-X562GNRH.js} +13 -13
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-BKFLETMU.js → resolver-GC4ZLQPV.js} +7 -6
- package/dist/{reverse-NEC42AID.js → reverse-2KZQ65Y7.js} +1 -1
- package/dist/{run-Z6AW753F.js → run-65M6ECM2.js} +6 -5
- package/dist/{sherpa-2ROE6TLC.js → sherpa-SLRKS4SR.js} +13 -13
- package/dist/{sites-EAGXQOKI.js → sites-O7A7G3ZQ.js} +2 -2
- package/dist/skills/hyperframes/SKILL.md +3 -1
- package/dist/skills/hyperframes/references/format.md +1 -1
- package/dist/skills/hyperframes-cli/SKILL.md +2 -0
- package/dist/skills/hyperframes-cli/references/cloud.md +10 -10
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
- package/dist/skills/media-use/SKILL.md +2 -0
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +2 -2
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +2 -2
- package/dist/skills/media-use/references/resolve.md +2 -0
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +1 -1
- package/dist/skills/media-use/scripts/lib/heygen-search.mjs +4 -2
- package/dist/skills/media-use/scripts/lib/match.mjs +17 -0
- package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +20 -2
- package/dist/skills/media-use/scripts/resolve.mjs +52 -9
- package/dist/{skills-R56MSU2Y.js → skills-SOXKW42T.js} +10 -10
- package/dist/{skillsUpdateCheck-I6G3MQWO.js → skillsUpdateCheck-4RUEBT6B.js} +5 -5
- package/dist/{snapshot-J2NU7WTJ.js → snapshot-KIWJWZGW.js} +53 -52
- package/dist/{src-5XQ6A3VE.js → src-ABVBEVVK.js} +13 -13
- package/dist/{src-L7UBHHKB.js → src-DYWF24IK.js} +8 -8
- package/dist/{start-VUMSNLKC.js → start-EADJCDST.js} +55 -32
- package/dist/{staticProjectServer-2JYB7RLI.js → staticProjectServer-UCHJYCR6.js} +25 -24
- package/dist/{status-SUK4I7TS.js → status-E4OUQSHN.js} +68 -9
- package/dist/studio/assets/{hyperframes-player-Dw-0BWQW.js → hyperframes-player-CfYFgHV8.js} +1 -1
- package/dist/studio/assets/{index-BNZeN67E.js → index-COfhX0Gz.js} +4 -4
- package/dist/studio/assets/{index-NwWb1W86.js → index-Cj5x3rVD.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-MEZKFJBY.js → studio-api-RGOTUJXP.js} +14 -14
- package/dist/{studioServer-XGR4YPXX.js → studioServer-72COILB5.js} +76 -69
- package/dist/{sync-ZIMGTQEN.js → sync-5Z5OQFB3.js} +17 -17
- package/dist/{telemetry-WGNNQUSF.js → telemetry-5WZGQCKA.js} +3 -3
- package/dist/{telemetry-PT5KSL5T.js → telemetry-OQ2JM37Y.js} +6 -6
- package/dist/templates/_shared/AGENTS.md +7 -6
- package/dist/templates/_shared/CLAUDE.md +7 -6
- package/dist/{templates-7AT45DZI.js → templates-YH5CUHHN.js} +146 -27
- package/dist/{timeline-IH422KGC.js → timeline-IWU2T2BX.js} +27 -27
- package/dist/{tokens-ZVJMHDTM.js → tokens-F7IBDWGE.js} +5 -5
- package/dist/{transcribe-QIZGXMR5.js → transcribe-GL3J3JB3.js} +12 -12
- package/dist/{transcribe-FRRXA77O.js → transcribe-YXDOCF32.js} +40 -27
- package/dist/{tts-IMW74GBX.js → tts-QRQEYR3Q.js} +4 -4
- package/dist/{update-E2RIAV5T.js → update-MR5NL567.js} +15 -13
- package/dist/{updateCheck-EII7XDIR.js → updateCheck-ONT2ZVAF.js} +4 -4
- package/dist/{upgrade-BKGP2TM7.js → upgrade-BJEGLKQS.js} +7 -7
- package/dist/{urlDownloader-FOXK4FYP.js → urlDownloader-3PV5WURP.js} +8 -8
- package/dist/{validate-M4FZVBRP.js → validate-GTTWJYCS.js} +31 -31
- package/dist/{video-AVEGMBDM.js → video-VP6X6YL5.js} +12 -12
- package/dist/{voices-E5RUGLJK.js → voices-3EO2NQ5Q.js} +40 -20
- package/dist/warmCheck.js +51 -50
- package/package.json +1 -1
- package/dist/chunk-P3KBDUNS.js +0 -29
|
@@ -6,24 +6,27 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
colorStatus
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NZTYGWRK.js";
|
|
10
10
|
import {
|
|
11
11
|
reportApiError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AKE744C5.js";
|
|
13
|
+
import {
|
|
14
|
+
bundleWithLocalizedFonts
|
|
15
|
+
} from "./chunk-3BHDAXDA.js";
|
|
13
16
|
import {
|
|
14
17
|
compositionEntryErrorMessage,
|
|
15
18
|
parseCompositionEntryArg
|
|
16
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IOPE4LJ2.js";
|
|
17
20
|
import {
|
|
18
21
|
parseEnumFlag,
|
|
19
22
|
parseIntFlag,
|
|
20
23
|
parseNumericFlag
|
|
21
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WEWXIQPN.js";
|
|
22
25
|
import {
|
|
23
26
|
reportVariableIssues,
|
|
24
27
|
resolveVariablesArg,
|
|
25
28
|
validateVariablesAgainstProject
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WXYV47JX.js";
|
|
27
30
|
import "./chunk-ZBAF6L74.js";
|
|
28
31
|
import {
|
|
29
32
|
DEFAULT_MAX_WAIT_MS,
|
|
@@ -31,7 +34,7 @@ import {
|
|
|
31
34
|
PollTimeoutError,
|
|
32
35
|
createCloudClient,
|
|
33
36
|
pollUntilTerminal
|
|
34
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-B3CSMKM7.js";
|
|
35
38
|
import {
|
|
36
39
|
uploadAssetViaDirectUpload,
|
|
37
40
|
uploadZipViaDirectUpload
|
|
@@ -39,54 +42,58 @@ import {
|
|
|
39
42
|
import {
|
|
40
43
|
OFFLOAD_MIN_BYTES,
|
|
41
44
|
offloadHeavyMedia
|
|
42
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ZSAKJRZB.js";
|
|
43
46
|
import {
|
|
44
47
|
readStaged,
|
|
45
48
|
stagePublishFiles,
|
|
46
49
|
stagedSize,
|
|
47
50
|
zipPublishFileMap
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-W7ITBVJE.js";
|
|
52
|
+
import "./chunk-7X3UDKJK.js";
|
|
50
53
|
import {
|
|
51
54
|
downloadToFile
|
|
52
55
|
} from "./chunk-Z4GE5BXC.js";
|
|
53
56
|
import "./chunk-3S27CPV7.js";
|
|
54
57
|
import {
|
|
55
58
|
resolveCloudBaseUrl
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
59
|
+
} from "./chunk-BY7PZB6H.js";
|
|
60
|
+
import "./chunk-ZFZXGZTX.js";
|
|
58
61
|
import "./chunk-3XJM7XZN.js";
|
|
59
62
|
import "./chunk-SWC3QIEH.js";
|
|
60
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-ZNHWAGMH.js";
|
|
64
|
+
import {
|
|
65
|
+
loadProducer
|
|
66
|
+
} from "./chunk-NBUPR3ZF.js";
|
|
61
67
|
import {
|
|
62
68
|
resolveProject
|
|
63
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-AOJBIFKU.js";
|
|
64
70
|
import {
|
|
65
71
|
resolveDefaultFpsArg
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-
|
|
72
|
+
} from "./chunk-DTU4XJNP.js";
|
|
73
|
+
import "./chunk-U22NZEQV.js";
|
|
74
|
+
import {
|
|
75
|
+
errorBox,
|
|
76
|
+
formatBytes,
|
|
77
|
+
formatDuration
|
|
78
|
+
} from "./chunk-M3JU24AI.js";
|
|
79
|
+
import "./chunk-EHZESMRB.js";
|
|
68
80
|
import {
|
|
69
81
|
readProjectConfig
|
|
70
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-PA27AW3Y.js";
|
|
71
83
|
import "./chunk-XT7X6QCP.js";
|
|
72
84
|
import "./chunk-5YPMCCCA.js";
|
|
85
|
+
import "./chunk-A4ZTSQLW.js";
|
|
73
86
|
import "./chunk-HVW7ABXD.js";
|
|
74
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-VD5G4Y6U.js";
|
|
75
88
|
import "./chunk-JHOCK3DG.js";
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-K5CK4G75.js";
|
|
90
|
+
import "./chunk-7LQVFIO4.js";
|
|
78
91
|
import "./chunk-AWDFDFI3.js";
|
|
79
92
|
import "./chunk-P6LJ4Y32.js";
|
|
93
|
+
import "./chunk-D3UCUI7G.js";
|
|
80
94
|
import "./chunk-T2WJO4XM.js";
|
|
81
|
-
import
|
|
82
|
-
|
|
83
|
-
formatBytes,
|
|
84
|
-
formatDuration
|
|
85
|
-
} from "./chunk-5LOZWO2M.js";
|
|
86
|
-
import "./chunk-EHZESMRB.js";
|
|
87
|
-
import "./chunk-A4ZTSQLW.js";
|
|
88
|
-
import "./chunk-QFZ3ZSXI.js";
|
|
89
|
-
import "./chunk-UH62KSYV.js";
|
|
95
|
+
import "./chunk-O4ZD7TVR.js";
|
|
96
|
+
import "./chunk-XMOWL46H.js";
|
|
90
97
|
import "./chunk-PXVQOMKL.js";
|
|
91
98
|
import "./chunk-MCDNAIFF.js";
|
|
92
99
|
import "./chunk-BVAPHHMQ.js";
|
|
@@ -98,16 +105,16 @@ import "./chunk-TABWG4IT.js";
|
|
|
98
105
|
import "./chunk-54HJ63Q2.js";
|
|
99
106
|
import {
|
|
100
107
|
c
|
|
101
|
-
} from "./chunk-
|
|
102
|
-
import "./chunk-
|
|
108
|
+
} from "./chunk-HOCC4J5C.js";
|
|
109
|
+
import "./chunk-6ZRGEVAM.js";
|
|
103
110
|
import "./chunk-Z5J67X44.js";
|
|
104
111
|
import "./chunk-5S7W3TUO.js";
|
|
105
112
|
import "./chunk-D3MUHMFG.js";
|
|
106
|
-
import "./chunk-
|
|
113
|
+
import "./chunk-53UV2EUT.js";
|
|
107
114
|
import "./chunk-YWRUQ7XZ.js";
|
|
108
|
-
import "./chunk-
|
|
115
|
+
import "./chunk-N7ZKI2CE.js";
|
|
109
116
|
import "./chunk-MEJH7VEA.js";
|
|
110
|
-
import "./chunk-
|
|
117
|
+
import "./chunk-EAO46VPT.js";
|
|
111
118
|
import "./chunk-VC76R6W2.js";
|
|
112
119
|
import "./chunk-OFQWTKPW.js";
|
|
113
120
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -119,12 +126,15 @@ import "./chunk-KGPLIH7B.js";
|
|
|
119
126
|
import "./chunk-LAGZGKKN.js";
|
|
120
127
|
import "./chunk-K4MJX7SR.js";
|
|
121
128
|
import "./chunk-WE42NVH7.js";
|
|
122
|
-
import "./chunk-
|
|
123
|
-
import "./chunk-CZGHFATT.js";
|
|
129
|
+
import "./chunk-CZ5NNJ6H.js";
|
|
124
130
|
import "./chunk-WVRAFHJU.js";
|
|
131
|
+
import "./chunk-CZGHFATT.js";
|
|
125
132
|
import "./chunk-HYRPH6LL.js";
|
|
126
|
-
import "./chunk-
|
|
127
|
-
import
|
|
133
|
+
import "./chunk-OHQRQE7F.js";
|
|
134
|
+
import {
|
|
135
|
+
CANVAS_DIMENSIONS,
|
|
136
|
+
checkOutputResolutionCompatibility
|
|
137
|
+
} from "./chunk-CUCP7FKH.js";
|
|
128
138
|
import "./chunk-FR7YBU3H.js";
|
|
129
139
|
import "./chunk-DPVXBVLL.js";
|
|
130
140
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -135,18 +145,18 @@ import "./chunk-FBN2M2HK.js";
|
|
|
135
145
|
import "./chunk-766MOTIZ.js";
|
|
136
146
|
import {
|
|
137
147
|
withMeta
|
|
138
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-IO3BC2ZK.js";
|
|
139
149
|
import "./chunk-BR2JQQC5.js";
|
|
140
|
-
import "./chunk-
|
|
150
|
+
import "./chunk-CKEOCCMK.js";
|
|
141
151
|
import "./chunk-ISN5GRYI.js";
|
|
142
152
|
import "./chunk-ADVVQX4I.js";
|
|
143
153
|
import {
|
|
144
154
|
failCommand,
|
|
145
155
|
failUsage
|
|
146
156
|
} from "./chunk-66W5IWLO.js";
|
|
147
|
-
import "./chunk-
|
|
157
|
+
import "./chunk-FYZFURBN.js";
|
|
148
158
|
import "./chunk-QBXDU24O.js";
|
|
149
|
-
import "./chunk-
|
|
159
|
+
import "./chunk-FQFWGAON.js";
|
|
150
160
|
import {
|
|
151
161
|
normalizeErrorMessage
|
|
152
162
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -199,9 +209,160 @@ function detectAspectRatioFromHtmlString(html) {
|
|
|
199
209
|
}
|
|
200
210
|
return { kind: "no-match", width, height, ratio };
|
|
201
211
|
}
|
|
212
|
+
var ASPECT_RATIO_MATCH_TOLERANCE = RATIO_TOLERANCE;
|
|
213
|
+
|
|
214
|
+
// src/cloud/fontFailure.ts
|
|
215
|
+
import { readdirSync, readFileSync as readFileSync2 } from "fs";
|
|
216
|
+
import { extname, join, relative } from "path";
|
|
217
|
+
var UNRESOLVED_FONTS = /(?:fonts? that could not be resolved|unresolved font famil(?:y|ies)|unresolved fonts[^:\n]*):\s*([^\n]+)/i;
|
|
218
|
+
var SKIPPED_DIRS = /* @__PURE__ */ new Set(["node_modules", "renders", "dist"]);
|
|
219
|
+
var MAX_FILES = 2e3;
|
|
220
|
+
function unresolvedFontFamilies(message) {
|
|
221
|
+
const listed = UNRESOLVED_FONTS.exec(message)?.[1];
|
|
222
|
+
if (!listed) return [];
|
|
223
|
+
const families = listed.replace(/\(\+\d+ more\)/g, "").replace(/\.\s.*$|\.$/, "").split(",").map(
|
|
224
|
+
(family) => family.trim().replace(/^["']|["']$/g, "").trim()
|
|
225
|
+
).filter(Boolean);
|
|
226
|
+
return [...new Set(families)];
|
|
227
|
+
}
|
|
228
|
+
function styleSources(dir, found = []) {
|
|
229
|
+
let entries;
|
|
230
|
+
try {
|
|
231
|
+
entries = readdirSync(dir, { withFileTypes: true });
|
|
232
|
+
} catch {
|
|
233
|
+
return found;
|
|
234
|
+
}
|
|
235
|
+
for (const entry of entries) {
|
|
236
|
+
if (found.length >= MAX_FILES) break;
|
|
237
|
+
if (entry.name.startsWith(".") || SKIPPED_DIRS.has(entry.name)) continue;
|
|
238
|
+
const path = join(dir, entry.name);
|
|
239
|
+
if (entry.isDirectory()) styleSources(path, found);
|
|
240
|
+
else if ([".html", ".htm", ".css"].includes(extname(entry.name).toLowerCase())) {
|
|
241
|
+
found.push(path);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
return found;
|
|
245
|
+
}
|
|
246
|
+
var escapeRegExp = (text) => text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
247
|
+
function filesNamingFonts(projectDir, families) {
|
|
248
|
+
const named = /* @__PURE__ */ new Map();
|
|
249
|
+
const patterns = families.map(
|
|
250
|
+
(family) => [family, new RegExp(`(^|[^\\w-])${escapeRegExp(family)}(?![\\w-])`, "i")]
|
|
251
|
+
);
|
|
252
|
+
for (const path of styleSources(projectDir)) {
|
|
253
|
+
let text;
|
|
254
|
+
try {
|
|
255
|
+
text = readFileSync2(path, "utf8");
|
|
256
|
+
} catch {
|
|
257
|
+
continue;
|
|
258
|
+
}
|
|
259
|
+
for (const [family, pattern] of patterns) {
|
|
260
|
+
if (!pattern.test(text)) continue;
|
|
261
|
+
named.set(family, [...named.get(family) ?? [], relative(projectDir, path)]);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
return named;
|
|
265
|
+
}
|
|
266
|
+
function describeUnresolvedFontUse(failureMessage, projectDir) {
|
|
267
|
+
const families = unresolvedFontFamilies(failureMessage);
|
|
268
|
+
if (families.length === 0) return void 0;
|
|
269
|
+
const named = filesNamingFonts(projectDir, families);
|
|
270
|
+
const lines = families.map((family) => {
|
|
271
|
+
const files = named.get(family);
|
|
272
|
+
return files?.length ? `${family}: used in ${files.join(", ")}` : `${family}: not found in the project files`;
|
|
273
|
+
});
|
|
274
|
+
return `${lines.join("\n")}
|
|
275
|
+
Cloud renders cannot use fonts installed on your machine. Ship the font file with an @font-face url() source, or switch to a Google Fonts family. \`hyperframes lint\` flags these.`;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// src/cloud/fontPreflight.ts
|
|
279
|
+
var LOOK_ALIKES = {
|
|
280
|
+
"pingfang sc": "Noto Sans SC",
|
|
281
|
+
"pingfang tc": "Noto Sans TC",
|
|
282
|
+
"pingfang hk": "Noto Sans HK",
|
|
283
|
+
"hiragino sans": "Noto Sans JP",
|
|
284
|
+
"hiragino kaku gothic pro": "Noto Sans JP",
|
|
285
|
+
"yu gothic": "Noto Sans JP",
|
|
286
|
+
"apple sd gothic neo": "Noto Sans KR",
|
|
287
|
+
"malgun gothic": "Noto Sans KR",
|
|
288
|
+
"microsoft yahei": "Noto Sans SC",
|
|
289
|
+
"microsoft jhenghei": "Noto Sans TC",
|
|
290
|
+
"sf pro": "Inter",
|
|
291
|
+
"sf pro display": "Inter",
|
|
292
|
+
"sf pro text": "Inter",
|
|
293
|
+
"helvetica neue": "Inter",
|
|
294
|
+
helvetica: "Inter",
|
|
295
|
+
arial: "Inter",
|
|
296
|
+
"segoe ui": "Inter",
|
|
297
|
+
georgia: "Lora",
|
|
298
|
+
"times new roman": "Tinos",
|
|
299
|
+
menlo: "JetBrains Mono",
|
|
300
|
+
consolas: "JetBrains Mono"
|
|
301
|
+
};
|
|
302
|
+
function lookAlikeFor(family) {
|
|
303
|
+
return LOOK_ALIKES[family.trim().toLowerCase()];
|
|
304
|
+
}
|
|
305
|
+
var QUIET = { warn() {
|
|
306
|
+
}, info() {
|
|
307
|
+
} };
|
|
308
|
+
async function injectorOr(inject) {
|
|
309
|
+
return inject ?? (await loadProducer()).injectDeterministicFontFaces;
|
|
310
|
+
}
|
|
311
|
+
function namedFamilies(err) {
|
|
312
|
+
const e = err;
|
|
313
|
+
if (e.code !== "FONT_FETCH_FAILED" || !Array.isArray(e.unresolvedFamilies)) return null;
|
|
314
|
+
return e.unresolvedFamilies.filter((f) => typeof f === "string");
|
|
315
|
+
}
|
|
316
|
+
async function unresolvedCloudFonts(dir, entryFile, run) {
|
|
317
|
+
try {
|
|
318
|
+
await bundleWithLocalizedFonts(
|
|
319
|
+
dir,
|
|
320
|
+
(html) => run(html, { failClosedFontFetch: true, allowSystemFontCapture: false, logger: QUIET }),
|
|
321
|
+
{ entryFile }
|
|
322
|
+
);
|
|
323
|
+
return [];
|
|
324
|
+
} catch (err) {
|
|
325
|
+
return namedFamilies(err) ?? [];
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
async function embedSystemFonts(opts, inject) {
|
|
329
|
+
const run = await injectorOr(inject);
|
|
330
|
+
const wanted = await unresolvedCloudFonts(opts.dir, opts.entryFile, run);
|
|
331
|
+
if (wanted.length === 0) return [];
|
|
332
|
+
const css = wanted.map((f, i) => `.f${i}{font-family:"${f}"}`).join("");
|
|
333
|
+
const probe = `<!doctype html><html><head><style>${css}</style></head><body></body></html>`;
|
|
334
|
+
let out;
|
|
335
|
+
try {
|
|
336
|
+
out = await run(probe, {
|
|
337
|
+
failClosedFontFetch: true,
|
|
338
|
+
allowSystemFontCapture: true,
|
|
339
|
+
systemFontsByInnerName: true,
|
|
340
|
+
logger: QUIET
|
|
341
|
+
});
|
|
342
|
+
} catch (err) {
|
|
343
|
+
return namedFamilies(err) ?? wanted;
|
|
344
|
+
}
|
|
345
|
+
const faces = [...out.matchAll(/<style[^>]*>([\s\S]*?)<\/style>/g)].map((m) => m[1] ?? "").filter((css2) => css2.includes("@font-face")).join("\n");
|
|
346
|
+
const entry = opts.fileMap.get(opts.entryPath);
|
|
347
|
+
if (!faces || !entry) return wanted;
|
|
348
|
+
const html = readStaged(entry).toString("utf-8");
|
|
349
|
+
const tag = `<style data-hf-system-fonts>${faces}</style>`;
|
|
350
|
+
const at = html.search(/<\/head>/i);
|
|
351
|
+
opts.fileMap.set(
|
|
352
|
+
opts.entryPath,
|
|
353
|
+
Buffer.from(at < 0 ? tag + html : html.slice(0, at) + tag + html.slice(at), "utf-8")
|
|
354
|
+
);
|
|
355
|
+
return [];
|
|
356
|
+
}
|
|
357
|
+
function describeUnresolvedFonts(families) {
|
|
358
|
+
return families.map((family) => {
|
|
359
|
+
const swap = lookAlikeFor(family);
|
|
360
|
+
return `HyperFrames couldn't find a font file for ${family} on this computer, so the cloud can't have it: ${swap ? `use ${swap}, ` : ""}switch to a font in your project or render on this computer.`;
|
|
361
|
+
}).join("\n");
|
|
362
|
+
}
|
|
202
363
|
|
|
203
364
|
// src/commands/cloud/render.ts
|
|
204
|
-
import { isAbsolute, relative, resolve as resolvePath } from "path";
|
|
365
|
+
import { isAbsolute, relative as relative2, resolve as resolvePath } from "path";
|
|
205
366
|
import { statSync } from "fs";
|
|
206
367
|
var VALID_QUALITY = ["draft", "standard", "high"];
|
|
207
368
|
var VALID_FORMAT = ["mp4", "webm", "mov"];
|
|
@@ -245,7 +406,7 @@ var render_default = defineCommand({
|
|
|
245
406
|
},
|
|
246
407
|
"aspect-ratio": {
|
|
247
408
|
type: "string",
|
|
248
|
-
description: "
|
|
409
|
+
description: "W:H; detected from the composition, so rarely needed. The render keeps the composition's own size; 4k needs 16:9, 9:16 or 1:1"
|
|
249
410
|
},
|
|
250
411
|
composition: {
|
|
251
412
|
type: "string",
|
|
@@ -332,9 +493,7 @@ var render_default = defineCommand({
|
|
|
332
493
|
const resolution = parseEnumFlag(args.resolution, VALID_RESOLUTION, {
|
|
333
494
|
flag: "--resolution"
|
|
334
495
|
});
|
|
335
|
-
const explicitAspectRatio =
|
|
336
|
-
flag: "--aspect-ratio"
|
|
337
|
-
});
|
|
496
|
+
const explicitAspectRatio = parseAspectRatioFlag(args["aspect-ratio"]);
|
|
338
497
|
const pollIntervalMs = parsePollIntervalMs(args["poll-interval"]);
|
|
339
498
|
const maxWaitMs = parseMaxWaitMs(args["max-wait"]);
|
|
340
499
|
validateIdempotencyKey(args["idempotency-key"]);
|
|
@@ -353,7 +512,8 @@ var render_default = defineCommand({
|
|
|
353
512
|
project,
|
|
354
513
|
args.composition,
|
|
355
514
|
explicitAspectRatio,
|
|
356
|
-
asJson
|
|
515
|
+
asJson,
|
|
516
|
+
resolution
|
|
357
517
|
);
|
|
358
518
|
if (args["dry-run"]) {
|
|
359
519
|
if (project.kind !== "dir") throw new Error("Dry-run project must be a local directory");
|
|
@@ -423,7 +583,7 @@ var render_default = defineCommand({
|
|
|
423
583
|
maxWaitMs
|
|
424
584
|
});
|
|
425
585
|
if (detail.status === "failed") {
|
|
426
|
-
handleFailedRender(detail, asJson);
|
|
586
|
+
handleFailedRender(detail, asJson, project.kind === "dir" ? project.dir ?? "." : void 0);
|
|
427
587
|
}
|
|
428
588
|
if (!detail.video_url) {
|
|
429
589
|
errorBox(
|
|
@@ -488,13 +648,13 @@ function resolveProjectInput(opts) {
|
|
|
488
648
|
if (explicit.url) return { kind: "url", url: opts.url };
|
|
489
649
|
return { kind: "dir", dir: opts.dir ?? "." };
|
|
490
650
|
}
|
|
491
|
-
function resolveAspectRatioForSubmit(project, compositionArg, explicit, asJson) {
|
|
651
|
+
function resolveAspectRatioForSubmit(project, compositionArg, explicit, asJson, resolution = "1080p") {
|
|
492
652
|
if (project.kind !== "dir") {
|
|
493
|
-
if (
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}
|
|
497
|
-
return
|
|
653
|
+
if (explicit && isSupportedAspectRatio(explicit)) return explicit;
|
|
654
|
+
if (explicit) refuseUnsupportedAt4k(resolution, `--aspect-ratio ${explicit}`);
|
|
655
|
+
const reason = project.kind === "asset_id" ? "--asset-id" : "--url";
|
|
656
|
+
logDetection(asJson, `Auto-detect skipped (project is ${reason}); ${KEEPS_OWN_SIZE}`);
|
|
657
|
+
return void 0;
|
|
498
658
|
}
|
|
499
659
|
const dir = project.dir ?? ".";
|
|
500
660
|
const entry = parseCompositionEntryArg(compositionArg ?? "index.html", dir, statSync);
|
|
@@ -504,28 +664,87 @@ function resolveAspectRatioForSubmit(project, compositionArg, explicit, asJson)
|
|
|
504
664
|
failCommand();
|
|
505
665
|
}
|
|
506
666
|
const entryRelative = entry.value ?? "index.html";
|
|
507
|
-
const
|
|
508
|
-
const
|
|
509
|
-
if (explicit) {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
);
|
|
517
|
-
failCommand();
|
|
518
|
-
}
|
|
519
|
-
return explicit;
|
|
667
|
+
const detection = detectAspectRatioFromHtml(resolvePath(dir, entryRelative));
|
|
668
|
+
const dims = detection.kind === "matched" || detection.kind === "no-match" ? detection : null;
|
|
669
|
+
if (explicit && dims && !sameRatio(explicit, dims.width / dims.height)) {
|
|
670
|
+
errorBox(
|
|
671
|
+
"Aspect ratio mismatch",
|
|
672
|
+
`--aspect-ratio ${explicit} doesn't match the composition (${dims.width}\xD7${dims.height}, ${ratioLabel(dims.width, dims.height)}).`,
|
|
673
|
+
"The renderer keeps the composition's authored aspect ratio; it can't reshape it. Drop --aspect-ratio (it's auto-detected) or re-author the composition at the target ratio."
|
|
674
|
+
);
|
|
675
|
+
failCommand();
|
|
520
676
|
}
|
|
521
|
-
|
|
522
|
-
|
|
677
|
+
if (detection.kind === "matched") {
|
|
678
|
+
if (resolution === "4k") refuseUnfit4kPreset(detection);
|
|
679
|
+
logDetection(asJson, summarizeDetection(detection, entryRelative));
|
|
680
|
+
return detection.aspectRatio;
|
|
681
|
+
}
|
|
682
|
+
if (detection.kind === "no-match") {
|
|
683
|
+
refuseUnsupportedAt4k(
|
|
684
|
+
resolution,
|
|
685
|
+
`This composition (${detection.width}\xD7${detection.height}, ${ratioLabel(detection.width, detection.height)})`,
|
|
686
|
+
`Render it at 1080p, which keeps ${detection.width}\xD7${detection.height}, or re-author it at a supported ratio.`
|
|
687
|
+
);
|
|
688
|
+
logDetection(asJson, summarizeDetection(detection, entryRelative));
|
|
689
|
+
return void 0;
|
|
690
|
+
}
|
|
691
|
+
if (explicit && isSupportedAspectRatio(explicit)) return explicit;
|
|
692
|
+
if (explicit) refuseUnsupportedAt4k(resolution, `--aspect-ratio ${explicit}`);
|
|
693
|
+
logDetection(asJson, `${summarizeDetection(detection, entryRelative)}; ${KEEPS_OWN_SIZE}`);
|
|
694
|
+
return void 0;
|
|
695
|
+
}
|
|
696
|
+
var KEEPS_OWN_SIZE = "the render keeps the composition's own size.";
|
|
697
|
+
var isSupportedAspectRatio = (value) => VALID_ASPECT_RATIO.includes(value);
|
|
698
|
+
function sameRatio(aspect, ratio) {
|
|
699
|
+
const [w, h] = aspect.split(":").map(Number);
|
|
700
|
+
return Math.abs(w / h - ratio) <= ASPECT_RATIO_MATCH_TOLERANCE;
|
|
701
|
+
}
|
|
702
|
+
function ratioLabel(width, height) {
|
|
703
|
+
if (!Number.isInteger(width) || !Number.isInteger(height)) return (width / height).toFixed(2);
|
|
704
|
+
const gcd = (a, b) => b === 0 ? a : gcd(b, a % b);
|
|
705
|
+
const d = gcd(width, height);
|
|
706
|
+
return `${width / d}:${height / d}`;
|
|
707
|
+
}
|
|
708
|
+
var PRESET_4K = {
|
|
709
|
+
"16:9": "landscape-4k",
|
|
710
|
+
"9:16": "portrait-4k",
|
|
711
|
+
"1:1": "square-4k"
|
|
712
|
+
};
|
|
713
|
+
function refuseUnfit4kPreset(detection) {
|
|
714
|
+
const preset = PRESET_4K[detection.aspectRatio];
|
|
715
|
+
const compat = checkOutputResolutionCompatibility({
|
|
716
|
+
compositionWidth: detection.width,
|
|
717
|
+
compositionHeight: detection.height,
|
|
718
|
+
outputResolution: preset
|
|
719
|
+
});
|
|
720
|
+
if (compat.ok) return;
|
|
721
|
+
const exact = CANVAS_DIMENSIONS[preset];
|
|
722
|
+
errorBox(
|
|
723
|
+
"No 4K preset fits this composition",
|
|
724
|
+
`${detection.width}\xD7${detection.height} cannot render at 4K as ${detection.aspectRatio}: ${compat.message}`,
|
|
725
|
+
`Render it at 1080p, which keeps ${detection.width}\xD7${detection.height}, or re-author it at ${exact.width / 2}\xD7${exact.height / 2}.`
|
|
726
|
+
);
|
|
727
|
+
failCommand();
|
|
728
|
+
}
|
|
729
|
+
function refuseUnsupportedAt4k(resolution, subject, fix = "Render at 1080p, which keeps the composition's own size.") {
|
|
730
|
+
if (resolution !== "4k") return;
|
|
731
|
+
errorBox(
|
|
732
|
+
"No 4K preset for this aspect ratio",
|
|
733
|
+
`${subject} is not 16:9, 9:16 or 1:1, the only ratios a 4K cloud render can scale to.`,
|
|
734
|
+
fix
|
|
735
|
+
);
|
|
736
|
+
failCommand();
|
|
737
|
+
}
|
|
738
|
+
function parseAspectRatioFlag(raw) {
|
|
739
|
+
if (raw === void 0) return void 0;
|
|
740
|
+
const match = /^([1-9]\d*):([1-9]\d*)$/.exec(raw.trim());
|
|
741
|
+
if (match) return `${match[1]}:${match[2]}`;
|
|
742
|
+
errorBox("Invalid --aspect-ratio", `Got "${raw}". Use W:H, such as 16:9, 9:16, 1:1 or 2:1.`);
|
|
743
|
+
failUsage();
|
|
523
744
|
}
|
|
524
|
-
var ASPECT_FALLBACK_HINT = "server will default aspect_ratio to 16:9. Pass --aspect-ratio to override.";
|
|
525
745
|
function logDetection(asJson, message) {
|
|
526
746
|
if (asJson) return;
|
|
527
|
-
|
|
528
|
-
console.log(c.dim(` ${message}${suffix}`));
|
|
747
|
+
console.log(c.dim(` ${message}`));
|
|
529
748
|
}
|
|
530
749
|
function summarizeDetection(detection, entryRelative) {
|
|
531
750
|
switch (detection.kind) {
|
|
@@ -538,7 +757,7 @@ function summarizeDetection(detection, entryRelative) {
|
|
|
538
757
|
case "invalid-dims":
|
|
539
758
|
return `${entryRelative} root has invalid dims (${detection.width}\xD7${detection.height})`;
|
|
540
759
|
case "no-match":
|
|
541
|
-
return
|
|
760
|
+
return `Detected aspect ratio: ${ratioLabel(detection.width, detection.height)} (from ${entryRelative} dims ${detection.width}\xD7${detection.height}); the cloud render keeps that size`;
|
|
542
761
|
case "read-error":
|
|
543
762
|
return `Couldn't read ${entryRelative} for aspect-ratio detection (${detection.error})`;
|
|
544
763
|
}
|
|
@@ -563,6 +782,16 @@ async function prepareLocalArchive(source, composition, asJson, upload, variable
|
|
|
563
782
|
console.log(`${c.accent("\u25C6")} Zipping ${c.accent(project.name)}`);
|
|
564
783
|
}
|
|
565
784
|
const { fileMap, entryPath } = stageProjectFiles(project, composition);
|
|
785
|
+
const missingFonts = await embedSystemFonts({
|
|
786
|
+
dir: project.dir,
|
|
787
|
+
entryFile: composition,
|
|
788
|
+
entryPath,
|
|
789
|
+
fileMap
|
|
790
|
+
});
|
|
791
|
+
if (missingFonts.length > 0) {
|
|
792
|
+
errorBox("Fonts not on this computer", describeUnresolvedFonts(missingFonts));
|
|
793
|
+
failCommand();
|
|
794
|
+
}
|
|
566
795
|
const offloaded = await offloadMedia(project, fileMap, entryPath, asJson, upload, variablesText);
|
|
567
796
|
const onDiskBytes = [...fileMap.values()].filter((file) => !Buffer.isBuffer(file)).reduce((sum, file) => sum + stagedSize(file), 0);
|
|
568
797
|
const archive = onDiskBytes > DIRECT_UPLOAD_LIMIT_BYTES ? void 0 : zipPublishFileMap(new Map([...fileMap].map(([path, file]) => [path, readStaged(file)])));
|
|
@@ -588,7 +817,7 @@ async function prepareLocalArchive(source, composition, asJson, upload, variable
|
|
|
588
817
|
function stageProjectFiles(project, composition) {
|
|
589
818
|
try {
|
|
590
819
|
const fileMap = stagePublishFiles(project.dir, OFFLOAD_MIN_BYTES);
|
|
591
|
-
const entryPath =
|
|
820
|
+
const entryPath = relative2(
|
|
592
821
|
project.dir,
|
|
593
822
|
resolvePath(project.dir, composition ?? "index.html")
|
|
594
823
|
).replaceAll("\\", "/");
|
|
@@ -799,14 +1028,15 @@ function formatTickLine(detail, elapsedMs) {
|
|
|
799
1028
|
const status = colorStatus(detail.status);
|
|
800
1029
|
return `${status} ${c.dim(formatDuration(elapsedMs))}`;
|
|
801
1030
|
}
|
|
802
|
-
function handleFailedRender(detail, asJson) {
|
|
1031
|
+
function handleFailedRender(detail, asJson, projectDir) {
|
|
803
1032
|
if (asJson) {
|
|
804
1033
|
console.log(JSON.stringify(withMeta({ render: detail }), null, 2));
|
|
805
1034
|
failCommand();
|
|
806
1035
|
}
|
|
1036
|
+
const fontUse = projectDir && detail.failure_message ? describeUnresolvedFontUse(detail.failure_message, projectDir) : void 0;
|
|
807
1037
|
errorBox(
|
|
808
1038
|
"Render failed",
|
|
809
|
-
detail.failure_message ?? "(no failure_message returned)",
|
|
1039
|
+
[detail.failure_message ?? "(no failure_message returned)", fontUse].filter(Boolean).join("\n"),
|
|
810
1040
|
`Inspect: hyperframes cloud get ${detail.render_id}`
|
|
811
1041
|
);
|
|
812
1042
|
failCommand();
|
|
@@ -843,6 +1073,7 @@ export {
|
|
|
843
1073
|
assertArchiveFits,
|
|
844
1074
|
render_default as default,
|
|
845
1075
|
examples,
|
|
1076
|
+
parseAspectRatioFlag,
|
|
846
1077
|
resolveAspectRatioForSubmit,
|
|
847
1078
|
resolveCloudFpsArg,
|
|
848
1079
|
validateDryRunSource
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveOutputResolutionFromSize
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SQC4CTD2.js";
|
|
10
10
|
import {
|
|
11
11
|
requireStack,
|
|
12
12
|
stateFilePath,
|
|
@@ -16,24 +16,24 @@ import {
|
|
|
16
16
|
reportVariableIssues,
|
|
17
17
|
resolveVariablesArg,
|
|
18
18
|
validateVariablesAgainstProject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WXYV47JX.js";
|
|
20
20
|
import "./chunk-ZBAF6L74.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-FC2OXEBQ.js";
|
|
22
|
+
import "./chunk-M3JU24AI.js";
|
|
23
23
|
import "./chunk-EHZESMRB.js";
|
|
24
24
|
import {
|
|
25
25
|
c
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-HOCC4J5C.js";
|
|
27
|
+
import "./chunk-N7ZKI2CE.js";
|
|
28
28
|
import "./chunk-MEJH7VEA.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-EAO46VPT.js";
|
|
30
30
|
import "./chunk-VC76R6W2.js";
|
|
31
31
|
import "./chunk-OFQWTKPW.js";
|
|
32
32
|
import "./chunk-RQVDTPGD.js";
|
|
33
33
|
import "./chunk-TK7THLRO.js";
|
|
34
34
|
import "./chunk-FXMKHHPO.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-OHQRQE7F.js";
|
|
36
|
+
import "./chunk-CUCP7FKH.js";
|
|
37
37
|
import "./chunk-FR7YBU3H.js";
|
|
38
38
|
import "./chunk-DPVXBVLL.js";
|
|
39
39
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -44,7 +44,7 @@ import "./chunk-ADVVQX4I.js";
|
|
|
44
44
|
import {
|
|
45
45
|
setCommandExitCode
|
|
46
46
|
} from "./chunk-66W5IWLO.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-FYZFURBN.js";
|
|
48
48
|
import "./chunk-G7VEYUZ2.js";
|
|
49
49
|
import "./chunk-XT6MXC7A.js";
|
|
50
50
|
import "./chunk-7KDQAD2W.js";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveOutputResolutionFromSize
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SQC4CTD2.js";
|
|
10
10
|
import {
|
|
11
11
|
requireStack
|
|
12
12
|
} from "./chunk-JHOPRAJN.js";
|
|
@@ -14,29 +14,29 @@ import {
|
|
|
14
14
|
loadProjectVariableSchema,
|
|
15
15
|
reportVariableIssues,
|
|
16
16
|
validateVariablesAgainstSchema
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WXYV47JX.js";
|
|
18
18
|
import "./chunk-ZBAF6L74.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
runWithConcurrencyLimit
|
|
22
|
-
} from "./chunk-JHOCK3DG.js";
|
|
19
|
+
import "./chunk-FC2OXEBQ.js";
|
|
23
20
|
import {
|
|
24
21
|
errorBox
|
|
25
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-M3JU24AI.js";
|
|
26
23
|
import "./chunk-EHZESMRB.js";
|
|
24
|
+
import {
|
|
25
|
+
runWithConcurrencyLimit
|
|
26
|
+
} from "./chunk-JHOCK3DG.js";
|
|
27
27
|
import {
|
|
28
28
|
c
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-HOCC4J5C.js";
|
|
30
|
+
import "./chunk-N7ZKI2CE.js";
|
|
31
31
|
import "./chunk-MEJH7VEA.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-EAO46VPT.js";
|
|
33
33
|
import "./chunk-VC76R6W2.js";
|
|
34
34
|
import "./chunk-OFQWTKPW.js";
|
|
35
35
|
import "./chunk-RQVDTPGD.js";
|
|
36
36
|
import "./chunk-TK7THLRO.js";
|
|
37
37
|
import "./chunk-FXMKHHPO.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-OHQRQE7F.js";
|
|
39
|
+
import "./chunk-CUCP7FKH.js";
|
|
40
40
|
import "./chunk-FR7YBU3H.js";
|
|
41
41
|
import "./chunk-DPVXBVLL.js";
|
|
42
42
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
failCommand,
|
|
49
49
|
setCommandExitCode
|
|
50
50
|
} from "./chunk-66W5IWLO.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-FYZFURBN.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeErrorMessage
|
|
54
54
|
} from "./chunk-E63BDV4Z.js";
|