hyperframes 0.8.204 → 0.8.206
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-HBFVYKGU.js → add-FFMNAJXJ.js} +12 -12
- package/dist/{animatedGifPrep-VBUKGEZ6.js → animatedGifPrep-BIIIIVWL.js} +16 -10
- package/dist/api.js +18 -18
- package/dist/{asset-OVLMJY4S.js → asset-IPUHGZSL.js} +2 -2
- package/dist/{assetCataloger-K4INCLFU.js → assetCataloger-M5FWXLAJ.js} +8 -8
- package/dist/{audio-JHW3HLHK.js → audio-VYWWM4DB.js} +19 -16
- package/dist/{auth-RH67KQMZ.js → auth-GZQZCUPL.js} +1 -1
- package/dist/{autoUpdate-JYR2RW5Z.js → autoUpdate-GJUDDLLO.js} +2 -2
- package/dist/{backgroundChecks-DPHRM4HJ.js → backgroundChecks-BTMSW34Z.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-JFUWZR3M.js → batchRender-LI2BJRGO.js} +4 -4
- package/dist/{beats-AWAFZGOT.js → beats-H73CSYT4.js} +11 -11
- package/dist/{benchmark-VQCCULJ2.js → benchmark-XT3A5REC.js} +14 -12
- package/dist/{browser-TT5L7D32.js → browser-VIOK66YK.js} +5 -5
- package/dist/{bundleWithLocalizedFonts-EHXEP5ZL.js → bundleWithLocalizedFonts-PFRVWYOO.js} +2 -2
- package/dist/{capture-Y7TGR3BI.js → capture-252WNPCD.js} +2 -2
- package/dist/{capture-5CM2P6CB.js → capture-KKD5GMAF.js} +20 -20
- package/dist/{captureCompositionFrame-LIT6U6C4.js → captureCompositionFrame-YLYVGNN2.js} +13 -13
- package/dist/{catalog-WZN2XB7D.js → catalog-6IJGNN3T.js} +12 -12
- package/dist/{catch-up-WZMQUW5H.js → catch-up-BFW7Z35W.js} +4 -4
- package/dist/{check-YVJCDCJS.js → check-XUWBZASR.js} +40 -38
- package/dist/checkAudio-2NRR3VHQ.js +201 -0
- package/dist/{checkBrowser-7V2DGDVD.js → checkBrowser-JW74KWTF.js} +33 -32
- package/dist/{chunk-IDASYE4U.js → chunk-2MLMO25E.js} +8 -5
- package/dist/{chunk-TBSYUEB7.js → chunk-2RT7MXFL.js} +1 -1
- package/dist/{chunk-7RB4I2E6.js → chunk-2S263R6D.js} +19 -7
- package/dist/{chunk-YLGRZSH4.js → chunk-36QE3P6B.js} +1 -1
- package/dist/{chunk-3GPDAE3D.js → chunk-3B2DBUQX.js} +1 -1
- package/dist/{chunk-UKXF4IPA.js → chunk-3CS6QYL7.js} +5 -5
- package/dist/{chunk-KOBPUFCN.js → chunk-3R6SXPHD.js} +2 -2
- package/dist/{chunk-US6JSQ2L.js → chunk-42KN6I6A.js} +2 -2
- package/dist/{chunk-LTGTN2TH.js → chunk-4CY5RXXC.js} +1 -1
- package/dist/{chunk-TQH7BF7K.js → chunk-4DGLKB2H.js} +1 -1
- package/dist/{chunk-DQBY7FRR.js → chunk-543U46OR.js} +4 -1
- package/dist/{chunk-D3EZHD2D.js → chunk-5QKJPCQ4.js} +2 -2
- package/dist/{chunk-IJ6RY4CH.js → chunk-63DGZRZP.js} +1 -1
- package/dist/{chunk-DRDG46KK.js → chunk-6ZFDNEMY.js} +14 -14
- package/dist/{chunk-LN5EJMSC.js → chunk-7SXL476O.js} +30 -20
- package/dist/{chunk-2756LXGY.js → chunk-AAX2A7LQ.js} +1 -1
- package/dist/{chunk-DTV3VHFE.js → chunk-AEC4T4IF.js} +4 -4
- package/dist/{chunk-4HJMZI4H.js → chunk-AJSU6KGS.js} +13 -13
- package/dist/{chunk-S35XO2ZA.js → chunk-AXEEZKIL.js} +2 -2
- package/dist/{chunk-KLIKCX6Q.js → chunk-AYH5ANVS.js} +7 -1
- package/dist/{chunk-ZBDVKLIU.js → chunk-BBUK6A7Q.js} +5 -5
- package/dist/{chunk-NJT6SZGL.js → chunk-CIHW6VM2.js} +1 -1
- package/dist/{chunk-EF7R5EBJ.js → chunk-CMDVJP4T.js} +10 -10
- package/dist/{chunk-VCBZOU7U.js → chunk-CNVHMLPI.js} +1 -1
- package/dist/{chunk-RFCLI6TW.js → chunk-CPSGXAYD.js} +3 -3
- package/dist/{chunk-54FO6TN7.js → chunk-CZYS6UKP.js} +83 -78
- package/dist/{chunk-5UW7WCHQ.js → chunk-DEVZJ4AL.js} +10 -9
- package/dist/{chunk-TCI4MUT6.js → chunk-DZG565OO.js} +1 -1
- package/dist/{chunk-D5CAZ7R4.js → chunk-E2ZZSDDQ.js} +2 -2
- package/dist/{chunk-TAYZSNYS.js → chunk-FJW757TF.js} +1 -1
- package/dist/{chunk-LVMJXO45.js → chunk-FMWACL3L.js} +1 -1
- package/dist/{chunk-54K7HW46.js → chunk-FNNGQ3DB.js} +2 -2
- package/dist/{chunk-AQS3MMEQ.js → chunk-FULMZCDW.js} +13 -43
- package/dist/chunk-G6QDFWDN.js +355 -0
- package/dist/{chunk-QB4K2EWI.js → chunk-G6W55MTX.js} +1 -1
- package/dist/{chunk-WM7GOKEP.js → chunk-GAV56VJL.js} +2 -2
- package/dist/{chunk-4CR23IYU.js → chunk-H4JO7VSI.js} +7 -6
- package/dist/{chunk-6RLP6RDE.js → chunk-HEP5XMXV.js} +1 -1
- package/dist/{chunk-23RPCDGE.js → chunk-HJAJ6W4V.js} +2 -2
- package/dist/chunk-KLIPVNCO.js +4824 -0
- package/dist/{chunk-YIN2JAZE.js → chunk-L5MFWGGU.js} +62 -65
- package/dist/{chunk-WMCGD4XL.js → chunk-MFHYBSJC.js} +58 -828
- package/dist/{chunk-LFGJWOVA.js → chunk-MNNK7RV5.js} +11 -8
- package/dist/{chunk-EUFBE5BW.js → chunk-N7ZMDVAK.js} +1 -1
- package/dist/{chunk-X7XICOVM.js → chunk-NNLQTG3M.js} +1 -1
- package/dist/{chunk-TNOERLC6.js → chunk-NVLPW3DG.js} +17 -9
- package/dist/{chunk-SVVAUJPL.js → chunk-OFRRUYBA.js} +1 -1
- package/dist/{chunk-WLD4PX3P.js → chunk-OZUAVHFE.js} +18 -3
- package/dist/{chunk-QCQDUQVJ.js → chunk-PNKLOMHQ.js} +2 -2
- package/dist/{chunk-QZ4HQQYS.js → chunk-PQYWYBEQ.js} +1 -1
- package/dist/{chunk-VC3BMKYO.js → chunk-QL4ZYSIB.js} +3 -3
- package/dist/{chunk-N3EJG2X4.js → chunk-QVTCXN42.js} +3 -3
- package/dist/{chunk-Y63CT2ZC.js → chunk-RDDVQSNQ.js} +124 -37
- package/dist/{chunk-WXAQT63P.js → chunk-RW4DMP2Y.js} +4 -4
- package/dist/{chunk-5RJSWYWL.js → chunk-SFYLZX5C.js} +1 -1
- package/dist/{chunk-YU53JSUZ.js → chunk-T6SD37JZ.js} +1 -1
- package/dist/chunk-TQBQYO4L.js +55 -0
- package/dist/{chunk-MSH2F7VW.js → chunk-TSJVPPXT.js} +1 -1
- package/dist/{chunk-7PRESGFT.js → chunk-UMUVGNOH.js} +3 -3
- package/dist/{chunk-6KZY5RSV.js → chunk-VDVVQNTK.js} +2 -2
- package/dist/{chunk-XX5U64F2.js → chunk-VEA7Z4PZ.js} +4 -3
- package/dist/{chunk-QWATUGUX.js → chunk-VHVSBOZH.js} +3 -3
- package/dist/{chunk-65VFH2UV.js → chunk-VW2LVMKB.js} +19 -9
- package/dist/{chunk-DBF6LLXB.js → chunk-WHD5IAHI.js} +1 -1
- package/dist/{chunk-OPFG563D.js → chunk-WYB3VKLK.js} +2 -2
- package/dist/{chunk-34VLVDOU.js → chunk-X5HHHFTX.js} +3 -3
- package/dist/{chunk-BL4U6U52.js → chunk-X7A7C4JS.js} +70 -7
- package/dist/chunk-X7RXXBYM.js +29 -0
- package/dist/{chunk-GGEA5EHR.js → chunk-XOM3XTJ4.js} +1 -1
- package/dist/{chunk-HBDQGIQA.js → chunk-Z3XXLTVB.js} +2 -2
- package/dist/{chunk-ERUINDRT.js → chunk-ZF3R2IPC.js} +184 -183
- package/dist/{chunk-CXZDIWMK.js → chunk-ZNAOBFU5.js} +1 -1
- package/dist/{chunk-AII6P2TC.js → chunk-ZTEKVSZ6.js} +1 -1
- package/dist/{clean-3JE2KYTC.js → clean-N5VSKUVS.js} +20 -20
- package/dist/cli.js +82 -60
- package/dist/{cloud-Z54BHP6G.js → cloud-74NF5FXC.js} +4 -4
- package/dist/{cloudrun-4CPQLU5M.js → cloudrun-7UOH335V.js} +6 -6
- package/dist/{compare-AQMLMTFD.js → compare-AY2LS2TZ.js} +33 -33
- package/dist/{compiler-LIJYMSEL.js → compiler-4MHMC777.js} +14 -10
- package/dist/{component-ZH37EIYB.js → component-CFWQOAZI.js} +3 -3
- package/dist/{compositions-DF2FM6YD.js → compositions-DXLJTDSP.js} +14 -14
- package/dist/{delete-A3NSK2HH.js → delete-GB4MS7LM.js} +2 -2
- package/dist/{deploy-6RC2DXPQ.js → deploy-NXD3Q3KD.js} +4 -4
- package/dist/{deterministicFonts-HQYCUUAL.js → deterministicFonts-775YXAQ2.js} +2 -2
- package/dist/{dist-VSIT3UAX.js → dist-3ZJMZU75.js} +11 -3
- package/dist/{dist-6JMYDD7F.js → dist-ZY6IFESG.js} +2 -2
- package/dist/docs/examples.md +31 -7
- package/dist/{doctor-RILK4ATO.js → doctor-CVY2XXKS.js} +14 -14
- package/dist/{events-SL434XAY.js → events-RYQYEWBV.js} +2 -2
- package/dist/{events-B5EKVEPW.js → events-T3CLIYRG.js} +3 -3
- package/dist/{feedback-S4PC6VAR.js → feedback-K5ZMMLTA.js} +8 -8
- package/dist/{ffmpeg-XSDPPZCU.js → ffmpeg-UNDAJ2IC.js} +9 -9
- package/dist/{figma-MV2L6E2Z.js → figma-MYYCX635.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -12
- package/dist/{get-ID3Y3PCN.js → get-JVIDYMVP.js} +2 -2
- package/dist/{gpuPolicy-2LRMQOAD.js → gpuPolicy-KEX7GDRJ.js} +8 -8
- package/dist/{grade-compare-NV3TKIOO.js → grade-compare-QEF6VASJ.js} +31 -31
- package/dist/{gsapParser-IEUSLYDJ.js → gsapParser-3H7ON3DO.js} +1 -1
- package/dist/heifImagePrep-A3ZPVQGU.js +53 -0
- package/dist/{help-ZPT23LZ3.js → help-XPPSLIRY.js} +1 -1
- package/dist/{history-MZGDX3TR.js → history-OFOPRD27.js} +7 -7
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +66 -64
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/hyperframes-slideshow.global.js +16 -16
- package/dist/{info-FIZ4A54H.js → info-7RF6FQX5.js} +8 -8
- package/dist/{init-WX4MNPL2.js → init-NTIXWA3D.js} +32 -35
- package/dist/{inspect-R5KWWKNJ.js → inspect-MYMCV5E7.js} +31 -30
- package/dist/inspection.js +4 -4
- package/dist/{installer-CTV5FKYQ.js → installer-PYJIJ3PJ.js} +5 -5
- package/dist/{keyframes-FAJY5RK5.js → keyframes-UJ52PYE4.js} +6 -6
- package/dist/{lambda-3MCC2ZH7.js → lambda-SBNUYEQE.js} +8 -8
- package/dist/{layout-3RTVYRRN.js → layout-IOMCOABO.js} +31 -30
- package/dist/{lint-ZDCVL7K4.js → lint-AQWHHMPS.js} +8 -8
- package/dist/{lintProject-4IVYXS5J.js → lintProject-5A4SCW3S.js} +2 -2
- package/dist/{list-SBCXW2UT.js → list-WKAJ5SP3.js} +2 -2
- package/dist/{login-VQ2LQ2YG.js → login-3ZDK5JOA.js} +4 -4
- package/dist/{manager-F34TSFV6.js → manager-F2YREC5X.js} +2 -2
- package/dist/{manager-ZRF6UXUM.js → manager-QYFYWZOK.js} +10 -10
- package/dist/{media-treatment-MFIP7Q4G.js → media-treatment-4OLWVHUY.js} +15 -15
- package/dist/{models-OU36YZCT.js → models-MR55FAUX.js} +14 -14
- package/dist/{motionShot-SHDUG7YR.js → motionShot-DC47S7BT.js} +17 -17
- package/dist/{normalize-audio-7RTPEV7Y.js → normalize-audio-M2TK4NG5.js} +8 -8
- package/dist/{open-HT4RG32S.js → open-YXWBWTKL.js} +15 -14
- package/dist/{parakeetRunner-DOVPZDCH.js → parakeetRunner-J6QR3GTG.js} +15 -15
- package/dist/{pipeline-NIVQ6E2G.js → pipeline-7MJ5H4SW.js} +10 -10
- package/dist/{play-HPX5SIRQ.js → play-S562STR4.js} +34 -24
- package/dist/{preflight-TNYC7EIS.js → preflight-QWGXMISC.js} +11 -11
- package/dist/{present-QSOIMURR.js → present-PGOHZT3L.js} +30 -20
- package/dist/{preview-WDO53XKK.js → preview-JU75H4QN.js} +32 -29
- package/dist/{producer-G27KP3IY.js → producer-H66OMZLW.js} +1 -1
- package/dist/{projectConfig-CP722RCM.js → projectConfig-COSP24YT.js} +7 -7
- package/dist/{publication-LCWVBLDN.js → publication-J3XYHPGB.js} +3 -3
- package/dist/{publish-BIY6LEZ2.js → publish-7GCCEPJZ.js} +11 -11
- package/dist/{remove-background-NPLZGLZ3.js → remove-background-WRCGIU32.js} +11 -11
- package/dist/{render-J57LAXB5.js → render-5J5PP3UK.js} +21 -21
- package/dist/{render-IHNAZXA2.js → render-QS3YJCBR.js} +6 -6
- package/dist/{render-HHUGUKG6.js → render-VUVTK2JM.js} +36 -36
- package/dist/{render-batch-FK26OQ5E.js → render-batch-Q2LQ3D4P.js} +6 -6
- package/dist/renderSetupWorker.js +5 -5
- package/dist/{resolver-FWJXO6DY.js → resolver-QCBWPRSC.js} +5 -5
- package/dist/{sherpa-BXFJU5EP.js → sherpa-IZ22SC5W.js} +14 -14
- package/dist/skills/hyperframes/references/types/launch.md +12 -2
- package/dist/skills/media-use/references/memory.md +4 -0
- package/dist/skills/media-use/scripts/lib/prefs-store.concurrent.test.mjs +173 -0
- package/dist/skills/media-use/scripts/lib/prefs-store.mjs +46 -28
- package/dist/skills/media-use/scripts/lib/prefs-store.test.mjs +56 -0
- package/dist/{skills-7XS4HZBC.js → skills-3RFMPMJA.js} +5 -5
- package/dist/{skillsUpdateCheck-MGU5KLR4.js → skillsUpdateCheck-DWBFVUBT.js} +3 -3
- package/dist/{snapshot-O2PMEMKH.js → snapshot-5PHA43DK.js} +54 -41
- package/dist/{src-Q4R2YPKA.js → src-36BQVJL3.js} +17 -11
- package/dist/{src-OQRG6BT7.js → src-4YJKYMNF.js} +11 -7
- package/dist/{staticProjectServer-6OY4VMO6.js → staticProjectServer-3XFB76XS.js} +18 -18
- package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +478 -0
- package/dist/studio/assets/{index-DpxSurnJ.js → index-BNuxGFZK.js} +1 -1
- package/dist/studio/assets/{index-DmST2bTJ.js → index-CwreIGoq.js} +132 -132
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-YSUTKHV7.js → studio-api-WL6EZ4KE.js} +11 -11
- package/dist/{studioSelectionClient-IUUPKUHZ.js → studioSelectionClient-D6VMGTKQ.js} +1 -1
- package/dist/{studioServer-APGEQIW5.js → studioServer-ZS5RA6U3.js} +66 -56
- package/dist/{telemetry-3B6EA5IU.js → telemetry-W3LRO3TB.js} +3 -3
- package/dist/{timeline-QWM6JS4B.js → timeline-BDO5DYWP.js} +19 -19
- package/dist/{tokens-TKLSP3OQ.js → tokens-47CEMYFV.js} +2 -2
- package/dist/{transcribe-XOPMHJLJ.js → transcribe-GEPVJO3A.js} +19 -19
- package/dist/{transcribe-PODOCWCC.js → transcribe-XF3NL6JI.js} +13 -13
- package/dist/{tts-5I2AJNLM.js → tts-QM4RFE7U.js} +1 -1
- package/dist/{updateCheck-RO6FPYMZ.js → updateCheck-BON6ZFYP.js} +2 -2
- package/dist/{upgrade-EVNIL5TZ.js → upgrade-KIF5Z4J3.js} +2 -2
- package/dist/{urlDownloader-F5HYFRA6.js → urlDownloader-UDRHVUWR.js} +7 -7
- package/dist/{validate-NXLFCHGG.js → validate-2OPSQT3W.js} +24 -24
- package/dist/{video-ECV2OIQN.js → video-ECWXMY4F.js} +8 -8
- package/dist/warmCheck.js +40 -38
- package/package.json +1 -1
- package/dist/chunk-YRQPU7SV.js +0 -3983
- package/dist/studio/assets/hyperframes-player-CttA4PW7.js +0 -478
- package/dist/{synthesize-PKTB5ATG.js → synthesize-QCRP3NI7.js} +4 -4
|
@@ -7,19 +7,19 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
ambiguousIssue,
|
|
9
9
|
loadBrowserScript
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FULMZCDW.js";
|
|
11
11
|
import {
|
|
12
12
|
auditClipDurations,
|
|
13
13
|
shouldIgnoreHttpError,
|
|
14
14
|
shouldIgnoreRequestFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6ZFDNEMY.js";
|
|
16
16
|
import {
|
|
17
17
|
serveStaticProjectHtml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2S263R6D.js";
|
|
19
19
|
import {
|
|
20
20
|
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
21
21
|
STUDIO_PREVIEW_MARK_META
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7SXL476O.js";
|
|
23
23
|
import {
|
|
24
24
|
artifactDirectory,
|
|
25
25
|
finishSnapshotRun
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
proxyVariantFor,
|
|
32
32
|
resolveProxies,
|
|
33
33
|
scanProjectMediaCodecMap
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-AXEEZKIL.js";
|
|
35
35
|
import {
|
|
36
36
|
AUDIT_SEEK_OPTIONS,
|
|
37
37
|
DEFAULT_ZOOM_PADDING_PX,
|
|
@@ -45,21 +45,21 @@ import {
|
|
|
45
45
|
seekCompositionTimeline,
|
|
46
46
|
seekInPage,
|
|
47
47
|
waitForPreferredSeekTarget
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-CMDVJP4T.js";
|
|
49
49
|
import {
|
|
50
50
|
BrowserCleanupError,
|
|
51
51
|
closeManagedBrowser,
|
|
52
52
|
onStopSignal
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-T6SD37JZ.js";
|
|
54
54
|
import {
|
|
55
55
|
findStageProxyBox
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-63DGZRZP.js";
|
|
57
57
|
import {
|
|
58
58
|
resolveAutoProxy
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-WHD5IAHI.js";
|
|
60
60
|
import {
|
|
61
61
|
injectTagsAtHeadStart
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-KLIPVNCO.js";
|
|
63
63
|
import {
|
|
64
64
|
normalizeErrorMessage
|
|
65
65
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -573,7 +573,7 @@ function proxyFailedDraft(message) {
|
|
|
573
573
|
return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
|
|
574
574
|
}
|
|
575
575
|
async function loadCheckHtmlWithDeferredMedia(dir) {
|
|
576
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
576
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-PFRVWYOO.js");
|
|
577
577
|
return withCapturePreviewMark(await bundleWithLocalizedFonts(dir));
|
|
578
578
|
}
|
|
579
579
|
function withCapturePreviewMark(html) {
|
|
@@ -635,7 +635,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
635
635
|
).map((draft) => runtimeFinding(draft, rootAnchor))
|
|
636
636
|
}));
|
|
637
637
|
const launchSettleMs = Date.now() - launchSettleStart;
|
|
638
|
-
const { analyzeClipMediaFit } = await import("./src-
|
|
638
|
+
const { analyzeClipMediaFit } = await import("./src-4YJKYMNF.js");
|
|
639
639
|
for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
|
|
640
640
|
drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
|
|
641
641
|
}
|
|
@@ -771,7 +771,7 @@ async function captureFindingCrops(project, options, requests, deadline) {
|
|
|
771
771
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
772
772
|
if (requests.length === 0) return { written: [], inspected: [] };
|
|
773
773
|
const inspector = requests.some((request) => request.inspect?.length) ? await prepareFindingInspector(project.dir, async (bundleOptions) => {
|
|
774
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
774
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-PFRVWYOO.js");
|
|
775
775
|
return withCapturePreviewMark(
|
|
776
776
|
await bundleWithLocalizedFonts(project.dir, void 0, bundleOptions)
|
|
777
777
|
);
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
hdrToSdrToneMapFilter,
|
|
15
15
|
isHeavyForPreview,
|
|
16
16
|
parseFirstFrameColour
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VW2LVMKB.js";
|
|
18
18
|
import {
|
|
19
19
|
decodeAuthoredAttribute,
|
|
20
20
|
scanHtmlOpeningTags
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OFRRUYBA.js";
|
|
22
22
|
import {
|
|
23
23
|
mkdirWithinProject,
|
|
24
24
|
realProjectRoot,
|
|
@@ -5,7 +5,7 @@ var require = __hf_createRequire(import.meta.url);
|
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
|
-
// ../studio-server/dist/chunk-
|
|
8
|
+
// ../studio-server/dist/chunk-2GPN2OSU.js
|
|
9
9
|
var CRF_MAX_BY_FORMAT = { mp4: 51, webm: 63 };
|
|
10
10
|
var VIDEO_BITRATE = /^\d+(\.\d+)?[kKmMgG]?$/;
|
|
11
11
|
var VIDEO_FRAME_FORMATS = ["auto", "jpg", "png"];
|
|
@@ -40,6 +40,12 @@ function parseEncoderOptions(body, format) {
|
|
|
40
40
|
const rate = parseRateControl(body, format);
|
|
41
41
|
if (!rate.ok) return rate;
|
|
42
42
|
const options = { ...rate.options };
|
|
43
|
+
if (isSet(body.gifLoop)) {
|
|
44
|
+
if (typeof body.gifLoop !== "number" || !Number.isInteger(body.gifLoop) || body.gifLoop < 0 || body.gifLoop > 65535) {
|
|
45
|
+
return { ok: false, error: "gifLoop must be an integer from 0 to 65535" };
|
|
46
|
+
}
|
|
47
|
+
if (format === "gif") options.gifLoop = body.gifLoop;
|
|
48
|
+
}
|
|
43
49
|
if (isSet(body.videoFrameFormat)) {
|
|
44
50
|
if (!oneOf(body.videoFrameFormat, VIDEO_FRAME_FORMATS)) {
|
|
45
51
|
return {
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QVTCXN42.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-ZTZA4UWZ.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-RDDVQSNQ.js";
|
|
33
33
|
import {
|
|
34
34
|
getFreeDiskMb,
|
|
35
35
|
getShmSizeMb,
|
|
@@ -41,14 +41,14 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
getUpdateMeta,
|
|
43
43
|
withMeta
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-XOM3XTJ4.js";
|
|
45
45
|
import {
|
|
46
46
|
CONFIG_PATH,
|
|
47
47
|
withFileLock
|
|
48
48
|
} from "./chunk-PSX5SF2N.js";
|
|
49
49
|
import {
|
|
50
50
|
VERSION
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-E2ZZSDDQ.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeErrorMessage
|
|
54
54
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -234,7 +234,7 @@ function checkEnvironment() {
|
|
|
234
234
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
235
235
|
}
|
|
236
236
|
async function checkWhisper() {
|
|
237
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
237
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-QYFYWZOK.js");
|
|
238
238
|
const result = findWhisper();
|
|
239
239
|
if (result) {
|
|
240
240
|
return { ok: true, detail: result.executablePath };
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-E2ZZSDDQ.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|
|
@@ -8,31 +8,31 @@ import {
|
|
|
8
8
|
launchManagedBrowser,
|
|
9
9
|
resolveManagedGpuMode,
|
|
10
10
|
rethrowAfterBrowserCleanup
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-T6SD37JZ.js";
|
|
12
12
|
import {
|
|
13
13
|
gotoWhenSent
|
|
14
14
|
} from "./chunk-MOEGCMKI.js";
|
|
15
15
|
import {
|
|
16
16
|
pageNavigationTimeoutMs,
|
|
17
17
|
windowsChromeCrashRemediation
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QL4ZYSIB.js";
|
|
19
19
|
import {
|
|
20
20
|
oneProcessOverPipe
|
|
21
21
|
} from "./chunk-DKPNNYBZ.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveCompositionViewportFromHtml
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-63DGZRZP.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveLocalBrowserGpuMode,
|
|
27
27
|
resolveLocalWebGpu
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-42KN6I6A.js";
|
|
29
29
|
import {
|
|
30
30
|
c
|
|
31
31
|
} from "./chunk-ZTZA4UWZ.js";
|
|
32
32
|
import {
|
|
33
33
|
assertWebGpuAdapterAvailable,
|
|
34
34
|
compositionRequiresWebGpu
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RDDVQSNQ.js";
|
|
36
36
|
import {
|
|
37
37
|
normalizeErrorMessage
|
|
38
38
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -140,7 +140,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
140
140
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
141
141
|
});
|
|
142
142
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
143
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
143
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-4YJKYMNF.js");
|
|
144
144
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
145
145
|
await waitForImagesReady(
|
|
146
146
|
page,
|
|
@@ -189,7 +189,7 @@ async function installPageFunctionGuard(page) {
|
|
|
189
189
|
async function openSettledCompositionPage(html, url, options) {
|
|
190
190
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
191
191
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
192
|
-
const answer = (await import("./staticProjectServer-
|
|
192
|
+
const answer = (await import("./staticProjectServer-3XFB76XS.js")).inProcessAnswer(url);
|
|
193
193
|
const noListen = answer !== void 0;
|
|
194
194
|
let chromeBrowser;
|
|
195
195
|
try {
|
|
@@ -200,7 +200,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
200
200
|
options.onBrowserReady?.();
|
|
201
201
|
const page = await chromeBrowser.newPage();
|
|
202
202
|
await installPageFunctionGuard(page);
|
|
203
|
-
const { installMediaRenderIdBridge } = await import("./src-
|
|
203
|
+
const { installMediaRenderIdBridge } = await import("./src-4YJKYMNF.js");
|
|
204
204
|
await installMediaRenderIdBridge(page);
|
|
205
205
|
await page.setViewport(viewport);
|
|
206
206
|
if (answer) await answerPageInProcess(page, url, answer);
|
|
@@ -216,10 +216,10 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
216
216
|
}
|
|
217
217
|
async function launchCompositionBrowser(html, noListen, options) {
|
|
218
218
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
219
|
-
const { ensureBrowser, findSystemBrowser } = await import("./manager-
|
|
219
|
+
const { ensureBrowser, findSystemBrowser } = await import("./manager-F2YREC5X.js");
|
|
220
220
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
221
221
|
const puppeteer = await import("puppeteer-core");
|
|
222
|
-
const { buildChromeArgs } = await import("./src-
|
|
222
|
+
const { buildChromeArgs } = await import("./src-4YJKYMNF.js");
|
|
223
223
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
224
224
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
225
225
|
let softwareWebGpu = false;
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
emitWords,
|
|
22
22
|
getPreparedWavDurationSeconds,
|
|
23
23
|
prepareWav
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-X5HHHFTX.js";
|
|
25
25
|
import {
|
|
26
26
|
stoppedByCancelSignal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-FNNGQ3DB.js";
|
|
28
28
|
import {
|
|
29
29
|
verifies
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2RT7MXFL.js";
|
|
31
31
|
import {
|
|
32
32
|
PARAKEET_MODEL_LABEL,
|
|
33
33
|
SHERPA_ERROR_PREFIX,
|
|
@@ -10,22 +10,23 @@ import {
|
|
|
10
10
|
reportArtifacts,
|
|
11
11
|
withProjectLock
|
|
12
12
|
} from "./chunk-PLGGKTCB.js";
|
|
13
|
-
import {
|
|
14
|
-
captureArtifactRevision
|
|
15
|
-
} from "./chunk-2756LXGY.js";
|
|
16
|
-
import {
|
|
17
|
-
loadProducer
|
|
18
|
-
} from "./chunk-VCBZOU7U.js";
|
|
19
|
-
import {
|
|
20
|
-
trackLintRun
|
|
21
|
-
} from "./chunk-7PRESGFT.js";
|
|
22
13
|
import {
|
|
23
14
|
beginCheckSnapshots,
|
|
24
15
|
checkSnapshotDirectory,
|
|
25
16
|
finishCheckSnapshots,
|
|
26
17
|
preResolveHostileMediaProxies,
|
|
27
18
|
rectToBbox
|
|
28
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AJSU6KGS.js";
|
|
20
|
+
import {
|
|
21
|
+
collectProjectMedia,
|
|
22
|
+
mediaPath
|
|
23
|
+
} from "./chunk-X7RXXBYM.js";
|
|
24
|
+
import {
|
|
25
|
+
captureArtifactRevision
|
|
26
|
+
} from "./chunk-AAX2A7LQ.js";
|
|
27
|
+
import {
|
|
28
|
+
trackLintRun
|
|
29
|
+
} from "./chunk-UMUVGNOH.js";
|
|
29
30
|
import {
|
|
30
31
|
CONTENT_OVERLAP_HELD_ERROR_MS,
|
|
31
32
|
DEFAULT_MAX_STATIC_SEC,
|
|
@@ -38,21 +39,24 @@ import {
|
|
|
38
39
|
dedupeLayoutIssues,
|
|
39
40
|
evaluateMotion,
|
|
40
41
|
findMotionSpec,
|
|
41
|
-
findingElementKey,
|
|
42
|
-
formatFindingTimes,
|
|
43
42
|
formatLayoutIssue,
|
|
44
43
|
frozenSpans,
|
|
45
|
-
groupSampledFindings,
|
|
46
44
|
limitLayoutIssues,
|
|
47
45
|
longestContiguousRun,
|
|
48
46
|
longestContiguousRunMs,
|
|
49
47
|
mergeSampleTimes,
|
|
50
48
|
parseAt,
|
|
51
49
|
readMotionSpec
|
|
52
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-FULMZCDW.js";
|
|
51
|
+
import {
|
|
52
|
+
findingAtRoot,
|
|
53
|
+
findingElementKey,
|
|
54
|
+
formatFindingTimes,
|
|
55
|
+
groupSampledFindings
|
|
56
|
+
} from "./chunk-TQBQYO4L.js";
|
|
53
57
|
import {
|
|
54
58
|
resolveProject
|
|
55
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-HEP5XMXV.js";
|
|
56
60
|
import {
|
|
57
61
|
recordArtifacts
|
|
58
62
|
} from "./chunk-XDMZY3H7.js";
|
|
@@ -61,17 +65,17 @@ import {
|
|
|
61
65
|
closeManagedBrowser,
|
|
62
66
|
onStopSignal,
|
|
63
67
|
registerBrowserSessionCleanup
|
|
64
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-T6SD37JZ.js";
|
|
65
69
|
import {
|
|
66
70
|
withRemainingBudget
|
|
67
71
|
} from "./chunk-EHSBBBR2.js";
|
|
68
72
|
import {
|
|
69
73
|
resolveLocalBrowserGpuMode
|
|
70
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-42KN6I6A.js";
|
|
71
75
|
import {
|
|
72
76
|
trackCheckReport,
|
|
73
77
|
trackCommandFailure
|
|
74
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-FMWACL3L.js";
|
|
75
79
|
import {
|
|
76
80
|
swallowedFlagUsageError
|
|
77
81
|
} from "./chunk-HTIUNMTP.js";
|
|
@@ -91,17 +95,14 @@ import {
|
|
|
91
95
|
import {
|
|
92
96
|
extractMediaMetadata,
|
|
93
97
|
findHdrAutoPromotion
|
|
94
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-RDDVQSNQ.js";
|
|
95
99
|
import {
|
|
96
100
|
lintProject,
|
|
97
101
|
shouldBlockRender
|
|
98
|
-
} from "./chunk-
|
|
99
|
-
import {
|
|
100
|
-
resolveProjectRelativeSrc
|
|
101
|
-
} from "./chunk-PBNWRWKA.js";
|
|
102
|
+
} from "./chunk-2MLMO25E.js";
|
|
102
103
|
import {
|
|
103
104
|
withMeta
|
|
104
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-XOM3XTJ4.js";
|
|
105
106
|
import {
|
|
106
107
|
normalizeErrorMessage
|
|
107
108
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -724,28 +725,13 @@ function round(value) {
|
|
|
724
725
|
}
|
|
725
726
|
|
|
726
727
|
// src/utils/hdrPromotion.ts
|
|
727
|
-
async function
|
|
728
|
-
const { bundleToSingleHtml } = await import("./compiler-LIJYMSEL.js");
|
|
729
|
-
return bundleToSingleHtml(projectDir);
|
|
730
|
-
}
|
|
731
|
-
async function collectBundledRenderMedia(html) {
|
|
732
|
-
const producer = await loadProducer();
|
|
733
|
-
if (!producer.collectRenderMedia) throw new Error("Render media collector unavailable");
|
|
734
|
-
return producer.collectRenderMedia(html);
|
|
735
|
-
}
|
|
736
|
-
var DEFAULT_DEPENDENCIES = {
|
|
737
|
-
bundleHtml: bundleProjectHtml,
|
|
738
|
-
collectMedia: collectBundledRenderMedia
|
|
739
|
-
};
|
|
740
|
-
async function inspectHdrAutoPromotion(project, extractMetadata = extractMediaMetadata, dependencies = DEFAULT_DEPENDENCIES) {
|
|
728
|
+
async function inspectHdrAutoPromotion(project, media, extractMetadata = extractMediaMetadata) {
|
|
741
729
|
const assets = [];
|
|
742
|
-
const media = await dependencies.collectMedia(await dependencies.bundleHtml(project.dir));
|
|
743
730
|
for (const { src } of [...media.videos, ...media.images]) {
|
|
744
|
-
const path = /^https?:\/\//i.test(src) ? src : resolveProjectRelativeSrc(src, project.dir, project.dir);
|
|
745
731
|
try {
|
|
746
732
|
assets.push({
|
|
747
733
|
asset: src,
|
|
748
|
-
colorSpace: (await extractMetadata(
|
|
734
|
+
colorSpace: (await extractMetadata(mediaPath(src, project.dir))).colorSpace
|
|
749
735
|
});
|
|
750
736
|
} catch {
|
|
751
737
|
continue;
|
|
@@ -1834,7 +1820,7 @@ async function runAuditGrid(driver, options, motion, helpers = Promise.resolve([
|
|
|
1834
1820
|
skipped: false
|
|
1835
1821
|
};
|
|
1836
1822
|
}
|
|
1837
|
-
async function runCheckPipeline(project, options, dependencies =
|
|
1823
|
+
async function runCheckPipeline(project, options, dependencies = DEFAULT_DEPENDENCIES) {
|
|
1838
1824
|
beginCheckSnapshots(project.dir);
|
|
1839
1825
|
const prelaunched = dependencies.prelaunchBrowser?.(project, options).catch(() => void 0);
|
|
1840
1826
|
try {
|
|
@@ -1851,15 +1837,7 @@ async function runCheckPipeline(project, options, dependencies = DEFAULT_DEPENDE
|
|
|
1851
1837
|
...getRunId() !== void 0 ? { runId: getRunId() } : {}
|
|
1852
1838
|
});
|
|
1853
1839
|
const lint = buildLintSection(lintResult);
|
|
1854
|
-
|
|
1855
|
-
let hdrInspection = "available";
|
|
1856
|
-
try {
|
|
1857
|
-
hdrPromotion = await (dependencies.inspectHdrAutoPromotion ?? inspectHdrAutoPromotion)(
|
|
1858
|
-
project
|
|
1859
|
-
);
|
|
1860
|
-
} catch {
|
|
1861
|
-
hdrInspection = "unavailable";
|
|
1862
|
-
}
|
|
1840
|
+
const { hdr, audio } = await inspectProjectMedia(project, dependencies);
|
|
1863
1841
|
if (shouldBlockRender(true, false, lintResult.totalErrors, lintResult.totalWarnings)) {
|
|
1864
1842
|
return buildReport(
|
|
1865
1843
|
options,
|
|
@@ -1868,8 +1846,9 @@ async function runCheckPipeline(project, options, dependencies = DEFAULT_DEPENDE
|
|
|
1868
1846
|
{ kind: "none" },
|
|
1869
1847
|
[],
|
|
1870
1848
|
[],
|
|
1871
|
-
|
|
1872
|
-
|
|
1849
|
+
hdr.autoPromotion,
|
|
1850
|
+
hdr.inspection,
|
|
1851
|
+
await audio
|
|
1873
1852
|
);
|
|
1874
1853
|
}
|
|
1875
1854
|
const motion = dependencies.resolveMotionSpec(project.dir);
|
|
@@ -1904,8 +1883,9 @@ async function runCheckPipeline(project, options, dependencies = DEFAULT_DEPENDE
|
|
|
1904
1883
|
motion,
|
|
1905
1884
|
specFindings,
|
|
1906
1885
|
snapshotFiles,
|
|
1907
|
-
|
|
1908
|
-
|
|
1886
|
+
hdr.autoPromotion,
|
|
1887
|
+
hdr.inspection,
|
|
1888
|
+
await audio
|
|
1909
1889
|
);
|
|
1910
1890
|
outcome = {
|
|
1911
1891
|
kind: "report",
|
|
@@ -2108,7 +2088,7 @@ function buildLintSection(result) {
|
|
|
2108
2088
|
);
|
|
2109
2089
|
return { ...section(findings), filesScanned: result.results.length };
|
|
2110
2090
|
}
|
|
2111
|
-
function buildReport(options, lint, browser, motion, extraMotionFindings, snapshotFiles, hdrPromotion = null, hdrInspection = "available") {
|
|
2091
|
+
function buildReport(options, lint, browser, motion, extraMotionFindings, snapshotFiles, hdrPromotion = null, hdrInspection = "available", audioFindings = []) {
|
|
2112
2092
|
const shaping = options.components?.length ? { ...options, maxIssues: Number.MAX_SAFE_INTEGER } : options;
|
|
2113
2093
|
const layout = shapeLayoutSection(browser.layoutIssues, browser, shaping);
|
|
2114
2094
|
const shapedMotion = shapeLayoutFindings(browser.motionIssues, shaping);
|
|
@@ -2117,8 +2097,9 @@ function buildReport(options, lint, browser, motion, extraMotionFindings, snapsh
|
|
|
2117
2097
|
const motionSection = section(motionFindings);
|
|
2118
2098
|
const contrastSection = section(browser.contrastFindings);
|
|
2119
2099
|
const craftSection = section(browser.craft.findings);
|
|
2120
|
-
const
|
|
2121
|
-
const
|
|
2100
|
+
const audioSection = section(audioFindings);
|
|
2101
|
+
const warningCount = lint.warningCount + audioSection.warningCount + runtime.warningCount + layout.warningCount + motionSection.warningCount + contrastSection.warningCount + craftSection.warningCount;
|
|
2102
|
+
const errorCount = lint.errorCount + audioSection.errorCount + runtime.errorCount + layout.errorCount + motionSection.errorCount + contrastSection.errorCount + craftSection.errorCount;
|
|
2122
2103
|
const strictWarningCount = warningCount - craftSection.warningCount;
|
|
2123
2104
|
const report = {
|
|
2124
2105
|
ok: errorCount === 0 && (!options.strict || strictWarningCount === 0),
|
|
@@ -2146,6 +2127,7 @@ function buildReport(options, lint, browser, motion, extraMotionFindings, snapsh
|
|
|
2146
2127
|
step: browser.craft.step,
|
|
2147
2128
|
samples: browser.craft.samples
|
|
2148
2129
|
},
|
|
2130
|
+
audio: audioSection,
|
|
2149
2131
|
hdr: { autoPromotion: hdrPromotion, inspection: hdrInspection },
|
|
2150
2132
|
snapshots: {
|
|
2151
2133
|
enabled: options.snapshots,
|
|
@@ -2190,7 +2172,7 @@ function filterComponentReport(report, options) {
|
|
|
2190
2172
|
components: options.components,
|
|
2191
2173
|
hiddenFindings: 0,
|
|
2192
2174
|
notes: [
|
|
2193
|
-
"Static lint and unscoped runtime failures remain project-wide.",
|
|
2175
|
+
"Static lint, audio and unscoped runtime failures remain project-wide.",
|
|
2194
2176
|
...options.range ? [
|
|
2195
2177
|
"Whole-timeline motion assertions, frozen-sweep detection and craft warnings are skipped for range checks."
|
|
2196
2178
|
] : []
|
|
@@ -2293,18 +2275,6 @@ function runtimeFailure(error, code = "check_runtime_failure") {
|
|
|
2293
2275
|
error instanceof CheckDeadlineError ? error.sourceFile ?? "index.html" : "index.html"
|
|
2294
2276
|
);
|
|
2295
2277
|
}
|
|
2296
|
-
function findingAtRoot(code, severity, message, sourceFile) {
|
|
2297
|
-
return {
|
|
2298
|
-
code,
|
|
2299
|
-
severity,
|
|
2300
|
-
message,
|
|
2301
|
-
selector: "[data-composition-id]",
|
|
2302
|
-
dataAttributes: {},
|
|
2303
|
-
sourceFile,
|
|
2304
|
-
bbox: ZERO_BBOX2,
|
|
2305
|
-
time: 0
|
|
2306
|
-
};
|
|
2307
|
-
}
|
|
2308
2278
|
function failureReport(options, finding) {
|
|
2309
2279
|
const lint = { ...section([]), filesScanned: 0 };
|
|
2310
2280
|
const browser = emptyBrowserResult();
|
|
@@ -2330,7 +2300,7 @@ function resolveMotionSpec(projectDir) {
|
|
|
2330
2300
|
};
|
|
2331
2301
|
}
|
|
2332
2302
|
async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
|
|
2333
|
-
const module = await import("./checkBrowser-
|
|
2303
|
+
const module = await import("./checkBrowser-JW74KWTF.js");
|
|
2334
2304
|
return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
|
|
2335
2305
|
}
|
|
2336
2306
|
var adoptedBrowser;
|
|
@@ -2344,7 +2314,7 @@ async function prelaunchBrowser(project, options) {
|
|
|
2344
2314
|
if (adopted) return adopted;
|
|
2345
2315
|
const html = await readFile(project.indexPath, "utf8").catch(() => void 0);
|
|
2346
2316
|
if (html === void 0) return void 0;
|
|
2347
|
-
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-
|
|
2317
|
+
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-YLYVGNN2.js");
|
|
2348
2318
|
return prelaunchCompositionBrowser(html, options.browserGpuMode);
|
|
2349
2319
|
}
|
|
2350
2320
|
async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
@@ -2356,14 +2326,46 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
|
2356
2326
|
return relative(projectDir, path);
|
|
2357
2327
|
}
|
|
2358
2328
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
2359
|
-
const module = await import("./checkBrowser-
|
|
2329
|
+
const module = await import("./checkBrowser-JW74KWTF.js");
|
|
2360
2330
|
return module.captureFindingFrames(project, options, requests, deadline);
|
|
2361
2331
|
}
|
|
2362
2332
|
async function captureFindingCrops(project, options, requests, deadline) {
|
|
2363
|
-
const module = await import("./checkBrowser-
|
|
2333
|
+
const module = await import("./checkBrowser-JW74KWTF.js");
|
|
2364
2334
|
return module.captureFindingCrops(project, options, requests, deadline);
|
|
2365
2335
|
}
|
|
2366
|
-
|
|
2336
|
+
async function inspectProjectMedia(project, dependencies) {
|
|
2337
|
+
const media = (dependencies.collectMedia ?? collectMedia)(project);
|
|
2338
|
+
let hdr;
|
|
2339
|
+
try {
|
|
2340
|
+
const promotion = (dependencies.inspectHdrAutoPromotion ?? inspectHdrAutoPromotion)(
|
|
2341
|
+
project,
|
|
2342
|
+
await media
|
|
2343
|
+
);
|
|
2344
|
+
hdr = { autoPromotion: await promotion, inspection: "available" };
|
|
2345
|
+
} catch {
|
|
2346
|
+
hdr = { autoPromotion: null, inspection: "unavailable" };
|
|
2347
|
+
}
|
|
2348
|
+
const audio = media.then((found) => (dependencies.inspectAudio ?? inspectAudio)(project, found)).catch((error) => audioCheckFailure(project, error));
|
|
2349
|
+
return { hdr, audio };
|
|
2350
|
+
}
|
|
2351
|
+
function collectMedia(project) {
|
|
2352
|
+
return collectProjectMedia(project.dir);
|
|
2353
|
+
}
|
|
2354
|
+
async function inspectAudio(project, media) {
|
|
2355
|
+
const module = await import("./checkAudio-2NRR3VHQ.js");
|
|
2356
|
+
return module.inspectAudio(project.dir, relative(project.dir, project.indexPath), media);
|
|
2357
|
+
}
|
|
2358
|
+
function audioCheckFailure(project, error) {
|
|
2359
|
+
return [
|
|
2360
|
+
findingAtRoot(
|
|
2361
|
+
"audio_check_unavailable",
|
|
2362
|
+
"info",
|
|
2363
|
+
`Audio was not checked: ${normalizeErrorMessage(error)}`,
|
|
2364
|
+
relative(project.dir, project.indexPath)
|
|
2365
|
+
)
|
|
2366
|
+
];
|
|
2367
|
+
}
|
|
2368
|
+
var DEFAULT_DEPENDENCIES = {
|
|
2367
2369
|
lintProject,
|
|
2368
2370
|
resolveMotionSpec,
|
|
2369
2371
|
runBrowserCheck,
|
|
@@ -2371,7 +2373,9 @@ var DEFAULT_DEPENDENCIES2 = {
|
|
|
2371
2373
|
writeSnapshot,
|
|
2372
2374
|
captureFindingCrops,
|
|
2373
2375
|
captureFindingFrames,
|
|
2374
|
-
|
|
2376
|
+
collectMedia,
|
|
2377
|
+
inspectHdrAutoPromotion,
|
|
2378
|
+
inspectAudio
|
|
2375
2379
|
};
|
|
2376
2380
|
|
|
2377
2381
|
// src/commands/check.ts
|
|
@@ -2400,7 +2404,7 @@ var DEFAULT_COMMAND_DEPENDENCIES = {
|
|
|
2400
2404
|
}
|
|
2401
2405
|
},
|
|
2402
2406
|
async prepareMedia(project, options) {
|
|
2403
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
2407
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-PFRVWYOO.js");
|
|
2404
2408
|
const html = await bundleWithLocalizedFonts(project.dir);
|
|
2405
2409
|
return (await preResolveHostileMediaProxies(project.dir, html, options.autoProxy)).files;
|
|
2406
2410
|
},
|
|
@@ -2884,6 +2888,7 @@ function printHumanReport(report) {
|
|
|
2884
2888
|
printSection("Motion", report.motion);
|
|
2885
2889
|
printContrastSection(report);
|
|
2886
2890
|
printCraftSection(report);
|
|
2891
|
+
printSection("Audio", report.audio);
|
|
2887
2892
|
printSnapshotSection(report);
|
|
2888
2893
|
console.log();
|
|
2889
2894
|
const label = report.ok ? c.success("Check passed") : c.error("Check failed");
|
|
@@ -7,29 +7,29 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CIHW6VM2.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-WHD5IAHI.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveItemWithDependencies,
|
|
20
20
|
resolveItemsByTag
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3B2DBUQX.js";
|
|
22
22
|
import {
|
|
23
23
|
InvalidVariableValuesError,
|
|
24
24
|
prepareItem,
|
|
25
25
|
publishItem
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-Z3XXLTVB.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_REGISTRY_URL
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-4DGLKB2H.js";
|
|
30
30
|
import {
|
|
31
31
|
trackRegistryItemAdded
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-FMWACL3L.js";
|
|
33
33
|
import {
|
|
34
34
|
defineCommand
|
|
35
35
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-ZTZA4UWZ.js";
|
|
42
42
|
import {
|
|
43
43
|
ITEM_TYPE_DIRS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-VW2LVMKB.js";
|
|
45
45
|
import {
|
|
46
46
|
isProjectRootMissing,
|
|
47
47
|
realpath
|
|
@@ -74,7 +74,7 @@ function detectProvider() {
|
|
|
74
74
|
];
|
|
75
75
|
const cmd = process.platform === "win32" ? "where" : "which";
|
|
76
76
|
for (const p of candidates) {
|
|
77
|
-
const result = spawnSync(cmd, [p.cmd], { stdio: "ignore" });
|
|
77
|
+
const result = spawnSync(cmd, [p.cmd], { stdio: "ignore", windowsHide: true });
|
|
78
78
|
if (result.status === 0) return p;
|
|
79
79
|
}
|
|
80
80
|
return void 0;
|
|
@@ -89,7 +89,8 @@ function copyToClipboard(text) {
|
|
|
89
89
|
input: text,
|
|
90
90
|
encoding: "utf-8",
|
|
91
91
|
stdio: ["pipe", "ignore", "ignore"],
|
|
92
|
-
timeout: COPY_TIMEOUT_MS
|
|
92
|
+
timeout: COPY_TIMEOUT_MS,
|
|
93
|
+
windowsHide: true
|
|
93
94
|
});
|
|
94
95
|
return res.status === 0;
|
|
95
96
|
} catch {
|