hyperframes 0.9.6 → 0.9.8
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-KCOZUTMS.js} +12 -12
- package/dist/{agentPromptGenerator-DZTXHJV3.js → agentPromptGenerator-P75AWDLA.js} +6 -6
- package/dist/{animatedGifPrep-GXQA4KCD.js → animatedGifPrep-OBZTJQ7X.js} +6 -6
- package/dist/api.js +26 -25
- package/dist/{asset-BRSG6JNL.js → asset-N3A7GB3E.js} +2 -2
- package/dist/{assetCataloger-KVWF4SRK.js → assetCataloger-OQYRQZLW.js} +7 -7
- package/dist/{audio-BVZOX6LU.js → audio-KCKNENFH.js} +20 -20
- package/dist/{auth-HFFN7USX.js → auth-Y72WHJCW.js} +6 -6
- package/dist/{autoUpdate-JNGMUXLZ.js → autoUpdate-DLNFGTN2.js} +2 -2
- package/dist/{backgroundChecks-O4ADPXOL.js → backgroundChecks-EFVHAYNQ.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-A2HW6QW7.js → batchRender-JKOGFHLU.js} +3 -3
- package/dist/{beats-F7Q3G6VW.js → beats-RIKKG4N7.js} +9 -9
- package/dist/{benchmark-4BDMIYTW.js → benchmark-7TCK3SGH.js} +9 -9
- package/dist/{billing-35NVMZWK.js → billing-JBG45ON2.js} +15 -5
- package/dist/{browser-S6ADXSB7.js → browser-4BF7NKPF.js} +4 -4
- package/dist/{bundleWithLocalizedFonts-EE27EYEU.js → bundleWithLocalizedFonts-PAWHGZRW.js} +2 -2
- package/dist/{capture-LWWBL6SH.js → capture-5PZTT5O7.js} +3 -3
- package/dist/{capture-CXDJO524.js → capture-H7UDNHF2.js} +11 -11
- package/dist/{captureCompositionFrame-BB2ZGM6R.js → captureCompositionFrame-LR2XKVKX.js} +11 -11
- package/dist/{catalog-RQ6HIUBG.js → catalog-4W5XDIKM.js} +12 -12
- package/dist/{catch-up-PBAXR7FI.js → catch-up-H2Y2WRIA.js} +5 -5
- package/dist/{check-O4V4UWE3.js → check-NG6FULCN.js} +37 -37
- package/dist/{checkAudio-EUT3AO3L.js → checkAudio-HI5ICPRV.js} +9 -9
- package/dist/{checkBrowser-QQUBR4QI.js → checkBrowser-YPPMCXET.js} +31 -31
- package/dist/{chunk-27AVZR7K.js → chunk-2MUWGYXQ.js} +18 -18
- package/dist/{chunk-W3G7DNCR.js → chunk-2ZQ7BZOS.js} +48 -8
- package/dist/{chunk-P5GOQDA2.js → chunk-3BCLDK6O.js} +50 -15
- package/dist/{chunk-LS4CCRTK.js → chunk-3LLFF6EE.js} +2 -2
- package/dist/{chunk-6A45RKAK.js → chunk-3XJM7XZN.js} +136 -35
- package/dist/{chunk-BUDP4GF4.js → chunk-3YZ3LNXV.js} +1 -1
- package/dist/{chunk-I2OMLFBJ.js → chunk-457LNKMV.js} +1 -1
- package/dist/{chunk-JFIBO4CZ.js → chunk-4MDLXE3N.js} +2 -2
- package/dist/{chunk-GYPSZFRF.js → chunk-4WJKSTDS.js} +3 -3
- package/dist/{chunk-G4VDT5D7.js → chunk-5D23BECZ.js} +1 -1
- package/dist/{chunk-4E7G2GME.js → chunk-5SCOPSVL.js} +1 -1
- package/dist/{chunk-AB3ZXWI3.js → chunk-6A4RAHMF.js} +1 -1
- package/dist/{chunk-CUAZHDVV.js → chunk-6CEQCL6O.js} +3 -3
- package/dist/{chunk-KAWNVSAE.js → chunk-6DTXWYZA.js} +7 -7
- package/dist/{chunk-4VOK22DG.js → chunk-6RD46YOJ.js} +1 -1
- package/dist/{chunk-6JMNJYYR.js → chunk-6ZICZOMN.js} +3 -1
- package/dist/{chunk-OHWVSTNO.js → chunk-74VSOKKS.js} +6 -4
- package/dist/{chunk-47IBOMXH.js → chunk-7DQHV322.js} +3 -3
- package/dist/{chunk-WCET3OHQ.js → chunk-7HRQOEYY.js} +5 -5
- package/dist/{chunk-IVFZG3CU.js → chunk-7TAS4BNT.js} +2 -2
- package/dist/{chunk-IG3GSBHB.js → chunk-7VHS56BT.js} +2 -2
- package/dist/{chunk-YIWNZ2CI.js → chunk-AC3TSGGG.js} +13 -13
- package/dist/{chunk-5BCFV2HE.js → chunk-BCQ42FAS.js} +3 -3
- package/dist/{chunk-NASVSJQK.js → chunk-BGMMC352.js} +19 -7
- package/dist/{chunk-3SB24TVT.js → chunk-BUYV2WGV.js} +1 -1
- package/dist/{chunk-6NJVSTSY.js → chunk-BVAPHHMQ.js} +7 -3
- package/dist/{chunk-GP7OHHXR.js → chunk-CCFSUSAE.js} +1 -1
- package/dist/{chunk-TIXW6JWD.js → chunk-CUR5UYYJ.js} +1 -1
- package/dist/{chunk-2KO357TJ.js → chunk-D7THUO4V.js} +1 -1
- package/dist/{chunk-I47SIQGX.js → chunk-DHIXDUET.js} +4 -4
- package/dist/{chunk-HTTGTROQ.js → chunk-DT6NGXSS.js} +1 -1
- package/dist/{chunk-FM7VWSN3.js → chunk-E2SVAOS6.js} +1 -1
- package/dist/{chunk-YY7YI2FW.js → chunk-ECJCBLME.js} +1 -1
- package/dist/{chunk-GOPJLAMZ.js → chunk-ETYQYG6Q.js} +78 -19
- package/dist/{chunk-VG4JPJMI.js → chunk-F6GJUCIY.js} +2 -2
- package/dist/{chunk-PWYAOU4I.js → chunk-FNNNGI42.js} +1 -1
- package/dist/{chunk-CE7EQUBV.js → chunk-GSNSSFT7.js} +1 -1
- package/dist/{chunk-ZR2GMFNH.js → chunk-GSZAUB3W.js} +2 -2
- package/dist/{chunk-6UOHLXVU.js → chunk-GZZE2OJP.js} +48 -50
- package/dist/{chunk-YVUOJW4H.js → chunk-H4D2X5N3.js} +1 -1
- package/dist/{chunk-KJLZZ4MY.js → chunk-HFNB2CG3.js} +1 -1
- package/dist/{chunk-FIIFME5M.js → chunk-HVBQL3PZ.js} +1 -1
- package/dist/{chunk-E2VWKW2A.js → chunk-JCOECSLT.js} +2 -2
- package/dist/{chunk-ZDQEVQHB.js → chunk-JP2ZSFRJ.js} +2 -2
- package/dist/{chunk-YUMVQB2F.js → chunk-K6QVKO7M.js} +1 -1
- package/dist/{chunk-SWWDVPVO.js → chunk-KKPYNKZD.js} +1 -1
- package/dist/{chunk-M4WEGGF7.js → chunk-L3ZVUQGN.js} +2 -2
- package/dist/{chunk-44T2V4EW.js → chunk-MNX7CK5N.js} +1 -1
- package/dist/chunk-N3CZ437C.js +5035 -0
- package/dist/{chunk-KJDQS24S.js → chunk-NST5G3WX.js} +2 -2
- package/dist/{chunk-BIJBGCF4.js → chunk-NU5LJYAT.js} +1 -1
- package/dist/{chunk-QDB7EFLI.js → chunk-NUFOXUDF.js} +5 -3
- package/dist/{chunk-ZV5GD5LV.js → chunk-ODIGIQ4C.js} +3 -3
- package/dist/{chunk-FZM6E4S4.js → chunk-OJTXXFYO.js} +2 -2
- package/dist/{chunk-7DKGU6CY.js → chunk-OYN54RSU.js} +2 -2
- package/dist/{chunk-GR3LU4D5.js → chunk-QPTQSM3D.js} +1 -1
- package/dist/{chunk-VFOCEFRZ.js → chunk-QTEU6NL3.js} +5 -5
- package/dist/{chunk-YOZPHSYV.js → chunk-QXVW22VM.js} +1 -1
- package/dist/{chunk-APVBITVZ.js → chunk-RGYPRUQP.js} +1 -1
- package/dist/{chunk-GKVERDJ2.js → chunk-RPVL65M7.js} +1 -1
- package/dist/{chunk-VWRIARRR.js → chunk-RULCW25D.js} +13 -13
- package/dist/{chunk-FP37FSOT.js → chunk-RWQANKWK.js} +2 -2
- package/dist/{chunk-6GZB32Q5.js → chunk-SACHIPZP.js} +1 -1
- package/dist/{chunk-C47ZGVKT.js → chunk-SBA4NG7Q.js} +7 -7
- package/dist/{chunk-YFISKULK.js → chunk-TDIYINK6.js} +2 -2
- package/dist/{chunk-XC3LDNBH.js → chunk-THSTFHB7.js} +1 -1
- package/dist/{chunk-TS4HYR6I.js → chunk-TLBSOI2R.js} +1 -1
- package/dist/{chunk-DETBSOYO.js → chunk-TODLF56D.js} +1 -1
- package/dist/{chunk-QEQEKBL7.js → chunk-TSQZ3DSC.js} +20 -5
- package/dist/{chunk-FDZXVTBY.js → chunk-UPN4UMT7.js} +1 -1
- package/dist/{chunk-T57ARBNR.js → chunk-UQDO2L6F.js} +17 -10
- package/dist/{chunk-RYNMIBZM.js → chunk-UUW654GD.js} +2 -2
- package/dist/{chunk-KXAGCBVO.js → chunk-VKWAW4JW.js} +15 -10
- package/dist/{chunk-2KYY75JP.js → chunk-VLHCR3G2.js} +2 -2
- package/dist/{chunk-BQQTZET2.js → chunk-VX3JUOZ6.js} +2 -2
- package/dist/{chunk-SAWXMCHB.js → chunk-W5VDIXYL.js} +1 -1
- package/dist/{chunk-2FNUCIHD.js → chunk-WF4TXIXY.js} +1 -1
- package/dist/{chunk-JLKEXS4I.js → chunk-WVH6VWMY.js} +3 -3
- package/dist/{chunk-JLLNDU2F.js → chunk-WY4J37EZ.js} +4 -4
- package/dist/{chunk-BMRZP6X6.js → chunk-X422IJKF.js} +1 -1
- package/dist/{chunk-4III3SDC.js → chunk-XPN7SDFQ.js} +10 -10
- package/dist/{chunk-L6MNWJTL.js → chunk-Y3RERZRQ.js} +7 -8
- package/dist/{chunk-ODKXNWDL.js → chunk-YXIXTFRO.js} +2 -2
- package/dist/{chunk-ZP3LPFTA.js → chunk-ZAOQWCZM.js} +9 -9
- package/dist/{chunk-FB366S4I.js → chunk-ZAXAT2D7.js} +6 -6
- package/dist/{chunk-DUSSDJJC.js → chunk-ZJ5ZLU2I.js} +2 -2
- package/dist/{chunk-YDG5LVIK.js → chunk-ZK3GFNHM.js} +15 -10
- package/dist/{clean-2AFJGFIG.js → clean-VPOP4TU4.js} +16 -16
- package/dist/cli.js +58 -58
- package/dist/{cloud-JM5MFMVV.js → cloud-Q7ZXCZ6E.js} +4 -4
- package/dist/{cloudrun-PNVETMPA.js → cloudrun-6DVAE7GG.js} +4 -4
- package/dist/{compare-ST4DXEMX.js → compare-X5SWN5XJ.js} +28 -28
- package/dist/{compiler-UCX3MZVN.js → compiler-N4TTEEQC.js} +3 -3
- package/dist/{component-ECFJIDUD.js → component-MJXAMRKF.js} +3 -3
- package/dist/{compositions-ZCAD47PD.js → compositions-F3ZHG5F4.js} +11 -11
- package/dist/{curve-NYXZWGPO.js → curve-4TWENQO7.js} +10 -10
- package/dist/{cuts-CKUCNNOX.js → cuts-X3LE5A2K.js} +11 -11
- package/dist/{delete-MVGSOWSC.js → delete-MYHKF3MS.js} +7 -7
- package/dist/{deploy-WBKPSWPG.js → deploy-OP2BHWCQ.js} +1 -1
- package/dist/{describeProject-ZDI5B6JO.js → describeProject-ZMKVHAYX.js} +7 -7
- package/dist/{diff-3UYDXIEZ.js → diff-7ZNSFBKV.js} +26 -25
- package/dist/{dist-IHPMKRYN.js → dist-H4C7ZCFU.js} +1 -1
- package/dist/{dist-XRAW3URT.js → dist-SWPSKAAJ.js} +4 -2
- package/dist/{doctor-A4HMMBII.js → doctor-ABSXYNXY.js} +10 -10
- package/dist/{energy-RN6KTYH6.js → energy-X2OAWHME.js} +11 -11
- package/dist/{events-LSEMS2LO.js → events-26SWSHDR.js} +3 -3
- package/dist/{events-AO3FEPL3.js → events-4MDK4K7Q.js} +4 -4
- package/dist/{events-6NE2NRCQ.js → events-JFIZSYMH.js} +13 -13
- package/dist/{extract-6UO4QR77.js → extract-4O3Q3LOD.js} +11 -11
- package/dist/{face-FTKPGC2O.js → face-7J7AQJDY.js} +11 -11
- package/dist/{feedback-GSKVBGA7.js → feedback-CVTJDQIX.js} +11 -11
- package/dist/{ffmpeg-HPMQUKY4.js → ffmpeg-EE2NKQT4.js} +6 -6
- package/dist/{figma-UIWB3XSX.js → figma-55J7UDDC.js} +3 -3
- package/dist/fontLocalizeCli.js +9 -9
- package/dist/{frames-U3LLSXSV.js → frames-OZLUDUOS.js} +12 -12
- package/dist/{generate-AFCKBHGB.js → generate-CY2TRPRE.js} +18 -17
- package/dist/{get-J3TJCAZW.js → get-HJHSVKGK.js} +7 -7
- package/dist/{gpuPolicy-W2OEEW7Y.js → gpuPolicy-LZFNAIJB.js} +6 -6
- package/dist/{grade-compare-AOXNJ53Z.js → grade-compare-JVTYF2T6.js} +29 -29
- package/dist/{heifImagePrep-4RSVCLPX.js → heifImagePrep-OGFEQMQT.js} +7 -7
- package/dist/{help-5NYIBLJJ.js → help-6WDI76YU.js} +1 -1
- package/dist/{history-KAXYCLVT.js → history-FIP5NGFC.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-WTGJE4QB.js} +8 -8
- package/dist/{init-GSMXQX3U.js → init-UYTDM56U.js} +27 -27
- package/dist/{ink-IPPBJFH3.js → ink-BTLAE3ZR.js} +11 -11
- package/dist/{inspect-MXIGEN6Z.js → inspect-KIMJNTS4.js} +29 -29
- package/dist/{installer-JXI2JC3T.js → installer-6GSD3CVW.js} +4 -4
- package/dist/{keyframes-Z53YGH5F.js → keyframes-74LK522L.js} +7 -7
- package/dist/{lambda-KD7ZRYVK.js → lambda-CJ7P5NLO.js} +10 -10
- package/dist/{layout-NLDWEPDQ.js → layout-RLIXTM56.js} +29 -29
- package/dist/{lint-MSZMGQO5.js → lint-IOJB746U.js} +8 -8
- package/dist/{lintProject-SG4KRUAV.js → lintProject-NZADSVSU.js} +1 -1
- package/dist/{list-OLNBKKB4.js → list-V3TMQEQV.js} +7 -7
- package/dist/{localPage-BQ2LKHED.js → localPage-5LUCH2RM.js} +6 -6
- package/dist/{login-TBJVG5PZ.js → login-GNVKQO3W.js} +12 -13
- package/dist/{logout-B6H5F5YP.js → logout-UMDA3HDE.js} +3 -3
- package/dist/{look-T5V6JBD5.js → look-3QZIJFNX.js} +11 -11
- package/dist/{manager-FHVSGJNR.js → manager-3QTARUMT.js} +7 -7
- package/dist/{measure-KI3XY2MJ.js → measure-7LUYTL2E.js} +11 -11
- package/dist/{media-treatment-UZI55RS3.js → media-treatment-MYDIYP5I.js} +13 -13
- package/dist/{media-use-2PIPVWX4.js → media-use-UDBHEIYA.js} +9 -5
- package/dist/{models-MV4HBZKZ.js → models-S5CT7CST.js} +10 -10
- package/dist/{motionShot-A3TWOBRE.js → motionShot-U3TSHI33.js} +14 -14
- package/dist/{normalize-audio-37WYHLP4.js → normalize-audio-ZETO53KI.js} +9 -9
- package/dist/{open-4PPPV45S.js → open-UEJMPEPN.js} +12 -12
- package/dist/{parakeetRunner-J22MMWSM.js → parakeetRunner-2KFML7ZA.js} +11 -11
- package/dist/{pipeline-GE4LBTRO.js → pipeline-2TPI5L2C.js} +9 -9
- package/dist/{play-MZSW7GIL.js → play-XH2XKNCL.js} +20 -20
- package/dist/{preflight-NXMN7P4B.js → preflight-L5P4QXXH.js} +7 -7
- package/dist/{present-TWZLASXI.js → present-XXEU7RTN.js} +16 -16
- package/dist/{preview-OEXP2RPO.js → preview-V6LNVTBH.js} +18 -18
- package/dist/{probe-HNAD6ACH.js → probe-JL4JSTSP.js} +11 -11
- package/dist/{producer-E4AN4ADM.js → producer-RLZ64COI.js} +1 -1
- package/dist/{projectConfig-HKWVTV5Q.js → projectConfig-3IK4M62D.js} +6 -6
- package/dist/{publication-DTIE7G2E.js → publication-4I6P772E.js} +2 -2
- package/dist/{publish-CUU5W6CP.js → publish-TOPACGPR.js} +15 -15
- package/dist/{refresh-T6JLFCS4.js → refresh-4FQFQ2SW.js} +3 -3
- package/dist/{remove-background-2MRQ3YH4.js → remove-background-CNXM4XJN.js} +10 -10
- package/dist/{render-JP6JUXWP.js → render-OD3XEIBG.js} +5 -5
- package/dist/{render-EEIQAOGV.js → render-WCLJ4GPZ.js} +27 -36
- package/dist/{render-QRWGJUCD.js → render-XAE2YCRZ.js} +32 -32
- package/dist/{render-batch-46SYPMYV.js → render-batch-QM4SW65U.js} +5 -5
- package/dist/renderSetupWorker.js +1 -1
- package/dist/{resolver-DPRCISSD.js → resolver-K2UZSBCZ.js} +4 -4
- package/dist/{reverse-MY6DSOXL.js → reverse-JGOZUFKK.js} +1 -1
- package/dist/{run-2VGZ3URU.js → run-2JI4VCW5.js} +6 -6
- package/dist/{sherpa-5LOEXZ46.js → sherpa-OIJBFCKZ.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-L4AWBUJJ.js} +6 -6
- package/dist/{skillsUpdateCheck-HBOVCIXG.js → skillsUpdateCheck-GSX5MLON.js} +3 -3
- package/dist/{snapshot-S264O54Z.js → snapshot-5FK3HCJ7.js} +173 -66
- package/dist/{src-GLO4X3WA.js → src-HKLKN7AE.js} +9 -5
- package/dist/{src-G2EK32ZO.js → src-JT324RDD.js} +8 -8
- package/dist/{start-6AFMEXPO.js → start-5O33EGN2.js} +32 -25
- package/dist/{staticProjectServer-KWSV5IRS.js → staticProjectServer-CWKMUI6O.js} +17 -17
- package/dist/{status-5ZRM4R4N.js → status-MPCREDMQ.js} +9 -6
- package/dist/studio/assets/{hyperframes-player-CGO8wE5a.js → hyperframes-player-D7kdypzS.js} +1 -1
- package/dist/studio/assets/{index-COtefOSM.js → index-BT1zmedz.js} +1 -1
- package/dist/studio/assets/{index-DHPJjAUV.js → index-CaOrmH_8.js} +101 -101
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-JJO6VEFD.js → studio-api-24HJ5KQX.js} +9 -9
- package/dist/{studioServer-YFZIESIH.js → studioServer-KKGBELBR.js} +48 -48
- package/dist/{sync-DBMNZ32Z.js → sync-BT4WDK3B.js} +11 -11
- package/dist/{telemetry-OPZTKPDG.js → telemetry-77PW2F7B.js} +4 -4
- package/dist/{timeline-MCJUCDME.js → timeline-RKJ63VIU.js} +18 -18
- package/dist/{tokens-3DREMPWC.js → tokens-JATS65YH.js} +2 -2
- package/dist/{transcribe-AU7TPKMU.js → transcribe-ELWJ6NYG.js} +9 -9
- package/dist/{transcribe-TMGPK6FM.js → transcribe-FYBJBBP3.js} +22 -21
- package/dist/{updateCheck-YKTRFFFV.js → updateCheck-NU374MVC.js} +2 -2
- package/dist/{upgrade-UAKM3KAT.js → upgrade-VIWR25J6.js} +2 -2
- package/dist/{urlDownloader-77YL7TXO.js → urlDownloader-MVZYN7XB.js} +5 -5
- package/dist/{validate-SR35R3QM.js → validate-3HM2XCH4.js} +23 -23
- package/dist/{video-GNMQTE4D.js → video-H4ASUN7D.js} +7 -7
- package/dist/warmCheck.js +37 -37
- package/package.json +1 -1
- package/dist/chunk-TNWWLO4T.js +0 -5030
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
finishCheckSnapshots,
|
|
18
18
|
preResolveHostileMediaProxies,
|
|
19
19
|
rectToBbox
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AC3TSGGG.js";
|
|
21
21
|
import {
|
|
22
22
|
CONTENT_OVERLAP_HELD_ERROR_MS,
|
|
23
23
|
DEFAULT_MAX_STATIC_SEC,
|
|
@@ -38,11 +38,11 @@ import {
|
|
|
38
38
|
mergeSampleTimes,
|
|
39
39
|
parseAt,
|
|
40
40
|
readMotionSpec
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ZAOQWCZM.js";
|
|
42
42
|
import {
|
|
43
43
|
collectProjectMedia,
|
|
44
44
|
mediaPath
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-L3ZVUQGN.js";
|
|
46
46
|
import {
|
|
47
47
|
findingAtRoot,
|
|
48
48
|
findingElementKey,
|
|
@@ -51,13 +51,13 @@ import {
|
|
|
51
51
|
} from "./chunk-TQBQYO4L.js";
|
|
52
52
|
import {
|
|
53
53
|
captureArtifactRevision
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-UPN4UMT7.js";
|
|
55
55
|
import {
|
|
56
56
|
trackLintRun
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-4WJKSTDS.js";
|
|
58
58
|
import {
|
|
59
59
|
resolveProject
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-TLBSOI2R.js";
|
|
61
61
|
import {
|
|
62
62
|
recordArtifacts
|
|
63
63
|
} from "./chunk-UGUYWTWD.js";
|
|
@@ -69,14 +69,14 @@ import {
|
|
|
69
69
|
closeManagedBrowser,
|
|
70
70
|
onStopSignal,
|
|
71
71
|
registerBrowserSessionCleanup
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-JCOECSLT.js";
|
|
73
73
|
import {
|
|
74
74
|
resolveLocalBrowserGpuMode
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-7TAS4BNT.js";
|
|
76
76
|
import {
|
|
77
77
|
trackCheckReport,
|
|
78
78
|
trackCommandFailure
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-5D23BECZ.js";
|
|
80
80
|
import {
|
|
81
81
|
swallowedFlagUsageError
|
|
82
82
|
} from "./chunk-BGHKFD3T.js";
|
|
@@ -96,14 +96,14 @@ import {
|
|
|
96
96
|
extractMediaMetadata,
|
|
97
97
|
findHdrAutoPromotion,
|
|
98
98
|
gradingKeepsSdr
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-NUFOXUDF.js";
|
|
100
100
|
import {
|
|
101
101
|
lintProject,
|
|
102
102
|
shouldBlockRender
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-BGMMC352.js";
|
|
104
104
|
import {
|
|
105
105
|
withMeta
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-Y3RERZRQ.js";
|
|
107
107
|
import {
|
|
108
108
|
recordLastCheck
|
|
109
109
|
} from "./chunk-BLBMPEBX.js";
|
|
@@ -2362,7 +2362,7 @@ function resolveMotionSpec(projectDir) {
|
|
|
2362
2362
|
};
|
|
2363
2363
|
}
|
|
2364
2364
|
async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
|
|
2365
|
-
const module = await import("./checkBrowser-
|
|
2365
|
+
const module = await import("./checkBrowser-YPPMCXET.js");
|
|
2366
2366
|
return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
|
|
2367
2367
|
}
|
|
2368
2368
|
var adoptedBrowser;
|
|
@@ -2376,7 +2376,7 @@ async function prelaunchBrowser(project, options) {
|
|
|
2376
2376
|
if (adopted) return adopted;
|
|
2377
2377
|
const html = await readFile(project.indexPath, "utf8").catch(() => void 0);
|
|
2378
2378
|
if (html === void 0) return void 0;
|
|
2379
|
-
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-
|
|
2379
|
+
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-LR2XKVKX.js");
|
|
2380
2380
|
return prelaunchCompositionBrowser(html, options.browserGpuMode);
|
|
2381
2381
|
}
|
|
2382
2382
|
async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
@@ -2388,11 +2388,11 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
|
2388
2388
|
return relative(projectDir, path);
|
|
2389
2389
|
}
|
|
2390
2390
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
2391
|
-
const module = await import("./checkBrowser-
|
|
2391
|
+
const module = await import("./checkBrowser-YPPMCXET.js");
|
|
2392
2392
|
return module.captureFindingFrames(project, options, requests, deadline);
|
|
2393
2393
|
}
|
|
2394
2394
|
async function captureFindingCrops(project, options, requests, deadline) {
|
|
2395
|
-
const module = await import("./checkBrowser-
|
|
2395
|
+
const module = await import("./checkBrowser-YPPMCXET.js");
|
|
2396
2396
|
return module.captureFindingCrops(project, options, requests, deadline);
|
|
2397
2397
|
}
|
|
2398
2398
|
async function inspectProjectMedia(project, dependencies) {
|
|
@@ -2414,7 +2414,7 @@ function collectMedia(project) {
|
|
|
2414
2414
|
return collectProjectMedia(project.dir);
|
|
2415
2415
|
}
|
|
2416
2416
|
async function inspectAudio(project, media) {
|
|
2417
|
-
const module = await import("./checkAudio-
|
|
2417
|
+
const module = await import("./checkAudio-HI5ICPRV.js");
|
|
2418
2418
|
return module.inspectAudio(project.dir, relative(project.dir, project.indexPath), media);
|
|
2419
2419
|
}
|
|
2420
2420
|
function audioCheckFailure(project, error) {
|
|
@@ -2488,7 +2488,7 @@ var DEFAULT_COMMAND_DEPENDENCIES = {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
},
|
|
2490
2490
|
async prepareMedia(project, options) {
|
|
2491
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
2491
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-PAWHGZRW.js");
|
|
2492
2492
|
const html = await bundleWithLocalizedFonts(project.dir);
|
|
2493
2493
|
return (await preResolveHostileMediaProxies(project.dir, html, options.autoProxy)).files;
|
|
2494
2494
|
},
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
probeFirstFrameColour,
|
|
9
9
|
probeMediaMetadata
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6RD46YOJ.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-6ZICZOMN.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-WVH6VWMY.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-RWQANKWK.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-2ZQ7BZOS.js";
|
|
59
60
|
import {
|
|
60
61
|
probeAudioTrack,
|
|
61
62
|
probeMediaMetadata
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-6RD46YOJ.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-4MDLXE3N.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-6ZICZOMN.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-N3CZ437C.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;
|
|
@@ -394,6 +396,7 @@ var STUDIO_PREVIEW_MARK_META = "hyperframes-studio-preview";
|
|
|
394
396
|
var STUDIO_PREVIEW_CAPTURE_MODE = "capture";
|
|
395
397
|
var STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
|
|
396
398
|
var STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
|
|
399
|
+
var STUDIO_PREVIEW_ERROR_KINDS = "__hfPreviewErrorKinds";
|
|
397
400
|
var refusedPreviewMessage = (status) => `The preview page could not be loaded (HTTP ${status}).`;
|
|
398
401
|
|
|
399
402
|
// ../studio-server/dist/chunk-UEEXAVOA.js
|
|
@@ -5617,7 +5620,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5617
5620
|
let block = extractGsapScriptBlock(html);
|
|
5618
5621
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5619
5622
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5620
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5623
|
+
const { GSAP_CDN } = await import("./dist-SWPSKAAJ.js");
|
|
5621
5624
|
const bootstrap = [
|
|
5622
5625
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5623
5626
|
"<script>",
|
|
@@ -7652,7 +7655,7 @@ var GSAP_FALLBACK_ATTR = "data-hf-gsap-fallback";
|
|
|
7652
7655
|
function gsapCdnFallbackScript(baseUrl) {
|
|
7653
7656
|
return `<script ${GSAP_FALLBACK_ATTR}>
|
|
7654
7657
|
(function(){
|
|
7655
|
-
var cdnBase=${
|
|
7658
|
+
var cdnBase=${scriptJson(gsapCdnDist(void 0, baseUrl))};
|
|
7656
7659
|
var loaded={};
|
|
7657
7660
|
function loadFallback(file){
|
|
7658
7661
|
if(loaded[file])return loaded[file];
|
|
@@ -7702,15 +7705,21 @@ function previewVariablesFromRequest(rawVariables) {
|
|
|
7702
7705
|
return { raw: rawVariables, values: parse22.values };
|
|
7703
7706
|
}
|
|
7704
7707
|
var PREVIEW_CAPTURE_PARAM = "hf-capture";
|
|
7705
|
-
|
|
7706
|
-
|
|
7708
|
+
function scriptJson(value) {
|
|
7709
|
+
return JSON.stringify(value).replace(/</g, "\\u003c").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
7710
|
+
}
|
|
7711
|
+
var earlyErrorsScript = (runtimeUrl) => `<script>(function(){var seen=window.${STUDIO_PREVIEW_ERRORS}=[],kinds=window.${STUDIO_PREVIEW_ERROR_KINDS}=[],known={SyntaxError:1,TypeError:1,ReferenceError:1,RangeError:1},runtime=${scriptJson(new URL(runtimeUrl, "http://x").pathname)};
|
|
7712
|
+
addEventListener("error",function(e){seen.push(e.message||String(e));
|
|
7713
|
+
var name=e.error&&e.error.constructor&&e.error.constructor.name,path="";
|
|
7714
|
+
try{var url=e.filename&&new URL(e.filename,window.location.href);if(url&&url.origin===window.location.origin)path=url.pathname}catch(_){}
|
|
7715
|
+
kinds.push({name:known[name]===1?name:"other",origin:!path?"unknown":path===runtime?"runtime":path.indexOf("/api/projects/")===0?"project":"studio"})});})();</script>`;
|
|
7707
7716
|
function injectStudioPreviewAugmentations(html, adapter, projectDir, activeCompositionPath, options) {
|
|
7708
7717
|
const marked = options.capture ? injectTagsAtHeadStart(
|
|
7709
7718
|
html,
|
|
7710
7719
|
`<meta name="${STUDIO_PREVIEW_MARK_META}" content="${STUDIO_PREVIEW_CAPTURE_MODE}">`
|
|
7711
7720
|
) : injectTagsAtHeadStart(
|
|
7712
7721
|
lazyPreviewImages(html),
|
|
7713
|
-
`<meta name="${STUDIO_PREVIEW_MARK_META}">${
|
|
7722
|
+
`<meta name="${STUDIO_PREVIEW_MARK_META}">${earlyErrorsScript(adapter.runtimeUrl)}`
|
|
7714
7723
|
);
|
|
7715
7724
|
const withFallback = injectGsapCdnFallback(
|
|
7716
7725
|
injectProjectSignature(
|
|
@@ -7998,6 +8007,22 @@ ${etag}`;
|
|
|
7998
8007
|
return c.text("media proxy variant does not match asset", 422);
|
|
7999
8008
|
}
|
|
8000
8009
|
}
|
|
8010
|
+
const stillParam = c.req.query(PREVIEW_PROXY_STILL_PARAM);
|
|
8011
|
+
if (stillParam !== void 0) {
|
|
8012
|
+
const at = Number(stillParam);
|
|
8013
|
+
if (stillParam === "" || !Number.isFinite(at) || at < 0 || !proxyVariant) {
|
|
8014
|
+
return c.text("not found", 404);
|
|
8015
|
+
}
|
|
8016
|
+
try {
|
|
8017
|
+
const still = await resolveStill(project.dir, file, at, proxyBox);
|
|
8018
|
+
return new Response(readFileSync6(still), {
|
|
8019
|
+
headers: { "Content-Type": "image/jpeg", "Cache-Control": "private, max-age=3600" }
|
|
8020
|
+
});
|
|
8021
|
+
} catch (err) {
|
|
8022
|
+
if (isProjectRootMissing(err)) throw err;
|
|
8023
|
+
return c.text("media still failed", 502);
|
|
8024
|
+
}
|
|
8025
|
+
}
|
|
8001
8026
|
const tag = settledFileTag(stat2);
|
|
8002
8027
|
const etag = tag && `"${tag}${proxyEtagSalt(proxyVariant, proxyBox)}"`;
|
|
8003
8028
|
const cacheHeaders = isText ? { "Cache-Control": "no-store" } : { "Cache-Control": "private, no-cache", ...etag && { ETag: etag } };
|
|
@@ -8160,6 +8185,13 @@ function contentDispositionHeader(disposition, filename) {
|
|
|
8160
8185
|
}
|
|
8161
8186
|
function registerRenderRoutes(api, adapter) {
|
|
8162
8187
|
const renderJobs = /* @__PURE__ */ new Map();
|
|
8188
|
+
const nextFreeRenderJobId = (baseId, ext, rendersDir) => {
|
|
8189
|
+
let jobId = baseId;
|
|
8190
|
+
for (let n = 2; renderJobs.has(jobId) || existsSync6(join10(rendersDir, `${jobId}${ext}`)); n++) {
|
|
8191
|
+
jobId = `${baseId}-${n}`;
|
|
8192
|
+
}
|
|
8193
|
+
return jobId;
|
|
8194
|
+
};
|
|
8163
8195
|
const TTL_MS = 3e5;
|
|
8164
8196
|
const CLEANUP_INTERVAL_MS = 6e4;
|
|
8165
8197
|
let cleanupTimer = null;
|
|
@@ -8223,11 +8255,14 @@ function registerRenderRoutes(api, adapter) {
|
|
|
8223
8255
|
return c.json({ error: "pageMotionBlur must be off when supplied" }, 400);
|
|
8224
8256
|
}
|
|
8225
8257
|
const pageMotionBlur = requestedPageMotionBlur === void 0 && body.previewMotionBlur === false ? "off" : requestedPageMotionBlur;
|
|
8226
|
-
const now = /* @__PURE__ */ new Date();
|
|
8227
|
-
const jobId = `${project.id}_${formatRenderOutputTimestamp(now)}`;
|
|
8228
8258
|
const rendersDir = adapter.rendersDir(project);
|
|
8229
8259
|
mkdirWithinProject(project.dir, rendersDir);
|
|
8230
8260
|
const ext = FORMAT_EXT[format] ?? ".mp4";
|
|
8261
|
+
const jobId = nextFreeRenderJobId(
|
|
8262
|
+
`${project.id}_${formatRenderOutputTimestamp(/* @__PURE__ */ new Date())}`,
|
|
8263
|
+
ext,
|
|
8264
|
+
rendersDir
|
|
8265
|
+
);
|
|
8231
8266
|
const outputPath = join10(rendersDir, `${jobId}${ext}`);
|
|
8232
8267
|
const jobState = adapter.startRender({
|
|
8233
8268
|
project,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-MCDNAIFF.js";
|
|
13
13
|
import {
|
|
14
14
|
credentialPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BVAPHHMQ.js";
|
|
16
16
|
import {
|
|
17
17
|
getInvocationId
|
|
18
18
|
} from "./chunk-54HJ63Q2.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
} from "./chunk-BLBMPEBX.js";
|
|
44
44
|
import {
|
|
45
45
|
VERSION
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-YXIXTFRO.js";
|
|
47
47
|
|
|
48
48
|
// src/telemetry/transport.ts
|
|
49
49
|
import { spawn } from "child_process";
|
|
@@ -105,11 +105,6 @@ var HyperframesCloudClient = class {
|
|
|
105
105
|
raw: parsed
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
/**
|
|
109
|
-
* Upload Asset
|
|
110
|
-
*
|
|
111
|
-
* Uploads a file (image, video, audio, PDF, or SRT subtitle) and returns an asset_id for use in other endpoints. Max 50 MB, or 32 MB for an image. Supported types: png, jpeg, mp4, webm, mp3, wav, pdf, srt. A file is checked against the content policy after it is uploaded; if it is blocked, the asset is removed and later requests for it return not found.
|
|
112
|
-
*/
|
|
113
108
|
async uploadAsset(args) {
|
|
114
109
|
const fd = new FormData();
|
|
115
110
|
const blobOpts = args.mimeType ? { type: args.mimeType } : void 0;
|
|
@@ -123,11 +118,6 @@ var HyperframesCloudClient = class {
|
|
|
123
118
|
signal: args.signal
|
|
124
119
|
});
|
|
125
120
|
}
|
|
126
|
-
/**
|
|
127
|
-
* Create Asset Upload
|
|
128
|
-
*
|
|
129
|
-
* Begin a direct-to-S3 upload. Returns an asset_id and a presigned upload_url; PUT the file bytes to upload_url, then call POST /v3/assets/{asset_id}/complete. Unlike POST /v3/assets (which proxies the bytes), this never sends the file through the API.
|
|
130
|
-
*/
|
|
131
121
|
async createAssetUpload(args) {
|
|
132
122
|
return await this.request({
|
|
133
123
|
method: "POST",
|
|
@@ -137,11 +127,6 @@ var HyperframesCloudClient = class {
|
|
|
137
127
|
signal: args.signal
|
|
138
128
|
});
|
|
139
129
|
}
|
|
140
|
-
/**
|
|
141
|
-
* Complete Asset Upload
|
|
142
|
-
*
|
|
143
|
-
* Finalize a direct-to-S3 upload into a reusable asset. Call after the upload PUT returns 200. Idempotent: repeated calls return the same finalized asset.
|
|
144
|
-
*/
|
|
145
130
|
async completeAssetUpload(args) {
|
|
146
131
|
return await this.request({
|
|
147
132
|
method: "POST",
|
|
@@ -150,11 +135,6 @@ var HyperframesCloudClient = class {
|
|
|
150
135
|
signal: args.signal
|
|
151
136
|
});
|
|
152
137
|
}
|
|
153
|
-
/**
|
|
154
|
-
* Create HyperFrames Render
|
|
155
|
-
*
|
|
156
|
-
* Renders a HyperFrames composition (an HTML+JS+assets project bundled as a .zip) into a video. Submit the project via `url`, `asset_id` (pre-uploaded via POST /v3/assets), or inline `base64`. Returns a `render_id` to poll via GET /v3/hyperframes/renders/{render_id}.
|
|
157
|
-
*/
|
|
158
138
|
async createRender(args) {
|
|
159
139
|
return await this.request({
|
|
160
140
|
method: "POST",
|
|
@@ -164,11 +144,6 @@ var HyperframesCloudClient = class {
|
|
|
164
144
|
signal: args.signal
|
|
165
145
|
});
|
|
166
146
|
}
|
|
167
|
-
/**
|
|
168
|
-
* List HyperFrames Renders
|
|
169
|
-
*
|
|
170
|
-
* Returns a cursor-paginated list of HyperFrames renders in the account, newest first.
|
|
171
|
-
*/
|
|
172
147
|
async listRenders(args) {
|
|
173
148
|
const query = {
|
|
174
149
|
limit: args.limit,
|
|
@@ -182,11 +157,6 @@ var HyperframesCloudClient = class {
|
|
|
182
157
|
signal: args.signal
|
|
183
158
|
});
|
|
184
159
|
}
|
|
185
|
-
/**
|
|
186
|
-
* Get HyperFrames Render
|
|
187
|
-
*
|
|
188
|
-
* Returns full details for a single HyperFrames render, including status and signed video_url when complete.
|
|
189
|
-
*/
|
|
190
160
|
async getRender(args) {
|
|
191
161
|
return await this.request({
|
|
192
162
|
method: "GET",
|
|
@@ -194,11 +164,6 @@ var HyperframesCloudClient = class {
|
|
|
194
164
|
signal: args.signal
|
|
195
165
|
});
|
|
196
166
|
}
|
|
197
|
-
/**
|
|
198
|
-
* Delete HyperFrames Render
|
|
199
|
-
*
|
|
200
|
-
* Soft-deletes a HyperFrames render. Subsequent GETs return 404.
|
|
201
|
-
*/
|
|
202
167
|
async deleteRender(args) {
|
|
203
168
|
return await this.request({
|
|
204
169
|
method: "DELETE",
|
|
@@ -206,6 +171,142 @@ var HyperframesCloudClient = class {
|
|
|
206
171
|
signal: args.signal
|
|
207
172
|
});
|
|
208
173
|
}
|
|
174
|
+
async createImage(args) {
|
|
175
|
+
return await this.request({
|
|
176
|
+
method: "POST",
|
|
177
|
+
path: "/v3/images",
|
|
178
|
+
body: args.body,
|
|
179
|
+
idempotencyKey: args.idempotencyKey,
|
|
180
|
+
signal: args.signal
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
async getImage(args) {
|
|
184
|
+
return await this.request({
|
|
185
|
+
method: "GET",
|
|
186
|
+
path: `/v3/images/${encodeURIComponent(args.generation_id)}`,
|
|
187
|
+
signal: args.signal
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
async createModelVideo(args) {
|
|
191
|
+
return await this.request({
|
|
192
|
+
method: "POST",
|
|
193
|
+
path: "/v3/models/videos",
|
|
194
|
+
body: args.body,
|
|
195
|
+
idempotencyKey: args.idempotencyKey,
|
|
196
|
+
signal: args.signal
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
async getModelVideo(args) {
|
|
200
|
+
return await this.request({
|
|
201
|
+
method: "GET",
|
|
202
|
+
path: `/v3/models/videos/${encodeURIComponent(args.video_id)}`,
|
|
203
|
+
signal: args.signal
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
async createVideo(args) {
|
|
207
|
+
return await this.request({
|
|
208
|
+
method: "POST",
|
|
209
|
+
path: "/v3/videos",
|
|
210
|
+
body: args.body,
|
|
211
|
+
idempotencyKey: args.idempotencyKey,
|
|
212
|
+
signal: args.signal
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
async getVideoV3(args) {
|
|
216
|
+
return await this.request({
|
|
217
|
+
method: "GET",
|
|
218
|
+
path: `/v3/videos/${encodeURIComponent(args.video_id)}`,
|
|
219
|
+
signal: args.signal
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
async listVoicesV3(args) {
|
|
223
|
+
const query = {
|
|
224
|
+
type: args.type,
|
|
225
|
+
engine: args.engine,
|
|
226
|
+
language: args.language,
|
|
227
|
+
gender: args.gender,
|
|
228
|
+
limit: args.limit,
|
|
229
|
+
token: args.token
|
|
230
|
+
};
|
|
231
|
+
return await this.request({
|
|
232
|
+
method: "GET",
|
|
233
|
+
path: "/v3/voices",
|
|
234
|
+
query,
|
|
235
|
+
unwrapData: false,
|
|
236
|
+
signal: args.signal
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
async createSpeechV3(args) {
|
|
240
|
+
return await this.request({
|
|
241
|
+
method: "POST",
|
|
242
|
+
path: "/v3/voices/speech",
|
|
243
|
+
body: args.body,
|
|
244
|
+
signal: args.signal
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
async createMusic(args) {
|
|
248
|
+
return await this.request({
|
|
249
|
+
method: "POST",
|
|
250
|
+
path: "/v3/audio/music",
|
|
251
|
+
body: args.body,
|
|
252
|
+
idempotencyKey: args.idempotencyKey,
|
|
253
|
+
signal: args.signal
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
async getMusic(args) {
|
|
257
|
+
return await this.request({
|
|
258
|
+
method: "GET",
|
|
259
|
+
path: `/v3/audio/music/${encodeURIComponent(args.music_id)}`,
|
|
260
|
+
signal: args.signal
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
async createTranscription(args) {
|
|
264
|
+
return await this.request({
|
|
265
|
+
method: "POST",
|
|
266
|
+
path: "/v3/audio/transcriptions",
|
|
267
|
+
body: args.body,
|
|
268
|
+
idempotencyKey: args.idempotencyKey,
|
|
269
|
+
signal: args.signal
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
async getTranscription(args) {
|
|
273
|
+
return await this.request({
|
|
274
|
+
method: "GET",
|
|
275
|
+
path: `/v3/audio/transcriptions/${encodeURIComponent(args.transcription_id)}`,
|
|
276
|
+
signal: args.signal
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
async createLipsyncV3(args) {
|
|
280
|
+
return await this.request({
|
|
281
|
+
method: "POST",
|
|
282
|
+
path: "/v3/lipsyncs",
|
|
283
|
+
body: args.body,
|
|
284
|
+
idempotencyKey: args.idempotencyKey,
|
|
285
|
+
signal: args.signal
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
async getLipsyncV3(args) {
|
|
289
|
+
return await this.request({
|
|
290
|
+
method: "GET",
|
|
291
|
+
path: `/v3/lipsyncs/${encodeURIComponent(args.lipsync_id)}`,
|
|
292
|
+
signal: args.signal
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
async createBackgroundRemoval(args) {
|
|
296
|
+
return await this.request({
|
|
297
|
+
method: "POST",
|
|
298
|
+
path: "/v3/background-removals",
|
|
299
|
+
body: args.body,
|
|
300
|
+
signal: args.signal
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
async getBackgroundRemoval(args) {
|
|
304
|
+
return await this.request({
|
|
305
|
+
method: "GET",
|
|
306
|
+
path: `/v3/background-removals/${encodeURIComponent(args.job_id)}`,
|
|
307
|
+
signal: args.signal
|
|
308
|
+
});
|
|
309
|
+
}
|
|
209
310
|
};
|
|
210
311
|
|
|
211
312
|
export {
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
warnUnknownEnumValues,
|
|
59
59
|
wrapInlineScriptWithErrorBoundary,
|
|
60
60
|
wrapScopedCompositionScript
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-N3CZ437C.js";
|
|
62
62
|
import {
|
|
63
63
|
cssVariableName
|
|
64
64
|
} from "./chunk-VC76R6W2.js";
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
import {
|
|
70
70
|
collectExternalStyles,
|
|
71
71
|
lintHyperframeHtml
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-BGMMC352.js";
|
|
73
73
|
import {
|
|
74
74
|
readTextFile
|
|
75
75
|
} from "./chunk-WVRAFHJU.js";
|