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
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
findFFmpeg,
|
|
26
26
|
findFFprobe,
|
|
27
27
|
getFFmpegInstallHint
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FNNNGI42.js";
|
|
29
29
|
import {
|
|
30
30
|
parseTimeoutMs,
|
|
31
31
|
pngDimensions,
|
|
@@ -34,24 +34,24 @@ import {
|
|
|
34
34
|
} from "./chunk-KUXOAS4Z.js";
|
|
35
35
|
import {
|
|
36
36
|
captureArtifactRevision
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-UPN4UMT7.js";
|
|
38
|
+
import "./chunk-RPVL65M7.js";
|
|
39
39
|
import "./chunk-X7MTZ4T2.js";
|
|
40
40
|
import {
|
|
41
41
|
resolveProject
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-TLBSOI2R.js";
|
|
43
43
|
import {
|
|
44
44
|
serveStaticProjectHtml
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-6DTXWYZA.js";
|
|
46
46
|
import "./chunk-X7MTZ4T2.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-ODIGIQ4C.js";
|
|
48
48
|
import "./chunk-XUHOIDKG.js";
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-3BCLDK6O.js";
|
|
50
|
+
import "./chunk-WVH6VWMY.js";
|
|
51
|
+
import "./chunk-RWQANKWK.js";
|
|
52
52
|
import "./chunk-AW3XJY4S.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-2ZQ7BZOS.js";
|
|
54
|
+
import "./chunk-6RD46YOJ.js";
|
|
55
55
|
import {
|
|
56
56
|
artifactDirectory,
|
|
57
57
|
finishSnapshotRun,
|
|
@@ -70,41 +70,41 @@ import {
|
|
|
70
70
|
runFfmpegOnce,
|
|
71
71
|
seekCompositionTimelineOnly,
|
|
72
72
|
settleCompositionSeek
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-XPN7SDFQ.js";
|
|
74
74
|
import "./chunk-RXFKSZN2.js";
|
|
75
75
|
import "./chunk-262C25DQ.js";
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-BCQ42FAS.js";
|
|
77
|
+
import "./chunk-SACHIPZP.js";
|
|
78
78
|
import "./chunk-YGGZ23BB.js";
|
|
79
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-QPTQSM3D.js";
|
|
80
80
|
import "./chunk-US4BCRYB.js";
|
|
81
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-RGYPRUQP.js";
|
|
82
82
|
import "./chunk-XT7X6QCP.js";
|
|
83
83
|
import "./chunk-5YPMCCCA.js";
|
|
84
84
|
import "./chunk-HVW7ABXD.js";
|
|
85
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-BUYV2WGV.js";
|
|
86
86
|
import {
|
|
87
87
|
runWithConcurrencyLimit
|
|
88
88
|
} from "./chunk-JHOCK3DG.js";
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-7VHS56BT.js";
|
|
90
|
+
import "./chunk-KKPYNKZD.js";
|
|
91
91
|
import "./chunk-AWDFDFI3.js";
|
|
92
92
|
import "./chunk-P6LJ4Y32.js";
|
|
93
93
|
import "./chunk-T2WJO4XM.js";
|
|
94
94
|
import "./chunk-W4DMQZL5.js";
|
|
95
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-JCOECSLT.js";
|
|
96
96
|
import "./chunk-5LOZWO2M.js";
|
|
97
97
|
import {
|
|
98
98
|
resolveLocalBrowserGpuMode
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-7TAS4BNT.js";
|
|
100
100
|
import "./chunk-A4ZTSQLW.js";
|
|
101
101
|
import {
|
|
102
102
|
trackSnapshotRun
|
|
103
|
-
} from "./chunk-
|
|
104
|
-
import "./chunk-
|
|
103
|
+
} from "./chunk-5D23BECZ.js";
|
|
104
|
+
import "./chunk-3LLFF6EE.js";
|
|
105
105
|
import "./chunk-PXVQOMKL.js";
|
|
106
106
|
import "./chunk-MCDNAIFF.js";
|
|
107
|
-
import "./chunk-
|
|
107
|
+
import "./chunk-BVAPHHMQ.js";
|
|
108
108
|
import {
|
|
109
109
|
defineCommand
|
|
110
110
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -119,18 +119,20 @@ import "./chunk-EVMY7IPL.js";
|
|
|
119
119
|
import "./chunk-7FMUTGOH.js";
|
|
120
120
|
import {
|
|
121
121
|
DEFAULT_CONFIG,
|
|
122
|
+
applyVideoMetadataHints,
|
|
122
123
|
buildZeroDurationDiagnostic,
|
|
123
124
|
downloadToTemp,
|
|
124
125
|
evaluateHfDiagnostic,
|
|
125
126
|
extractMediaMetadata,
|
|
127
|
+
holdRenderFrameVideos,
|
|
126
128
|
isHdrColorSpace,
|
|
127
129
|
isTransientBrowserError,
|
|
128
130
|
sdrCanvasColourFilters
|
|
129
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-NUFOXUDF.js";
|
|
130
132
|
import "./chunk-Z5J67X44.js";
|
|
131
133
|
import "./chunk-5S7W3TUO.js";
|
|
132
134
|
import "./chunk-D3MUHMFG.js";
|
|
133
|
-
import "./chunk-
|
|
135
|
+
import "./chunk-4MDLXE3N.js";
|
|
134
136
|
import "./chunk-YWRUQ7XZ.js";
|
|
135
137
|
import {
|
|
136
138
|
createRuntimeStartTimeResolver,
|
|
@@ -139,13 +141,14 @@ import {
|
|
|
139
141
|
isClipVisibleAt,
|
|
140
142
|
isInClipWindow,
|
|
141
143
|
parseFirstFrameColour
|
|
142
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-6ZICZOMN.js";
|
|
143
145
|
import "./chunk-MEJH7VEA.js";
|
|
144
146
|
import {
|
|
147
|
+
MEDIA_RENDER_ID_ATTR,
|
|
145
148
|
readElementRateSpec,
|
|
146
149
|
sourceTimeAt,
|
|
147
150
|
timeAtSourceTime
|
|
148
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-N3CZ437C.js";
|
|
149
152
|
import "./chunk-VC76R6W2.js";
|
|
150
153
|
import "./chunk-OFQWTKPW.js";
|
|
151
154
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -165,7 +168,7 @@ import "./chunk-K4MJX7SR.js";
|
|
|
165
168
|
import "./chunk-WE42NVH7.js";
|
|
166
169
|
import {
|
|
167
170
|
lintProject
|
|
168
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-BGMMC352.js";
|
|
169
172
|
import "./chunk-HYRPH6LL.js";
|
|
170
173
|
import "./chunk-WVRAFHJU.js";
|
|
171
174
|
import "./chunk-CZGHFATT.js";
|
|
@@ -186,7 +189,7 @@ import "./chunk-FBN2M2HK.js";
|
|
|
186
189
|
import "./chunk-766MOTIZ.js";
|
|
187
190
|
import {
|
|
188
191
|
withMeta
|
|
189
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-Y3RERZRQ.js";
|
|
190
193
|
import "./chunk-BR2JQQC5.js";
|
|
191
194
|
import "./chunk-BLBMPEBX.js";
|
|
192
195
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -202,7 +205,7 @@ import {
|
|
|
202
205
|
} from "./chunk-66W5IWLO.js";
|
|
203
206
|
import "./chunk-J3RXEDR2.js";
|
|
204
207
|
import "./chunk-QBXDU24O.js";
|
|
205
|
-
import "./chunk-
|
|
208
|
+
import "./chunk-YXIXTFRO.js";
|
|
206
209
|
import {
|
|
207
210
|
atStep,
|
|
208
211
|
normalizeErrorMessage
|
|
@@ -278,7 +281,7 @@ function resolveSnapshotCompositionRange(html, durations, id, duration) {
|
|
|
278
281
|
// src/commands/snapshot.ts
|
|
279
282
|
import { randomUUID } from "crypto";
|
|
280
283
|
import {
|
|
281
|
-
existsSync,
|
|
284
|
+
existsSync as existsSync2,
|
|
282
285
|
mkdtempSync,
|
|
283
286
|
readdirSync,
|
|
284
287
|
readFileSync,
|
|
@@ -288,7 +291,7 @@ import {
|
|
|
288
291
|
writeFileSync
|
|
289
292
|
} from "fs";
|
|
290
293
|
import { tmpdir } from "os";
|
|
291
|
-
import { resolve, join, relative, isAbsolute, basename, posix } from "path";
|
|
294
|
+
import { resolve as resolve2, join, relative as relative2, isAbsolute as isAbsolute2, basename, posix } from "path";
|
|
292
295
|
|
|
293
296
|
// src/utils/sharpLoadFailure.ts
|
|
294
297
|
var SHARP_LOAD_FAILURE = 'Could not load the "sharp" module';
|
|
@@ -394,6 +397,91 @@ function createFrameBank(deps) {
|
|
|
394
397
|
};
|
|
395
398
|
}
|
|
396
399
|
|
|
400
|
+
// src/commands/snapshotHeldVideos.ts
|
|
401
|
+
import { existsSync } from "fs";
|
|
402
|
+
import { isAbsolute, relative, resolve } from "path";
|
|
403
|
+
var REMOTE_OR_INLINE_SRC = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
404
|
+
function localVideos(html) {
|
|
405
|
+
const videos = /* @__PURE__ */ new Map();
|
|
406
|
+
for (const video of parseHTML(html).document.querySelectorAll("video")) {
|
|
407
|
+
const src = video.getAttribute("src") ?? video.querySelector("source")?.getAttribute("src");
|
|
408
|
+
const id = video.getAttribute(MEDIA_RENDER_ID_ATTR) || video.id;
|
|
409
|
+
if (id && src && !REMOTE_OR_INLINE_SRC.test(src.trim())) videos.set(id, src);
|
|
410
|
+
}
|
|
411
|
+
return [...videos].map(([id, src]) => ({ id, src }));
|
|
412
|
+
}
|
|
413
|
+
var localVideoRenderIds = (html) => localVideos(html).map((v) => v.id);
|
|
414
|
+
function projectLocalFile(projectDir, src) {
|
|
415
|
+
try {
|
|
416
|
+
const path = decodeURIComponent(new URL(src, "http://project.invalid/").pathname).replace(
|
|
417
|
+
/^\//,
|
|
418
|
+
""
|
|
419
|
+
);
|
|
420
|
+
const file = resolve(projectDir, path);
|
|
421
|
+
const rel = relative(projectDir, file);
|
|
422
|
+
return !rel.startsWith("..") && !isAbsolute(rel) && existsSync(file) ? file : null;
|
|
423
|
+
} catch {
|
|
424
|
+
return null;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
var PROBE_TIMEOUT_MS = 3e4;
|
|
428
|
+
var UNKNOWN_VIDEO = { duration: 0, width: 0, height: 0 };
|
|
429
|
+
function parseProbe(json) {
|
|
430
|
+
const duration = Number(json.format?.duration);
|
|
431
|
+
const stream = json.streams?.[0];
|
|
432
|
+
const rotation = Number(
|
|
433
|
+
stream?.side_data_list?.find((d) => d.rotation !== void 0)?.rotation ?? stream?.tags?.rotate ?? 0
|
|
434
|
+
);
|
|
435
|
+
const turned = Math.abs(rotation) % 180 === 90;
|
|
436
|
+
const [width, height] = [Number(stream?.width), Number(stream?.height)];
|
|
437
|
+
const sized = width > 0 && height > 0;
|
|
438
|
+
return {
|
|
439
|
+
duration: Number.isFinite(duration) && duration > 0 ? duration : 0,
|
|
440
|
+
width: sized ? turned ? height : width : 0,
|
|
441
|
+
height: sized ? turned ? width : height : 0
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
function probeHeldVideo(path, cache, ffprobe = findFFprobe()) {
|
|
445
|
+
const known = cache.get(path);
|
|
446
|
+
if (known) return known;
|
|
447
|
+
const read = (async () => {
|
|
448
|
+
if (!ffprobe) return UNKNOWN_VIDEO;
|
|
449
|
+
try {
|
|
450
|
+
const { stdout } = await runCancellableProcess(
|
|
451
|
+
ffprobe,
|
|
452
|
+
[
|
|
453
|
+
"-v",
|
|
454
|
+
"error",
|
|
455
|
+
"-select_streams",
|
|
456
|
+
"v:0",
|
|
457
|
+
"-show_entries",
|
|
458
|
+
"format=duration:stream=width,height:stream_tags=rotate:stream_side_data=rotation",
|
|
459
|
+
"-of",
|
|
460
|
+
"json",
|
|
461
|
+
"--",
|
|
462
|
+
path
|
|
463
|
+
],
|
|
464
|
+
{ timeoutMs: PROBE_TIMEOUT_MS, maxBufferBytes: 1024 * 1024 }
|
|
465
|
+
);
|
|
466
|
+
return parseProbe(JSON.parse(stdout));
|
|
467
|
+
} catch {
|
|
468
|
+
return UNKNOWN_VIDEO;
|
|
469
|
+
}
|
|
470
|
+
})();
|
|
471
|
+
cache.set(path, read);
|
|
472
|
+
return read;
|
|
473
|
+
}
|
|
474
|
+
async function heldVideoHints(projectDir, videos, cache, ffprobe = findFFprobe()) {
|
|
475
|
+
const hints = await Promise.all(
|
|
476
|
+
videos.map(async ({ id, src }) => {
|
|
477
|
+
const file = projectLocalFile(projectDir, src);
|
|
478
|
+
const { width, height } = file ? await probeHeldVideo(file, cache, ffprobe) : UNKNOWN_VIDEO;
|
|
479
|
+
return width > 0 && height > 0 ? { id, width, height } : null;
|
|
480
|
+
})
|
|
481
|
+
);
|
|
482
|
+
return hints.filter((hint) => hint !== null);
|
|
483
|
+
}
|
|
484
|
+
|
|
397
485
|
// src/commands/snapshotReview.ts
|
|
398
486
|
var REVIEW_SETTLE_SEC = 0.3;
|
|
399
487
|
var REVIEW_MID_GAP_SEC = 0.5;
|
|
@@ -648,7 +736,7 @@ function snapshotsOnDisk(projectDir, paths) {
|
|
|
648
736
|
const written = [];
|
|
649
737
|
const missing = [];
|
|
650
738
|
for (const path of paths) {
|
|
651
|
-
const absolute =
|
|
739
|
+
const absolute = resolve2(projectDir, path);
|
|
652
740
|
let size = 0;
|
|
653
741
|
try {
|
|
654
742
|
size = statSync(absolute).size;
|
|
@@ -664,7 +752,7 @@ function clearEarlierStills(snapshotDir) {
|
|
|
664
752
|
try {
|
|
665
753
|
for (const file of readdirSync(snapshotDir)) {
|
|
666
754
|
if (!SNAPSHOT_IMAGE_NAME.test(file)) continue;
|
|
667
|
-
const path =
|
|
755
|
+
const path = resolve2(snapshotDir, file);
|
|
668
756
|
rmSync(path, { force: true });
|
|
669
757
|
cleared.push(path);
|
|
670
758
|
}
|
|
@@ -673,7 +761,7 @@ function clearEarlierStills(snapshotDir) {
|
|
|
673
761
|
return cleared;
|
|
674
762
|
}
|
|
675
763
|
function clearedNote(count, snapshotDir) {
|
|
676
|
-
return `cleared ${count} stills from an earlier run in ${
|
|
764
|
+
return `cleared ${count} stills from an earlier run in ${resolve2(snapshotDir)}`;
|
|
677
765
|
}
|
|
678
766
|
function assertDistinctKeepNames(times) {
|
|
679
767
|
const timeByLabel = /* @__PURE__ */ new Map();
|
|
@@ -973,7 +1061,7 @@ async function extractVideoFrameToBuffer(videoPath, timeSeconds, useVp9AlphaDeco
|
|
|
973
1061
|
`FFmpeg timed out after ${FFMPEG_EXTRACT_TIMEOUT_MS / 1e3}s extracting ${frameOf}`
|
|
974
1062
|
);
|
|
975
1063
|
}
|
|
976
|
-
if (result.code !== 0 || !
|
|
1064
|
+
if (result.code !== 0 || !existsSync2(outPath)) {
|
|
977
1065
|
throw new FrameExtractError(`FFmpeg could not extract ${frameOf}: ${ffmpegFailure(result)}`);
|
|
978
1066
|
}
|
|
979
1067
|
return readFileSync(outPath);
|
|
@@ -1022,7 +1110,7 @@ async function decodeFramesInOnePass(videoPath, frames, useVp9AlphaDecoder = fal
|
|
|
1022
1110
|
throw new FrameExtractError(`FFmpeg timed out after ${timeoutMs / 1e3}s extracting ${what}`);
|
|
1023
1111
|
}
|
|
1024
1112
|
const written = (n) => join(tmp, `${n}.png`);
|
|
1025
|
-
if (result.code !== 0 || !byTime.every((_, i) =>
|
|
1113
|
+
if (result.code !== 0 || !byTime.every((_, i) => existsSync2(written(i + 1)))) {
|
|
1026
1114
|
throw new FrameExtractError(`FFmpeg could not extract ${what}: ${ffmpegFailure(result)}`);
|
|
1027
1115
|
}
|
|
1028
1116
|
const buffers = [];
|
|
@@ -1110,7 +1198,7 @@ function serveCapturePage(projectDir, html, proxy) {
|
|
|
1110
1198
|
async function captureSnapshots(projectDir, opts) {
|
|
1111
1199
|
const startedAt = performance.now();
|
|
1112
1200
|
const log = opts.log ?? ((message) => console.log(message));
|
|
1113
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
1201
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-PAWHGZRW.js");
|
|
1114
1202
|
const capture = opts.record === false ? void 0 : await captureArtifactRevision(projectDir).catch(warnSnapshotsNotRecorded);
|
|
1115
1203
|
const invocation = randomUUID();
|
|
1116
1204
|
const artifacts = [];
|
|
@@ -1124,12 +1212,15 @@ async function captureSnapshots(projectDir, opts) {
|
|
|
1124
1212
|
const reviewPaths = /* @__PURE__ */ new Map();
|
|
1125
1213
|
const html = await bundleWithLocalizedFonts(projectDir);
|
|
1126
1214
|
const entry = join(projectDir, "index.html");
|
|
1127
|
-
const swallowed =
|
|
1215
|
+
const swallowed = existsSync2(entry) ? await selfClosedMediaWarning(readFileSync(entry, "utf8")) : null;
|
|
1128
1216
|
if (swallowed) {
|
|
1129
1217
|
warnings.push(swallowed);
|
|
1130
1218
|
console.warn(` ${c.warn("\u26A0")} ${swallowed}`);
|
|
1131
1219
|
}
|
|
1132
1220
|
const server = await serveCapturePage(projectDir, html, opts.autoProxy);
|
|
1221
|
+
const heldVideoIds = localVideoRenderIds(html);
|
|
1222
|
+
const heldProbes = /* @__PURE__ */ new Map();
|
|
1223
|
+
const heldHints = await heldVideoHints(projectDir, localVideos(html), heldProbes);
|
|
1133
1224
|
const savedPaths = [];
|
|
1134
1225
|
let pairSheetFailure = null;
|
|
1135
1226
|
try {
|
|
@@ -1140,7 +1231,16 @@ async function captureSnapshots(projectDir, opts) {
|
|
|
1140
1231
|
} = await openSettledCompositionPage(html, server.url, {
|
|
1141
1232
|
renderReadyTimeoutMs: opts.timeout ?? RENDER_READY_TIMEOUT_MS,
|
|
1142
1233
|
renderReadyWarningSuffix: "snapshots may be inaccurate",
|
|
1143
|
-
browserGpuMode: opts.browserGpuMode
|
|
1234
|
+
browserGpuMode: opts.browserGpuMode,
|
|
1235
|
+
beforeNavigate: async (target) => {
|
|
1236
|
+
if (heldVideoIds.length > 0)
|
|
1237
|
+
await target.evaluateOnNewDocument(
|
|
1238
|
+
holdRenderFrameVideos,
|
|
1239
|
+
heldVideoIds,
|
|
1240
|
+
MEDIA_RENDER_ID_ATTR
|
|
1241
|
+
);
|
|
1242
|
+
},
|
|
1243
|
+
onLoaded: (target) => applyVideoMetadataHints(target, heldHints)
|
|
1144
1244
|
});
|
|
1145
1245
|
try {
|
|
1146
1246
|
if (renderReadyTimedOut)
|
|
@@ -1244,7 +1344,7 @@ async function captureSnapshots(projectDir, opts) {
|
|
|
1244
1344
|
let syncVideoFrameVisibility = null;
|
|
1245
1345
|
let extractMediaMetadata2 = null;
|
|
1246
1346
|
try {
|
|
1247
|
-
const engine = await import("./src-
|
|
1347
|
+
const engine = await import("./src-HKLKN7AE.js");
|
|
1248
1348
|
injectVideoFramesBatch = engine.injectVideoFramesBatch;
|
|
1249
1349
|
syncVideoFrameVisibility = engine.syncVideoFrameVisibility;
|
|
1250
1350
|
extractMediaMetadata2 = engine.extractMediaMetadata;
|
|
@@ -1286,6 +1386,7 @@ async function captureSnapshots(projectDir, opts) {
|
|
|
1286
1386
|
)
|
|
1287
1387
|
});
|
|
1288
1388
|
const plannedClips = /* @__PURE__ */ new Set();
|
|
1389
|
+
const heldVideos = new Set(heldVideoIds);
|
|
1289
1390
|
const loopStartedAt = performance.now();
|
|
1290
1391
|
let seekMs = 0;
|
|
1291
1392
|
let videoMs = 0;
|
|
@@ -1305,7 +1406,7 @@ async function captureSnapshots(projectDir, opts) {
|
|
|
1305
1406
|
seekMs += performance.now() - seekStartedAt;
|
|
1306
1407
|
if (cameraExpr) await page.evaluate(cameraExpr);
|
|
1307
1408
|
if (injectVideoFramesBatch && syncVideoFrameVisibility) {
|
|
1308
|
-
const
|
|
1409
|
+
const pageVideos = await page.evaluate(() => {
|
|
1309
1410
|
const runtimeWindow = window;
|
|
1310
1411
|
return Array.from(document.querySelectorAll("video")).map((el) => {
|
|
1311
1412
|
const v = el;
|
|
@@ -1332,6 +1433,12 @@ async function captureSnapshots(projectDir, opts) {
|
|
|
1332
1433
|
};
|
|
1333
1434
|
});
|
|
1334
1435
|
});
|
|
1436
|
+
const candidates = await Promise.all(
|
|
1437
|
+
pageVideos.map(async (video) => {
|
|
1438
|
+
const file = heldVideos.has(video.id) ? projectLocalFile(projectDir, video.src) : null;
|
|
1439
|
+
return video.srcDuration > 0 || !file ? video : { ...video, srcDuration: (await probeHeldVideo(file, heldProbes)).duration };
|
|
1440
|
+
})
|
|
1441
|
+
);
|
|
1335
1442
|
let unreadable = 0;
|
|
1336
1443
|
const active = candidates.flatMap((candidate) => {
|
|
1337
1444
|
const video = activeVideoAt(candidate, time, duration);
|
|
@@ -1349,19 +1456,19 @@ async function captureSnapshots(projectDir, opts) {
|
|
|
1349
1456
|
async (v) => {
|
|
1350
1457
|
let ffmpegInput = null;
|
|
1351
1458
|
let inputIsLocal = false;
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1459
|
+
const projectFile = projectLocalFile(projectDir, v.src);
|
|
1460
|
+
if (projectFile) {
|
|
1461
|
+
ffmpegInput = projectFile;
|
|
1462
|
+
inputIsLocal = true;
|
|
1463
|
+
} else {
|
|
1464
|
+
try {
|
|
1465
|
+
const url = new URL(v.src);
|
|
1466
|
+
if (url.protocol === "http:" || url.protocol === "https:") {
|
|
1467
|
+
ffmpegInput = await localCopy(url.href);
|
|
1468
|
+
inputIsLocal = ffmpegInput !== url.href;
|
|
1469
|
+
}
|
|
1470
|
+
} catch {
|
|
1363
1471
|
}
|
|
1364
|
-
} catch {
|
|
1365
1472
|
}
|
|
1366
1473
|
if (!ffmpegInput) return null;
|
|
1367
1474
|
const useVp9AlphaDecoder = inputIsLocal ? await shouldUseVp9AlphaDecoder(ffmpegInput) : false;
|
|
@@ -1466,7 +1573,7 @@ async function captureSnapshots(projectDir, opts) {
|
|
|
1466
1573
|
}
|
|
1467
1574
|
artifacts.push({
|
|
1468
1575
|
id: `${invocation}-${i}`,
|
|
1469
|
-
image:
|
|
1576
|
+
image: resolve2(framePath),
|
|
1470
1577
|
time,
|
|
1471
1578
|
metadata: {
|
|
1472
1579
|
...pngDimensions(framePath),
|
|
@@ -1509,8 +1616,8 @@ async function captureSnapshots(projectDir, opts) {
|
|
|
1509
1616
|
}
|
|
1510
1617
|
}
|
|
1511
1618
|
}
|
|
1512
|
-
const rel =
|
|
1513
|
-
savedPaths.push(rel.startsWith("..") ||
|
|
1619
|
+
const rel = relative2(projectDir, framePath);
|
|
1620
|
+
savedPaths.push(rel.startsWith("..") || isAbsolute2(rel) ? framePath : rel);
|
|
1514
1621
|
}
|
|
1515
1622
|
const loopMs = performance.now() - loopStartedAt;
|
|
1516
1623
|
const stageMs = {
|
|
@@ -1579,7 +1686,7 @@ function warnUnsettledImages(images, time, warnings) {
|
|
|
1579
1686
|
}
|
|
1580
1687
|
}
|
|
1581
1688
|
async function selfClosedMediaWarning(source) {
|
|
1582
|
-
const { lintHyperframeHtml } = await import("./dist-
|
|
1689
|
+
const { lintHyperframeHtml } = await import("./dist-H4C7ZCFU.js");
|
|
1583
1690
|
const found = (await lintHyperframeHtml(source)).findings.filter(
|
|
1584
1691
|
(finding) => finding.code === "self_closing_media_tag"
|
|
1585
1692
|
);
|
|
@@ -1615,7 +1722,7 @@ function snapshotEnvelope(projectDir, outputDir, captured, extra) {
|
|
|
1615
1722
|
time: frame.time,
|
|
1616
1723
|
role: frame.role,
|
|
1617
1724
|
label: frame.label
|
|
1618
|
-
})) : captured.paths.map((path) => ({ path:
|
|
1725
|
+
})) : captured.paths.map((path) => ({ path: resolve2(projectDir, path), time: timeFromName(path) }));
|
|
1619
1726
|
return {
|
|
1620
1727
|
ok: true,
|
|
1621
1728
|
outputDir,
|
|
@@ -1626,7 +1733,7 @@ function snapshotEnvelope(projectDir, outputDir, captured, extra) {
|
|
|
1626
1733
|
note: clearedNote(captured.cleared.length, outputDir)
|
|
1627
1734
|
}
|
|
1628
1735
|
} : {},
|
|
1629
|
-
contactSheets: extra.contactSheets.map((sheet) =>
|
|
1736
|
+
contactSheets: extra.contactSheets.map((sheet) => resolve2(sheet)),
|
|
1630
1737
|
...captured.warnings.length > 0 ? { warnings: captured.warnings } : {},
|
|
1631
1738
|
...extra.describedPath ? { descriptions: extra.describedPath } : {},
|
|
1632
1739
|
...review ? {
|
|
@@ -1821,8 +1928,8 @@ var snapshot_default = defineCommand({
|
|
|
1821
1928
|
const camera = args.angle ? parseAngle(String(args.angle)) : void 0;
|
|
1822
1929
|
const zoomTarget = args.zoom ? parseZoomTarget(String(args.zoom)) : void 0;
|
|
1823
1930
|
const zoomScale = parseZoomScale(args["zoom-scale"]);
|
|
1824
|
-
const against = args.against ?
|
|
1825
|
-
if (against && !
|
|
1931
|
+
const against = args.against ? resolve2(String(args.against)) : void 0;
|
|
1932
|
+
if (against && !existsSync2(against))
|
|
1826
1933
|
fail(`${c.error("\u2717")} --against video not found: ${against}`);
|
|
1827
1934
|
const label = reviewMode ? "review frames (beats, seams, phone)" : atTimestamps ? `${atTimestamps.length} frames at [${atTimestamps.map(formatSnapshotTimestamp).join(", ")}]` : `${frames} frames`;
|
|
1828
1935
|
const angleLabel = camera && (camera.yaw !== 0 || camera.pitch !== 0) ? ` ${c.dim(`(angle yaw ${camera.yaw}\xB0 pitch ${camera.pitch}\xB0)`)}` : "";
|
|
@@ -1830,7 +1937,7 @@ var snapshot_default = defineCommand({
|
|
|
1830
1937
|
let managedSnapshotDir;
|
|
1831
1938
|
let exitCode = 0;
|
|
1832
1939
|
try {
|
|
1833
|
-
const snapshotDir = args.output ?
|
|
1940
|
+
const snapshotDir = args.output ? resolve2(String(args.output)) : artifactDirectory(project.dir, "snapshots");
|
|
1834
1941
|
if (!args.output) managedSnapshotDir = snapshotDir;
|
|
1835
1942
|
if (args.output) retainSnapshotOutput(project.dir, snapshotDir);
|
|
1836
1943
|
await withProjectLock(project.dir, "snapshot", async () => {
|
|
@@ -1909,7 +2016,7 @@ ${mark} ${count} snapshots saved to ${snapshotDir}`);
|
|
|
1909
2016
|
reportArtifacts("snapshot", "contact-sheet", contactSheets);
|
|
1910
2017
|
if (!captured.review) {
|
|
1911
2018
|
for (const sheet of contactSheets) {
|
|
1912
|
-
log(` ${
|
|
2019
|
+
log(` ${resolve2(sheet)} (grid view for AI review)`);
|
|
1913
2020
|
}
|
|
1914
2021
|
}
|
|
1915
2022
|
} catch (err) {
|
|
@@ -1947,7 +2054,7 @@ ${mark} ${count} snapshots saved to ${snapshotDir}`);
|
|
|
1947
2054
|
paths.map(async (p) => {
|
|
1948
2055
|
const filename = basename(p);
|
|
1949
2056
|
const filePath = join(snapshotDir, filename);
|
|
1950
|
-
if (!
|
|
2057
|
+
if (!existsSync2(filePath)) return { filename, desc: "file not found" };
|
|
1951
2058
|
const raw = readFileSync(filePath);
|
|
1952
2059
|
let imageData;
|
|
1953
2060
|
let mimeType = "image/png";
|
|
@@ -58,6 +58,7 @@ import {
|
|
|
58
58
|
applyConcreteGpuScreenshotClamp,
|
|
59
59
|
applyDomLayerMask,
|
|
60
60
|
applyFaststart,
|
|
61
|
+
applyVideoMetadataHints,
|
|
61
62
|
assertConfiguredFfmpegBinariesExist,
|
|
62
63
|
assertMediaPayload,
|
|
63
64
|
assertPublicHttpsUrl,
|
|
@@ -161,6 +162,7 @@ import {
|
|
|
161
162
|
groupIntoLayers,
|
|
162
163
|
hasGradedCanvas,
|
|
163
164
|
hideVideoElements,
|
|
165
|
+
holdRenderFrameVideos,
|
|
164
166
|
inAgentSandbox,
|
|
165
167
|
initHdrReadback,
|
|
166
168
|
initTransparentBackground,
|
|
@@ -269,11 +271,11 @@ import {
|
|
|
269
271
|
waitForImagesReady,
|
|
270
272
|
writeCapturedFrame,
|
|
271
273
|
writeUrlDownloadTelemetry
|
|
272
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-NUFOXUDF.js";
|
|
273
275
|
import "./chunk-Z5J67X44.js";
|
|
274
276
|
import "./chunk-5S7W3TUO.js";
|
|
275
277
|
import "./chunk-D3MUHMFG.js";
|
|
276
|
-
import "./chunk-
|
|
278
|
+
import "./chunk-4MDLXE3N.js";
|
|
277
279
|
import {
|
|
278
280
|
collectScratchLeftovers,
|
|
279
281
|
removeScratch,
|
|
@@ -283,9 +285,9 @@ import {
|
|
|
283
285
|
import {
|
|
284
286
|
MEDIA_VISUAL_STYLE_PROPERTIES,
|
|
285
287
|
quantizeTimeToFrame
|
|
286
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-6ZICZOMN.js";
|
|
287
289
|
import "./chunk-MEJH7VEA.js";
|
|
288
|
-
import "./chunk-
|
|
290
|
+
import "./chunk-N3CZ437C.js";
|
|
289
291
|
import "./chunk-VC76R6W2.js";
|
|
290
292
|
import "./chunk-OFQWTKPW.js";
|
|
291
293
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -306,7 +308,7 @@ import {
|
|
|
306
308
|
import {
|
|
307
309
|
resolveReferencedDuration,
|
|
308
310
|
resolveReferencedStart
|
|
309
|
-
} from "./chunk-
|
|
311
|
+
} from "./chunk-BGMMC352.js";
|
|
310
312
|
import {
|
|
311
313
|
FFMPEG_PATH_ENV,
|
|
312
314
|
FFPROBE_PATH_ENV
|
|
@@ -392,6 +394,7 @@ export {
|
|
|
392
394
|
applyConcreteGpuScreenshotClamp,
|
|
393
395
|
applyDomLayerMask,
|
|
394
396
|
applyFaststart,
|
|
397
|
+
applyVideoMetadataHints,
|
|
395
398
|
assertConfiguredFfmpegBinariesExist,
|
|
396
399
|
assertMediaPayload,
|
|
397
400
|
assertPublicHttpsUrl,
|
|
@@ -502,6 +505,7 @@ export {
|
|
|
502
505
|
hasGradedCanvas,
|
|
503
506
|
hdrToLinear,
|
|
504
507
|
hideVideoElements,
|
|
508
|
+
holdRenderFrameVideos,
|
|
505
509
|
inAgentSandbox,
|
|
506
510
|
initHdrReadback,
|
|
507
511
|
initTransparentBackground,
|
|
@@ -62,13 +62,13 @@ import {
|
|
|
62
62
|
spanFrameRange,
|
|
63
63
|
startServer,
|
|
64
64
|
validatePlanV2MaterializedTarget
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-VKWAW4JW.js";
|
|
66
66
|
import {
|
|
67
67
|
prepareHeifImageInputs
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-OYN54RSU.js";
|
|
69
69
|
import {
|
|
70
70
|
prepareAnimatedGifInputs
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-VX3JUOZ6.js";
|
|
72
72
|
import "./chunk-X7MTZ4T2.js";
|
|
73
73
|
import "./chunk-BZ56MTDX.js";
|
|
74
74
|
import {
|
|
@@ -99,17 +99,17 @@ import {
|
|
|
99
99
|
readReferenceBackground,
|
|
100
100
|
referenceBackgroundResult,
|
|
101
101
|
resolveConfig
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-NUFOXUDF.js";
|
|
103
103
|
import "./chunk-Z5J67X44.js";
|
|
104
104
|
import "./chunk-5S7W3TUO.js";
|
|
105
105
|
import "./chunk-D3MUHMFG.js";
|
|
106
|
-
import "./chunk-
|
|
106
|
+
import "./chunk-4MDLXE3N.js";
|
|
107
107
|
import "./chunk-YWRUQ7XZ.js";
|
|
108
108
|
import {
|
|
109
109
|
quantizeTimeToFrame
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-6ZICZOMN.js";
|
|
111
111
|
import "./chunk-MEJH7VEA.js";
|
|
112
|
-
import "./chunk-
|
|
112
|
+
import "./chunk-N3CZ437C.js";
|
|
113
113
|
import "./chunk-VC76R6W2.js";
|
|
114
114
|
import "./chunk-OFQWTKPW.js";
|
|
115
115
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -118,7 +118,7 @@ import "./chunk-TK7THLRO.js";
|
|
|
118
118
|
import "./chunk-FXMKHHPO.js";
|
|
119
119
|
import "./chunk-K4MJX7SR.js";
|
|
120
120
|
import "./chunk-WE42NVH7.js";
|
|
121
|
-
import "./chunk-
|
|
121
|
+
import "./chunk-BGMMC352.js";
|
|
122
122
|
import "./chunk-HYRPH6LL.js";
|
|
123
123
|
import "./chunk-WVRAFHJU.js";
|
|
124
124
|
import "./chunk-CZGHFATT.js";
|