hyperframes 0.9.6 → 0.9.7
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-FI2ERBMZ.js → add-WLXYFHMC.js} +12 -12
- package/dist/{agentPromptGenerator-DZTXHJV3.js → agentPromptGenerator-2SMADJAL.js} +6 -6
- package/dist/{animatedGifPrep-GXQA4KCD.js → animatedGifPrep-4WCFONEJ.js} +6 -6
- package/dist/api.js +25 -25
- package/dist/{asset-BRSG6JNL.js → asset-UQBTWAMJ.js} +2 -2
- package/dist/{assetCataloger-KVWF4SRK.js → assetCataloger-GOUD7VDG.js} +7 -7
- package/dist/{audio-BVZOX6LU.js → audio-LDVXMRHU.js} +16 -16
- package/dist/{auth-HFFN7USX.js → auth-6LVATNTF.js} +6 -6
- package/dist/{autoUpdate-JNGMUXLZ.js → autoUpdate-X6KZRI5E.js} +2 -2
- package/dist/{backgroundChecks-O4ADPXOL.js → backgroundChecks-3HGGWYLY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-A2HW6QW7.js → batchRender-4ISYYVPQ.js} +3 -3
- package/dist/{beats-F7Q3G6VW.js → beats-WN2KYIK3.js} +9 -9
- package/dist/{benchmark-4BDMIYTW.js → benchmark-HZPGQ2MP.js} +9 -9
- package/dist/{billing-35NVMZWK.js → billing-3Q2EAZFJ.js} +4 -4
- package/dist/{browser-S6ADXSB7.js → browser-6XC7MTQL.js} +4 -4
- package/dist/{bundleWithLocalizedFonts-EE27EYEU.js → bundleWithLocalizedFonts-ZZ6Y4CEO.js} +2 -2
- package/dist/{capture-LWWBL6SH.js → capture-46LJ2VU2.js} +3 -3
- package/dist/{capture-CXDJO524.js → capture-FCLAEX5L.js} +11 -11
- package/dist/{captureCompositionFrame-BB2ZGM6R.js → captureCompositionFrame-SMUDCZ2L.js} +11 -11
- package/dist/{catalog-RQ6HIUBG.js → catalog-72AEDDEG.js} +12 -12
- package/dist/{catch-up-PBAXR7FI.js → catch-up-6WIX7SWV.js} +5 -5
- package/dist/{check-O4V4UWE3.js → check-R2G5OYIA.js} +37 -37
- package/dist/{checkAudio-EUT3AO3L.js → checkAudio-2RP7BNQ3.js} +9 -9
- package/dist/{checkBrowser-QQUBR4QI.js → checkBrowser-OWLF2BT4.js} +31 -31
- package/dist/{chunk-W3G7DNCR.js → chunk-2BARV2ZU.js} +48 -8
- package/dist/{chunk-YUMVQB2F.js → chunk-2X43RFKM.js} +1 -1
- package/dist/{chunk-P5GOQDA2.js → chunk-3AH6KE6F.js} +39 -11
- package/dist/{chunk-ZDQEVQHB.js → chunk-3LHJHMFK.js} +1 -1
- package/dist/{chunk-CUAZHDVV.js → chunk-3Q7UFKFN.js} +3 -3
- package/dist/{chunk-DETBSOYO.js → chunk-3YJB4QVS.js} +1 -1
- package/dist/{chunk-TS4HYR6I.js → chunk-46HMQ4I3.js} +1 -1
- package/dist/{chunk-L6MNWJTL.js → chunk-6IW2HWYI.js} +7 -8
- package/dist/{chunk-OHWVSTNO.js → chunk-74VSOKKS.js} +6 -4
- package/dist/{chunk-FM7VWSN3.js → chunk-7LCZBNX7.js} +1 -1
- package/dist/{chunk-C47ZGVKT.js → chunk-7XRS2NDR.js} +7 -7
- package/dist/{chunk-KJDQS24S.js → chunk-AWQE37H3.js} +2 -2
- package/dist/{chunk-NASVSJQK.js → chunk-BGMMC352.js} +19 -7
- package/dist/{chunk-6NJVSTSY.js → chunk-BVAPHHMQ.js} +7 -3
- package/dist/{chunk-4III3SDC.js → chunk-C3FKYBZ4.js} +10 -10
- package/dist/{chunk-YFISKULK.js → chunk-C7XW5WPZ.js} +2 -2
- package/dist/{chunk-RYNMIBZM.js → chunk-CTPYBHF3.js} +2 -2
- package/dist/{chunk-2FNUCIHD.js → chunk-CUCDUPTA.js} +1 -1
- package/dist/{chunk-VWRIARRR.js → chunk-CX6MGY2B.js} +13 -13
- package/dist/{chunk-44T2V4EW.js → chunk-DOS6S7HW.js} +1 -1
- package/dist/{chunk-PWYAOU4I.js → chunk-DZNJD7BH.js} +1 -1
- package/dist/{chunk-SAWXMCHB.js → chunk-E3IBPTX7.js} +1 -1
- package/dist/{chunk-HTTGTROQ.js → chunk-E4XS2M2E.js} +1 -1
- package/dist/{chunk-TIXW6JWD.js → chunk-EG7FZSEF.js} +1 -1
- package/dist/{chunk-GOPJLAMZ.js → chunk-ETYQYG6Q.js} +78 -19
- package/dist/{chunk-2KYY75JP.js → chunk-FLDSZTHP.js} +2 -2
- package/dist/{chunk-YIWNZ2CI.js → chunk-FYDFHW22.js} +13 -13
- package/dist/{chunk-YDG5LVIK.js → chunk-FYR2GKAA.js} +4 -4
- package/dist/{chunk-AB3ZXWI3.js → chunk-GBEGZOP3.js} +1 -1
- package/dist/{chunk-YY7YI2FW.js → chunk-GK3OROLS.js} +1 -1
- package/dist/{chunk-M4WEGGF7.js → chunk-HBCY63DS.js} +2 -2
- package/dist/{chunk-APVBITVZ.js → chunk-HRSZOW3U.js} +1 -1
- package/dist/{chunk-47IBOMXH.js → chunk-HZG42ZYW.js} +3 -3
- package/dist/{chunk-QDB7EFLI.js → chunk-IAZ2A7D6.js} +5 -3
- package/dist/{chunk-3SB24TVT.js → chunk-IOECRDWX.js} +1 -1
- package/dist/{chunk-GP7OHHXR.js → chunk-IX3R4BKU.js} +1 -1
- package/dist/{chunk-JLLNDU2F.js → chunk-IXGZ6YFZ.js} +4 -4
- package/dist/{chunk-5BCFV2HE.js → chunk-KD22R2UE.js} +3 -3
- package/dist/{chunk-4E7G2GME.js → chunk-KDTOB4TD.js} +1 -1
- package/dist/{chunk-YVUOJW4H.js → chunk-LAZREIJF.js} +1 -1
- package/dist/{chunk-IG3GSBHB.js → chunk-LCDXHXYH.js} +2 -2
- package/dist/{chunk-JLKEXS4I.js → chunk-LFDPOL45.js} +3 -3
- package/dist/{chunk-BQQTZET2.js → chunk-LIA4GZ4F.js} +2 -2
- package/dist/{chunk-6JMNJYYR.js → chunk-N6O2RQLQ.js} +3 -1
- package/dist/{chunk-FP37FSOT.js → chunk-NEI65CWG.js} +2 -2
- package/dist/{chunk-7DKGU6CY.js → chunk-NFNYH6VQ.js} +2 -2
- package/dist/{chunk-FZM6E4S4.js → chunk-OJTXXFYO.js} +2 -2
- package/dist/{chunk-FIIFME5M.js → chunk-OO7U23BR.js} +1 -1
- package/dist/chunk-OUZSRPKC.js +5035 -0
- package/dist/{chunk-BIJBGCF4.js → chunk-P73MHFBX.js} +1 -1
- package/dist/{chunk-IVFZG3CU.js → chunk-P7CVKVPD.js} +2 -2
- package/dist/{chunk-DUSSDJJC.js → chunk-PG356QHK.js} +2 -2
- package/dist/{chunk-GKVERDJ2.js → chunk-PPNA6EBI.js} +1 -1
- package/dist/{chunk-XC3LDNBH.js → chunk-PUMQDN2T.js} +1 -1
- package/dist/{chunk-G4VDT5D7.js → chunk-PYWJGSWO.js} +1 -1
- package/dist/{chunk-KAWNVSAE.js → chunk-QXUDHDJU.js} +7 -7
- package/dist/{chunk-YOZPHSYV.js → chunk-QXVW22VM.js} +1 -1
- package/dist/{chunk-2KO357TJ.js → chunk-RJ6LXDUC.js} +1 -1
- package/dist/{chunk-WCET3OHQ.js → chunk-RWHCRVZV.js} +5 -5
- package/dist/{chunk-I47SIQGX.js → chunk-RY7Z6KFS.js} +4 -4
- package/dist/{chunk-JFIBO4CZ.js → chunk-SE6O4APZ.js} +2 -2
- package/dist/{chunk-VG4JPJMI.js → chunk-SEJ7UBR2.js} +2 -2
- package/dist/{chunk-BUDP4GF4.js → chunk-SIJYH7XM.js} +1 -1
- package/dist/{chunk-4VOK22DG.js → chunk-SXGXJAA7.js} +1 -1
- package/dist/{chunk-ODKXNWDL.js → chunk-T252SG67.js} +2 -2
- package/dist/{chunk-E2VWKW2A.js → chunk-TBCRTIXP.js} +2 -2
- package/dist/{chunk-6GZB32Q5.js → chunk-TSCO4XR4.js} +1 -1
- package/dist/{chunk-QEQEKBL7.js → chunk-TSQZ3DSC.js} +20 -5
- package/dist/{chunk-ZP3LPFTA.js → chunk-UDY3FS6G.js} +9 -9
- package/dist/{chunk-BMRZP6X6.js → chunk-ULH6TLE3.js} +1 -1
- package/dist/{chunk-ZR2GMFNH.js → chunk-UQH3MOES.js} +2 -2
- package/dist/{chunk-6UOHLXVU.js → chunk-V6MZZEA7.js} +5 -5
- package/dist/{chunk-ZV5GD5LV.js → chunk-WAURLEUO.js} +3 -3
- package/dist/{chunk-FDZXVTBY.js → chunk-WZGVBZY6.js} +1 -1
- package/dist/{chunk-SWWDVPVO.js → chunk-X2PPRHKO.js} +1 -1
- package/dist/{chunk-T57ARBNR.js → chunk-X3DTUYKZ.js} +7 -7
- package/dist/{chunk-I2OMLFBJ.js → chunk-X4K7Q5PT.js} +1 -1
- package/dist/{chunk-GR3LU4D5.js → chunk-XEP7PGXS.js} +1 -1
- package/dist/{chunk-GYPSZFRF.js → chunk-XFA6NPMP.js} +3 -3
- package/dist/{chunk-27AVZR7K.js → chunk-XKTLYF4N.js} +18 -18
- package/dist/{chunk-LS4CCRTK.js → chunk-XXEOJXXY.js} +2 -2
- package/dist/{chunk-KXAGCBVO.js → chunk-Y2R4N6HQ.js} +9 -9
- package/dist/{chunk-VFOCEFRZ.js → chunk-YHO5SKUR.js} +5 -5
- package/dist/{chunk-FB366S4I.js → chunk-YTWTG67C.js} +2 -2
- package/dist/{chunk-KJLZZ4MY.js → chunk-ZVERYNYS.js} +1 -1
- package/dist/{clean-2AFJGFIG.js → clean-52TVJH4U.js} +16 -16
- package/dist/cli.js +58 -58
- package/dist/{cloud-JM5MFMVV.js → cloud-FEPPMA5F.js} +4 -4
- package/dist/{cloudrun-PNVETMPA.js → cloudrun-DFWQ7ZJW.js} +4 -4
- package/dist/{compare-ST4DXEMX.js → compare-UBQUKWOB.js} +28 -28
- package/dist/{compiler-UCX3MZVN.js → compiler-UCJ4KC75.js} +3 -3
- package/dist/{component-ECFJIDUD.js → component-6YUQ2XAM.js} +3 -3
- package/dist/{compositions-ZCAD47PD.js → compositions-KGZO4UYR.js} +11 -11
- package/dist/{curve-NYXZWGPO.js → curve-VISYHZKL.js} +10 -10
- package/dist/{cuts-CKUCNNOX.js → cuts-HCWYCBI2.js} +11 -11
- package/dist/{delete-MVGSOWSC.js → delete-CNKHLEDS.js} +6 -6
- package/dist/{deploy-WBKPSWPG.js → deploy-TS3R7DTD.js} +1 -1
- package/dist/{describeProject-ZDI5B6JO.js → describeProject-6TNE4FY4.js} +7 -7
- package/dist/{diff-3UYDXIEZ.js → diff-YRBYR56R.js} +25 -25
- package/dist/{dist-IHPMKRYN.js → dist-H4C7ZCFU.js} +1 -1
- package/dist/{dist-XRAW3URT.js → dist-T57O7KXT.js} +4 -2
- package/dist/{doctor-A4HMMBII.js → doctor-PLA77GFC.js} +10 -10
- package/dist/{energy-RN6KTYH6.js → energy-7BTNGNR7.js} +11 -11
- package/dist/{events-6NE2NRCQ.js → events-25FIG2O6.js} +13 -13
- package/dist/{events-AO3FEPL3.js → events-IMWCEFSZ.js} +4 -4
- package/dist/{events-LSEMS2LO.js → events-QTM2OEFB.js} +3 -3
- package/dist/{extract-6UO4QR77.js → extract-C66C5A22.js} +11 -11
- package/dist/{face-FTKPGC2O.js → face-MDOI2JO5.js} +11 -11
- package/dist/{feedback-GSKVBGA7.js → feedback-26OSAZF3.js} +11 -11
- package/dist/{ffmpeg-HPMQUKY4.js → ffmpeg-R5ND25AV.js} +6 -6
- package/dist/{figma-UIWB3XSX.js → figma-276JAPS4.js} +3 -3
- package/dist/fontLocalizeCli.js +9 -9
- package/dist/{frames-U3LLSXSV.js → frames-AMLBNI5B.js} +12 -12
- package/dist/{generate-AFCKBHGB.js → generate-YIZS4JFA.js} +17 -17
- package/dist/{get-J3TJCAZW.js → get-HFEFIRAJ.js} +6 -6
- package/dist/{gpuPolicy-W2OEEW7Y.js → gpuPolicy-7JA66MJG.js} +6 -6
- package/dist/{grade-compare-AOXNJ53Z.js → grade-compare-7NH6XYIY.js} +29 -29
- package/dist/{heifImagePrep-4RSVCLPX.js → heifImagePrep-WCL36MHY.js} +7 -7
- package/dist/{help-5NYIBLJJ.js → help-HHIAUMBQ.js} +1 -1
- package/dist/{history-KAXYCLVT.js → history-SLWPRU6Q.js} +7 -7
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +62 -62
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-Z6KNUMH6.js → info-MIPROXSM.js} +8 -8
- package/dist/{init-GSMXQX3U.js → init-T56UGI6Z.js} +27 -27
- package/dist/{ink-IPPBJFH3.js → ink-TY7CKC6Q.js} +11 -11
- package/dist/{inspect-MXIGEN6Z.js → inspect-TIF7YHGN.js} +29 -29
- package/dist/{installer-JXI2JC3T.js → installer-72QUKTPE.js} +4 -4
- package/dist/{keyframes-Z53YGH5F.js → keyframes-I4JRA37J.js} +7 -7
- package/dist/{lambda-KD7ZRYVK.js → lambda-VGFSEG56.js} +10 -10
- package/dist/{layout-NLDWEPDQ.js → layout-K776Z2IS.js} +29 -29
- package/dist/{lint-MSZMGQO5.js → lint-XLTSC66T.js} +8 -8
- package/dist/{lintProject-SG4KRUAV.js → lintProject-NZADSVSU.js} +1 -1
- package/dist/{list-OLNBKKB4.js → list-6V3IKLXF.js} +6 -6
- package/dist/{localPage-BQ2LKHED.js → localPage-RM6EXBBT.js} +6 -6
- package/dist/{login-TBJVG5PZ.js → login-HD47X3JE.js} +12 -13
- package/dist/{logout-B6H5F5YP.js → logout-UMDA3HDE.js} +3 -3
- package/dist/{look-T5V6JBD5.js → look-KUDJYDTK.js} +11 -11
- package/dist/{manager-FHVSGJNR.js → manager-TUKVGY7O.js} +7 -7
- package/dist/{measure-KI3XY2MJ.js → measure-6BRNY3II.js} +11 -11
- package/dist/{media-treatment-UZI55RS3.js → media-treatment-MLME5LNQ.js} +13 -13
- package/dist/{media-use-2PIPVWX4.js → media-use-3YTDQKGR.js} +9 -5
- package/dist/{models-MV4HBZKZ.js → models-IUX642FY.js} +10 -10
- package/dist/{motionShot-A3TWOBRE.js → motionShot-INNVFSPU.js} +14 -14
- package/dist/{normalize-audio-37WYHLP4.js → normalize-audio-ZMJIN2OV.js} +9 -9
- package/dist/{open-4PPPV45S.js → open-FDQ3NDSX.js} +12 -12
- package/dist/{parakeetRunner-J22MMWSM.js → parakeetRunner-WZ6JW3QQ.js} +11 -11
- package/dist/{pipeline-GE4LBTRO.js → pipeline-V3TOATHS.js} +9 -9
- package/dist/{play-MZSW7GIL.js → play-5WIU4CZL.js} +20 -20
- package/dist/{preflight-NXMN7P4B.js → preflight-JXEVL63B.js} +7 -7
- package/dist/{present-TWZLASXI.js → present-UHWGVCP4.js} +16 -16
- package/dist/{preview-OEXP2RPO.js → preview-W75P6D7E.js} +18 -18
- package/dist/{probe-HNAD6ACH.js → probe-O2ADL5FX.js} +11 -11
- package/dist/{producer-E4AN4ADM.js → producer-6GQQQT7M.js} +1 -1
- package/dist/{projectConfig-HKWVTV5Q.js → projectConfig-FQ7CAOXL.js} +6 -6
- package/dist/{publication-DTIE7G2E.js → publication-YRVC6D56.js} +2 -2
- package/dist/{publish-CUU5W6CP.js → publish-4IN3WW5G.js} +15 -15
- package/dist/{refresh-T6JLFCS4.js → refresh-4FQFQ2SW.js} +3 -3
- package/dist/{remove-background-2MRQ3YH4.js → remove-background-L4KWXVMH.js} +10 -10
- package/dist/{render-JP6JUXWP.js → render-73VGDCCH.js} +5 -5
- package/dist/{render-EEIQAOGV.js → render-GZ4DBQ5E.js} +25 -34
- package/dist/{render-QRWGJUCD.js → render-IP7KBRD7.js} +32 -32
- package/dist/{render-batch-46SYPMYV.js → render-batch-RX3TJ4NY.js} +5 -5
- package/dist/renderSetupWorker.js +1 -1
- package/dist/{resolver-DPRCISSD.js → resolver-SNTBG6O2.js} +4 -4
- package/dist/{reverse-MY6DSOXL.js → reverse-5SHT4TC6.js} +1 -1
- package/dist/{run-2VGZ3URU.js → run-GV6MEM2M.js} +4 -4
- package/dist/{sherpa-5LOEXZ46.js → sherpa-LJJHQNQ6.js} +10 -10
- package/dist/skills/hyperframes-cli/references/cloud.md +1 -1
- package/dist/skills/media-use/SKILL.md +5 -5
- package/dist/skills/media-use/audio/references/requirements.md +7 -7
- package/dist/skills/media-use/audio/references/tts.md +7 -6
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +16 -10
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +32 -0
- package/dist/skills/media-use/references/heygen.md +1 -1
- package/dist/{skills-BBHR4SHX.js → skills-NVNRQU7K.js} +6 -6
- package/dist/{skillsUpdateCheck-HBOVCIXG.js → skillsUpdateCheck-QNFIPFLX.js} +3 -3
- package/dist/{snapshot-S264O54Z.js → snapshot-75S4SIRK.js} +173 -66
- package/dist/{src-G2EK32ZO.js → src-KS6W3WRC.js} +8 -8
- package/dist/{src-GLO4X3WA.js → src-MTLH4YHV.js} +9 -5
- package/dist/{start-6AFMEXPO.js → start-4UCLBL76.js} +19 -19
- package/dist/{staticProjectServer-KWSV5IRS.js → staticProjectServer-USD7TCZH.js} +17 -17
- package/dist/{status-5ZRM4R4N.js → status-MPCREDMQ.js} +9 -6
- package/dist/studio/assets/{hyperframes-player-CGO8wE5a.js → hyperframes-player-CQLtM2zB.js} +1 -1
- package/dist/studio/assets/{index-COtefOSM.js → index-CKnGNPHF.js} +1 -1
- package/dist/studio/assets/{index-DHPJjAUV.js → index-CdWK2GVp.js} +101 -101
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-JJO6VEFD.js → studio-api-447CJUUM.js} +9 -9
- package/dist/{studioServer-YFZIESIH.js → studioServer-TMPKQRQA.js} +48 -48
- package/dist/{sync-DBMNZ32Z.js → sync-V456U5AA.js} +11 -11
- package/dist/{telemetry-OPZTKPDG.js → telemetry-NK6K3VRH.js} +4 -4
- package/dist/{timeline-MCJUCDME.js → timeline-M5URP7QS.js} +18 -18
- package/dist/{tokens-3DREMPWC.js → tokens-5OIFB4MD.js} +2 -2
- package/dist/{transcribe-TMGPK6FM.js → transcribe-N3E7T7AW.js} +21 -21
- package/dist/{transcribe-AU7TPKMU.js → transcribe-ON5WTZV3.js} +9 -9
- package/dist/{updateCheck-YKTRFFFV.js → updateCheck-JQOAKPNR.js} +2 -2
- package/dist/{upgrade-UAKM3KAT.js → upgrade-737POFN4.js} +2 -2
- package/dist/{urlDownloader-77YL7TXO.js → urlDownloader-ZIPT6PZC.js} +5 -5
- package/dist/{validate-SR35R3QM.js → validate-6IPCQFXI.js} +23 -23
- package/dist/{video-GNMQTE4D.js → video-BEZHDPH2.js} +7 -7
- package/dist/warmCheck.js +37 -37
- package/package.json +1 -1
- package/dist/chunk-TNWWLO4T.js +0 -5030
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
probeFirstFrameColour,
|
|
9
9
|
probeMediaMetadata
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SXGXJAA7.js";
|
|
11
11
|
import {
|
|
12
12
|
alphaDecoderFor
|
|
13
13
|
} from "./chunk-5S7W3TUO.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
formatPreviewProxyBox,
|
|
16
16
|
hdrToSdrToneMapFilter,
|
|
17
17
|
isHeavyForPreview
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-N6O2RQLQ.js";
|
|
19
19
|
import {
|
|
20
20
|
mkdirWithinProject,
|
|
21
21
|
realProjectRoot,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
scanHtmlOpeningTags
|
|
39
39
|
} from "./chunk-T5ELONXY.js";
|
|
40
40
|
|
|
41
|
-
// ../studio-server/dist/chunk-
|
|
41
|
+
// ../studio-server/dist/chunk-NOIHVBIQ.js
|
|
42
42
|
import { statSync } from "fs";
|
|
43
43
|
import { sep } from "path";
|
|
44
44
|
import { spawn } from "child_process";
|
|
@@ -112,6 +112,7 @@ var PROXY_VARIANT_CONFIG = {
|
|
|
112
112
|
h264: { extension: ".mp4", contentType: "video/mp4" },
|
|
113
113
|
vp8: { extension: ".webm", contentType: "video/webm" }
|
|
114
114
|
};
|
|
115
|
+
var PROXY_STILL_EXTENSION = ".jpg";
|
|
115
116
|
function isProxyVariant(value) {
|
|
116
117
|
return Object.hasOwn(PROXY_VARIANT_CONFIG, value);
|
|
117
118
|
}
|
|
@@ -258,7 +259,7 @@ async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
|
|
|
258
259
|
return (await scanProjectMedia(projectDir, htmlSources, options)).codecMap;
|
|
259
260
|
}
|
|
260
261
|
|
|
261
|
-
// ../studio-server/dist/chunk-
|
|
262
|
+
// ../studio-server/dist/chunk-BAJ6HKBU.js
|
|
262
263
|
import { spawn as spawn2 } from "child_process";
|
|
263
264
|
import { randomUUID } from "crypto";
|
|
264
265
|
import {
|
|
@@ -300,9 +301,10 @@ import { basename as basename2, dirname as dirname2, extname as extname3, join a
|
|
|
300
301
|
var DEFAULT_MAX_BYTES = 10 * 1024 * 1024 * 1024;
|
|
301
302
|
var DEFAULT_STALE_TEMP_MS = 60 * 60 * 1e3;
|
|
302
303
|
var DEFAULT_MIN_SWEEP_INTERVAL_MS = 5 * 60 * 1e3;
|
|
303
|
-
var PROXY_EXTENSIONS = new Set(
|
|
304
|
-
Object.values(PROXY_VARIANT_CONFIG).map(({ extension }) => extension)
|
|
305
|
-
|
|
304
|
+
var PROXY_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
305
|
+
...Object.values(PROXY_VARIANT_CONFIG).map(({ extension }) => extension),
|
|
306
|
+
PROXY_STILL_EXTENSION
|
|
307
|
+
]);
|
|
306
308
|
var TRANSCODER_PROXY_NAME = /^[0-9a-f]{64}\.\w+$/;
|
|
307
309
|
var TRANSCODER_TEMP_NAME = /^\.tmp-[0-9a-f-]{36}-(?:\.part-[0-9a-f]{64}-\d+|[0-9a-f]{64})\.\w+$/;
|
|
308
310
|
var TRANSCODER_PIECE_NAME = /^\.part-([0-9a-f]{64})-\d+(\.\w+)$/;
|
|
@@ -1313,6 +1315,43 @@ async function resolveProxies(projectDir, sources, onSettled = () => {
|
|
|
1313
1315
|
await Promise.all(Array.from({ length: workers }, worker));
|
|
1314
1316
|
return results;
|
|
1315
1317
|
}
|
|
1318
|
+
var stillsInFlight = /* @__PURE__ */ new Map();
|
|
1319
|
+
function resolveStill(projectDir, absoluteSourcePath, atSeconds, box) {
|
|
1320
|
+
const source = canonicalizeProxySource(projectDir, absoluteSourcePath);
|
|
1321
|
+
const at = Math.max(0, Math.round(atSeconds * 10) / 10);
|
|
1322
|
+
const key = fastCopyKey(source.sourcePath, PROXY_PARAMS_VERSION, `still@${at}`, box);
|
|
1323
|
+
const cachePath = join4(source.projectDir, CACHE_DIR_NAME, `${key}${PROXY_STILL_EXTENSION}`);
|
|
1324
|
+
if (existsSync4(cachePath)) return Promise.resolve(cachePath);
|
|
1325
|
+
const shared = stillsInFlight.get(cachePath);
|
|
1326
|
+
if (shared) return shared;
|
|
1327
|
+
const made = makeStill(source, at, box, cachePath).finally(
|
|
1328
|
+
() => stillsInFlight.delete(cachePath)
|
|
1329
|
+
);
|
|
1330
|
+
stillsInFlight.set(cachePath, made);
|
|
1331
|
+
return made;
|
|
1332
|
+
}
|
|
1333
|
+
async function makeStill(source, at, box, cachePath) {
|
|
1334
|
+
const ffmpegPath = findFfBinary("ffmpeg", { configuredMustExist: true });
|
|
1335
|
+
if (!ffmpegPath) throw new FfmpegUnavailableError();
|
|
1336
|
+
const filter = await buildVideoFilter(
|
|
1337
|
+
ffmpegPath,
|
|
1338
|
+
source.sourcePath,
|
|
1339
|
+
await probeMediaMetadata(source.sourcePath),
|
|
1340
|
+
false,
|
|
1341
|
+
box
|
|
1342
|
+
);
|
|
1343
|
+
mkdirWithinProject(source.projectDir, dirname3(cachePath));
|
|
1344
|
+
const tempPath = join4(dirname3(cachePath), `.tmp-${randomUUID()}-${basename3(cachePath)}`);
|
|
1345
|
+
try {
|
|
1346
|
+
const args = ["-y", "-ss", String(at), "-i", source.sourcePath, "-map", "0:V:0"];
|
|
1347
|
+
args.push("-frames:v", "1", "-vf", filter, "-pix_fmt", "yuvj420p", "-q:v", "3", tempPath);
|
|
1348
|
+
await spawnFfmpeg(ffmpegPath, args, TRANSCODE_STALL_MS, new AbortController().signal);
|
|
1349
|
+
renameSync(tempPath, cachePath);
|
|
1350
|
+
} finally {
|
|
1351
|
+
rmSync2(tempPath, { force: true });
|
|
1352
|
+
}
|
|
1353
|
+
return cachePath;
|
|
1354
|
+
}
|
|
1316
1355
|
function joinJob(promise, job, signal) {
|
|
1317
1356
|
job.callers++;
|
|
1318
1357
|
if (!signal) return promise;
|
|
@@ -1353,5 +1392,6 @@ export {
|
|
|
1353
1392
|
retryProxyCopy,
|
|
1354
1393
|
proxyActivityMark,
|
|
1355
1394
|
resolveProxy,
|
|
1356
|
-
resolveProxies
|
|
1395
|
+
resolveProxies,
|
|
1396
|
+
resolveStill
|
|
1357
1397
|
};
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LFDPOL45.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_TARGET_LUFS,
|
|
25
25
|
absoluteLoudnessPlan,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
requestedProjectPath,
|
|
29
29
|
requiredFfmpeg,
|
|
30
30
|
resolveLocalAudioPath
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NEI65CWG.js";
|
|
32
32
|
import {
|
|
33
33
|
MEDIA_LINK_ATTR,
|
|
34
34
|
relinkSplitHalves
|
|
@@ -51,15 +51,16 @@ import {
|
|
|
51
51
|
recordProxyRequest,
|
|
52
52
|
resolveProxy,
|
|
53
53
|
resolveProxyVariantRequest,
|
|
54
|
+
resolveStill,
|
|
54
55
|
retryProxyCopy,
|
|
55
56
|
scanProjectMedia,
|
|
56
57
|
shouldPrewarmProxy,
|
|
57
58
|
waitForProxy
|
|
58
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-2BARV2ZU.js";
|
|
59
60
|
import {
|
|
60
61
|
probeAudioTrack,
|
|
61
62
|
probeMediaMetadata
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-SXGXJAA7.js";
|
|
63
64
|
import {
|
|
64
65
|
HistoryBusyError,
|
|
65
66
|
MAX_WINDOW_IDLE_MS,
|
|
@@ -116,19 +117,20 @@ import {
|
|
|
116
117
|
ensureHfIds,
|
|
117
118
|
stampHfIdsInPlace,
|
|
118
119
|
stripSdrPngColourTags
|
|
119
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-SE6O4APZ.js";
|
|
120
121
|
import {
|
|
121
122
|
PREVIEW_PROXY_BOX_PARAM,
|
|
122
123
|
PREVIEW_PROXY_LIGHT_PARAM,
|
|
123
124
|
PREVIEW_PROXY_PRIORITY_HEADER,
|
|
124
125
|
PREVIEW_PROXY_PROGRESS_HEADER,
|
|
125
126
|
PREVIEW_PROXY_RETRY_PARAM,
|
|
127
|
+
PREVIEW_PROXY_STILL_PARAM,
|
|
126
128
|
formatPreviewProxyBox,
|
|
127
129
|
formatRenderOutputTimestamp,
|
|
128
130
|
fpsToNumber,
|
|
129
131
|
parseFps,
|
|
130
132
|
parsePreviewProxyBox
|
|
131
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-N6O2RQLQ.js";
|
|
132
134
|
import {
|
|
133
135
|
GSAP_BASE_URL_META,
|
|
134
136
|
gsapCdnDist,
|
|
@@ -150,7 +152,7 @@ import {
|
|
|
150
152
|
resolveRateSpec,
|
|
151
153
|
sourceTimeAt,
|
|
152
154
|
stripEmbeddedRuntimeScripts
|
|
153
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-OUZSRPKC.js";
|
|
154
156
|
import {
|
|
155
157
|
ProjectRootMissingError,
|
|
156
158
|
folderGone,
|
|
@@ -340,7 +342,7 @@ function clearElementScreenshotIsolation() {
|
|
|
340
342
|
page.__hfThumbnailFaded = [];
|
|
341
343
|
}
|
|
342
344
|
|
|
343
|
-
// ../studio-server/dist/chunk-
|
|
345
|
+
// ../studio-server/dist/chunk-J4SRRKQU.js
|
|
344
346
|
import { resolve } from "path";
|
|
345
347
|
function isAutoProxyEnabled(adapter) {
|
|
346
348
|
return adapter.autoProxy !== false;
|
|
@@ -5617,7 +5619,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5617
5619
|
let block = extractGsapScriptBlock(html);
|
|
5618
5620
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5619
5621
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5620
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5622
|
+
const { GSAP_CDN } = await import("./dist-T57O7KXT.js");
|
|
5621
5623
|
const bootstrap = [
|
|
5622
5624
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5623
5625
|
"<script>",
|
|
@@ -7998,6 +8000,22 @@ ${etag}`;
|
|
|
7998
8000
|
return c.text("media proxy variant does not match asset", 422);
|
|
7999
8001
|
}
|
|
8000
8002
|
}
|
|
8003
|
+
const stillParam = c.req.query(PREVIEW_PROXY_STILL_PARAM);
|
|
8004
|
+
if (stillParam !== void 0) {
|
|
8005
|
+
const at = Number(stillParam);
|
|
8006
|
+
if (stillParam === "" || !Number.isFinite(at) || at < 0 || !proxyVariant) {
|
|
8007
|
+
return c.text("not found", 404);
|
|
8008
|
+
}
|
|
8009
|
+
try {
|
|
8010
|
+
const still = await resolveStill(project.dir, file, at, proxyBox);
|
|
8011
|
+
return new Response(readFileSync6(still), {
|
|
8012
|
+
headers: { "Content-Type": "image/jpeg", "Cache-Control": "private, max-age=3600" }
|
|
8013
|
+
});
|
|
8014
|
+
} catch (err) {
|
|
8015
|
+
if (isProjectRootMissing(err)) throw err;
|
|
8016
|
+
return c.text("media still failed", 502);
|
|
8017
|
+
}
|
|
8018
|
+
}
|
|
8001
8019
|
const tag = settledFileTag(stat2);
|
|
8002
8020
|
const etag = tag && `"${tag}${proxyEtagSalt(proxyVariant, proxyBox)}"`;
|
|
8003
8021
|
const cacheHeaders = isText ? { "Cache-Control": "no-store" } : { "Cache-Control": "private, no-cache", ...etag && { ETag: etag } };
|
|
@@ -8160,6 +8178,13 @@ function contentDispositionHeader(disposition, filename) {
|
|
|
8160
8178
|
}
|
|
8161
8179
|
function registerRenderRoutes(api, adapter) {
|
|
8162
8180
|
const renderJobs = /* @__PURE__ */ new Map();
|
|
8181
|
+
const nextFreeRenderJobId = (baseId, ext, rendersDir) => {
|
|
8182
|
+
let jobId = baseId;
|
|
8183
|
+
for (let n = 2; renderJobs.has(jobId) || existsSync6(join10(rendersDir, `${jobId}${ext}`)); n++) {
|
|
8184
|
+
jobId = `${baseId}-${n}`;
|
|
8185
|
+
}
|
|
8186
|
+
return jobId;
|
|
8187
|
+
};
|
|
8163
8188
|
const TTL_MS = 3e5;
|
|
8164
8189
|
const CLEANUP_INTERVAL_MS = 6e4;
|
|
8165
8190
|
let cleanupTimer = null;
|
|
@@ -8223,11 +8248,14 @@ function registerRenderRoutes(api, adapter) {
|
|
|
8223
8248
|
return c.json({ error: "pageMotionBlur must be off when supplied" }, 400);
|
|
8224
8249
|
}
|
|
8225
8250
|
const pageMotionBlur = requestedPageMotionBlur === void 0 && body.previewMotionBlur === false ? "off" : requestedPageMotionBlur;
|
|
8226
|
-
const now = /* @__PURE__ */ new Date();
|
|
8227
|
-
const jobId = `${project.id}_${formatRenderOutputTimestamp(now)}`;
|
|
8228
8251
|
const rendersDir = adapter.rendersDir(project);
|
|
8229
8252
|
mkdirWithinProject(project.dir, rendersDir);
|
|
8230
8253
|
const ext = FORMAT_EXT[format] ?? ".mp4";
|
|
8254
|
+
const jobId = nextFreeRenderJobId(
|
|
8255
|
+
`${project.id}_${formatRenderOutputTimestamp(/* @__PURE__ */ new Date())}`,
|
|
8256
|
+
ext,
|
|
8257
|
+
rendersDir
|
|
8258
|
+
);
|
|
8231
8259
|
const outputPath = join10(rendersDir, `${jobId}${ext}`);
|
|
8232
8260
|
const jobState = adapter.startRender({
|
|
8233
8261
|
project,
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PYWJGSWO.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XXEOJXXY.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
|
|
|
84
84
|
try {
|
|
85
85
|
const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
|
|
86
86
|
import("./system-FDPS57FU.js"),
|
|
87
|
-
import("./ffmpeg-
|
|
87
|
+
import("./ffmpeg-R5ND25AV.js")
|
|
88
88
|
]);
|
|
89
89
|
const sys = getSystemMeta();
|
|
90
90
|
const parts = [
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
shouldTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XXEOJXXY.js";
|
|
10
10
|
|
|
11
11
|
// src/telemetry/renderObservability.ts
|
|
12
12
|
function renderObservabilityTelemetryPayload(observability) {
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-J3RXEDR2.js";
|
|
25
25
|
import {
|
|
26
26
|
VERSION
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-T252SG67.js";
|
|
28
28
|
|
|
29
29
|
// src/utils/updateCheck.ts
|
|
30
30
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -226,9 +226,7 @@ async function checkForUpdate(force) {
|
|
|
226
226
|
}
|
|
227
227
|
function updateCheckDue(config = readConfig()) {
|
|
228
228
|
if (updateCheckDisabled()) return false;
|
|
229
|
-
if (!config.lastUpdateCheck || !
|
|
230
|
-
return true;
|
|
231
|
-
}
|
|
229
|
+
if (!config.lastUpdateCheck || !isSafeCache(config.latestVersion)) return true;
|
|
232
230
|
const fresh = Date.now() - new Date(config.lastUpdateCheck).getTime() < CHECK_INTERVAL_MS;
|
|
233
231
|
return !fresh;
|
|
234
232
|
}
|
|
@@ -236,18 +234,19 @@ function cachedUpdateCheck() {
|
|
|
236
234
|
return fallbackResult(readConfig().latestVersion);
|
|
237
235
|
}
|
|
238
236
|
function fallbackResult(cachedLatest) {
|
|
239
|
-
const safeCached =
|
|
237
|
+
const safeCached = cachedVersionForThisInstall(cachedLatest);
|
|
240
238
|
return {
|
|
241
239
|
current: VERSION,
|
|
242
240
|
latest: safeCached ?? VERSION,
|
|
243
241
|
updateAvailable: safeCached ? isNewerSemver(safeCached, VERSION) : false
|
|
244
242
|
};
|
|
245
243
|
}
|
|
246
|
-
|
|
247
|
-
|
|
244
|
+
var isSafeCache = (value) => typeof value === "string" && isSafeVersion(value);
|
|
245
|
+
function cachedVersionForThisInstall(value) {
|
|
246
|
+
return isSafeCache(value) && !isNewerSemver(VERSION, value) ? value : void 0;
|
|
248
247
|
}
|
|
249
248
|
function getUpdateMeta() {
|
|
250
|
-
const latestVersion =
|
|
249
|
+
const latestVersion = cachedVersionForThisInstall(readConfig().latestVersion);
|
|
251
250
|
return {
|
|
252
251
|
version: VERSION,
|
|
253
252
|
latestVersion,
|
|
@@ -6,16 +6,16 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
refreshIfNeeded
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TSQZ3DSC.js";
|
|
10
10
|
import {
|
|
11
11
|
buildAuthHeaders,
|
|
12
12
|
envCredentialVar,
|
|
13
13
|
isTokenExpired,
|
|
14
14
|
tryResolveCredential
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ETYQYG6Q.js";
|
|
16
16
|
import {
|
|
17
17
|
isAuthError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BVAPHHMQ.js";
|
|
19
19
|
import {
|
|
20
20
|
CSS_URL_RE,
|
|
21
21
|
isNonRelativeUrl,
|
|
@@ -235,7 +235,9 @@ async function resolvePublishCredential(checked) {
|
|
|
235
235
|
if (!credential) return null;
|
|
236
236
|
const expired = credential.type === "oauth" && isTokenExpired(credential.expires_at, /* @__PURE__ */ new Date());
|
|
237
237
|
if (expired && !credential.refresh_token) throw new Error(LOGIN_EXPIRED);
|
|
238
|
-
return await refreshIfNeeded(expired ? { ...credential, refreshable: true } : credential
|
|
238
|
+
return await refreshIfNeeded(expired ? { ...credential, refreshable: true } : credential, {
|
|
239
|
+
envFallback: checked === void 0
|
|
240
|
+
});
|
|
239
241
|
} catch (error) {
|
|
240
242
|
if (isAuthError(error) && (error.code === "REFRESH_FAILED" || error.code === "LOGIN_EXPIRED")) {
|
|
241
243
|
throw new Error(LOGIN_EXPIRED);
|
|
@@ -7,32 +7,32 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-E3IBPTX7.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PROJECT_CONFIG,
|
|
13
13
|
createProjectConfig,
|
|
14
14
|
loadProjectConfig,
|
|
15
15
|
projectConfigPath,
|
|
16
16
|
recordProjectRegistryItems
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HRSZOW3U.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveItemWithDependencies,
|
|
20
20
|
resolveItemsByTag
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IOECRDWX.js";
|
|
22
22
|
import {
|
|
23
23
|
InvalidVariableValuesError,
|
|
24
24
|
prepareItem,
|
|
25
25
|
publishItem
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LCDXHXYH.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_REGISTRY_URL
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-X2PPRHKO.js";
|
|
30
30
|
import {
|
|
31
31
|
readJsonFlag
|
|
32
32
|
} from "./chunk-EHZESMRB.js";
|
|
33
33
|
import {
|
|
34
34
|
trackRegistryItemAdded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-PYWJGSWO.js";
|
|
36
36
|
import {
|
|
37
37
|
defineCommand
|
|
38
38
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-2GICKZ3I.js";
|
|
42
42
|
import {
|
|
43
43
|
ITEM_TYPE_DIRS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-N6O2RQLQ.js";
|
|
45
45
|
import {
|
|
46
46
|
isProjectRootMissing,
|
|
47
47
|
realpath
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
emitWords,
|
|
22
22
|
getPreparedWavDurationSeconds,
|
|
23
23
|
prepareWav
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HZG42ZYW.js";
|
|
25
25
|
import {
|
|
26
26
|
stoppedByCancelSignal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-EG7FZSEF.js";
|
|
28
28
|
import {
|
|
29
29
|
verifies
|
|
30
30
|
} from "./chunk-RZ6CXJ56.js";
|
|
@@ -8038,6 +8038,19 @@ async function loadGsapScriptMotionPathFirstUseIndex() {
|
|
|
8038
8038
|
}
|
|
8039
8039
|
var SCENE_BOUNDARY_EPSILON_SECONDS = 0.05;
|
|
8040
8040
|
var TWEEN_ENDPOINT_EPSILON_SECONDS = 1e-3;
|
|
8041
|
+
function windowOverlap(a, b) {
|
|
8042
|
+
const aIsPoint = a.end <= a.position;
|
|
8043
|
+
const bIsPoint = b.end <= b.position;
|
|
8044
|
+
if (aIsPoint && bIsPoint) return null;
|
|
8045
|
+
if (aIsPoint || bIsPoint) {
|
|
8046
|
+
const [point, running] = aIsPoint ? [a, b] : [b, a];
|
|
8047
|
+
const inside = point.position > running.position + TWEEN_ENDPOINT_EPSILON_SECONDS && point.position < running.end - TWEEN_ENDPOINT_EPSILON_SECONDS;
|
|
8048
|
+
return inside ? { start: point.position, end: point.position, running } : null;
|
|
8049
|
+
}
|
|
8050
|
+
const start = Math.max(a.position, b.position);
|
|
8051
|
+
const end = Math.min(a.end, b.end);
|
|
8052
|
+
return end - start > TWEEN_ENDPOINT_EPSILON_SECONDS ? { start, end } : null;
|
|
8053
|
+
}
|
|
8041
8054
|
var UNRESOLVED_TARGET = "__unresolved__";
|
|
8042
8055
|
function targetHasNoStableIdentity(selector, identity) {
|
|
8043
8056
|
if (identity) return false;
|
|
@@ -8772,29 +8785,28 @@ var gsapRules = [
|
|
|
8772
8785
|
for (let i = 0; i < gsapWindows.length; i++) {
|
|
8773
8786
|
const left = gsapWindows[i];
|
|
8774
8787
|
if (!left) continue;
|
|
8775
|
-
if (left.end <= left.position) continue;
|
|
8776
8788
|
if (targetHasNoStableIdentity(left.targetSelector, left.targetIdentity)) continue;
|
|
8777
8789
|
for (let j = i + 1; j < gsapWindows.length; j++) {
|
|
8778
8790
|
const right = gsapWindows[j];
|
|
8779
8791
|
if (!right) continue;
|
|
8780
|
-
if (right.end <= right.position) continue;
|
|
8781
8792
|
const leftIdentity = left.targetIdentity ?? left.targetSelector;
|
|
8782
8793
|
const rightIdentity = right.targetIdentity ?? right.targetSelector;
|
|
8783
8794
|
if (leftIdentity !== rightIdentity) continue;
|
|
8784
|
-
const
|
|
8785
|
-
|
|
8786
|
-
if (overlapEnd - overlapStart <= TWEEN_ENDPOINT_EPSILON_SECONDS) continue;
|
|
8795
|
+
const overlap = windowOverlap(left, right);
|
|
8796
|
+
if (!overlap) continue;
|
|
8787
8797
|
if (left.overwriteAuto || right.overwriteAuto) continue;
|
|
8788
8798
|
const sharedProperties = left.properties.filter(
|
|
8789
8799
|
(prop) => right.properties.includes(prop)
|
|
8790
8800
|
);
|
|
8791
8801
|
if (sharedProperties.length === 0) continue;
|
|
8802
|
+
const properties = sharedProperties.join(", ");
|
|
8803
|
+
const { running } = overlap;
|
|
8792
8804
|
findings.push({
|
|
8793
8805
|
code: "overlapping_gsap_tweens",
|
|
8794
8806
|
severity: "warning",
|
|
8795
|
-
message: `GSAP
|
|
8807
|
+
message: running ? `A GSAP set on "${left.targetSelector}" for ${properties} fires at ${overlap.start.toFixed(2)}s while a tween on it is still running (${running.position.toFixed(2)}s to ${running.end.toFixed(2)}s).` : `GSAP tweens overlap on "${left.targetSelector}" for ${properties} between ${overlap.start.toFixed(2)}s and ${overlap.end.toFixed(2)}s.`,
|
|
8796
8808
|
selector: left.targetSelector,
|
|
8797
|
-
fixHint: 'Shorten the earlier tween, move the later tween, or add `overwrite: "auto"`.',
|
|
8809
|
+
fixHint: running ? `Let the tween finish before the set fires: move the set to ${running.end.toFixed(2)}s or later, or shorten the tween. Played in order the set wins; seeked (scrub, export) the tween can win, so an old state stays visible.` : 'Shorten the earlier tween, move the later tween, or add `overwrite: "auto"`.',
|
|
8798
8810
|
snippet: truncateSnippet(`${left.raw}
|
|
8799
8811
|
${right.raw}`)
|
|
8800
8812
|
});
|
|
@@ -9,11 +9,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
9
9
|
var AuthError = class extends Error {
|
|
10
10
|
code;
|
|
11
11
|
hint;
|
|
12
|
-
|
|
12
|
+
/** HeyGen refused a token refresh (400/401), so the grant is gone; a reply the CLI couldn't read is not this. */
|
|
13
|
+
refused;
|
|
14
|
+
constructor(code, message, hint, opts = {}) {
|
|
13
15
|
super(message);
|
|
14
16
|
this.name = "AuthError";
|
|
15
17
|
this.code = code;
|
|
16
18
|
this.hint = hint;
|
|
19
|
+
this.refused = opts.refused ?? false;
|
|
17
20
|
}
|
|
18
21
|
};
|
|
19
22
|
var ErrNotConfigured = () => new AuthError(
|
|
@@ -37,10 +40,11 @@ var ErrOAuthNotConfigured = () => new AuthError(
|
|
|
37
40
|
"OAuth client is not configured",
|
|
38
41
|
"Set HYPERFRAMES_OAUTH_CLIENT_ID, or run `hyperframes auth login --api-key`."
|
|
39
42
|
);
|
|
40
|
-
var ErrRefreshFailed = (detail) => new AuthError(
|
|
43
|
+
var ErrRefreshFailed = (detail, opts = {}) => new AuthError(
|
|
41
44
|
"REFRESH_FAILED",
|
|
42
45
|
detail ? `Failed to refresh OAuth tokens: ${detail}` : "Failed to refresh OAuth tokens",
|
|
43
|
-
"Run `hyperframes auth login` to re-authenticate."
|
|
46
|
+
"Run `hyperframes auth login` to re-authenticate.",
|
|
47
|
+
opts
|
|
44
48
|
);
|
|
45
49
|
var ErrLoginExpired = () => new AuthError(
|
|
46
50
|
"LOGIN_EXPIRED",
|
|
@@ -12,22 +12,22 @@ import {
|
|
|
12
12
|
} from "./chunk-262C25DQ.js";
|
|
13
13
|
import {
|
|
14
14
|
pageNavigationTimeoutMs
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KD22R2UE.js";
|
|
16
16
|
import {
|
|
17
17
|
SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
|
|
18
18
|
} from "./chunk-YGGZ23BB.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveCompositionViewportFromHtml
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XEP7PGXS.js";
|
|
22
22
|
import {
|
|
23
23
|
launchManagedBrowser,
|
|
24
24
|
resolveManagedGpuMode,
|
|
25
25
|
rethrowAfterBrowserCleanup
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TBCRTIXP.js";
|
|
27
27
|
import {
|
|
28
28
|
resolveLocalBrowserGpuMode,
|
|
29
29
|
resolveLocalWebGpu
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-P7CVKVPD.js";
|
|
31
31
|
import {
|
|
32
32
|
c
|
|
33
33
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
assertWebGpuAdapterAvailable,
|
|
36
36
|
compositionRequiresWebGpu,
|
|
37
37
|
oneProcessOverPipe
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-IAZ2A7D6.js";
|
|
39
39
|
import {
|
|
40
40
|
normalizeErrorMessage
|
|
41
41
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -143,7 +143,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
143
143
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
144
144
|
});
|
|
145
145
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
146
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
146
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-MTLH4YHV.js");
|
|
147
147
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
148
148
|
await waitForImagesReady(
|
|
149
149
|
page,
|
|
@@ -192,7 +192,7 @@ async function installPageFunctionGuard(page) {
|
|
|
192
192
|
async function openSettledCompositionPage(html, url, options) {
|
|
193
193
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
194
194
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
195
|
-
const answer = (await import("./staticProjectServer-
|
|
195
|
+
const answer = (await import("./staticProjectServer-USD7TCZH.js")).inProcessAnswer(url);
|
|
196
196
|
const noListen = answer !== void 0;
|
|
197
197
|
let chromeBrowser;
|
|
198
198
|
try {
|
|
@@ -203,7 +203,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
203
203
|
options.onBrowserReady?.();
|
|
204
204
|
const page = await chromeBrowser.newPage();
|
|
205
205
|
await installPageFunctionGuard(page);
|
|
206
|
-
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-
|
|
206
|
+
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-MTLH4YHV.js");
|
|
207
207
|
await installMediaRenderIdBridge(page);
|
|
208
208
|
await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
|
|
209
209
|
await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
|
|
@@ -213,7 +213,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
213
213
|
await options.beforeNavigate?.(page);
|
|
214
214
|
await gotoWhenSent(page, url, pageNavigationTimeoutMs(options.navigationTimeoutMs));
|
|
215
215
|
await assertWebGpuAdapterAvailable(page, requiresWebGpu, softwareWebGpu);
|
|
216
|
-
options.onLoaded?.();
|
|
216
|
+
await options.onLoaded?.(page);
|
|
217
217
|
const renderReadyTimedOut = !await waitForCompositionSettle(page, options);
|
|
218
218
|
return { browser: chromeBrowser, page, renderReadyTimedOut };
|
|
219
219
|
} catch (err) {
|
|
@@ -225,7 +225,7 @@ async function launchCompositionBrowser(html, noListen, options) {
|
|
|
225
225
|
const { ensureBrowser, findSystemBrowser } = await import("./manager-SAXHANEY.js");
|
|
226
226
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
227
227
|
const puppeteer = await import("puppeteer-core");
|
|
228
|
-
const { buildChromeArgs } = await import("./src-
|
|
228
|
+
const { buildChromeArgs } = await import("./src-MTLH4YHV.js");
|
|
229
229
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
230
230
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
231
231
|
let softwareWebGpu = false;
|
|
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
findCuts
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PUMQDN2T.js";
|
|
10
10
|
import {
|
|
11
11
|
grey,
|
|
12
12
|
readClip,
|
|
13
13
|
round,
|
|
14
14
|
videoClip,
|
|
15
15
|
writeImage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RJ6LXDUC.js";
|
|
17
17
|
|
|
18
18
|
// src/measure/events.ts
|
|
19
19
|
var EVENT_W = 160;
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
parseNumbers,
|
|
11
11
|
parseRoi,
|
|
12
12
|
probeVideo
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RJ6LXDUC.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-2GICKZ3I.js";
|
|
17
17
|
import {
|
|
18
18
|
withMeta
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6IW2HWYI.js";
|
|
20
20
|
import {
|
|
21
21
|
failCommand
|
|
22
22
|
} from "./chunk-66W5IWLO.js";
|