hyperframes 0.9.23 → 0.9.25
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-5FVLVG3H.js → add-FIQ7X2UM.js} +11 -11
- package/dist/{agentPromptGenerator-6T6SBKKW.js → agentPromptGenerator-BZDDAACV.js} +5 -5
- package/dist/{animatedGifPrep-IM272TFX.js → animatedGifPrep-QHKEBSEG.js} +5 -5
- package/dist/api.js +26 -26
- package/dist/{asset-3M2XBSS7.js → asset-GI2GUGHA.js} +2 -2
- package/dist/{assetCataloger-RVMGNGZ2.js → assetCataloger-UVEETMYY.js} +6 -6
- package/dist/{audio-JFO5YKQI.js → audio-XS7JJBFM.js} +11 -11
- package/dist/{auth-SDZQ4GPW.js → auth-4HA6L5RV.js} +2 -2
- package/dist/{autoUpdate-R6DLK2HV.js → autoUpdate-P2WTCGD5.js} +2 -2
- package/dist/{avatars-SZFBWUSM.js → avatars-ZUEC4VQX.js} +9 -9
- package/dist/{backgroundChecks-TMXA5OCH.js → backgroundChecks-23MDYVVG.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-ZY5OTISU.js → batchRender-BN4H7CRS.js} +3 -3
- package/dist/{beats-3NPXLTXG.js → beats-BPMY6WVU.js} +7 -7
- package/dist/{benchmark-RCHSGEWW.js → benchmark-MTWV4OKR.js} +8 -8
- package/dist/{billing-5Q5VDXB7.js → billing-O2UNQICC.js} +10 -10
- package/dist/{browser-HRTWQ36R.js → browser-G762CJHD.js} +5 -5
- package/dist/{bundleWithLocalizedFonts-YXEDVGWO.js → bundleWithLocalizedFonts-GR4BQHS5.js} +1 -1
- package/dist/{capture-J3BHS724.js → capture-H6DPERYY.js} +3 -3
- package/dist/{capture-J57DJPIQ.js → capture-QKS2OOSF.js} +12 -12
- package/dist/{captureCompositionFrame-2CWS67BU.js → captureCompositionFrame-PSLV3E4Y.js} +11 -11
- package/dist/{catalog-JYTILXQY.js → catalog-J5P4XZOY.js} +11 -11
- package/dist/{catch-up-WYQ6LBTZ.js → catch-up-GAQ7GZUY.js} +6 -6
- package/dist/{check-CSQWXWZ5.js → check-KXMAFDHW.js} +36 -36
- package/dist/{checkAudio-KJC7BJRT.js → checkAudio-CHPYLUDB.js} +8 -8
- package/dist/{checkBrowser-FJANSFJ4.js → checkBrowser-BBOMHS32.js} +30 -30
- package/dist/{chunk-CBBQ74SP.js → chunk-254HMQ7B.js} +1 -1
- package/dist/{chunk-D67EC7S4.js → chunk-2GHQMVYE.js} +1 -1
- package/dist/{chunk-SWY63JRI.js → chunk-2L6V6535.js} +2 -2
- package/dist/{chunk-UNZXNS7D.js → chunk-2OKM5V4N.js} +4 -4
- package/dist/{chunk-2QPVEA4S.js → chunk-2VW2MOD2.js} +3 -3
- package/dist/{chunk-MZHGYNPI.js → chunk-2ZHD474U.js} +2 -2
- package/dist/{chunk-4QRTTXE2.js → chunk-32VBJHBI.js} +1 -1
- package/dist/{chunk-CNFOXC44.js → chunk-3ARWVNNK.js} +3 -3
- package/dist/{chunk-Q767J52D.js → chunk-3DYZRZFI.js} +2 -2
- package/dist/{chunk-PMDFDSFX.js → chunk-3LC6GDR7.js} +1 -1
- package/dist/{chunk-S3ONFBQA.js → chunk-4FUWA4QW.js} +2 -2
- package/dist/{chunk-LW2BWM3V.js → chunk-4HOYUG34.js} +2 -2
- package/dist/{chunk-A3JYGVB5.js → chunk-6BI4ESZH.js} +5 -5
- package/dist/{chunk-4K2DG4ZA.js → chunk-6BSSCAC3.js} +12 -12
- package/dist/{chunk-LNKZDCL4.js → chunk-6TDAOOGV.js} +1 -1
- package/dist/{chunk-HZA3FFBP.js → chunk-7GILET6T.js} +1 -1
- package/dist/{chunk-N2WDPI5T.js → chunk-7LUVPCIB.js} +1 -1
- package/dist/{chunk-ZUVIMTCY.js → chunk-7TMYYSPM.js} +1 -1
- package/dist/{chunk-2TNX4CF4.js → chunk-7XQENYJK.js} +1 -1
- package/dist/{chunk-4UJLMP7R.js → chunk-ANURCSEW.js} +1 -1
- package/dist/{chunk-TGYIGRDT.js → chunk-AWFYCJXZ.js} +7 -7
- package/dist/{chunk-RKINAT4N.js → chunk-BHG3PLDI.js} +1 -1
- package/dist/{chunk-SHJKPHKH.js → chunk-BVOTSOAS.js} +2 -2
- package/dist/{chunk-CG22POZ7.js → chunk-CS7DHCRZ.js} +2 -2
- package/dist/{chunk-5SNYXKDV.js → chunk-D6AC6N7X.js} +8 -8
- package/dist/{chunk-DUKFDLEL.js → chunk-DBEE7F7W.js} +30 -35
- package/dist/{chunk-LW6NSV6Q.js → chunk-DEU4JCIF.js} +1 -1
- package/dist/{chunk-N5PMTGPJ.js → chunk-DIWUWYQZ.js} +1 -1
- package/dist/{chunk-7ISFRXRU.js → chunk-DL7R6DWU.js} +2 -2
- package/dist/{chunk-OBZ4BBPD.js → chunk-DUOZSML3.js} +14 -14
- package/dist/{chunk-LPVWQDWN.js → chunk-EARKC4ZO.js} +1 -1
- package/dist/{chunk-B5TFX2NQ.js → chunk-EBPXSOT7.js} +2 -2
- package/dist/{chunk-VEGK6XIU.js → chunk-ELMZM2QX.js} +1 -1
- package/dist/{chunk-XOLEQLVG.js → chunk-FEHGZTE5.js} +2 -2
- package/dist/{chunk-AK5BLSZR.js → chunk-FPQAQS64.js} +1 -1
- package/dist/{chunk-K5XLYJCM.js → chunk-FQOOOFTF.js} +1 -1
- package/dist/{chunk-TLWBHLHW.js → chunk-FSCPSJBA.js} +1 -1
- package/dist/{chunk-WD56Y5HB.js → chunk-GDGHSVGP.js} +3 -3
- package/dist/{chunk-3ZGWXGIG.js → chunk-GXYGI5FG.js} +2 -2
- package/dist/{chunk-YICA47KJ.js → chunk-J2ZNX2OY.js} +3 -3
- package/dist/{chunk-CNGL7ALP.js → chunk-J4CMGJ6U.js} +1 -1
- package/dist/{chunk-6L42JK4X.js → chunk-JNU4OO4L.js} +2 -2
- package/dist/{chunk-V5ZFTU5Q.js → chunk-JPCUTMUU.js} +7 -7
- package/dist/{chunk-PDBCKBWX.js → chunk-LXFCCGHN.js} +10 -10
- package/dist/{chunk-CNG7GWYD.js → chunk-M2PGYJG3.js} +1 -1
- package/dist/{chunk-F4SVJCHT.js → chunk-MCDUWW36.js} +2 -2
- package/dist/{chunk-TECE5Z2E.js → chunk-MGQTL7M3.js} +1 -1
- package/dist/{chunk-BRHU7HC7.js → chunk-MS6S66B6.js} +4 -4
- package/dist/{chunk-WKZFMRR5.js → chunk-NAI4ID2Q.js} +7 -7
- package/dist/{chunk-JBF772XP.js → chunk-NGO2HYW6.js} +5 -5
- package/dist/{chunk-GTP3UFGU.js → chunk-NHSCE2XY.js} +2 -2
- package/dist/{chunk-4ABQ3BFW.js → chunk-NJ3H7N4T.js} +1 -1
- package/dist/{chunk-DENV5KPG.js → chunk-NSCS6HX2.js} +2 -2
- package/dist/chunk-OQXVY3HI.js +5035 -0
- package/dist/{chunk-4FJQ2VO5.js → chunk-OUQO3DKO.js} +2 -2
- package/dist/{chunk-LLD6KXIY.js → chunk-PB3N3LBM.js} +1 -1
- package/dist/{chunk-566KI2Y5.js → chunk-Q5JX74IM.js} +2 -2
- package/dist/{chunk-LCZBA6U6.js → chunk-QV3RFTLC.js} +1 -1
- package/dist/{chunk-526IPUN7.js → chunk-RT6MI3TZ.js} +1 -1
- package/dist/{chunk-MI6H3QQ7.js → chunk-S4KPXQ6H.js} +3 -3
- package/dist/{chunk-4UKKJMIY.js → chunk-SG7NQ7BI.js} +1 -1
- package/dist/{chunk-AHSKMVRM.js → chunk-T6QQOGLJ.js} +1 -1
- package/dist/{chunk-3AMBM4FR.js → chunk-TPBDABHP.js} +10 -10
- package/dist/{chunk-NWRCURZ7.js → chunk-TXMXWJNZ.js} +2 -2
- package/dist/{chunk-T4TE2MGA.js → chunk-UHOZCI3W.js} +2 -2
- package/dist/{chunk-EI2IBI7L.js → chunk-UMHSIUAC.js} +1 -1
- package/dist/{chunk-5FYGFKWD.js → chunk-VN33543F.js} +166 -28
- package/dist/{chunk-ZGEUVIO7.js → chunk-W6PKKBDA.js} +1 -1
- package/dist/{chunk-BDMR2NVH.js → chunk-WRFETVZF.js} +2 -2
- package/dist/{chunk-AP523BFH.js → chunk-XB77ZA5A.js} +1 -1
- package/dist/{chunk-AZWWXL27.js → chunk-XE4BDJBH.js} +3 -3
- package/dist/{chunk-QABKCLP4.js → chunk-XG4YPYXX.js} +2 -2
- package/dist/{chunk-TEPMNPZB.js → chunk-XKMKXORV.js} +3 -3
- package/dist/{chunk-MZOPMN3K.js → chunk-XLCHFZWB.js} +1 -1
- package/dist/{chunk-TG2F2JZM.js → chunk-XSXLFVDI.js} +2 -2
- package/dist/{chunk-NW4FE42M.js → chunk-XZJ7A6YM.js} +1 -1
- package/dist/{chunk-F2D6TRVQ.js → chunk-Y24YPVDN.js} +2 -2
- package/dist/{chunk-36V6IQ7A.js → chunk-YO3ZE7KU.js} +1 -1
- package/dist/{chunk-7YXTS2X6.js → chunk-YTGKCGLT.js} +1 -1
- package/dist/{chunk-5XQ3S73H.js → chunk-Z3PD7V6K.js} +1 -1
- package/dist/{chunk-J752ACSU.js → chunk-Z6XLJVZW.js} +1 -1
- package/dist/{chunk-SUUX2YOC.js → chunk-ZZFYEYKR.js} +4 -4
- package/dist/{clean-JKOIOXDP.js → clean-AZC2XGXK.js} +15 -15
- package/dist/cli.js +60 -60
- package/dist/{cloud-WH7SIQTG.js → cloud-ID5WI6WX.js} +4 -4
- package/dist/{cloudrun-OBXR4QSI.js → cloudrun-K7KBTFWT.js} +4 -4
- package/dist/{compare-CR22FHXU.js → compare-V452YQTT.js} +27 -27
- package/dist/{compiler-LPIEZ6SS.js → compiler-RWPIYAIS.js} +2 -2
- package/dist/{component-C6HBHLRD.js → component-PKMWRCKF.js} +3 -3
- package/dist/{compositions-J3XOKHTO.js → compositions-4HLQE34P.js} +9 -9
- package/dist/{curve-7BHM54UK.js → curve-LWNXGZIR.js} +9 -9
- package/dist/{cuts-3WDELHHT.js → cuts-FCG44VKV.js} +10 -10
- package/dist/{delete-E44IMBN5.js → delete-PGIQL57A.js} +2 -2
- package/dist/{deploy-BLSLQUA4.js → deploy-OYXYGAN7.js} +1 -1
- package/dist/{describeProject-IJWD57UO.js → describeProject-EPJ36LZS.js} +6 -6
- package/dist/{diff-BDFP42F2.js → diff-X6UP4FGI.js} +27 -27
- package/dist/{dist-VAOM3QXB.js → dist-G6COMUG7.js} +2 -2
- package/dist/{dist-AE5FYPUB.js → dist-QMZNV55J.js} +8 -8
- package/dist/{doctor-KBFPCGRJ.js → doctor-ALNW7CR5.js} +9 -9
- package/dist/{energy-Q4QPJCOA.js → energy-OWXBHU5V.js} +10 -10
- package/dist/{events-IUT3YTRC.js → events-LAWAINM2.js} +5 -5
- package/dist/{events-OUHYS3HE.js → events-UO3BS6F2.js} +2 -2
- package/dist/{events-OSYG5UE6.js → events-VP7QSKHQ.js} +11 -11
- package/dist/{extract-DXQVMKU7.js → extract-VYOS4QCN.js} +10 -10
- package/dist/{face-SB73M5NP.js → face-JR3YIVEB.js} +10 -10
- package/dist/{feedback-DJEB7HIF.js → feedback-7YNW4VXQ.js} +6 -6
- package/dist/{ffmpeg-RFVN6GF5.js → ffmpeg-CJZTY5IK.js} +5 -5
- package/dist/{figma-2YPOBVIY.js → figma-GOKUTU7D.js} +3 -3
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{frames-WZVVHWTZ.js → frames-2DEBHVNX.js} +11 -11
- package/dist/{generate-EEX3I3IC.js → generate-NF5SUHZJ.js} +19 -19
- package/dist/{get-RZFSFN5L.js → get-6VOIQACT.js} +2 -2
- package/dist/{gpuPolicy-IIA5RNJF.js → gpuPolicy-JDSWBFRQ.js} +5 -5
- package/dist/{grade-compare-EE5H2NV3.js → grade-compare-4NO3FHH4.js} +28 -28
- package/dist/{heifImagePrep-6YC7OAKR.js → heifImagePrep-D7YHH6FO.js} +6 -6
- package/dist/{help-7TE35RSX.js → help-6E3RFPDW.js} +1 -1
- package/dist/{history-U56W2EAF.js → history-KIR6V7S3.js} +8 -8
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +64 -64
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-7D2I276Q.js → info-BJEIZI5W.js} +11 -11
- package/dist/{init-YCU6BW6E.js → init-Z6JOMO7M.js} +25 -25
- package/dist/{ink-EGRTMVAX.js → ink-DUTQDEIF.js} +10 -10
- package/dist/{inspect-77SIRVHR.js → inspect-SZMIZOV3.js} +28 -28
- package/dist/{installer-4I5V43HA.js → installer-JTF7JFPQ.js} +4 -4
- package/dist/{keyframes-GOLLCPYX.js → keyframes-47SSIBNC.js} +8 -8
- package/dist/{lambda-FVOT4GHS.js → lambda-J5TLTIWN.js} +9 -9
- package/dist/{layout-KHVZAWEF.js → layout-FV6F6OLX.js} +28 -28
- package/dist/{lint-KCRTDRJV.js → lint-56PDOTYV.js} +8 -8
- package/dist/{list-IMGP2C4C.js → list-CQIDKSYA.js} +2 -2
- package/dist/{localPage-OGIFSJ2E.js → localPage-ABSGRIBA.js} +5 -5
- package/dist/{login-BQSDSOAI.js → login-DDZ4F5VD.js} +4 -4
- package/dist/{look-TCGZVIQY.js → look-N6DDKZV5.js} +10 -10
- package/dist/{manager-6BIDZMV7.js → manager-N2AZZQPD.js} +6 -6
- package/dist/{measure-TMZKGDLO.js → measure-SE6XHU7X.js} +11 -11
- package/dist/{media-treatment-566VGLCI.js → media-treatment-F72G2PIT.js} +11 -11
- package/dist/{media-use-BCGBCG5I.js → media-use-4YR7SBNR.js} +3 -3
- package/dist/{models-6YCFLMBJ.js → models-GPILZH33.js} +9 -9
- package/dist/{motionShot-FNI7XRQS.js → motionShot-3DAZIVN7.js} +14 -14
- package/dist/{normalize-audio-GUSEAHOX.js → normalize-audio-26EV5GAR.js} +8 -8
- package/dist/{open-5GEI3L27.js → open-7XG6SFXL.js} +11 -11
- package/dist/{parakeetRunner-GOJNQ2UM.js → parakeetRunner-HPQ5OZLX.js} +10 -10
- package/dist/{pipeline-JXCWNBBV.js → pipeline-OPKQDBOS.js} +8 -8
- package/dist/{play-HF24VR3C.js → play-PVR6FKX3.js} +18 -18
- package/dist/{preflight-RWIRWH5R.js → preflight-LFUR4JRE.js} +6 -6
- package/dist/{present-5ZC6A4WB.js → present-4TCPMLYQ.js} +14 -14
- package/dist/{preview-VOQF7DVE.js → preview-2MFKI2FY.js} +16 -16
- package/dist/{probe-QXP7GSF5.js → probe-WWO4BBQZ.js} +10 -10
- package/dist/{producer-PCDPX3EJ.js → producer-5SH42ZJI.js} +1 -1
- package/dist/{projectConfig-4H5PLSLL.js → projectConfig-L7F2OHVX.js} +6 -6
- package/dist/{publication-FGTSFMGJ.js → publication-MUEYZCG5.js} +2 -2
- package/dist/{publish-AR6BP2DL.js → publish-5QFFN6D4.js} +8 -8
- package/dist/{remove-background-CQYYHSF3.js → remove-background-XFB5SJX5.js} +9 -9
- package/dist/{render-OB7YKCXU.js → render-ARJA4MYF.js} +20 -20
- package/dist/{render-OJ7FUZQE.js → render-E2CLPC3P.js} +30 -30
- package/dist/{render-SAZBFJGS.js → render-JBUASSHE.js} +5 -5
- package/dist/{render-batch-FGJ63NQT.js → render-batch-EEXJI6KV.js} +5 -5
- package/dist/{resolver-QMPLMIII.js → resolver-TLZQ7CQV.js} +4 -4
- package/dist/{reverse-2GQG35AJ.js → reverse-LKIVLBZ7.js} +1 -1
- package/dist/{screenshotCapture-J5GZ54MU.js → screenshotCapture-E5RMPWZS.js} +6 -6
- package/dist/{sherpa-Z5J5NHCA.js → sherpa-PZFB6QRE.js} +9 -9
- package/dist/{skills-ODN3IYJU.js → skills-4AMSNW3U.js} +8 -8
- package/dist/{skillsUpdateCheck-7TXLIYIU.js → skillsUpdateCheck-FMPVRPJ2.js} +3 -3
- package/dist/{snapshot-K6222U2D.js → snapshot-N3JIF3KN.js} +34 -34
- package/dist/{src-H5SSAHTM.js → src-LPL3NISU.js} +4 -4
- package/dist/{src-MLGLSGCL.js → src-OBVQCCNO.js} +7 -7
- package/dist/{start-LTIHIT5G.js → start-VAVEAA42.js} +17 -17
- package/dist/{staticProjectServer-EGY52C6V.js → staticProjectServer-KKBIEFAQ.js} +16 -16
- package/dist/{status-YWD6DQX6.js → status-WMMWZJR4.js} +10 -10
- package/dist/studio/assets/{codec-DYZ1sJnW.js → codec-DkDSuF26.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-BOxJo7Nx.js → hyperframes-player-DqHhPw_M.js} +1 -1
- package/dist/studio/assets/{index-DKEq8iSv.js → index-BeQCqWc3.js} +1 -1
- package/dist/studio/assets/{index-Ccf4_r8m.js → index-Tf9fkNRM.js} +5 -5
- package/dist/studio/assets/{pausedVideoDecoder-B65VVvs_.js → pausedVideoDecoder-CmNTruVA.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-D7V7L446.js → studio-api-MRSPHRP3.js} +8 -8
- package/dist/{studioServer-XJPIOJW7.js → studioServer-VBZYMPMI.js} +46 -46
- package/dist/{sync-AM5KGFYG.js → sync-WTM2VGNV.js} +10 -10
- package/dist/{telemetry-YUVLFEWM.js → telemetry-XH6HM2GM.js} +5 -5
- package/dist/{templates-DHSN2Q2L.js → templates-QIN3YHRE.js} +10 -10
- package/dist/{timeline-KJVZBH33.js → timeline-TASNQMKL.js} +16 -16
- package/dist/{tokens-RGIF4GRS.js → tokens-BROTCLH4.js} +2 -2
- package/dist/{transcribe-6RLTFWPI.js → transcribe-BXGVSXD4.js} +8 -8
- package/dist/{transcribe-TFLNFVC2.js → transcribe-X2KMHAYJ.js} +21 -21
- package/dist/{update-NTEFXNIO.js → update-BVAZOPFL.js} +9 -9
- package/dist/{updateCheck-7H6DHZDB.js → updateCheck-LVXDS36Z.js} +2 -2
- package/dist/{upgrade-V4FNM3PE.js → upgrade-A34X4BHN.js} +3 -3
- package/dist/{urlDownloader-X7GYEASD.js → urlDownloader-EIV6N7BL.js} +4 -4
- package/dist/{validate-5JBXRY3Y.js → validate-PUSI5TDW.js} +22 -22
- package/dist/{video-7VNXU3D4.js → video-U2IL2IAE.js} +6 -6
- package/dist/{voices-FNF5GRYK.js → voices-URE43KUH.js} +17 -17
- package/dist/warmCheck.js +36 -36
- package/package.json +1 -1
- package/dist/chunk-UYZFQW63.js +0 -5035
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
normalizeRelPath,
|
|
9
9
|
resolveLocalImageSourcePath,
|
|
10
10
|
splitUrlSuffix
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XSXLFVDI.js";
|
|
12
12
|
import {
|
|
13
13
|
runFfmpeg,
|
|
14
14
|
runFfprobe
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2L6V6535.js";
|
|
16
16
|
import {
|
|
17
17
|
renameWithRetry
|
|
18
18
|
} from "./chunk-YWRUQ7XZ.js";
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
cliCheckoutLink,
|
|
9
9
|
pageUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GXYGI5FG.js";
|
|
11
11
|
import {
|
|
12
12
|
Fix
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XZJ7A6YM.js";
|
|
14
14
|
import {
|
|
15
15
|
refreshIfNeeded,
|
|
16
16
|
resolveCloudAuthHeaders,
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
shouldTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-32VBJHBI.js";
|
|
10
10
|
|
|
11
11
|
// src/telemetry/renderObservability.ts
|
|
12
12
|
function renderObservabilityTelemetryPayload(observability) {
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
} from "./chunk-SWC3QIEH.js";
|
|
10
10
|
import {
|
|
11
11
|
stoppedByCancelSignal
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YO3ZE7KU.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_MODEL,
|
|
15
15
|
ensureModel,
|
|
16
16
|
ensureWhisper,
|
|
17
17
|
hasFFmpeg,
|
|
18
18
|
pinnedWhisperModel
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YTGKCGLT.js";
|
|
20
20
|
import {
|
|
21
21
|
sha256File
|
|
22
22
|
} from "./chunk-RZ6CXJ56.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
findFFmpeg,
|
|
25
25
|
findFFprobe,
|
|
26
26
|
getFFmpegInstallHint
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-7GILET6T.js";
|
|
28
28
|
import {
|
|
29
29
|
findWavChunk
|
|
30
30
|
} from "./chunk-UOFAE5RF.js";
|
|
@@ -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-TXMXWJNZ.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|
|
@@ -9,27 +9,27 @@ import {
|
|
|
9
9
|
} from "./chunk-TQBQYO4L.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DIWUWYQZ.js";
|
|
13
13
|
import {
|
|
14
14
|
serveStaticProjectHtml
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NAI4ID2Q.js";
|
|
16
16
|
import {
|
|
17
17
|
AUDIT_SEEK_OPTIONS,
|
|
18
18
|
installPageFunctionGuard,
|
|
19
19
|
seekCompositionTimeline,
|
|
20
20
|
waitForCompositionFonts,
|
|
21
21
|
waitForRuntimeReady
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LXFCCGHN.js";
|
|
23
23
|
import {
|
|
24
24
|
gotoWhenSent
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-M2PGYJG3.js";
|
|
26
26
|
import {
|
|
27
27
|
pageNavigationTimeoutMs
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2VW2MOD2.js";
|
|
29
29
|
import {
|
|
30
30
|
launchManagedBrowser,
|
|
31
31
|
resolveManagedGpuMode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UHOZCI3W.js";
|
|
33
33
|
import {
|
|
34
34
|
readJsonFileText
|
|
35
35
|
} from "./chunk-EHZESMRB.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
printDeprecationNotice,
|
|
44
44
|
withMeta
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-Z3PD7V6K.js";
|
|
46
46
|
import {
|
|
47
47
|
failureMessage,
|
|
48
48
|
jsonFailure
|
|
@@ -709,7 +709,7 @@ async function collectTweenBoundaries(page) {
|
|
|
709
709
|
});
|
|
710
710
|
}
|
|
711
711
|
async function bundleProjectHtml(projectDir) {
|
|
712
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
712
|
+
const { bundleToSingleHtml } = await import("./compiler-RWPIYAIS.js");
|
|
713
713
|
return bundleToSingleHtml(projectDir);
|
|
714
714
|
}
|
|
715
715
|
async function alignViewportToComposition(page, url) {
|
|
@@ -728,13 +728,13 @@ async function alignViewportToComposition(page, url) {
|
|
|
728
728
|
async function runLayoutAudit(projectDir, opts) {
|
|
729
729
|
const { ensureBrowser } = await import("./manager-MKDNQ5KZ.js");
|
|
730
730
|
const puppeteer = await import("puppeteer-core");
|
|
731
|
-
const { buildChromeArgs } = await import("./src-
|
|
731
|
+
const { buildChromeArgs } = await import("./src-LPL3NISU.js");
|
|
732
732
|
const {
|
|
733
733
|
assertWebGpuAdapterAvailable,
|
|
734
734
|
compositionRequiresWebGpu,
|
|
735
735
|
resolveLocalBrowserGpuMode,
|
|
736
736
|
resolveLocalWebGpu
|
|
737
|
-
} = await import("./gpuPolicy-
|
|
737
|
+
} = await import("./gpuPolicy-JDSWBFRQ.js");
|
|
738
738
|
const html = await bundleProjectHtml(projectDir);
|
|
739
739
|
const server = await serveStaticProjectHtml(
|
|
740
740
|
projectDir,
|
|
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = true ? "0.9.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.9.
|
|
9
|
+
var VERSION = true ? "0.9.25" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.9.25" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveCaptureBrowserGpuMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4FUWA4QW.js";
|
|
10
10
|
import {
|
|
11
11
|
explainChromeLaunchFailure,
|
|
12
12
|
inAgentSandbox,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
oneProcessOverPipe,
|
|
16
16
|
pipeLaunchClosedOnMac,
|
|
17
17
|
sandboxDeniedRemediation
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2L6V6535.js";
|
|
19
19
|
import {
|
|
20
20
|
processIsAlive
|
|
21
21
|
} from "./chunk-KGPLIH7B.js";
|
|
@@ -20,20 +20,20 @@ import {
|
|
|
20
20
|
idleWindow,
|
|
21
21
|
preResolveHostileMediaProxies,
|
|
22
22
|
rectToBbox
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DUOZSML3.js";
|
|
24
24
|
import {
|
|
25
25
|
collectProjectMedia,
|
|
26
26
|
mediaPath
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XKMKXORV.js";
|
|
28
28
|
import {
|
|
29
29
|
captureArtifactRevision,
|
|
30
30
|
readToolContext,
|
|
31
31
|
reportArtifacts,
|
|
32
32
|
withProjectLock
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-J4CMGJ6U.js";
|
|
34
34
|
import {
|
|
35
35
|
trackLintRun
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-WRFETVZF.js";
|
|
37
37
|
import {
|
|
38
38
|
CONTENT_OVERLAP_HELD_ERROR_MS,
|
|
39
39
|
DEFAULT_MAX_STATIC_SEC,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
mergeSampleTimes,
|
|
55
55
|
parseAt,
|
|
56
56
|
readMotionSpec
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-TPBDABHP.js";
|
|
58
58
|
import {
|
|
59
59
|
findingAtRoot,
|
|
60
60
|
findingElementKey,
|
|
@@ -63,22 +63,25 @@ import {
|
|
|
63
63
|
} from "./chunk-TQBQYO4L.js";
|
|
64
64
|
import {
|
|
65
65
|
resolveProject
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-DIWUWYQZ.js";
|
|
67
67
|
import {
|
|
68
68
|
recordArtifacts
|
|
69
69
|
} from "./chunk-US2SO6O4.js";
|
|
70
|
+
import {
|
|
71
|
+
CACHE_DIR_NAME
|
|
72
|
+
} from "./chunk-BVOTSOAS.js";
|
|
70
73
|
import {
|
|
71
74
|
BrowserCleanupError,
|
|
72
75
|
onStopSignal,
|
|
73
76
|
registerBrowserSessionCleanup
|
|
74
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-UHOZCI3W.js";
|
|
75
78
|
import {
|
|
76
79
|
resolveLocalBrowserGpuMode
|
|
77
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-4FUWA4QW.js";
|
|
78
81
|
import {
|
|
79
82
|
trackCheckReport,
|
|
80
83
|
trackCommandFailure
|
|
81
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-DL7R6DWU.js";
|
|
82
85
|
import {
|
|
83
86
|
swallowedFlagUsageError
|
|
84
87
|
} from "./chunk-7PZLR2JZ.js";
|
|
@@ -99,14 +102,14 @@ import {
|
|
|
99
102
|
extractMediaMetadata,
|
|
100
103
|
findHdrAutoPromotion,
|
|
101
104
|
gradingKeepsSdr
|
|
102
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-2L6V6535.js";
|
|
103
106
|
import {
|
|
104
107
|
lintProject,
|
|
105
108
|
unmountedNotice
|
|
106
109
|
} from "./chunk-LLUKDUVS.js";
|
|
107
110
|
import {
|
|
108
111
|
withMeta
|
|
109
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-Z3PD7V6K.js";
|
|
110
113
|
import {
|
|
111
114
|
recordLastCheck
|
|
112
115
|
} from "./chunk-CMQZP52Y.js";
|
|
@@ -119,14 +122,17 @@ import {
|
|
|
119
122
|
failUsage,
|
|
120
123
|
setCommandExitCode
|
|
121
124
|
} from "./chunk-66W5IWLO.js";
|
|
125
|
+
import {
|
|
126
|
+
VERSION
|
|
127
|
+
} from "./chunk-TXMXWJNZ.js";
|
|
122
128
|
import {
|
|
123
129
|
normalizeErrorMessage
|
|
124
130
|
} from "./chunk-E63BDV4Z.js";
|
|
125
131
|
|
|
126
132
|
// src/commands/check.ts
|
|
127
133
|
import { randomUUID } from "crypto";
|
|
128
|
-
import { mkdirSync as
|
|
129
|
-
import { dirname, join as
|
|
134
|
+
import { mkdirSync as mkdirSync3, writeFileSync as writeFileSync3 } from "fs";
|
|
135
|
+
import { dirname, join as join3, resolve } from "path";
|
|
130
136
|
|
|
131
137
|
// src/utils/checkFindingFrames.ts
|
|
132
138
|
import { basename } from "path";
|
|
@@ -1059,7 +1065,7 @@ async function collectGridSamples(driver, options, grid, motion, helpers, enter,
|
|
|
1059
1065
|
return collected;
|
|
1060
1066
|
}
|
|
1061
1067
|
function craftEnabled(driver, options) {
|
|
1062
|
-
return !options.range && typeof driver.collectCraftFrame === "function";
|
|
1068
|
+
return options.craft !== false && !options.range && typeof driver.collectCraftFrame === "function";
|
|
1063
1069
|
}
|
|
1064
1070
|
async function collectContrastAt(driver, options, time, issuesAtTime, collected) {
|
|
1065
1071
|
const contrastStart = Date.now();
|
|
@@ -2286,7 +2292,7 @@ function resolveMotionSpec(projectDir) {
|
|
|
2286
2292
|
};
|
|
2287
2293
|
}
|
|
2288
2294
|
async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
|
|
2289
|
-
const module = await import("./checkBrowser-
|
|
2295
|
+
const module = await import("./checkBrowser-BBOMHS32.js");
|
|
2290
2296
|
return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
|
|
2291
2297
|
}
|
|
2292
2298
|
var adoptedBrowser;
|
|
@@ -2300,7 +2306,7 @@ async function prelaunchBrowser(project, options) {
|
|
|
2300
2306
|
if (adopted) return adopted;
|
|
2301
2307
|
const html = await readFile(project.indexPath, "utf8").catch(() => void 0);
|
|
2302
2308
|
if (html === void 0) return void 0;
|
|
2303
|
-
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-
|
|
2309
|
+
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-PSLV3E4Y.js");
|
|
2304
2310
|
return prelaunchCompositionBrowser(html, options.browserGpuMode);
|
|
2305
2311
|
}
|
|
2306
2312
|
async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
@@ -2312,11 +2318,11 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
|
2312
2318
|
return relative(projectDir, path);
|
|
2313
2319
|
}
|
|
2314
2320
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
2315
|
-
const module = await import("./checkBrowser-
|
|
2321
|
+
const module = await import("./checkBrowser-BBOMHS32.js");
|
|
2316
2322
|
return module.captureFindingFrames(project, options, requests, deadline);
|
|
2317
2323
|
}
|
|
2318
2324
|
async function captureFindingCrops(project, options, requests, deadline) {
|
|
2319
|
-
const module = await import("./checkBrowser-
|
|
2325
|
+
const module = await import("./checkBrowser-BBOMHS32.js");
|
|
2320
2326
|
return module.captureFindingCrops(project, options, requests, deadline);
|
|
2321
2327
|
}
|
|
2322
2328
|
async function inspectProjectMedia(project, dependencies) {
|
|
@@ -2338,7 +2344,7 @@ function collectMedia(project) {
|
|
|
2338
2344
|
return collectProjectMedia(project.dir);
|
|
2339
2345
|
}
|
|
2340
2346
|
async function inspectAudio(project, media) {
|
|
2341
|
-
const module = await import("./checkAudio-
|
|
2347
|
+
const module = await import("./checkAudio-CHPYLUDB.js");
|
|
2342
2348
|
return module.inspectAudio(project.dir, relative(project.dir, project.indexPath), media);
|
|
2343
2349
|
}
|
|
2344
2350
|
function audioCheckFailure(project, error) {
|
|
@@ -2386,6 +2392,113 @@ function failureCodes(report) {
|
|
|
2386
2392
|
return Object.fromEntries(top);
|
|
2387
2393
|
}
|
|
2388
2394
|
|
|
2395
|
+
// src/utils/checkCache.ts
|
|
2396
|
+
import { createHash } from "crypto";
|
|
2397
|
+
import {
|
|
2398
|
+
closeSync,
|
|
2399
|
+
fstatSync,
|
|
2400
|
+
mkdirSync as mkdirSync2,
|
|
2401
|
+
openSync,
|
|
2402
|
+
readFileSync,
|
|
2403
|
+
readdirSync,
|
|
2404
|
+
writeFileSync as writeFileSync2
|
|
2405
|
+
} from "fs";
|
|
2406
|
+
import { join as join2 } from "path";
|
|
2407
|
+
var PROJECT_STATE_DIR = ".hyperframes";
|
|
2408
|
+
var TOOL_OWNED = /* @__PURE__ */ new Set([
|
|
2409
|
+
"artifacts",
|
|
2410
|
+
"cache",
|
|
2411
|
+
"history-id",
|
|
2412
|
+
"video-state.json",
|
|
2413
|
+
"video-state-lock",
|
|
2414
|
+
"project.lock"
|
|
2415
|
+
]);
|
|
2416
|
+
var HASH_CONTENT_UP_TO = 2 * 1024 * 1024;
|
|
2417
|
+
var VERDICT_ENV = /^(HYPERFRAMES?|PRODUCER|HF)_/;
|
|
2418
|
+
var Uncacheable = class extends Error {
|
|
2419
|
+
};
|
|
2420
|
+
function cachePath(projectDir) {
|
|
2421
|
+
return join2(projectDir, ".hyperframes", "cache", "check.json");
|
|
2422
|
+
}
|
|
2423
|
+
async function browserIdentity() {
|
|
2424
|
+
const { findBrowser } = await import("./manager-MKDNQ5KZ.js");
|
|
2425
|
+
const found = await findBrowser();
|
|
2426
|
+
if (!found) return void 0;
|
|
2427
|
+
try {
|
|
2428
|
+
const fd = openSync(found.executablePath, "r");
|
|
2429
|
+
try {
|
|
2430
|
+
const { size, mtimeMs, ctimeMs, ino } = fstatSync(fd);
|
|
2431
|
+
return `${found.executablePath}:${size}:${mtimeMs}:${ctimeMs}:${ino}`;
|
|
2432
|
+
} finally {
|
|
2433
|
+
closeSync(fd);
|
|
2434
|
+
}
|
|
2435
|
+
} catch {
|
|
2436
|
+
return void 0;
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
function fileFingerprint(path) {
|
|
2440
|
+
const fd = openSync(path, "r");
|
|
2441
|
+
try {
|
|
2442
|
+
const stat = fstatSync(fd);
|
|
2443
|
+
if (stat.isDirectory()) throw new Uncacheable(`${path} is a linked directory`);
|
|
2444
|
+
return stat.size <= HASH_CONTENT_UP_TO ? createHash("sha256").update(readFileSync(fd)).digest("hex") : `${stat.size}:${stat.mtimeMs}:${stat.ctimeMs}:${stat.ino}`;
|
|
2445
|
+
} finally {
|
|
2446
|
+
closeSync(fd);
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
function hashTree(dir, prefix, hash) {
|
|
2450
|
+
const entries = readdirSync(dir, { withFileTypes: true }).sort(
|
|
2451
|
+
(a, b) => a.name < b.name ? -1 : 1
|
|
2452
|
+
);
|
|
2453
|
+
for (const entry of entries) {
|
|
2454
|
+
if (entry.name === ".git" || entry.name === CACHE_DIR_NAME) continue;
|
|
2455
|
+
if (prefix === `${PROJECT_STATE_DIR}/` && TOOL_OWNED.has(entry.name)) continue;
|
|
2456
|
+
if (entry.name === "node_modules")
|
|
2457
|
+
throw new Uncacheable("node_modules can hold code the page runs");
|
|
2458
|
+
const path = join2(dir, entry.name);
|
|
2459
|
+
const name = `${prefix}${entry.name}`;
|
|
2460
|
+
if (entry.isDirectory()) hashTree(path, `${name}/`, hash);
|
|
2461
|
+
else hash.update(`${name}\0${fileFingerprint(path)}\0`);
|
|
2462
|
+
}
|
|
2463
|
+
}
|
|
2464
|
+
function checkCacheKey(projectDir, options, version, browser) {
|
|
2465
|
+
if (browser === void 0) return void 0;
|
|
2466
|
+
const hash = createHash("sha256").update(`${version}\0${browser}\0`);
|
|
2467
|
+
const { cache: _cache, ...verdictOptions } = options;
|
|
2468
|
+
const env = Object.entries(process.env).filter(([name]) => VERDICT_ENV.test(name)).sort();
|
|
2469
|
+
hash.update(`${JSON.stringify([verdictOptions, env])}\0`);
|
|
2470
|
+
try {
|
|
2471
|
+
hashTree(projectDir, "", hash);
|
|
2472
|
+
} catch {
|
|
2473
|
+
return void 0;
|
|
2474
|
+
}
|
|
2475
|
+
return hash.digest("hex");
|
|
2476
|
+
}
|
|
2477
|
+
function checkCacheable(options) {
|
|
2478
|
+
return options.cache !== false && !options.budget && !options.snapshots && !options.findingFrames && !options.inspect;
|
|
2479
|
+
}
|
|
2480
|
+
function readCachedPass(projectDir, key) {
|
|
2481
|
+
try {
|
|
2482
|
+
const stored = JSON.parse(readFileSync(cachePath(projectDir), "utf8"));
|
|
2483
|
+
if (stored.key !== key || !stored.report?.ok) return void 0;
|
|
2484
|
+
return { ...stored.report, cached: { at: stored.at } };
|
|
2485
|
+
} catch {
|
|
2486
|
+
return void 0;
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
function storePass(projectDir, key, report) {
|
|
2490
|
+
if (!report.ok || report.browserSkipped) return;
|
|
2491
|
+
try {
|
|
2492
|
+
mkdirSync2(join2(projectDir, ".hyperframes", "cache"), { recursive: true });
|
|
2493
|
+
const { saved: _saved, ...clean } = report;
|
|
2494
|
+
writeFileSync2(
|
|
2495
|
+
cachePath(projectDir),
|
|
2496
|
+
JSON.stringify({ key, at: (/* @__PURE__ */ new Date()).toISOString(), report: clean })
|
|
2497
|
+
);
|
|
2498
|
+
} catch {
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2389
2502
|
// src/commands/check.ts
|
|
2390
2503
|
var examples = [
|
|
2391
2504
|
["Run the full verification gate", "hyperframes check"],
|
|
@@ -2416,7 +2529,7 @@ var DEFAULT_COMMAND_DEPENDENCIES = {
|
|
|
2416
2529
|
}
|
|
2417
2530
|
},
|
|
2418
2531
|
async prepareMedia(project, options) {
|
|
2419
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
2532
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-GR4BQHS5.js");
|
|
2420
2533
|
const html = await bundleWithLocalizedFonts(project.dir);
|
|
2421
2534
|
return (await preResolveHostileMediaProxies(project.dir, html, options.autoProxy)).files;
|
|
2422
2535
|
},
|
|
@@ -2427,12 +2540,12 @@ function warnNotRecorded(error) {
|
|
|
2427
2540
|
return void 0;
|
|
2428
2541
|
}
|
|
2429
2542
|
function checkReportFile(projectDir, id) {
|
|
2430
|
-
return
|
|
2543
|
+
return join3(projectDir, ".hyperframes", "artifacts", "checks", `${id}.json`);
|
|
2431
2544
|
}
|
|
2432
2545
|
async function saveCheckReport(project, options, report, capture, id) {
|
|
2433
2546
|
const path = checkReportFile(project.dir, id);
|
|
2434
|
-
|
|
2435
|
-
|
|
2547
|
+
mkdirSync3(dirname(path), { recursive: true });
|
|
2548
|
+
writeFileSync3(path, JSON.stringify(report, null, 2) + "\n", { flag: "wx" });
|
|
2436
2549
|
const reportScope = "scope" in report && typeof report.scope === "object" && report.scope !== null ? report.scope : void 0;
|
|
2437
2550
|
const artifacts = [
|
|
2438
2551
|
{
|
|
@@ -2540,6 +2653,11 @@ var CHECK_COMMAND_ARGS = {
|
|
|
2540
2653
|
type: "string",
|
|
2541
2654
|
description: "Stop the whole check this long after it starts (ms, or 90s, 8m; at least 30s) and report what it found so far"
|
|
2542
2655
|
},
|
|
2656
|
+
cache: {
|
|
2657
|
+
type: "boolean",
|
|
2658
|
+
description: "Return the stored result when the project, options and CLI are unchanged since the last pass (pass --no-cache to always re-run)",
|
|
2659
|
+
default: true
|
|
2660
|
+
},
|
|
2543
2661
|
timeout: {
|
|
2544
2662
|
type: "string",
|
|
2545
2663
|
description: "Initial render-ready timeout in ms, or with a unit (45s, 2m); also sets the navigation minimum (10s floor, default: 45000, as snapshot and render)",
|
|
@@ -2550,6 +2668,11 @@ var CHECK_COMMAND_ARGS = {
|
|
|
2550
2668
|
description: "Run the WCAG AA contrast pass (enabled by default)",
|
|
2551
2669
|
default: true
|
|
2552
2670
|
},
|
|
2671
|
+
craft: {
|
|
2672
|
+
type: "boolean",
|
|
2673
|
+
description: "Run the craft pass (dead stretches, unread lines, silent films; enabled by default). --no-craft skips it, e.g. for a render preflight",
|
|
2674
|
+
default: true
|
|
2675
|
+
},
|
|
2553
2676
|
strict: {
|
|
2554
2677
|
type: "boolean",
|
|
2555
2678
|
description: "Exit non-zero on warnings too",
|
|
@@ -2615,11 +2738,7 @@ function createCheckCommand(dependencies = DEFAULT_COMMAND_DEPENDENCIES) {
|
|
|
2615
2738
|
return;
|
|
2616
2739
|
}
|
|
2617
2740
|
recordLastCheck({ at: (/* @__PURE__ */ new Date()).toISOString(), codes: {} });
|
|
2618
|
-
const report = await
|
|
2619
|
-
project.dir,
|
|
2620
|
-
"check",
|
|
2621
|
-
() => dependencies.runPipeline(project, options)
|
|
2622
|
-
);
|
|
2741
|
+
const report = await checkOrReplay(dependencies, project, options);
|
|
2623
2742
|
recordLastCheck({
|
|
2624
2743
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2625
2744
|
exitCode: checkExitCode(report),
|
|
@@ -2652,6 +2771,19 @@ function createCheckCommand(dependencies = DEFAULT_COMMAND_DEPENDENCIES) {
|
|
|
2652
2771
|
}
|
|
2653
2772
|
});
|
|
2654
2773
|
}
|
|
2774
|
+
async function checkOrReplay(dependencies, project, options) {
|
|
2775
|
+
const identify = dependencies.browserIdentity ?? browserIdentity;
|
|
2776
|
+
return withProjectLock(project.dir, "check", async () => {
|
|
2777
|
+
const keyNow = async () => checkCacheable(options) ? checkCacheKey(project.dir, options, VERSION, await identify()) : void 0;
|
|
2778
|
+
const key = await keyNow();
|
|
2779
|
+
const cached = key ? readCachedPass(project.dir, key) : void 0;
|
|
2780
|
+
if (cached) return cached;
|
|
2781
|
+
const report = await dependencies.runPipeline(project, options);
|
|
2782
|
+
const treeUnchangedByTheRun = key !== void 0 && await keyNow() === key;
|
|
2783
|
+
if (treeUnchangedByTheRun) storePass(project.dir, key, report);
|
|
2784
|
+
return report;
|
|
2785
|
+
});
|
|
2786
|
+
}
|
|
2655
2787
|
function reportCheckFailure(error, asJson, addMeta) {
|
|
2656
2788
|
const message = failureMessage(error);
|
|
2657
2789
|
const usage = error instanceof CliUsageError;
|
|
@@ -2739,7 +2871,9 @@ function parseCheckOptions(args) {
|
|
|
2739
2871
|
tolerance: nonNegativeNumber(args.tolerance, DEFAULT_CHECK_OPTIONS.tolerance),
|
|
2740
2872
|
timeout: parseTimeoutMs(args.timeout, DEFAULT_CHECK_OPTIONS.timeout, 500),
|
|
2741
2873
|
budget: parseBudget(args.budget),
|
|
2874
|
+
cache: args.cache !== false,
|
|
2742
2875
|
contrast: args.contrast !== false,
|
|
2876
|
+
craft: args.craft !== false,
|
|
2743
2877
|
...checkReview()?.skipContrastInMotion ? { skipContrastInMotion: true } : {},
|
|
2744
2878
|
strict: args.strict === true,
|
|
2745
2879
|
snapshots: args.snapshots === true,
|
|
@@ -2925,6 +3059,10 @@ function browserSkippedLine(report) {
|
|
|
2925
3059
|
return report.lint.findings.some(leavesNothingToLoad) ? "Browser validation skipped: the lint error above leaves no composition to load. Fix it and run check again. Layout, motion, and contrast were not checked, so this is not a clean pass." : "Browser session never ran \u2014 layout, motion, and contrast below are empty placeholders, not a clean pass.";
|
|
2926
3060
|
}
|
|
2927
3061
|
function printHumanReport(report) {
|
|
3062
|
+
if (report.cached)
|
|
3063
|
+
console.log(
|
|
3064
|
+
`${c.dim("\u25C7")} Nothing changed since the pass at ${report.cached.at}; showing that result. Remote scripts and assets were not fetched again. Run with --no-cache to check again.`
|
|
3065
|
+
);
|
|
2928
3066
|
if (report.scope) {
|
|
2929
3067
|
console.log(
|
|
2930
3068
|
`Scope: ${report.scope.range ? report.scope.range.join("\u2013") + "s" : "full timeline"}; ${report.scope.hiddenFindings} findings hidden by component filter. Counts/status include hidden findings.`
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DL7R6DWU.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-32VBJHBI.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
findFFmpeg,
|
|
21
21
|
findFFprobe,
|
|
22
22
|
getFFmpegInstallHint
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7GILET6T.js";
|
|
24
24
|
import {
|
|
25
25
|
formatBytes
|
|
26
26
|
} from "./chunk-M3JU24AI.js";
|
|
27
27
|
import {
|
|
28
28
|
parseAnimatedGifMetadata
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ANURCSEW.js";
|
|
30
30
|
import {
|
|
31
31
|
cleanAssetUrl,
|
|
32
32
|
isRemoteOrInlineUrl,
|
|
@@ -655,7 +655,7 @@ async function prepareEntryGifs(ctx, fileMap) {
|
|
|
655
655
|
if (!html || !/\.gif\b/i.test(html)) return;
|
|
656
656
|
const sourceAssets = entryGifSources(ctx, entryPath, html);
|
|
657
657
|
if (!sourceAssets) return;
|
|
658
|
-
const prep = ctx.opts.gifPrep ?? (await import("./src-
|
|
658
|
+
const prep = ctx.opts.gifPrep ?? (await import("./src-OBVQCCNO.js")).prepareAnimatedGifInputs;
|
|
659
659
|
const outputDir = mkdtempSync(join(tmpdir(), "hf-offload-gif-"));
|
|
660
660
|
ctx.tempFiles.push(outputDir);
|
|
661
661
|
const result = await prep(html, {
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
rewritePinnedHyperframesText,
|
|
28
28
|
rewriteProjectPinnedScripts,
|
|
29
29
|
withMeta
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Z3PD7V6K.js";
|
|
31
31
|
import {
|
|
32
32
|
setCommandExitCode
|
|
33
33
|
} from "./chunk-66W5IWLO.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./chunk-FYZFURBN.js";
|
|
37
37
|
import {
|
|
38
38
|
VERSION
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-TXMXWJNZ.js";
|
|
40
40
|
|
|
41
41
|
// src/commands/upgrade.ts
|
|
42
42
|
import { execFileSync } from "child_process";
|