hyperframes 0.8.207 → 0.8.209
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-LXFWHBE3.js → add-VZKUIZEH.js} +17 -15
- package/dist/{agentPromptGenerator-D2E62ZP5.js → agentPromptGenerator-4NJ252MR.js} +6 -2
- package/dist/{animatedGifPrep-VBPJZKFT.js → animatedGifPrep-PN4G4YPJ.js} +10 -7
- package/dist/api.js +24 -20
- package/dist/{appHistory-HIBH6XZW.js → appHistory-OHYU5ZBQ.js} +3 -2
- package/dist/{asset-JX4RW3GO.js → asset-I4PHGE57.js} +2 -2
- package/dist/{assetCataloger-JKKOPBCF.js → assetCataloger-LRAUXQ46.js} +12 -8
- package/dist/{audio-OXQ3L6DW.js → audio-T7SAVYED.js} +424 -133
- package/dist/{auth-JAL7P7ZA.js → auth-GP6HTQT3.js} +4 -4
- package/dist/{autoUpdate-MRI2AICE.js → autoUpdate-Z6GFPZAG.js} +4 -4
- package/dist/{backgroundChecks-ORR46PBY.js → backgroundChecks-ZJ7JV52S.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-IFZYPGIW.js → batchRender-J3ETE23Y.js} +5 -4
- package/dist/{beats-UDLOEW6U.js → beats-WF4FJCM5.js} +25 -15
- package/dist/{benchmark-VTVDNKSO.js → benchmark-B7UPP4PQ.js} +10 -10
- package/dist/{browser-QJC4BL2Y.js → browser-SIUYD43U.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-Z2JTBNDS.js → bundleWithLocalizedFonts-RRGFY3XV.js} +3 -3
- package/dist/{capture-2P4JERSX.js → capture-J3GLHUKI.js} +52 -17
- package/dist/{capture-GLM2ACPM.js → capture-VYS4PCCJ.js} +66 -39
- package/dist/{captureCompositionFrame-A2A5MGQB.js → captureCompositionFrame-SVLMPQYC.js} +16 -14
- package/dist/{captureFile-RPUEOZO6.js → captureFile-VIVGKFY4.js} +2 -1
- package/dist/{catalog-5ZLVUQVJ.js → catalog-DVBNR422.js} +17 -15
- package/dist/{catch-up-FRMVYJHZ.js → catch-up-OBPMV7KG.js} +9 -8
- package/dist/{check-WVY7SM7C.js → check-MEALXNZK.js} +47 -44
- package/dist/{checkAudio-PLEQY3SZ.js → checkAudio-RZ7WQYVN.js} +23 -13
- package/dist/{checkBrowser-XSZUA2DQ.js → checkBrowser-2LEQ2LSX.js} +39 -36
- package/dist/{chunk-526VSRZ4.js → chunk-3A4SB326.js} +6 -6
- package/dist/{chunk-GXUONASF.js → chunk-3PTZ2TD4.js} +25 -2
- package/dist/{chunk-JQ32262N.js → chunk-3PUXUIWB.js} +1 -1
- package/dist/chunk-3RATCY3W.js +205 -0
- package/dist/{chunk-MAUGXKSI.js → chunk-4BXEPVSA.js} +113 -20
- package/dist/{chunk-C6KE4AFW.js → chunk-56ANHX5U.js} +1 -1
- package/dist/{chunk-VBPNCOD7.js → chunk-5T4DP25D.js} +5 -3
- package/dist/{chunk-IBZHSU2J.js → chunk-66PNSZ7K.js} +1 -1
- package/dist/{chunk-WL263XM2.js → chunk-6PWQH77E.js} +1 -1
- package/dist/chunk-7VZEOCUY.js +98 -0
- package/dist/{chunk-VAVDAOUA.js → chunk-A7GDBL6D.js} +1 -1
- package/dist/{chunk-UAT2UMTP.js → chunk-AQTODJWP.js} +1 -1
- package/dist/{chunk-5KBMYSF2.js → chunk-BYPDKF36.js} +7 -2
- package/dist/{chunk-EG3B2VWK.js → chunk-CA3PXWN4.js} +16 -21
- package/dist/{chunk-FEO7YW7V.js → chunk-CBM4ZUVN.js} +6 -6
- package/dist/{chunk-6KCFVLO6.js → chunk-CIDCNE2D.js} +21 -5
- package/dist/{chunk-C53ZNJDZ.js → chunk-D2CE2J2A.js} +1 -1
- package/dist/chunk-D3MUHMFG.js +16 -0
- package/dist/{chunk-5PYRU5DT.js → chunk-D6T5BNSK.js} +18 -17
- package/dist/{chunk-PUIG6DHT.js → chunk-DR47DSOY.js} +7 -7
- package/dist/chunk-DROFHVQD.js +240 -0
- package/dist/{chunk-YJK6HOL5.js → chunk-DVIX7UPH.js} +2 -2
- package/dist/{chunk-QTWXVOZI.js → chunk-EA5FUMJN.js} +2 -2
- package/dist/{chunk-NWGXTUYS.js → chunk-EQBDKYXR.js} +3 -30
- package/dist/{chunk-4UMPIPCQ.js → chunk-ERUQ3S6D.js} +2 -2
- package/dist/{chunk-T2EUWCJE.js → chunk-EU7MVORF.js} +13 -1
- package/dist/{chunk-IW5P4KK7.js → chunk-EVYDKSML.js} +3 -3
- package/dist/{chunk-FVAI7AHF.js → chunk-F4O4G4ZW.js} +5 -5
- package/dist/{chunk-6KOHY5EP.js → chunk-FB5BXGGF.js} +17 -11
- package/dist/{chunk-HTIUNMTP.js → chunk-GDZA4ALG.js} +8 -2
- package/dist/{chunk-DJQZ7DEH.js → chunk-GQZHLF5P.js} +15 -15
- package/dist/{chunk-ZYGIDXAK.js → chunk-H7B526GH.js} +114 -65
- package/dist/{chunk-P2I4RLJE.js → chunk-HTZJNQYI.js} +1 -1
- package/dist/{chunk-I2TDHVFV.js → chunk-I3ICHLHV.js} +2 -2
- package/dist/{chunk-CVZO6TFE.js → chunk-IJPFVMIE.js} +11 -11
- package/dist/{chunk-LK6KPVX2.js → chunk-IQNS7O4W.js} +403 -290
- package/dist/{chunk-XDMZY3H7.js → chunk-J7A73K2B.js} +43 -35
- package/dist/{chunk-RPZNQV6D.js → chunk-JC6BAQOG.js} +4 -10
- package/dist/{chunk-HA3V4XAF.js → chunk-JJRMN2RV.js} +63 -200
- package/dist/{chunk-XMRA7CQG.js → chunk-KCLBO65Y.js} +1 -1
- package/dist/{chunk-QE4WRS3N.js → chunk-KGBFHYHX.js} +4 -4
- package/dist/{chunk-HM7SUIQD.js → chunk-KTWGVEN6.js} +3 -3
- package/dist/{chunk-7PJ3AJB2.js → chunk-L5XVBFUM.js} +1 -1
- package/dist/{chunk-NSC5A4IR.js → chunk-L7MGVFR4.js} +7 -2
- package/dist/{chunk-I3TYUQLB.js → chunk-LJ7H2A2C.js} +1 -1
- package/dist/{chunk-VH4PNYOS.js → chunk-LV4NWCJS.js} +2 -2
- package/dist/{chunk-ELP5QZWL.js → chunk-M4QZFUMW.js} +1 -1
- package/dist/{chunk-7RWUY3BJ.js → chunk-MI4V4HPE.js} +1 -1
- package/dist/{chunk-SXOD5J7T.js → chunk-MKALOCDV.js} +1 -1
- package/dist/{chunk-UKM3JYNB.js → chunk-MVNTJGDX.js} +3 -3
- package/dist/{chunk-PSX5SF2N.js → chunk-NEASABW6.js} +1 -1
- package/dist/{chunk-H3LQ5X6Q.js → chunk-NJZRXELC.js} +68 -34
- package/dist/{chunk-EOVYQ3IG.js → chunk-NQ2INEHX.js} +17 -17
- package/dist/{chunk-LCCYYTEK.js → chunk-NXNDHV26.js} +1 -1
- package/dist/{chunk-JKE24AG7.js → chunk-OK3QLJSF.js} +1 -1
- package/dist/{chunk-63DP5CB2.js → chunk-OML6HQQN.js} +4 -4
- package/dist/{chunk-UUOIH4RW.js → chunk-P2FSCR5B.js} +2 -2
- package/dist/{chunk-ZCJ5EGLU.js → chunk-P327BIJR.js} +66 -1
- package/dist/{chunk-HVOTYAS4.js → chunk-P3OKYRGA.js} +3 -3
- package/dist/{chunk-U32PA6DI.js → chunk-PYVYF64E.js} +1 -1
- package/dist/{chunk-EHFZEKQM.js → chunk-Q43YUROE.js} +1 -1
- package/dist/{chunk-CZUAX3BV.js → chunk-QIDN4ML5.js} +1 -1
- package/dist/{chunk-NHL5CMO2.js → chunk-QIKZ2HZJ.js} +3 -3
- package/dist/{chunk-IK4JY2LI.js → chunk-R52YM6ZK.js} +2 -2
- package/dist/{chunk-DML6BD4K.js → chunk-RAONLDN5.js} +2 -2
- package/dist/{chunk-MSHL6CF2.js → chunk-RJO4X3AA.js} +1 -1
- package/dist/{chunk-6IYIS2U7.js → chunk-RVG2JNDU.js} +2 -2
- package/dist/{chunk-UYPWH7PH.js → chunk-SE6S4SGZ.js} +13 -15
- package/dist/{chunk-NJNC2DQV.js → chunk-SNLXWCET.js} +105 -46
- package/dist/{chunk-TSTONNOD.js → chunk-SOXQXX2M.js} +2 -2
- package/dist/{chunk-EGRIVMCQ.js → chunk-SPMKVI6H.js} +2 -2
- package/dist/{chunk-PL36HK3U.js → chunk-SWHCYFEF.js} +27 -5
- package/dist/{chunk-ID766OZB.js → chunk-TF7YE7J5.js} +3 -3
- package/dist/{chunk-XAGBSYIQ.js → chunk-TSM67ADU.js} +1 -1
- package/dist/{chunk-KDHHPJOG.js → chunk-U5IZUWBW.js} +4 -4
- package/dist/{chunk-T4JGFCXU.js → chunk-V4VXWOIF.js} +4 -4
- package/dist/{chunk-6N65ZMC5.js → chunk-VYRJAQGC.js} +1 -1
- package/dist/{chunk-LXP6XWJL.js → chunk-W32DVMX3.js} +2 -2
- package/dist/{chunk-LPI7HX4G.js → chunk-WLVHSGVL.js} +2 -2
- package/dist/chunk-XCIHCPJK.js +106 -0
- package/dist/chunk-XFMO3BEN.js +71 -0
- package/dist/{chunk-XKW4Z7BU.js → chunk-Y2EVJBR6.js} +1 -1
- package/dist/{chunk-QZ2JQ6O4.js → chunk-YCGLT5B4.js} +3 -3
- package/dist/{chunk-5PCALX6G.js → chunk-YIFEK3UD.js} +1 -1
- package/dist/{chunk-ZF3R2IPC.js → chunk-YRO3PXWU.js} +2 -85
- package/dist/chunk-Z5J67X44.js +40 -0
- package/dist/{chunk-XULJBZ7K.js → chunk-Z67J3TTU.js} +5 -3
- package/dist/{chunk-7JAD4MEW.js → chunk-ZA5TNF4R.js} +1 -0
- package/dist/{chunk-6Z7XDUUJ.js → chunk-ZMIRSWN6.js} +1 -1
- package/dist/{chunk-IYZT62UR.js → chunk-ZPILPVYU.js} +2 -2
- package/dist/chunk-ZXTSUXSL.js +4870 -0
- package/dist/{clean-TL3IPJDN.js → clean-VWCYLOVI.js} +26 -22
- package/dist/cli.js +58 -58
- package/dist/{cloud-EYMRPJNY.js → cloud-HU3RXCVE.js} +4 -4
- package/dist/{cloudrun-TOJ36NLX.js → cloudrun-OST6QBYD.js} +6 -5
- package/dist/commands/layout-audit.browser.js +1 -0
- package/dist/{compare-MP5EOW4D.js → compare-U2MJWZAH.js} +38 -35
- package/dist/{compiler-NOPVLJ2S.js → compiler-DSP4MVEC.js} +5 -3
- package/dist/{component-ASACDCZK.js → component-EC5XU6KR.js} +3 -3
- package/dist/{compositions-WKNZJY34.js → compositions-AKYCTF4G.js} +16 -13
- package/dist/{contactSheet-YOBPATEM.js → contactSheet-RYAE7Y5D.js} +3 -2
- package/dist/{delete-DQTFHP3G.js → delete-Z5MOEZM2.js} +10 -9
- package/dist/{deploy-HHCFOUFM.js → deploy-Y4LFVYXT.js} +6 -6
- package/dist/{dist-L4Z4ZEYW.js → dist-73YTUT3W.js} +1 -1
- package/dist/{dist-NQEYA4ZX.js → dist-JJL4QUDL.js} +2 -2
- package/dist/docker/Dockerfile.render +1 -1
- package/dist/{doctor-JDM65CP7.js → doctor-7234U557.js} +18 -15
- package/dist/{events-RKRHRLJD.js → events-RUIZNTG3.js} +4 -4
- package/dist/{events-MBRNA3UF.js → events-SII53QYO.js} +5 -5
- package/dist/{feedback-LZWIWV5J.js → feedback-6CCDDQ36.js} +12 -12
- package/dist/{ffmpeg-4PZKSIGE.js → ffmpeg-C4VWK4M2.js} +12 -9
- package/dist/{figma-QFNYUT3F.js → figma-GAN63U5U.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -10
- package/dist/{get-2B5ENJOH.js → get-RZGUHZB4.js} +10 -9
- package/dist/{gpuPolicy-E5FB2GFR.js → gpuPolicy-BGJRCLP4.js} +10 -7
- package/dist/{grade-compare-4GUAPJHE.js → grade-compare-XOBN52WV.js} +38 -35
- package/dist/{heifImagePrep-C2RYIEER.js → heifImagePrep-DCHSYGW7.js} +11 -8
- package/dist/{help-XGDAXV67.js → help-O2IV6PUC.js} +1 -1
- package/dist/{history-WNFF6HGU.js → history-GPTEM4UX.js} +11 -10
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-BR2LKGJD.js → info-7Y3JPN7C.js} +9 -9
- package/dist/{init-P6UWPUY3.js → init-L6W5WG5K.js} +40 -34
- package/dist/{inspect-MSRPF7ZO.js → inspect-MQZANGQY.js} +37 -34
- package/dist/{installer-MPUQS3ZX.js → installer-DCIMLYB6.js} +4 -4
- package/dist/{keyframes-J6K66QTO.js → keyframes-WNJIKL4G.js} +8 -8
- package/dist/{lambda-LJ2OSWFJ.js → lambda-FEA4SSFK.js} +16 -13
- package/dist/{layout-CDY65XGA.js → layout-AUQAYDJU.js} +37 -34
- package/dist/{lint-CAUNBGPX.js → lint-A33IHYID.js} +9 -9
- package/dist/{lintProject-ZTSX3AWT.js → lintProject-KCN7MRBN.js} +1 -1
- package/dist/{list-33BYQNRZ.js → list-56JHCET6.js} +10 -9
- package/dist/localPage-V3HBGM3Z.js +27 -0
- package/dist/{login-5QMRKOHK.js → login-HUOM4GNP.js} +7 -7
- package/dist/{logout-JYFWWUGK.js → logout-3IID4KXD.js} +3 -3
- package/dist/{manager-3JOHHPVR.js → manager-SDRJOMPR.js} +13 -10
- package/dist/{manager-RMYSZ3KI.js → manager-Z7W4GQGF.js} +4 -4
- package/dist/{media-treatment-4WP22CFN.js → media-treatment-5TGZOD67.js} +27 -22
- package/dist/{models-HPWCHAZX.js → models-ABDX6TXI.js} +17 -14
- package/dist/{motionShot-I7GDIROQ.js → motionShot-AV2WRH2C.js} +20 -18
- package/dist/{normalize-audio-VTMXPSC7.js → normalize-audio-M7T25DST.js} +12 -9
- package/dist/{open-SAO7OQTT.js → open-IRNZY5XN.js} +17 -16
- package/dist/{parakeetRunner-ZYPBIA73.js → parakeetRunner-2EJUIMOJ.js} +21 -17
- package/dist/{pipeline-VNBMR6QU.js → pipeline-QGKOJKXS.js} +13 -10
- package/dist/{play-7VI6A7KN.js → play-2SQLHM5B.js} +26 -23
- package/dist/{policies-GHVXA5PE.js → policies-PKLD4UW5.js} +1 -1
- package/dist/{preflight-VWV7L45J.js → preflight-ZHXMG2SM.js} +14 -11
- package/dist/{present-CSJGYOFF.js → present-RERVL6R7.js} +21 -18
- package/dist/{preview-B246ZTVO.js → preview-S6RQOMHE.js} +28 -25
- package/dist/{producer-WJLFDVQJ.js → producer-DBRGH2FI.js} +1 -1
- package/dist/{projectConfig-OMR46ZWQ.js → projectConfig-TUMDULTL.js} +9 -8
- package/dist/{publication-AA7NNYET.js → publication-7VGXIFVZ.js} +2 -2
- package/dist/{publish-TJ4QVVSP.js → publish-KJB2AGHL.js} +18 -15
- package/dist/{refresh-USSFPJAU.js → refresh-3IRHJEQA.js} +3 -3
- package/dist/{remove-background-LQ2V7W7N.js → remove-background-EFWXPLS4.js} +14 -11
- package/dist/{render-AWEEPG3F.js → render-5O5ARP6C.js} +65 -62
- package/dist/{render-JLTNZ36U.js → render-7S6UBLOE.js} +50 -48
- package/dist/{render-E5QJG74D.js → render-HV6AA22W.js} +6 -5
- package/dist/{render-batch-U4T4VSCM.js → render-batch-7UEOULJJ.js} +7 -6
- package/dist/renderSetupWorker.js +6 -6
- package/dist/{resolver-GXCTUKPV.js → resolver-HFTEER5V.js} +4 -4
- package/dist/{screenshotCapture-X6OKIXCB.js → screenshotCapture-HOW4VSV6.js} +3 -2
- package/dist/{sherpa-4VZWVHWZ.js → sherpa-HSSM76FL.js} +20 -16
- package/dist/skills/hyperframes/SKILL.md +1 -1
- package/dist/skills/hyperframes/references/format.md +1 -0
- package/dist/skills/hyperframes-cli/references/beats.md +2 -0
- package/dist/skills/media-use/references/grading.md +2 -0
- package/dist/skills/media-use/references/local.md +1 -0
- package/dist/{skills-WUKR7SUE.js → skills-RQO5K6WL.js} +7 -7
- package/dist/{skillsUpdateCheck-YXRBY3JC.js → skillsUpdateCheck-S5WL2YLZ.js} +5 -5
- package/dist/{snapshot-Q7S2FTNG.js → snapshot-4RGI235E.js} +119 -66
- package/dist/{src-ZOXUSGAP.js → src-ALOV4D57.js} +26 -10
- package/dist/{src-CLAALR5W.js → src-D75YYW2M.js} +12 -9
- package/dist/{staticProjectServer-DQ7PIDPA.js → staticProjectServer-DIHWPJ6B.js} +21 -18
- package/dist/{status-LR7VXITS.js → status-DTP6ZYDU.js} +3 -3
- package/dist/studio/assets/{hyperframes-player-Cm5aBiKq.js → hyperframes-player-CMH8OeX2.js} +3 -3
- package/dist/studio/assets/{index-BF9YeBnC.js → index-DQam8zzE.js} +71 -71
- package/dist/studio/assets/{index-BrqAmMRt.js → index-DjHzuJGR.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-NUE227JM.js → studio-api-A2VSWTVF.js} +13 -10
- package/dist/{studioServer-HVOKP4VI.js → studioServer-PECYWZHS.js} +60 -57
- package/dist/{synthesize-QZHRXGRY.js → synthesize-RVE7IUOJ.js} +3 -2
- package/dist/{telemetry-IHU4HL3R.js → telemetry-6BPSGY5W.js} +2 -2
- package/dist/{telemetry-2Y5JXLDB.js → telemetry-YDGXGOLH.js} +5 -5
- package/dist/{timeline-WOQGXFRV.js → timeline-5WUEEKZ3.js} +27 -23
- package/dist/{tokens-T3OHTWUC.js → tokens-XVFZPIUZ.js} +2 -2
- package/dist/{transcribe-JZ3BO546.js → transcribe-QWDUIJWK.js} +26 -22
- package/dist/{transcribe-4U74P5TG.js → transcribe-TTJ6CDQT.js} +17 -13
- package/dist/{tts-AY4JO5NQ.js → tts-AGMCPQXE.js} +1 -1
- package/dist/{updateCheck-6EUAGAM4.js → updateCheck-P7STSJ6Q.js} +4 -4
- package/dist/{upgrade-55K6F4MP.js → upgrade-NEIZ3KVL.js} +4 -4
- package/dist/{urlDownloader-47JMOLNN.js → urlDownloader-ZZFNGZNG.js} +9 -6
- package/dist/{validate-QBJ3SBS4.js → validate-T2SLBOXG.js} +30 -27
- package/dist/{video-3ZAUNAR3.js → video-7OHSBSRT.js} +12 -8
- package/dist/warmCheck.js +47 -44
- package/package.json +1 -1
- package/dist/chunk-BDJIQZN2.js +0 -4830
- package/dist/chunk-DKPNNYBZ.js +0 -44
- package/dist/{destroy-SSPAKADI.js → destroy-CGAZIL2C.js} +4 -4
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
readSeen,
|
|
11
11
|
seenPath,
|
|
12
12
|
writeRecord
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YIFEK3UD.js";
|
|
14
14
|
import {
|
|
15
15
|
createProjectConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-W32DVMX3.js";
|
|
17
17
|
import {
|
|
18
18
|
isHyperframesProject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MI4V4HPE.js";
|
|
20
20
|
|
|
21
21
|
// src/utils/desktopApp.ts
|
|
22
22
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveWritePath
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NQ2INEHX.js";
|
|
10
10
|
|
|
11
11
|
// src/cloud/download.ts
|
|
12
12
|
import { chmodSync, mkdirSync, mkdtempSync, renameSync, rmSync, statSync } from "fs";
|
|
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getMimeType
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SNLXWCET.js";
|
|
10
10
|
import {
|
|
11
11
|
stripSdrPngColourTags
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JC6BAQOG.js";
|
|
13
13
|
import {
|
|
14
14
|
injectTagsAtHeadStart
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZXTSUXSL.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/compositionServer.ts
|
|
18
18
|
import { createHash } from "crypto";
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
detectGpuEncoder
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IQNS7O4W.js";
|
|
10
10
|
import {
|
|
11
11
|
runCancellableProcess
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Q43YUROE.js";
|
|
13
13
|
import {
|
|
14
14
|
findFfBinary
|
|
15
15
|
} from "./chunk-VAS6HQX3.js";
|
|
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = true ? "0.8.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.8.
|
|
9
|
+
var VERSION = true ? "0.8.209" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.8.209" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
|
|
|
1278
1278
|
} catch (err) {
|
|
1279
1279
|
if (err instanceof Error) {
|
|
1280
1280
|
try {
|
|
1281
|
-
const { trackCommandFailure } = await import("./events-
|
|
1281
|
+
const { trackCommandFailure } = await import("./events-SII53QYO.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -6,12 +6,12 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
setHostHandlesSigint
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IQNS7O4W.js";
|
|
10
10
|
import {
|
|
11
11
|
processAncestorSnapshot,
|
|
12
12
|
processIdentity,
|
|
13
13
|
processParentPid
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-D2CE2J2A.js";
|
|
15
15
|
import {
|
|
16
16
|
processIsAlive
|
|
17
17
|
} from "./chunk-KGPLIH7B.js";
|
|
@@ -8,34 +8,32 @@ import {
|
|
|
8
8
|
launchManagedBrowser,
|
|
9
9
|
resolveManagedGpuMode,
|
|
10
10
|
rethrowAfterBrowserCleanup
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4BXEPVSA.js";
|
|
12
12
|
import {
|
|
13
13
|
gotoWhenSent
|
|
14
14
|
} from "./chunk-MOEGCMKI.js";
|
|
15
15
|
import {
|
|
16
16
|
pageNavigationTimeoutMs,
|
|
17
17
|
windowsChromeCrashRemediation
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import {
|
|
20
|
-
oneProcessOverPipe
|
|
21
|
-
} from "./chunk-DKPNNYBZ.js";
|
|
18
|
+
} from "./chunk-MVNTJGDX.js";
|
|
22
19
|
import {
|
|
23
20
|
resolveCompositionViewportFromHtml
|
|
24
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-66PNSZ7K.js";
|
|
25
22
|
import {
|
|
26
23
|
resolveLocalBrowserGpuMode,
|
|
27
24
|
resolveLocalWebGpu
|
|
28
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WLVHSGVL.js";
|
|
29
26
|
import {
|
|
30
27
|
c
|
|
31
28
|
} from "./chunk-ZTZA4UWZ.js";
|
|
32
29
|
import {
|
|
33
30
|
assertWebGpuAdapterAvailable,
|
|
34
|
-
compositionRequiresWebGpu
|
|
35
|
-
|
|
31
|
+
compositionRequiresWebGpu,
|
|
32
|
+
oneProcessOverPipe
|
|
33
|
+
} from "./chunk-IQNS7O4W.js";
|
|
36
34
|
import {
|
|
37
35
|
normalizeErrorMessage
|
|
38
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-EU7MVORF.js";
|
|
39
37
|
|
|
40
38
|
// src/capture/captureCompositionFrame.ts
|
|
41
39
|
import { spawn } from "child_process";
|
|
@@ -140,7 +138,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
140
138
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
141
139
|
});
|
|
142
140
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
143
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
141
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-ALOV4D57.js");
|
|
144
142
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
145
143
|
await waitForImagesReady(
|
|
146
144
|
page,
|
|
@@ -189,7 +187,7 @@ async function installPageFunctionGuard(page) {
|
|
|
189
187
|
async function openSettledCompositionPage(html, url, options) {
|
|
190
188
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
191
189
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
192
|
-
const answer = (await import("./staticProjectServer-
|
|
190
|
+
const answer = (await import("./staticProjectServer-DIHWPJ6B.js")).inProcessAnswer(url);
|
|
193
191
|
const noListen = answer !== void 0;
|
|
194
192
|
let chromeBrowser;
|
|
195
193
|
try {
|
|
@@ -200,7 +198,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
200
198
|
options.onBrowserReady?.();
|
|
201
199
|
const page = await chromeBrowser.newPage();
|
|
202
200
|
await installPageFunctionGuard(page);
|
|
203
|
-
const { installMediaRenderIdBridge } = await import("./src-
|
|
201
|
+
const { installMediaRenderIdBridge } = await import("./src-ALOV4D57.js");
|
|
204
202
|
await installMediaRenderIdBridge(page);
|
|
205
203
|
await page.setViewport(viewport);
|
|
206
204
|
if (answer) await answerPageInProcess(page, url, answer);
|
|
@@ -216,10 +214,10 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
216
214
|
}
|
|
217
215
|
async function launchCompositionBrowser(html, noListen, options) {
|
|
218
216
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
219
|
-
const { ensureBrowser, findSystemBrowser } = await import("./manager-
|
|
217
|
+
const { ensureBrowser, findSystemBrowser } = await import("./manager-Z7W4GQGF.js");
|
|
220
218
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
221
219
|
const puppeteer = await import("puppeteer-core");
|
|
222
|
-
const { buildChromeArgs } = await import("./src-
|
|
220
|
+
const { buildChromeArgs } = await import("./src-ALOV4D57.js");
|
|
223
221
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
224
222
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
225
223
|
let softwareWebGpu = false;
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TF7YE7J5.js";
|
|
23
23
|
import {
|
|
24
24
|
MEDIA_LINK_ATTR,
|
|
25
25
|
relinkSplitHalves
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
requestedProjectPath,
|
|
33
33
|
requiredFfmpeg,
|
|
34
34
|
resolveLocalAudioPath
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-CIDCNE2D.js";
|
|
36
36
|
import {
|
|
37
37
|
HistoryBusyError,
|
|
38
38
|
MAX_WINDOW_IDLE_MS,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
resolveProjectAndSignature,
|
|
47
47
|
resolveProjectSignature,
|
|
48
48
|
settledFileTag
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-J7A73K2B.js";
|
|
50
50
|
import {
|
|
51
51
|
PROXY_PARAMS_VERSION,
|
|
52
52
|
PROXY_PENDING_RETRY_AFTER_SECONDS,
|
|
@@ -58,7 +58,6 @@ import {
|
|
|
58
58
|
decideMediaProxyEligibility,
|
|
59
59
|
isProxyVariantRequest,
|
|
60
60
|
probeAssetCodec,
|
|
61
|
-
probeMediaMetadata,
|
|
62
61
|
proxyActivityMark,
|
|
63
62
|
proxyCopyProgress,
|
|
64
63
|
proxyVariantFor,
|
|
@@ -70,7 +69,11 @@ import {
|
|
|
70
69
|
scanProjectMedia,
|
|
71
70
|
shouldPrewarmProxy,
|
|
72
71
|
waitForProxy
|
|
73
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-JJRMN2RV.js";
|
|
73
|
+
import {
|
|
74
|
+
probeAudioTrack,
|
|
75
|
+
probeMediaMetadata
|
|
76
|
+
} from "./chunk-3RATCY3W.js";
|
|
74
77
|
import {
|
|
75
78
|
STUDIO_MOTION_PATH,
|
|
76
79
|
createStudioMotionRenderBodyScript,
|
|
@@ -90,7 +93,7 @@ import {
|
|
|
90
93
|
atomicTempPath,
|
|
91
94
|
createFileAtomically,
|
|
92
95
|
replaceFileAtomically
|
|
93
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-NQ2INEHX.js";
|
|
94
97
|
import {
|
|
95
98
|
parseEncoderOptions
|
|
96
99
|
} from "./chunk-5YHQBCWH.js";
|
|
@@ -103,12 +106,15 @@ import {
|
|
|
103
106
|
fontDirectories,
|
|
104
107
|
locateSystemFont
|
|
105
108
|
} from "./chunk-7FMUTGOH.js";
|
|
109
|
+
import {
|
|
110
|
+
decodableAudioStream
|
|
111
|
+
} from "./chunk-D3MUHMFG.js";
|
|
106
112
|
import {
|
|
107
113
|
addScenePartsManifest,
|
|
108
114
|
ensureHfIds,
|
|
109
115
|
stampHfIdsInPlace,
|
|
110
116
|
stripSdrPngColourTags
|
|
111
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-JC6BAQOG.js";
|
|
112
118
|
import {
|
|
113
119
|
GSAP_BASE_URL_META,
|
|
114
120
|
PREVIEW_PROXY_BOX_PARAM,
|
|
@@ -124,7 +130,7 @@ import {
|
|
|
124
130
|
normalizeGsapLocalRoot,
|
|
125
131
|
parseFps,
|
|
126
132
|
parsePreviewProxyBox
|
|
127
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-MI4V4HPE.js";
|
|
128
134
|
import {
|
|
129
135
|
AFTER_FONTS_SCRIPT_TYPE,
|
|
130
136
|
RUNTIME_BOOTSTRAP_ATTR,
|
|
@@ -135,10 +141,11 @@ import {
|
|
|
135
141
|
insertBeforeCloseTag,
|
|
136
142
|
insertRuntimeTag,
|
|
137
143
|
isFullHtmlDocument,
|
|
144
|
+
mapStartTagsAndStyles,
|
|
138
145
|
resolveRateSpec,
|
|
139
146
|
sourceTimeAt,
|
|
140
147
|
stripEmbeddedRuntimeScripts
|
|
141
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-ZXTSUXSL.js";
|
|
142
149
|
import {
|
|
143
150
|
ProjectRootMissingError,
|
|
144
151
|
folderGone,
|
|
@@ -313,7 +320,7 @@ function clearElementScreenshotIsolation() {
|
|
|
313
320
|
page.__hfThumbnailFaded = [];
|
|
314
321
|
}
|
|
315
322
|
|
|
316
|
-
// ../studio-server/dist/chunk-
|
|
323
|
+
// ../studio-server/dist/chunk-C3KTZ7G3.js
|
|
317
324
|
import { resolve } from "path";
|
|
318
325
|
function isAutoProxyEnabled(adapter) {
|
|
319
326
|
return adapter.autoProxy !== false;
|
|
@@ -3687,8 +3694,7 @@ import { createHash as createHash5, randomBytes } from "crypto";
|
|
|
3687
3694
|
import { existsSync as existsSync8 } from "fs";
|
|
3688
3695
|
import { existsSync as existsSync9, readFileSync as readFileSync12, statSync as statSync9 } from "fs";
|
|
3689
3696
|
import { join as join14, resolve as resolve6 } from "path";
|
|
3690
|
-
import {
|
|
3691
|
-
import { promisify } from "util";
|
|
3697
|
+
import { spawn as spawn2 } from "child_process";
|
|
3692
3698
|
import { closeSync as closeSync3, constants as constants2, fstatSync as fstatSync3, openSync as openSync3, readSync } from "fs";
|
|
3693
3699
|
import { streamSSE as streamSSE2 } from "hono/streaming";
|
|
3694
3700
|
import { existsSync as existsSync10 } from "fs";
|
|
@@ -3826,6 +3832,30 @@ function insertGsapCoreBeforeHeadPlugin(html, coreTag) {
|
|
|
3826
3832
|
return `${html.slice(0, at)}${coreTag}
|
|
3827
3833
|
${html.slice(at)}`;
|
|
3828
3834
|
}
|
|
3835
|
+
var ROOT_PATH = /^\/(?!\/)/;
|
|
3836
|
+
var PATH_ATTR = /(\s(?:src|href|poster|xlink:href)\s*=\s*)(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+))/gi;
|
|
3837
|
+
var CSS_ROOT_URL = /(\burl\(\s*)(["']?)(\/(?!\/)[^"')\s]*)\2/gi;
|
|
3838
|
+
var projectRelative = (path, base) => ROOT_PATH.test(path) && path !== "/" && !path.startsWith(base) ? path.slice(1) : path;
|
|
3839
|
+
var underBase = (path, base) => {
|
|
3840
|
+
const relative5 = projectRelative(path, base);
|
|
3841
|
+
return relative5 === path ? path : base + relative5;
|
|
3842
|
+
};
|
|
3843
|
+
function withRootPathsRelative(html, base) {
|
|
3844
|
+
const css = (text2) => text2.replace(
|
|
3845
|
+
CSS_ROOT_URL,
|
|
3846
|
+
(_m, open2, quote, path) => `${open2}${quote}${projectRelative(path, base)}${quote}`
|
|
3847
|
+
);
|
|
3848
|
+
const attrs = (tag) => tag.replace(PATH_ATTR, (whole, name, dq, sq, bare) => {
|
|
3849
|
+
const path = (dq ?? sq ?? bare ?? "").trim();
|
|
3850
|
+
const moved = projectRelative(path, base);
|
|
3851
|
+
if (moved === path) return whole;
|
|
3852
|
+
return dq !== void 0 ? `${name}"${moved}"` : sq !== void 0 ? `${name}'${moved}'` : `${name}${moved}`;
|
|
3853
|
+
});
|
|
3854
|
+
return mapStartTagsAndStyles(html, {
|
|
3855
|
+
tag: (tag) => /^<(?:a|base)[\s/>]/i.test(tag) ? tag : css(attrs(tag)),
|
|
3856
|
+
style: css
|
|
3857
|
+
});
|
|
3858
|
+
}
|
|
3829
3859
|
function rewriteRelativePaths(root, compPath, projectDir) {
|
|
3830
3860
|
const assetExists = (path) => existsSync(join22(projectDir, path));
|
|
3831
3861
|
rewriteAssetPaths(
|
|
@@ -3973,6 +4003,10 @@ ${headContent}`;
|
|
|
3973
4003
|
}
|
|
3974
4004
|
if (compHeadContent) headContent += `
|
|
3975
4005
|
${compHeadContent}`;
|
|
4006
|
+
if (baseHref) {
|
|
4007
|
+
headContent = withRootPathsRelative(headContent, baseHref);
|
|
4008
|
+
rewrittenContent = withRootPathsRelative(rewrittenContent, baseHref);
|
|
4009
|
+
}
|
|
3976
4010
|
headContent = stripEmbeddedRuntimeScripts(headContent);
|
|
3977
4011
|
headContent += `
|
|
3978
4012
|
<script ${RUNTIME_BOOTSTRAP_ATTR}="1" src="${runtimeUrl}"></script>`;
|
|
@@ -4318,13 +4352,17 @@ function computePeaks(floats, count) {
|
|
|
4318
4352
|
const maxPeak = Math.max(...peaks, 1e-3);
|
|
4319
4353
|
return peaks.map((p) => p / maxPeak);
|
|
4320
4354
|
}
|
|
4321
|
-
function decodeAudioPeaks(audioPath) {
|
|
4355
|
+
async function decodeAudioPeaks(audioPath) {
|
|
4356
|
+
const track = await probeAudioTrack(audioPath);
|
|
4357
|
+
if (!track) throw new Error("no audio stream");
|
|
4322
4358
|
return new Promise((resolvePromise, reject) => {
|
|
4323
4359
|
const proc = spawn(
|
|
4324
4360
|
findFfBinary("ffmpeg") ?? "ffmpeg",
|
|
4325
4361
|
[
|
|
4326
4362
|
"-i",
|
|
4327
4363
|
audioPath,
|
|
4364
|
+
"-map",
|
|
4365
|
+
`0:a:${track.stream}`,
|
|
4328
4366
|
"-af",
|
|
4329
4367
|
"atrim=start_sample=1152",
|
|
4330
4368
|
"-f",
|
|
@@ -4406,7 +4444,7 @@ function validateUploadedMedia(filePath, runner = defaultRunner) {
|
|
|
4406
4444
|
if (!ffprobe) return { ok: true, unchecked: FFPROBE_MISSING };
|
|
4407
4445
|
const result = runner(
|
|
4408
4446
|
ffprobe,
|
|
4409
|
-
["-v", "error", "-show_entries", "stream=codec_type", "-of", "json", "--", filePath],
|
|
4447
|
+
["-v", "error", "-show_entries", "stream=codec_type,codec_name", "-of", "json", "--", filePath],
|
|
4410
4448
|
{ windowsHide: true }
|
|
4411
4449
|
);
|
|
4412
4450
|
if (result.error && process.env[FFPROBE_PATH_ENV]?.trim()) {
|
|
@@ -4428,7 +4466,7 @@ function checkStreams(stdout, isVideo, isAudio) {
|
|
|
4428
4466
|
const parsed = JSON.parse(stdout);
|
|
4429
4467
|
const streams = parsed.streams ?? [];
|
|
4430
4468
|
const hasVideo = streams.some((stream) => stream.codec_type === "video");
|
|
4431
|
-
const hasAudio = streams
|
|
4469
|
+
const hasAudio = decodableAudioStream(streams) !== null;
|
|
4432
4470
|
if (isVideo && !hasVideo) {
|
|
4433
4471
|
return { ok: false, reason: "no supported video stream found" };
|
|
4434
4472
|
}
|
|
@@ -5552,7 +5590,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5552
5590
|
let block = extractGsapScriptBlock(html);
|
|
5553
5591
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5554
5592
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5555
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5593
|
+
const { GSAP_CDN } = await import("./dist-JJL4QUDL.js");
|
|
5556
5594
|
const bootstrap = [
|
|
5557
5595
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5558
5596
|
"<script>",
|
|
@@ -7282,6 +7320,43 @@ function registerFileRoutes(api, adapter) {
|
|
|
7282
7320
|
return c.json({ ok: true, restored: true, conflict: false });
|
|
7283
7321
|
});
|
|
7284
7322
|
}
|
|
7323
|
+
var IMPORT_MAP_TYPE = /\btype\s*=\s*["']?importmap["']?(?=[\s/>])/i;
|
|
7324
|
+
function findImportMap(html) {
|
|
7325
|
+
for (const at of findStartTags(html, "script")) {
|
|
7326
|
+
const open2 = /^<script\b[^>]*>/i.exec(html.slice(at));
|
|
7327
|
+
if (!open2 || !IMPORT_MAP_TYPE.test(open2[0])) continue;
|
|
7328
|
+
const start = at + open2[0].length;
|
|
7329
|
+
const end = html.toLowerCase().indexOf("</script", start);
|
|
7330
|
+
if (end !== -1) return { start, end, json: html.slice(start, end) };
|
|
7331
|
+
}
|
|
7332
|
+
return null;
|
|
7333
|
+
}
|
|
7334
|
+
function withRootImportMap(html, base) {
|
|
7335
|
+
const ours = { "/": base, [base]: base };
|
|
7336
|
+
const own = findImportMap(html);
|
|
7337
|
+
if (!own)
|
|
7338
|
+
return injectTagsAtHeadStart(
|
|
7339
|
+
html,
|
|
7340
|
+
`<script type="importmap">${JSON.stringify({ imports: ours })}</script>`
|
|
7341
|
+
);
|
|
7342
|
+
let map;
|
|
7343
|
+
try {
|
|
7344
|
+
map = JSON.parse(own.json);
|
|
7345
|
+
} catch {
|
|
7346
|
+
return html;
|
|
7347
|
+
}
|
|
7348
|
+
if (!map || typeof map !== "object") return html;
|
|
7349
|
+
const under = (path) => underBase(path, base);
|
|
7350
|
+
const moved = (entries = {}) => Object.fromEntries(
|
|
7351
|
+
Object.entries(entries).map(([key, target]) => [key, under(String(target))])
|
|
7352
|
+
);
|
|
7353
|
+
const merged = { ...map, imports: { ...ours, ...moved(map.imports) } };
|
|
7354
|
+
if (map.scopes)
|
|
7355
|
+
merged.scopes = Object.fromEntries(
|
|
7356
|
+
Object.entries(map.scopes).map(([scope, entries]) => [under(scope), moved(entries)])
|
|
7357
|
+
);
|
|
7358
|
+
return html.slice(0, own.start) + JSON.stringify(merged) + html.slice(own.end);
|
|
7359
|
+
}
|
|
7285
7360
|
var ALWAYS_AFFECTS = ["hyperframes.json", ...STUDIO_SIGNATURE_MANIFEST_PATHS];
|
|
7286
7361
|
var MAX_PREVIEW_PATH_LENGTH = 4096;
|
|
7287
7362
|
var SHOW_ELEMENT = 1;
|
|
@@ -7668,7 +7743,11 @@ var PREVIEW_BUNDLE_OPTIONS = {
|
|
|
7668
7743
|
sceneParts: true
|
|
7669
7744
|
};
|
|
7670
7745
|
var previewBaseHref = (projectId) => `/api/projects/${encodeURIComponent(projectId)}/preview/`;
|
|
7671
|
-
var withPreviewBase = (html, projectId) =>
|
|
7746
|
+
var withPreviewBase = (html, projectId) => {
|
|
7747
|
+
const base = previewBaseHref(projectId);
|
|
7748
|
+
const mapped = withRootImportMap(withRootPathsRelative(html, base), base);
|
|
7749
|
+
return hasBaseElement(mapped) ? mapped : injectTagsAtHeadStart(mapped, `<base href="${base}">`);
|
|
7750
|
+
};
|
|
7672
7751
|
function resolvePreviewGsapBaseUrl(adapter) {
|
|
7673
7752
|
const configured = process.env.HYPERFRAMES_GSAP_BASE_URL;
|
|
7674
7753
|
if (configured?.trim() || !adapter.gsapLocalRoot) {
|
|
@@ -7711,10 +7790,9 @@ function registerPreviewRoutes(api, adapter) {
|
|
|
7711
7790
|
bundled = ensureHfIds(diskMain.html);
|
|
7712
7791
|
mainCompositionPath = diskMain.compositionPath;
|
|
7713
7792
|
}
|
|
7714
|
-
bundled = withPreviewRuntime(bundled, adapter.runtimeUrl);
|
|
7793
|
+
bundled = withPreviewRuntime(withPreviewBase(bundled, project.id), adapter.runtimeUrl);
|
|
7715
7794
|
recordPreviewReferences(project.dir, bundled);
|
|
7716
7795
|
recordPreviewBuilt(project.dir);
|
|
7717
|
-
bundled = withPreviewBase(bundled, project.id);
|
|
7718
7796
|
bundled = injectStudioPreviewAugmentations(
|
|
7719
7797
|
ensureHfIds(await transformPreviewHtml(bundled, adapter, project, mainCompositionPath)),
|
|
7720
7798
|
adapter,
|
|
@@ -7739,9 +7817,9 @@ function registerPreviewRoutes(api, adapter) {
|
|
|
7739
7817
|
} catch {
|
|
7740
7818
|
const fallback = resolveProjectMainHtml(project.dir, project.id);
|
|
7741
7819
|
if (fallback) {
|
|
7742
|
-
const fallbackHtml =
|
|
7743
|
-
|
|
7744
|
-
|
|
7820
|
+
const fallbackHtml = withPreviewRuntime(
|
|
7821
|
+
withPreviewBase(ensureHfIds(fallback.html), project.id),
|
|
7822
|
+
adapter.runtimeUrl
|
|
7745
7823
|
);
|
|
7746
7824
|
let fallbackAugmented = injectStudioPreviewAugmentations(
|
|
7747
7825
|
await transformPreviewHtml(fallbackHtml, adapter, project, fallback.compositionPath),
|
|
@@ -7843,6 +7921,7 @@ ${etag}`;
|
|
|
7843
7921
|
gsapBaseUrl
|
|
7844
7922
|
);
|
|
7845
7923
|
if (!html) return c.text("not found", 404);
|
|
7924
|
+
html = withRootImportMap(html, baseHref);
|
|
7846
7925
|
recordPreviewReferences(project.dir, html);
|
|
7847
7926
|
html = ensureHfIds(await transformPreviewHtml(html, adapter, project, compPath));
|
|
7848
7927
|
html = injectStudioPreviewAugmentations(html, adapter, project.dir, compPath, {
|
|
@@ -9117,7 +9196,6 @@ function registerLoudnessRoutes(api, adapter, measure = defaultMeasure) {
|
|
|
9117
9196
|
}
|
|
9118
9197
|
var PEAK_BIN_SECONDS = 0.05;
|
|
9119
9198
|
var PEAK_SAMPLE_RATE = 48e3;
|
|
9120
|
-
var execFileAsync = promisify(execFile2);
|
|
9121
9199
|
var PEAK_MAP_CACHE_VERSION = "peaks-v2";
|
|
9122
9200
|
function createPeakAccumulator(sampleRate = PEAK_SAMPLE_RATE, binSeconds = PEAK_BIN_SECONDS, channels = 2) {
|
|
9123
9201
|
return {
|
|
@@ -9151,29 +9229,10 @@ function accumulatePeaks(acc, chunk) {
|
|
|
9151
9229
|
function finishPeaks(acc) {
|
|
9152
9230
|
return acc.bins.map((peak) => Number(peak.toFixed(4)));
|
|
9153
9231
|
}
|
|
9154
|
-
async function probeChannels(mediaPath) {
|
|
9155
|
-
const { stdout } = await execFileAsync(
|
|
9156
|
-
findFfBinary("ffprobe") ?? "ffprobe",
|
|
9157
|
-
[
|
|
9158
|
-
"-v",
|
|
9159
|
-
"error",
|
|
9160
|
-
"-select_streams",
|
|
9161
|
-
"a:0",
|
|
9162
|
-
"-show_entries",
|
|
9163
|
-
"stream=channels",
|
|
9164
|
-
"-of",
|
|
9165
|
-
"csv=p=0",
|
|
9166
|
-
"--",
|
|
9167
|
-
mediaPath
|
|
9168
|
-
],
|
|
9169
|
-
{ encoding: "utf8", timeout: 3e4, windowsHide: true }
|
|
9170
|
-
);
|
|
9171
|
-
const channels = Number.parseInt(stdout.trim(), 10);
|
|
9172
|
-
if (!Number.isFinite(channels) || channels < 1) throw new Error("no audio stream");
|
|
9173
|
-
return channels;
|
|
9174
|
-
}
|
|
9175
9232
|
async function decodePeakMap(mediaPath) {
|
|
9176
|
-
const
|
|
9233
|
+
const track = await probeAudioTrack(mediaPath);
|
|
9234
|
+
if (!track || track.channels < 1) throw new Error("no audio stream");
|
|
9235
|
+
const { stream, channels } = track;
|
|
9177
9236
|
return new Promise((resolvePromise, reject) => {
|
|
9178
9237
|
const proc = spawn2(
|
|
9179
9238
|
findFfBinary("ffmpeg") ?? "ffmpeg",
|
|
@@ -9183,7 +9242,7 @@ async function decodePeakMap(mediaPath) {
|
|
|
9183
9242
|
"-i",
|
|
9184
9243
|
mediaPath,
|
|
9185
9244
|
"-map",
|
|
9186
|
-
|
|
9245
|
+
`0:a:${stream}`,
|
|
9187
9246
|
"-vn",
|
|
9188
9247
|
"-ar",
|
|
9189
9248
|
String(PEAK_SAMPLE_RATE),
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RJO4X3AA.js";
|
|
24
24
|
import {
|
|
25
25
|
defineCommand
|
|
26
26
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -229,7 +229,7 @@ var asset_default = defineCommand({
|
|
|
229
229
|
rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
|
-
const { trackFigmaImport } = await import("./telemetry-
|
|
232
|
+
const { trackFigmaImport } = await import("./telemetry-YDGXGOLH.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
readConfig,
|
|
12
12
|
readConfigFresh,
|
|
13
13
|
writeConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NEASABW6.js";
|
|
15
15
|
import {
|
|
16
16
|
isDevMode
|
|
17
17
|
} from "./chunk-ISN5GRYI.js";
|
|
18
18
|
import {
|
|
19
19
|
VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-RAONLDN5.js";
|
|
21
21
|
|
|
22
22
|
// src/utils/updateCheck.ts
|
|
23
23
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -4,9 +4,12 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
probeAudio
|
|
9
|
+
} from "./chunk-7VZEOCUY.js";
|
|
7
10
|
import {
|
|
8
11
|
stoppedByCancelSignal
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RVG2JNDU.js";
|
|
10
13
|
import {
|
|
11
14
|
DEFAULT_MODEL,
|
|
12
15
|
ensureModel,
|
|
@@ -14,12 +17,12 @@ import {
|
|
|
14
17
|
hasFFmpeg,
|
|
15
18
|
pinnedWhisperModel,
|
|
16
19
|
sha256File
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3PUXUIWB.js";
|
|
18
21
|
import {
|
|
19
22
|
findFFmpeg,
|
|
20
23
|
findFFprobe,
|
|
21
24
|
getFFmpegInstallHint
|
|
22
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-R52YM6ZK.js";
|
|
23
26
|
import {
|
|
24
27
|
findWavChunk
|
|
25
28
|
} from "./chunk-UOFAE5RF.js";
|
|
@@ -29,6 +32,9 @@ import {
|
|
|
29
32
|
import {
|
|
30
33
|
stoppableExecFile
|
|
31
34
|
} from "./chunk-HU2SPFNG.js";
|
|
35
|
+
import {
|
|
36
|
+
decodableAudioStream
|
|
37
|
+
} from "./chunk-D3MUHMFG.js";
|
|
32
38
|
|
|
33
39
|
// src/whisper/transcribe.ts
|
|
34
40
|
import { execFile, execFileSync } from "child_process";
|
|
@@ -258,10 +264,24 @@ async function extractAudio(videoPath, signal) {
|
|
|
258
264
|
`ffmpeg is required to extract audio from video. Install: ${getFFmpegInstallHint()}`
|
|
259
265
|
);
|
|
260
266
|
}
|
|
267
|
+
const audio = await probeAudio(videoPath);
|
|
268
|
+
if (!audio) throw new Error("the file has no audio track ffmpeg can decode");
|
|
261
269
|
const wavPath = tempWavPath();
|
|
262
270
|
await runFfmpeg(
|
|
263
271
|
ffmpegPath,
|
|
264
|
-
[
|
|
272
|
+
[
|
|
273
|
+
"-i",
|
|
274
|
+
videoPath,
|
|
275
|
+
"-map",
|
|
276
|
+
`0:a:${audio.audioStream}`,
|
|
277
|
+
"-vn",
|
|
278
|
+
"-ar",
|
|
279
|
+
"16000",
|
|
280
|
+
"-ac",
|
|
281
|
+
"1",
|
|
282
|
+
"-f",
|
|
283
|
+
"wav"
|
|
284
|
+
],
|
|
265
285
|
wavPath,
|
|
266
286
|
resolveAudioPreparationTimeoutMs(getMediaDurationSeconds(videoPath)),
|
|
267
287
|
signal
|
|
@@ -281,7 +301,9 @@ function isWav16kMono(filePath) {
|
|
|
281
301
|
{ encoding: "utf-8", timeout: 1e4 }
|
|
282
302
|
);
|
|
283
303
|
const parsed = JSON.parse(raw);
|
|
284
|
-
|
|
304
|
+
const audio = (parsed.streams ?? []).filter((s) => s.codec_type === "audio");
|
|
305
|
+
const index = decodableAudioStream(audio);
|
|
306
|
+
return isPcm16kMono(index === null ? void 0 : audio[index]);
|
|
285
307
|
} catch {
|
|
286
308
|
return false;
|
|
287
309
|
}
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
ensureHfIds,
|
|
13
13
|
mintHfId,
|
|
14
14
|
walkCompositionDescendants
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JC6BAQOG.js";
|
|
16
16
|
import {
|
|
17
17
|
isAllowedHtmlAttribute,
|
|
18
18
|
isSafeAttributeValue,
|
|
19
19
|
sanitizeRichTextChildren
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MI4V4HPE.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-P327BIJR.js";
|
|
24
24
|
import {
|
|
25
25
|
readClipTiming,
|
|
26
26
|
readMediaOffsetSeconds,
|