hyperframes 0.8.211 → 0.8.212
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-WERDY37C.js → add-JSM7YBQX.js} +14 -13
- package/dist/{agentPromptGenerator-SEAPWYY5.js → agentPromptGenerator-NTPYCKOI.js} +5 -5
- package/dist/{animatedGifPrep-LC43PROA.js → animatedGifPrep-XTK7UWXF.js} +5 -5
- package/dist/api.js +17 -17
- package/dist/{asset-IVDQNYHP.js → asset-SMY2EGPH.js} +5 -4
- package/dist/{assetCataloger-PPE7M2WM.js → assetCataloger-CVPWY34W.js} +6 -6
- package/dist/{audio-IJ22GXO6.js → audio-Y4OYLTWN.js} +20 -19
- package/dist/{auth-FZMDHX2H.js → auth-MDEHZR7R.js} +4 -4
- package/dist/{autoUpdate-EO6SFALF.js → autoUpdate-3FL6EDPM.js} +4 -2
- package/dist/{backgroundChecks-YW5VIAYF.js → backgroundChecks-A6TG2BT3.js} +5 -3
- package/dist/backgroundChecksWorker.js +5 -3
- package/dist/{batchRender-OOXYNZOT.js → batchRender-K2PBRRTQ.js} +8 -7
- package/dist/{beats-X7GRQA4J.js → beats-RA6XK6J5.js} +13 -12
- package/dist/{benchmark-JGGBMRZO.js → benchmark-EHU5O4PP.js} +19 -17
- package/dist/{browser-FQ5JPTME.js → browser-7RUIZT2H.js} +12 -10
- package/dist/{bundleWithLocalizedFonts-XA73ZJ4S.js → bundleWithLocalizedFonts-O2U2FYY2.js} +2 -2
- package/dist/{capture-GUVCA5JQ.js → capture-77KDKKNK.js} +13 -12
- package/dist/{capture-KKVB3MKM.js → capture-JGYBORAG.js} +12 -9
- package/dist/{captureCompositionFrame-LNKWWCXE.js → captureCompositionFrame-DZ7EHPZV.js} +13 -12
- package/dist/{catalog-LKJEMEOC.js → catalog-CUP3SYAI.js} +18 -17
- package/dist/{catch-up-FA6KWX4S.js → catch-up-ZGUCWH5Q.js} +8 -7
- package/dist/{check-6GIDKL6S.js → check-ITGFVBT6.js} +41 -40
- package/dist/{checkAudio-H3AUFC4M.js → checkAudio-CTLPD6YT.js} +8 -8
- package/dist/{checkBrowser-YWWF63S6.js → checkBrowser-G2N4JI6N.js} +34 -33
- package/dist/{chunk-Q52ISCT4.js → chunk-25MKZTRT.js} +1 -1
- package/dist/{chunk-KSNIYQRB.js → chunk-26AQTUU4.js} +5 -7
- package/dist/{chunk-3LACB6HG.js → chunk-2YDIEZSF.js} +3 -3
- package/dist/{chunk-QVHC77IF.js → chunk-3JQ2YOKL.js} +2 -2
- package/dist/{chunk-FI7SSV73.js → chunk-3YBXKWAF.js} +1 -1
- package/dist/{chunk-5KOZRJR7.js → chunk-45JN2GIZ.js} +1 -1
- package/dist/{chunk-MMJAHBH2.js → chunk-5SKC4G26.js} +4 -1
- package/dist/{chunk-ZNSKOXFW.js → chunk-5TQ4AEPF.js} +3 -3
- package/dist/{chunk-J2JG4XGP.js → chunk-5ZBMHUY2.js} +4 -0
- package/dist/{chunk-KZBBY72Q.js → chunk-64XQS7AP.js} +1 -1
- package/dist/{chunk-ABBVDJMG.js → chunk-6SG3RRAQ.js} +2 -2
- package/dist/{chunk-JMD5HDPB.js → chunk-6ZLDIMPL.js} +2 -2
- package/dist/{chunk-CJ5QZRY7.js → chunk-7KBS6ZLB.js} +2 -2
- package/dist/{chunk-OOA6C4AG.js → chunk-7Q5TBUC2.js} +2 -2
- package/dist/{chunk-FBN5AQJL.js → chunk-7TWX4Y7I.js} +3 -3
- package/dist/{chunk-BGC5S3OZ.js → chunk-7W7ANGR4.js} +48 -35
- package/dist/{chunk-DJ3H6EW3.js → chunk-7ZAVTGGT.js} +10 -9
- package/dist/{chunk-3NIESDKN.js → chunk-A2WPZE2R.js} +1 -1
- package/dist/{chunk-CNU65QE2.js → chunk-AJAXP4HF.js} +9 -5
- package/dist/{chunk-2QAR7ZNY.js → chunk-BLVHVXRU.js} +2 -2
- package/dist/{chunk-472C35EW.js → chunk-BYRXSKIY.js} +1 -1
- package/dist/{chunk-5AKWJHRJ.js → chunk-CODPTVC2.js} +1 -1
- package/dist/{chunk-LALLQUSK.js → chunk-DP5LF7GF.js} +2 -0
- package/dist/{chunk-AIY2Y5UY.js → chunk-DS7ANFBV.js} +5 -5
- package/dist/{chunk-6J2G57BB.js → chunk-DVVTBVKA.js} +7 -7
- package/dist/{chunk-CGAUUUDL.js → chunk-DXPC7Z6L.js} +3 -3
- package/dist/{chunk-3R5MYOJN.js → chunk-EC77ZBCP.js} +2 -2
- package/dist/{chunk-VWG7OQKU.js → chunk-EQGKUPBJ.js} +4 -1
- package/dist/{chunk-CZCRSS3U.js → chunk-F5XADOGC.js} +1 -1
- package/dist/chunk-FJ646TIT.js +201 -0
- package/dist/{chunk-77KGX4A3.js → chunk-FKFGGAXN.js} +50 -8
- package/dist/{chunk-PICG2XRD.js → chunk-FW6CYA5D.js} +2 -2
- package/dist/{chunk-VUEWZXZG.js → chunk-G6HUXX3L.js} +1 -1
- package/dist/{chunk-5YHQBCWH.js → chunk-G6OKQMJI.js} +12 -2
- package/dist/{chunk-DPYI2HRJ.js → chunk-GQ724553.js} +5 -5
- package/dist/{chunk-SXJJTFV4.js → chunk-GVE6I5EL.js} +4 -4
- package/dist/{chunk-NEQIJUV2.js → chunk-HXZNCXQX.js} +1 -1
- package/dist/{chunk-LAR5VTCN.js → chunk-J7GPSY5N.js} +4 -4
- package/dist/{chunk-4JWKC3GH.js → chunk-JZNQQI5M.js} +5 -5
- package/dist/{chunk-IEVU4FXB.js → chunk-KZZWYIEB.js} +3 -3
- package/dist/{chunk-AHPGAESX.js → chunk-L72RQ45A.js} +1 -1
- package/dist/{chunk-4D46TX6Q.js → chunk-MJCIAZSK.js} +1 -1
- package/dist/{chunk-5LITFBMY.js → chunk-MX2GMAAW.js} +9 -9
- package/dist/{chunk-B2B4MN3R.js → chunk-N3J2MLXC.js} +2 -2
- package/dist/{chunk-JZVUSRZ5.js → chunk-N7XJHZ35.js} +1 -1
- package/dist/{chunk-RQNFW6YC.js → chunk-NGSENR4J.js} +8 -3
- package/dist/{chunk-VGKQFZCC.js → chunk-NXDKBFEO.js} +14 -14
- package/dist/{chunk-UI7X4L4M.js → chunk-OL5E4Y4L.js} +2074 -2060
- package/dist/{chunk-XNFDDVJS.js → chunk-ONMTNYGR.js} +4 -1
- package/dist/{chunk-PKWZG642.js → chunk-ORJY6Z6G.js} +3 -3
- package/dist/{chunk-YWPCMOX4.js → chunk-OSCWTA2O.js} +5 -5
- package/dist/{chunk-SJK64HHG.js → chunk-OWV36OJP.js} +5 -2
- package/dist/{chunk-DAXKGMJL.js → chunk-P2VGMOX7.js} +5 -5
- package/dist/{chunk-OE5EHGDG.js → chunk-PW7FCVHR.js} +1 -1
- package/dist/{chunk-K43XLAQV.js → chunk-Q55JNFDV.js} +3 -3
- package/dist/{chunk-VBC3DQFS.js → chunk-QUXWS5UG.js} +1 -1
- package/dist/{chunk-DMIFCIG6.js → chunk-R5B6GXQM.js} +1 -1
- package/dist/{chunk-5MCR5DA5.js → chunk-RDZKBIEB.js} +5 -5
- package/dist/{chunk-B4KGJHTE.js → chunk-RJILJ4OR.js} +2 -2
- package/dist/{chunk-6EN2LWOM.js → chunk-RQC4PHO3.js} +1 -1
- package/dist/{chunk-ORXLO64X.js → chunk-S2HWGG5O.js} +1 -1
- package/dist/chunk-SJGE5I5F.js +131 -0
- package/dist/{chunk-ZPXXWUQ3.js → chunk-SPDSRBIN.js} +30 -4
- package/dist/{chunk-WNDTMINP.js → chunk-SXTWQ7CH.js} +2 -2
- package/dist/{chunk-22OGII5H.js → chunk-T7KNW7PE.js} +1 -1
- package/dist/{chunk-2RQZQJHV.js → chunk-TPO32Z65.js} +1 -1
- package/dist/{chunk-66KMYUNO.js → chunk-UBUKKTNW.js} +2 -2
- package/dist/{chunk-T2L2GJ4C.js → chunk-UE4CXHMF.js} +7 -7
- package/dist/{chunk-K3LLHG6I.js → chunk-UULZKCBI.js} +1 -1
- package/dist/{chunk-DDRCX7P2.js → chunk-UXH6E5HC.js} +2 -2
- package/dist/{chunk-AQMGYRX6.js → chunk-V6OSE6VT.js} +1 -1
- package/dist/{chunk-67JTGRNM.js → chunk-VKD23SIO.js} +1 -1
- package/dist/{chunk-3JYKWNFR.js → chunk-VVDHSRKD.js} +1 -1
- package/dist/{chunk-KF6I5WA7.js → chunk-W2VJTKIW.js} +15 -18
- package/dist/{chunk-FIC3E7IM.js → chunk-W55BW7KA.js} +9 -9
- package/dist/{chunk-FWKZ3O52.js → chunk-W5OBRMZ6.js} +1 -1
- package/dist/{chunk-YPNBEBQ6.js → chunk-WVIH5BBZ.js} +25 -18
- package/dist/{chunk-Z2UZAY2Q.js → chunk-XEWMJWNW.js} +2 -2
- package/dist/{chunk-DWIMUPFK.js → chunk-XGXTZNES.js} +2 -2
- package/dist/{chunk-GSXA4YLV.js → chunk-Y3U7ECBH.js} +1 -1
- package/dist/{chunk-KDDO3UYI.js → chunk-YACECUHX.js} +3 -3
- package/dist/{chunk-3WL7WU6K.js → chunk-YVT5IU6J.js} +19 -20
- package/dist/{chunk-4EO7DNRJ.js → chunk-YX5ELTKV.js} +2 -2
- package/dist/{chunk-FVY2XRX4.js → chunk-ZCYSQ3NQ.js} +2 -2
- package/dist/{clean-SVEOBRPM.js → clean-FBZ7GHRY.js} +21 -20
- package/dist/cli.js +143 -77
- package/dist/{cloud-ADFJGIEH.js → cloud-VYSWJ7UO.js} +4 -4
- package/dist/{cloudrun-BNY7Q5RK.js → cloudrun-U6LI7KLV.js} +23 -20
- package/dist/{compare-QC3T22KV.js → compare-YR7BMEHJ.js} +44 -45
- package/dist/{compiler-4ITKK4XI.js → compiler-6YCAUK7Z.js} +2 -2
- package/dist/{component-CNZCB3RY.js → component-HVSM6FJV.js} +6 -5
- package/dist/{compositions-UO32IP6Z.js → compositions-QTFL2VNL.js} +13 -12
- package/dist/{delete-RWTOSI24.js → delete-2FHCQ72T.js} +13 -11
- package/dist/{deploy-OKWS53NP.js → deploy-6S45QWG6.js} +5 -5
- package/dist/{destroy-4RL5VOXQ.js → destroy-BQ5R7LUF.js} +3 -3
- package/dist/{dist-AEE3QTRB.js → dist-B4KLCLZ5.js} +2 -2
- package/dist/{docs-UMIA66EZ.js → docs-6EM6FDNI.js} +5 -4
- package/dist/{doctor-SIF72ESZ.js → doctor-4MRS6RED.js} +11 -9
- package/dist/{events-S3VUTFEG.js → events-4VBBY7PP.js} +5 -3
- package/dist/{events-34PIVLZQ.js → events-FN45HVPM.js} +6 -5
- package/dist/{feedback-VS4LRXHW.js → feedback-T67P2CDA.js} +20 -19
- package/dist/{ffmpeg-YVQOKNV6.js → ffmpeg-ED7ZK6XH.js} +5 -5
- package/dist/{figma-AF4JKDBA.js → figma-UXAWKPOY.js} +3 -3
- package/dist/fontLocalizeCli.js +9 -9
- package/dist/{get-UQGCS6Q4.js → get-EFH3PPJA.js} +8 -7
- package/dist/{gpuPolicy-Q4B3D6PW.js → gpuPolicy-ZADQMXQT.js} +5 -5
- package/dist/{grade-compare-G34673XC.js → grade-compare-425BFHSF.js} +46 -44
- package/dist/{heifImagePrep-XD4DGOUS.js → heifImagePrep-ZJM7N2XY.js} +6 -6
- package/dist/{help-3QSD26IC.js → help-23PPB2BD.js} +11 -7
- package/dist/{history-6DC24UCF.js → history-CHJV33M5.js} +15 -12
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +63 -63
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-6JUHWWJK.js → info-36YPISVA.js} +11 -10
- package/dist/{init-2DPX6U3J.js → init-U6EE2EIU.js} +37 -36
- package/dist/{inspect-Z55YUSXC.js → inspect-NI2RMUFR.js} +32 -31
- package/dist/{installer-XVKYJU7S.js → installer-K3HIZ5CF.js} +4 -4
- package/dist/{keyframes-YHF4AQIL.js → keyframes-I6T2IT6I.js} +10 -9
- package/dist/{lambda-JITTS37E.js → lambda-WL64Z2F3.js} +31 -29
- package/dist/{layout-V5NYJXIX.js → layout-R2YZ4N6P.js} +32 -31
- package/dist/{lint-V4WMO7YL.js → lint-IAAG6Z65.js} +17 -14
- package/dist/{list-W7UCIYKA.js → list-3O6743DJ.js} +11 -10
- package/dist/{live-LAHBXVK2.js → live-WWPFZQ74.js} +33 -7
- package/dist/{localPage-BLQFFIDF.js → localPage-L5FRBCNP.js} +5 -5
- package/dist/{login-IX3MOREU.js → login-27TRFTYB.js} +11 -11
- package/dist/{logout-46NLNY2K.js → logout-C6P6ERZ3.js} +5 -5
- package/dist/{manager-WJOWZNHM.js → manager-D6TE4ENP.js} +7 -7
- package/dist/{media-treatment-XBO6EXL4.js → media-treatment-E3YLZVXC.js} +43 -33
- package/dist/{media-use-3RFKY7XJ.js → media-use-ZRHFRO46.js} +1 -1
- package/dist/{models-P3NSHDQS.js → models-2Q3TGNH5.js} +26 -19
- package/dist/{motionShot-D4QMLTQP.js → motionShot-XYW2HMVI.js} +16 -15
- package/dist/{normalize-audio-Q4VUR3QJ.js → normalize-audio-D5WNUNDM.js} +30 -19
- package/dist/{open-LGKX534P.js → open-3KO7UUPC.js} +17 -16
- package/dist/{parakeetRunner-FAOQMPS6.js → parakeetRunner-WX6L6MW5.js} +11 -11
- package/dist/{pipeline-2YONKZYC.js → pipeline-WYIO4KGN.js} +10 -10
- package/dist/{play-PJOUIY55.js → play-ZM3ZUJSZ.js} +31 -33
- package/dist/{policies-UPNRQ7IW.js → policies-J5BWAZHM.js} +11 -10
- package/dist/{preflight-3PPM7QBU.js → preflight-7OMCIXNM.js} +6 -6
- package/dist/{present-323D6OE2.js → present-E2PLH2GJ.js} +27 -29
- package/dist/{preview-E42QP2KX.js → preview-TVRM75FN.js} +24 -23
- package/dist/{producer-MTMNLJSC.js → producer-M5F6KZEF.js} +1 -1
- package/dist/{progress-LMQ2DXM4.js → progress-X3QFO3FE.js} +4 -4
- package/dist/{projectConfig-5QRVB5KY.js → projectConfig-VFKGY3XE.js} +6 -6
- package/dist/{prompts-P3IT5H36.js → prompts-VAO7RDKX.js} +2 -2
- package/dist/{publication-AUZLFOG5.js → publication-AF33R7LF.js} +2 -2
- package/dist/{publish-H5P7UHRV.js → publish-Z7HGDQ5R.js} +17 -17
- package/dist/{refresh-4XRQS3N6.js → refresh-IYRGLHG5.js} +5 -5
- package/dist/{remove-background-T2RV476S.js → remove-background-PN3KCBT4.js} +21 -17
- package/dist/{render-4XEB3XWI.js → render-I3HBIJX3.js} +59 -57
- package/dist/{render-GJH7446R.js → render-IZNPEXMU.js} +11 -10
- package/dist/{render-3FRGIWES.js → render-SEODWRRR.js} +27 -26
- package/dist/{render-batch-77X5453X.js → render-batch-MQSORY55.js} +12 -11
- package/dist/{resolver-DIUNK525.js → resolver-HXE4F2G4.js} +4 -4
- package/dist/{sam-FHJ7IL7T.js → sam-QA7JT7IM.js} +2 -1
- package/dist/{sherpa-SUS3YSEP.js → sherpa-NPT6S3RP.js} +10 -10
- package/dist/{sites-V42IFVTK.js → sites-MTLVMYJ6.js} +2 -2
- package/dist/{skills-YCGSIOCE.js → skills-P3BI55YP.js} +17 -13
- package/dist/{skillsUpdateCheck-VCQIZGOL.js → skillsUpdateCheck-43Q4ZHWN.js} +5 -3
- package/dist/{snapshot-H6R5PWNS.js → snapshot-YLT64YQS.js} +71 -53
- package/dist/{src-ED5VCIRC.js → src-7S7K4QUN.js} +8 -8
- package/dist/{src-HHDLJV4L.js → src-OHJ7USRX.js} +6 -4
- package/dist/{state-D5SYQFCB.js → state-6QHNNHDA.js} +2 -2
- package/dist/{staticProjectServer-VY7QG5XH.js → staticProjectServer-RP3MW2EW.js} +17 -17
- package/dist/{status-GEZNVPII.js → status-SLILCDBZ.js} +12 -7
- package/dist/studio/assets/{hyperframes-player-CzrqgMUX.js → hyperframes-player-DHfuW7Lt.js} +1 -1
- package/dist/studio/assets/{index-k4nVfS2D.js → index-CWgIsKzV.js} +4 -4
- package/dist/studio/assets/{index-B3SPHPi1.js → index-CkjUY33q.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-TR5RPX57.js → studio-api-BZPZCJL6.js} +9 -9
- package/dist/{studioServer-4SZLLQOV.js → studioServer-QLRIXNYM.js} +50 -49
- package/dist/{synthesize-QALK5SQR.js → synthesize-FQML2LN2.js} +2 -2
- package/dist/{telemetry-KGY7G3UR.js → telemetry-NTO4FJFN.js} +5 -4
- package/dist/{telemetry-7HUKOQ6X.js → telemetry-QOBPRUWF.js} +6 -5
- package/dist/{timeline-CGIKWCQI.js → timeline-OLQFVWVU.js} +30 -26
- package/dist/{tokens-AZALDJEK.js → tokens-BAHLVGEC.js} +5 -4
- package/dist/{transcribe-CTF5EIXJ.js → transcribe-3NHUWW4J.js} +27 -24
- package/dist/{transcribe-V6K5547L.js → transcribe-HR6BFDUR.js} +9 -9
- package/dist/{tts-C2HBLFKK.js → tts-K5HRN6NQ.js} +17 -13
- package/dist/{updateCheck-5I563YLB.js → updateCheck-BGHPCA7J.js} +4 -2
- package/dist/{upgrade-GRPVQE7Z.js → upgrade-NFI6JOME.js} +7 -6
- package/dist/{urlDownloader-EP6Q4WES.js → urlDownloader-P35K74RS.js} +4 -4
- package/dist/{validate-TVCDSQS3.js → validate-Q57ZCI4Q.js} +26 -25
- package/dist/{video-CFEIRKAE.js → video-OO2M2AKD.js} +9 -9
- package/dist/warmCheck.js +43 -42
- package/package.json +1 -1
- package/dist/chunk-WQ6ZXHFQ.js +0 -133
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
emitWords,
|
|
22
22
|
getPreparedWavDurationSeconds,
|
|
23
23
|
prepareWav
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ORJY6Z6G.js";
|
|
25
25
|
import {
|
|
26
26
|
stoppedByCancelSignal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-VKD23SIO.js";
|
|
28
28
|
import {
|
|
29
29
|
verifies
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-3JQ2YOKL.js";
|
|
31
31
|
import {
|
|
32
32
|
PARAKEET_MODEL_LABEL,
|
|
33
33
|
SHERPA_ERROR_PREFIX,
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
downloadFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FJ646TIT.js";
|
|
10
10
|
import {
|
|
11
11
|
findFFmpeg
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-T7KNW7PE.js";
|
|
13
13
|
import {
|
|
14
14
|
stoppableExecFile
|
|
15
15
|
} from "./chunk-HU2SPFNG.js";
|
|
@@ -8,6 +8,9 @@ import {
|
|
|
8
8
|
VALID_CANVAS_RESOLUTIONS,
|
|
9
9
|
resolveResolutionFlagPair
|
|
10
10
|
} from "./chunk-NHA4NRBE.js";
|
|
11
|
+
import {
|
|
12
|
+
CliUsageError
|
|
13
|
+
} from "./chunk-DP5LF7GF.js";
|
|
11
14
|
|
|
12
15
|
// src/utils/parseOutputResolution.ts
|
|
13
16
|
function parseOutputResolutionFlag(raw, options) {
|
|
@@ -18,7 +21,7 @@ function parseOutputResolutionFlag(raw, options) {
|
|
|
18
21
|
const { outputResolution, outputResolutionAspectAgnostic } = resolveResolutionFlagPair(asString);
|
|
19
22
|
if (outputResolution) return { outputResolution, outputResolutionAspectAgnostic };
|
|
20
23
|
const aliasHint = options.aliasHint ?? "1080p, 4k, uhd, hd, \u2026";
|
|
21
|
-
throw new
|
|
24
|
+
throw new CliUsageError(
|
|
22
25
|
`${options.surfaceLabel} --output-resolution must be one of ${VALID_CANVAS_RESOLUTIONS.join("|")} (or an alias: ${aliasHint}); got ${asString}`
|
|
23
26
|
);
|
|
24
27
|
}
|
|
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getMimeType
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W55BW7KA.js";
|
|
10
10
|
import {
|
|
11
11
|
stripSdrPngColourTags
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QUXWS5UG.js";
|
|
13
13
|
import {
|
|
14
14
|
injectTagsAtHeadStart
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-W5OBRMZ6.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/compositionServer.ts
|
|
18
18
|
import { createHash } from "crypto";
|
|
@@ -7,6 +7,9 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
c
|
|
9
9
|
} from "./chunk-2GICKZ3I.js";
|
|
10
|
+
import {
|
|
11
|
+
recordFailure
|
|
12
|
+
} from "./chunk-SJGE5I5F.js";
|
|
10
13
|
|
|
11
14
|
// src/ui/format.ts
|
|
12
15
|
function formatBytes(bytes) {
|
|
@@ -68,6 +71,7 @@ function label(name, value) {
|
|
|
68
71
|
return ` ${c.dim(name)}${" ".repeat(Math.max(1, pad))}${c.bold(value)}`;
|
|
69
72
|
}
|
|
70
73
|
function errorBox(title, hint, suggestion) {
|
|
74
|
+
recordFailure(title, hint ?? suggestion);
|
|
71
75
|
console.error(`
|
|
72
76
|
${c.error("\u2717")} ${c.bold(title)}`);
|
|
73
77
|
if (hint) {
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-XQ26I3PL.js";
|
|
14
14
|
import {
|
|
15
15
|
createProjectConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-F5XADOGC.js";
|
|
17
17
|
import {
|
|
18
18
|
isHyperframesProject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BYRXSKIY.js";
|
|
20
20
|
|
|
21
21
|
// src/utils/desktopApp.ts
|
|
22
22
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
errorBox
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5ZBMHUY2.js";
|
|
10
10
|
import {
|
|
11
11
|
failUsage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DP5LF7GF.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/compositionEntry.ts
|
|
15
15
|
import { realpathSync } from "fs";
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
errorBox
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5ZBMHUY2.js";
|
|
10
10
|
import {
|
|
11
11
|
failUsage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DP5LF7GF.js";
|
|
13
13
|
|
|
14
14
|
// src/cloud/parsing.ts
|
|
15
15
|
var INTEGER_RE = /^-?\d+$/;
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-TSYRN646.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchLocalPageUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TPO32Z65.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureCaptureDirSync,
|
|
17
17
|
writeCaptureFileSync
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-AWDFDFI3.js";
|
|
26
26
|
import {
|
|
27
27
|
isBlockedNetworkHost
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OL5E4Y4L.js";
|
|
29
29
|
import {
|
|
30
30
|
DOMParser,
|
|
31
31
|
parseHTML
|
|
@@ -4,12 +4,12 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
-
import {
|
|
8
|
-
failCommand
|
|
9
|
-
} from "./chunk-LALLQUSK.js";
|
|
10
7
|
import {
|
|
11
8
|
c
|
|
12
9
|
} from "./chunk-2GICKZ3I.js";
|
|
10
|
+
import {
|
|
11
|
+
failCommand
|
|
12
|
+
} from "./chunk-DP5LF7GF.js";
|
|
13
13
|
import {
|
|
14
14
|
normalizeErrorMessage
|
|
15
15
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -17,17 +17,17 @@ import {
|
|
|
17
17
|
finishCheckSnapshots,
|
|
18
18
|
preResolveHostileMediaProxies,
|
|
19
19
|
rectToBbox
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NXDKBFEO.js";
|
|
21
21
|
import {
|
|
22
22
|
collectProjectMedia,
|
|
23
23
|
mediaPath
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UBUKKTNW.js";
|
|
25
25
|
import {
|
|
26
26
|
captureArtifactRevision
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UULZKCBI.js";
|
|
28
28
|
import {
|
|
29
29
|
trackLintRun
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-BLVHVXRU.js";
|
|
31
31
|
import {
|
|
32
32
|
CONTENT_OVERLAP_HELD_ERROR_MS,
|
|
33
33
|
DEFAULT_MAX_STATIC_SEC,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
mergeSampleTimes,
|
|
49
49
|
parseAt,
|
|
50
50
|
readMotionSpec
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-YVT5IU6J.js";
|
|
52
52
|
import {
|
|
53
53
|
findingAtRoot,
|
|
54
54
|
findingElementKey,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
} from "./chunk-TQBQYO4L.js";
|
|
58
58
|
import {
|
|
59
59
|
resolveProject
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-KZZWYIEB.js";
|
|
61
61
|
import {
|
|
62
62
|
recordArtifacts
|
|
63
63
|
} from "./chunk-24F7TOW2.js";
|
|
@@ -69,17 +69,17 @@ import {
|
|
|
69
69
|
closeManagedBrowser,
|
|
70
70
|
onStopSignal,
|
|
71
71
|
registerBrowserSessionCleanup
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-RDZKBIEB.js";
|
|
73
73
|
import {
|
|
74
74
|
resolveLocalBrowserGpuMode
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-XEWMJWNW.js";
|
|
76
76
|
import {
|
|
77
77
|
trackCheckReport,
|
|
78
78
|
trackCommandFailure
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-GVE6I5EL.js";
|
|
80
80
|
import {
|
|
81
81
|
swallowedFlagUsageError
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-FKFGGAXN.js";
|
|
83
83
|
import {
|
|
84
84
|
defineCommand
|
|
85
85
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -89,23 +89,29 @@ import {
|
|
|
89
89
|
import {
|
|
90
90
|
getRunId
|
|
91
91
|
} from "./chunk-54HJ63Q2.js";
|
|
92
|
-
import {
|
|
93
|
-
setCommandExitCode
|
|
94
|
-
} from "./chunk-LALLQUSK.js";
|
|
95
92
|
import {
|
|
96
93
|
c
|
|
97
94
|
} from "./chunk-2GICKZ3I.js";
|
|
98
95
|
import {
|
|
99
96
|
extractMediaMetadata,
|
|
100
97
|
findHdrAutoPromotion
|
|
101
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-OL5E4Y4L.js";
|
|
102
99
|
import {
|
|
103
100
|
lintProject,
|
|
104
101
|
shouldBlockRender
|
|
105
102
|
} from "./chunk-U46JEU26.js";
|
|
106
103
|
import {
|
|
107
104
|
withMeta
|
|
108
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-NGSENR4J.js";
|
|
106
|
+
import {
|
|
107
|
+
failureMessage,
|
|
108
|
+
jsonFailure
|
|
109
|
+
} from "./chunk-SJGE5I5F.js";
|
|
110
|
+
import {
|
|
111
|
+
CliUsageError,
|
|
112
|
+
failUsage,
|
|
113
|
+
setCommandExitCode
|
|
114
|
+
} from "./chunk-DP5LF7GF.js";
|
|
109
115
|
import {
|
|
110
116
|
normalizeErrorMessage
|
|
111
117
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -1764,6 +1770,7 @@ async function runAuditGrid(driver, options, motion, helpers = Promise.resolve([
|
|
|
1764
1770
|
keep
|
|
1765
1771
|
);
|
|
1766
1772
|
const seekLoopMs = Date.now() - seekLoopStart;
|
|
1773
|
+
report("analyze", 0, 3);
|
|
1767
1774
|
let motionIssues = plan.preflightIssues;
|
|
1768
1775
|
if (motion.kind === "valid" && plan.assertions.length > 0 && collected.motionFrames.length > 0) {
|
|
1769
1776
|
const canvas = await driver.getCanvas();
|
|
@@ -1774,6 +1781,7 @@ async function runAuditGrid(driver, options, motion, helpers = Promise.resolve([
|
|
|
1774
1781
|
}
|
|
1775
1782
|
motionIssues = [...motionIssues, ...await driver.anchorMotionIssues(evaluated)];
|
|
1776
1783
|
}
|
|
1784
|
+
report("analyze", 1, 3);
|
|
1777
1785
|
const userPicked = new Set(grid.userPickedSamples);
|
|
1778
1786
|
const noTimeline = await driver.hasNoTimelineDeclaration();
|
|
1779
1787
|
const sweepSamples = collected.layoutStateSignatures.filter(
|
|
@@ -1790,6 +1798,7 @@ async function runAuditGrid(driver, options, motion, helpers = Promise.resolve([
|
|
|
1790
1798
|
);
|
|
1791
1799
|
const offPivotFindings = detectOffPivotRotation(collected.indicatorFrames);
|
|
1792
1800
|
const contrast = buildContrastResults(collected.contrastEntries);
|
|
1801
|
+
report("analyze", 2, 3);
|
|
1793
1802
|
const craft = craftEnabled(driver, options) ? await auditCraft(
|
|
1794
1803
|
{
|
|
1795
1804
|
frames: collected.craftFrames,
|
|
@@ -2346,7 +2355,7 @@ function resolveMotionSpec(projectDir) {
|
|
|
2346
2355
|
};
|
|
2347
2356
|
}
|
|
2348
2357
|
async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
|
|
2349
|
-
const module = await import("./checkBrowser-
|
|
2358
|
+
const module = await import("./checkBrowser-G2N4JI6N.js");
|
|
2350
2359
|
return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
|
|
2351
2360
|
}
|
|
2352
2361
|
var adoptedBrowser;
|
|
@@ -2360,7 +2369,7 @@ async function prelaunchBrowser(project, options) {
|
|
|
2360
2369
|
if (adopted) return adopted;
|
|
2361
2370
|
const html = await readFile(project.indexPath, "utf8").catch(() => void 0);
|
|
2362
2371
|
if (html === void 0) return void 0;
|
|
2363
|
-
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-
|
|
2372
|
+
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-DZ7EHPZV.js");
|
|
2364
2373
|
return prelaunchCompositionBrowser(html, options.browserGpuMode);
|
|
2365
2374
|
}
|
|
2366
2375
|
async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
@@ -2372,11 +2381,11 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
|
2372
2381
|
return relative(projectDir, path);
|
|
2373
2382
|
}
|
|
2374
2383
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
2375
|
-
const module = await import("./checkBrowser-
|
|
2384
|
+
const module = await import("./checkBrowser-G2N4JI6N.js");
|
|
2376
2385
|
return module.captureFindingFrames(project, options, requests, deadline);
|
|
2377
2386
|
}
|
|
2378
2387
|
async function captureFindingCrops(project, options, requests, deadline) {
|
|
2379
|
-
const module = await import("./checkBrowser-
|
|
2388
|
+
const module = await import("./checkBrowser-G2N4JI6N.js");
|
|
2380
2389
|
return module.captureFindingCrops(project, options, requests, deadline);
|
|
2381
2390
|
}
|
|
2382
2391
|
async function inspectProjectMedia(project, dependencies) {
|
|
@@ -2398,7 +2407,7 @@ function collectMedia(project) {
|
|
|
2398
2407
|
return collectProjectMedia(project.dir);
|
|
2399
2408
|
}
|
|
2400
2409
|
async function inspectAudio(project, media) {
|
|
2401
|
-
const module = await import("./checkAudio-
|
|
2410
|
+
const module = await import("./checkAudio-CTLPD6YT.js");
|
|
2402
2411
|
return module.inspectAudio(project.dir, relative(project.dir, project.indexPath), media);
|
|
2403
2412
|
}
|
|
2404
2413
|
function audioCheckFailure(project, error) {
|
|
@@ -2450,7 +2459,7 @@ var DEFAULT_COMMAND_DEPENDENCIES = {
|
|
|
2450
2459
|
}
|
|
2451
2460
|
},
|
|
2452
2461
|
async prepareMedia(project, options) {
|
|
2453
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
2462
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-O2U2FYY2.js");
|
|
2454
2463
|
const html = await bundleWithLocalizedFonts(project.dir);
|
|
2455
2464
|
return (await preResolveHostileMediaProxies(project.dir, html, options.autoProxy)).files;
|
|
2456
2465
|
},
|
|
@@ -2624,8 +2633,8 @@ function createCheckCommand(dependencies = DEFAULT_COMMAND_DEPENDENCIES) {
|
|
|
2624
2633
|
const asJson = args.json === true;
|
|
2625
2634
|
const reported = untilReported();
|
|
2626
2635
|
try {
|
|
2627
|
-
const project = dependencies.resolveProject(args.dir);
|
|
2628
2636
|
const options = parseCheckOptions(args);
|
|
2637
|
+
const project = dependencies.resolveProject(args.dir);
|
|
2629
2638
|
if (!asJson) {
|
|
2630
2639
|
console.log(`${c.accent("\u25C6")} Checking ${c.accent(project.name)}`);
|
|
2631
2640
|
}
|
|
@@ -2651,21 +2660,25 @@ function createCheckCommand(dependencies = DEFAULT_COMMAND_DEPENDENCIES) {
|
|
|
2651
2660
|
}
|
|
2652
2661
|
setCommandExitCode(checkExitCode(report));
|
|
2653
2662
|
} catch (error) {
|
|
2654
|
-
|
|
2655
|
-
if (asJson) {
|
|
2656
|
-
console.log(
|
|
2657
|
-
JSON.stringify(dependencies.withMeta({ ok: false, error: message }), null, 2)
|
|
2658
|
-
);
|
|
2659
|
-
} else {
|
|
2660
|
-
console.error(`${c.error("\u2717")} Check failed: ${message}`);
|
|
2661
|
-
}
|
|
2662
|
-
setCommandExitCode(1);
|
|
2663
|
+
reportCheckFailure(error, asJson, (value) => dependencies.withMeta(value));
|
|
2663
2664
|
} finally {
|
|
2664
2665
|
reported.done();
|
|
2665
2666
|
}
|
|
2666
2667
|
}
|
|
2667
2668
|
});
|
|
2668
2669
|
}
|
|
2670
|
+
function reportCheckFailure(error, asJson, addMeta) {
|
|
2671
|
+
const message = failureMessage(error);
|
|
2672
|
+
const usage = error instanceof CliUsageError;
|
|
2673
|
+
if (asJson) {
|
|
2674
|
+
const code = usage ? error.code : "runtime_error";
|
|
2675
|
+
console.log(JSON.stringify(addMeta(jsonFailure(code, message)), null, 2));
|
|
2676
|
+
} else {
|
|
2677
|
+
console.error(`${c.error("\u2717")} Check failed: ${message}`);
|
|
2678
|
+
}
|
|
2679
|
+
if (usage) failUsage();
|
|
2680
|
+
setCommandExitCode(1);
|
|
2681
|
+
}
|
|
2669
2682
|
var REPORT_GRACE_MS = 5e3;
|
|
2670
2683
|
function untilReported() {
|
|
2671
2684
|
let done = () => void 0;
|
|
@@ -2756,7 +2769,7 @@ function parseCheckRange(value) {
|
|
|
2756
2769
|
const parts = String(value).split(/[,:]/);
|
|
2757
2770
|
const start = Number(parts[0]), end = Number(parts[1]);
|
|
2758
2771
|
if (parts.length !== 2 || parts.some((p) => !p.trim()) || !Number.isFinite(start) || !Number.isFinite(end) || start < 0 || end <= start)
|
|
2759
|
-
throw new
|
|
2772
|
+
throw new CliUsageError("Invalid --range: use non-negative start,end with end > start");
|
|
2760
2773
|
return [start, end];
|
|
2761
2774
|
}
|
|
2762
2775
|
var CAPTION_ZONE_FIELDS = /* @__PURE__ */ new Set(["x0", "y0", "x1", "y1", "severity", "seek"]);
|
|
@@ -2793,7 +2806,7 @@ function parseFrameCheckTolerance(raw) {
|
|
|
2793
2806
|
return tol;
|
|
2794
2807
|
}
|
|
2795
2808
|
function frameCheckError() {
|
|
2796
|
-
return new
|
|
2809
|
+
return new CliUsageError(
|
|
2797
2810
|
'Invalid --frame-check: use bare --frame-check or "severity=warning|error;seek=.25,.75;tol=4" (all fields optional)'
|
|
2798
2811
|
);
|
|
2799
2812
|
}
|
|
@@ -2827,7 +2840,7 @@ function parseProseCoverageFloor(raw) {
|
|
|
2827
2840
|
return floor;
|
|
2828
2841
|
}
|
|
2829
2842
|
function layoutError() {
|
|
2830
|
-
return new
|
|
2843
|
+
return new CliUsageError(
|
|
2831
2844
|
'Invalid --layout: use "proseCoverageFloor=0.05" with a fraction from 0 to 1 (inclusive)'
|
|
2832
2845
|
);
|
|
2833
2846
|
}
|
|
@@ -2903,7 +2916,7 @@ function captionSeeks(value, errorFactory = captionZoneError) {
|
|
|
2903
2916
|
return values.flatMap((entry) => entry === null ? [] : entry);
|
|
2904
2917
|
}
|
|
2905
2918
|
function captionZoneError() {
|
|
2906
|
-
return new
|
|
2919
|
+
return new CliUsageError(
|
|
2907
2920
|
'Invalid --caption-zone; use "x0=0;y0=.82;x1=1;y1=1[;severity=warning|error][;seek=.5,1]" with fractions from 0 to 1.'
|
|
2908
2921
|
);
|
|
2909
2922
|
}
|
|
@@ -10,19 +10,19 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
pageNavigationTimeoutMs,
|
|
12
12
|
windowsChromeCrashRemediation
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UE4CXHMF.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveCompositionViewportFromHtml
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-A2WPZE2R.js";
|
|
17
17
|
import {
|
|
18
18
|
launchManagedBrowser,
|
|
19
19
|
resolveManagedGpuMode,
|
|
20
20
|
rethrowAfterBrowserCleanup
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RDZKBIEB.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveLocalBrowserGpuMode,
|
|
24
24
|
resolveLocalWebGpu
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XEWMJWNW.js";
|
|
26
26
|
import {
|
|
27
27
|
c
|
|
28
28
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
assertWebGpuAdapterAvailable,
|
|
31
31
|
compositionRequiresWebGpu,
|
|
32
32
|
oneProcessOverPipe
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-OL5E4Y4L.js";
|
|
34
34
|
import {
|
|
35
35
|
normalizeErrorMessage
|
|
36
36
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -138,7 +138,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
138
138
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
139
139
|
});
|
|
140
140
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
141
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
141
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-OHJ7USRX.js");
|
|
142
142
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
143
143
|
await waitForImagesReady(
|
|
144
144
|
page,
|
|
@@ -187,7 +187,7 @@ async function installPageFunctionGuard(page) {
|
|
|
187
187
|
async function openSettledCompositionPage(html, url, options) {
|
|
188
188
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
189
189
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
190
|
-
const answer = (await import("./staticProjectServer-
|
|
190
|
+
const answer = (await import("./staticProjectServer-RP3MW2EW.js")).inProcessAnswer(url);
|
|
191
191
|
const noListen = answer !== void 0;
|
|
192
192
|
let chromeBrowser;
|
|
193
193
|
try {
|
|
@@ -198,8 +198,9 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
198
198
|
options.onBrowserReady?.();
|
|
199
199
|
const page = await chromeBrowser.newPage();
|
|
200
200
|
await installPageFunctionGuard(page);
|
|
201
|
-
const { installMediaRenderIdBridge } = await import("./src-
|
|
201
|
+
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-OHJ7USRX.js");
|
|
202
202
|
await installMediaRenderIdBridge(page);
|
|
203
|
+
await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
|
|
203
204
|
await page.setViewport(viewport);
|
|
204
205
|
if (answer) await answerPageInProcess(page, url, answer);
|
|
205
206
|
await options.beforeNavigate?.(page);
|
|
@@ -217,7 +218,7 @@ async function launchCompositionBrowser(html, noListen, options) {
|
|
|
217
218
|
const { ensureBrowser, findSystemBrowser } = await import("./manager-IZIK7BHN.js");
|
|
218
219
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
219
220
|
const puppeteer = await import("puppeteer-core");
|
|
220
|
-
const { buildChromeArgs } = await import("./src-
|
|
221
|
+
const { buildChromeArgs } = await import("./src-OHJ7USRX.js");
|
|
221
222
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
222
223
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
223
224
|
let softwareWebGpu = false;
|
|
@@ -14,20 +14,21 @@ import {
|
|
|
14
14
|
} from "./chunk-XFMO3BEN.js";
|
|
15
15
|
import {
|
|
16
16
|
errorBox
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import {
|
|
19
|
-
failCommand
|
|
20
|
-
} from "./chunk-LALLQUSK.js";
|
|
17
|
+
} from "./chunk-5ZBMHUY2.js";
|
|
21
18
|
import {
|
|
22
19
|
c
|
|
23
20
|
} from "./chunk-2GICKZ3I.js";
|
|
24
21
|
import {
|
|
25
22
|
formatVariableValidationIssue,
|
|
26
23
|
validateVariables
|
|
27
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-BYRXSKIY.js";
|
|
28
25
|
import {
|
|
29
26
|
extractCompositionMetadata
|
|
30
27
|
} from "./chunk-NHA4NRBE.js";
|
|
28
|
+
import {
|
|
29
|
+
failCommand,
|
|
30
|
+
failUsage
|
|
31
|
+
} from "./chunk-DP5LF7GF.js";
|
|
31
32
|
|
|
32
33
|
// src/utils/variables.ts
|
|
33
34
|
import { readFileSync } from "fs";
|
|
@@ -94,6 +95,9 @@ function resolveVariablesArg(inline, filePath) {
|
|
|
94
95
|
if (!result.ok) {
|
|
95
96
|
const { title, message } = variablesErrorMessage(result.error);
|
|
96
97
|
errorBox(title, message);
|
|
98
|
+
const { kind } = result.error;
|
|
99
|
+
const flagsAreWrong = kind === "conflict" || inline != null && kind !== "read-error";
|
|
100
|
+
if (flagsAreWrong) failUsage();
|
|
97
101
|
failCommand();
|
|
98
102
|
}
|
|
99
103
|
return result.value;
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GVE6I5EL.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EC77ZBCP.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
@@ -14,10 +14,12 @@ var USAGE_EXIT_CODE = 2;
|
|
|
14
14
|
var CliUsageError = class extends Error {
|
|
15
15
|
result;
|
|
16
16
|
hint;
|
|
17
|
+
code;
|
|
17
18
|
constructor(message = "Invalid command usage", options = {}) {
|
|
18
19
|
super(message);
|
|
19
20
|
this.name = "CliUsageError";
|
|
20
21
|
this.hint = options.hint;
|
|
22
|
+
this.code = options.code ?? "usage_error";
|
|
21
23
|
this.result = {
|
|
22
24
|
exitCode: options.exitCode ?? USAGE_EXIT_CODE,
|
|
23
25
|
kind: "usage_error",
|
|
@@ -6,10 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
errorBox
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
failCommand
|
|
12
|
-
} from "./chunk-LALLQUSK.js";
|
|
9
|
+
} from "./chunk-5ZBMHUY2.js";
|
|
13
10
|
import {
|
|
14
11
|
cssVariableName,
|
|
15
12
|
slugify
|
|
@@ -17,6 +14,9 @@ import {
|
|
|
17
14
|
import {
|
|
18
15
|
DOMParser
|
|
19
16
|
} from "./chunk-GWTIFRF5.js";
|
|
17
|
+
import {
|
|
18
|
+
failCommand
|
|
19
|
+
} from "./chunk-DP5LF7GF.js";
|
|
20
20
|
|
|
21
21
|
// ../core/dist/figma/client.js
|
|
22
22
|
var FigmaClientError = class extends Error {
|
|
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
|
|
|
1278
1278
|
} catch (err) {
|
|
1279
1279
|
if (err instanceof Error) {
|
|
1280
1280
|
try {
|
|
1281
|
-
const { trackCommandFailure } = await import("./events-
|
|
1281
|
+
const { trackCommandFailure } = await import("./events-FN45HVPM.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|