hyperframes 0.9.47 → 0.9.48
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-QNGZD4DD.js → add-3H4DG4RA.js} +5 -5
- package/dist/{agentPromptGenerator-62YBRRWR.js → agentPromptGenerator-PIHKWDAW.js} +3 -2
- package/dist/{animatedGifPrep-MOMPPYA2.js → animatedGifPrep-SXYSHW6I.js} +3 -2
- package/dist/api.js +20 -19
- package/dist/{asset-UCSTQD4V.js → asset-43VALPNF.js} +2 -2
- package/dist/{assetCataloger-CB55JIVV.js → assetCataloger-MUOL6FRF.js} +5 -4
- package/dist/{audio-L6RHV5YR.js → audio-ZHGSDLJR.js} +8 -7
- package/dist/{auth-26I37JOQ.js → auth-UXRKOJQB.js} +2 -2
- package/dist/{autoUpdate-IKM2WKSQ.js → autoUpdate-PMEPQG65.js} +2 -2
- package/dist/{avatars-PZPL5EG2.js → avatars-QFBWZAIE.js} +7 -6
- package/dist/{backgroundChecks-GISZGTXC.js → backgroundChecks-OK6SI7BE.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{beats-EKU5XXBV.js → beats-O23QKE6J.js} +4 -4
- package/dist/{benchmark-TPGYG6JW.js → benchmark-DKBSDIX5.js} +6 -6
- package/dist/{billing-PECZH526.js → billing-ZZCU3K3Q.js} +4 -4
- package/dist/{browser-W26LDR2J.js → browser-4X6WZ6UD.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-OI3E22MQ.js → bundleWithLocalizedFonts-M64DWYM5.js} +1 -1
- package/dist/{capture-QHWQ2PB2.js → capture-JJARZBDS.js} +81 -262
- package/dist/{capture-OPWIRIZC.js → capture-O3W6P6DB.js} +4 -4
- package/dist/{captureCompositionFrame-EYB6LTAG.js → captureCompositionFrame-JLTAV6VN.js} +6 -5
- package/dist/{catalog-D6PL6DN3.js → catalog-4A4CPKPT.js} +5 -5
- package/dist/{catch-up-SKLAQOCM.js → catch-up-EUQFPFMU.js} +4 -4
- package/dist/{check-QHDE55TC.js → check-IZ6SFIGR.js} +21 -20
- package/dist/{checkAudio-EENVIQJA.js → checkAudio-5IRYPK3A.js} +5 -4
- package/dist/{checkBrowser-SERJXBXN.js → checkBrowser-HUCHMJV4.js} +15 -14
- package/dist/{chunk-LX4KUCDF.js → chunk-2GS3N3TZ.js} +1 -1
- package/dist/{chunk-PO3OQ2FP.js → chunk-3JWNN5PN.js} +53 -239
- package/dist/{chunk-U7W6SW3X.js → chunk-3LH7DND6.js} +1 -1
- package/dist/{chunk-TQGFY4NR.js → chunk-44EG3TMN.js} +1 -1
- package/dist/{chunk-IPKKY42Q.js → chunk-4BJYQXFF.js} +1 -1
- package/dist/{chunk-HDHFXHUG.js → chunk-4HP2MTKM.js} +1 -1
- package/dist/{chunk-ZKVC5V7U.js → chunk-4WDBYCUK.js} +1 -1
- package/dist/{chunk-YLX7EX7Z.js → chunk-5AJNQMML.js} +1 -1
- package/dist/{chunk-HUMMHYLF.js → chunk-5DW2DEHX.js} +1 -1
- package/dist/{chunk-VXT4EGLU.js → chunk-5IE7DN6I.js} +1 -1
- package/dist/{chunk-RAWVDZVU.js → chunk-5MHENUR3.js} +2 -2
- package/dist/{chunk-WEP7PDVB.js → chunk-6DNSUUKB.js} +1 -1
- package/dist/{chunk-SHNSD75H.js → chunk-7SNB3KGY.js} +1 -1
- package/dist/{chunk-HKXQXP7W.js → chunk-7X2TCJJ7.js} +1 -1
- package/dist/{chunk-B7BYBS7G.js → chunk-BEPEMS56.js} +4 -4
- package/dist/{chunk-DTA5WWXO.js → chunk-BM6LSTMG.js} +2 -2
- package/dist/{chunk-YXYRPI4X.js → chunk-CDBPBLYJ.js} +1 -1
- package/dist/{chunk-P4CZXQU5.js → chunk-CTWD5ND3.js} +8 -8
- package/dist/{chunk-BQKVAQLE.js → chunk-CZBTUYLW.js} +2 -2
- package/dist/{chunk-BVAN2Q5W.js → chunk-DACTRVDQ.js} +3 -3
- package/dist/{chunk-6FMUE7ZO.js → chunk-DFJIVRYU.js} +1 -1
- package/dist/{chunk-B4LOHIIR.js → chunk-E5OW6L6E.js} +2 -2
- package/dist/{chunk-3YBNVXEU.js → chunk-ESXZZU25.js} +2 -2
- package/dist/{chunk-J25LQS5W.js → chunk-EVRVYDKJ.js} +4 -4
- package/dist/{chunk-OBCJMZCW.js → chunk-EWMPCW7J.js} +1 -1
- package/dist/{chunk-Y6FRUECL.js → chunk-FF3VETCD.js} +1 -1
- package/dist/{chunk-T3QQB5EX.js → chunk-FFZE3G5R.js} +1 -1
- package/dist/{chunk-XGHZO74X.js → chunk-FLHKID4G.js} +2 -2
- package/dist/{chunk-FHDIU5ZS.js → chunk-GXPAR6JC.js} +2 -2
- package/dist/{chunk-RYBLJK44.js → chunk-GZSJYNAJ.js} +8 -6
- package/dist/{chunk-JLJINOXS.js → chunk-HZXRORAG.js} +2 -2
- package/dist/{chunk-KWFYSZCH.js → chunk-I4OQGQ5M.js} +1 -1
- package/dist/{chunk-37AEW3GR.js → chunk-I542AQXY.js} +2 -2
- package/dist/{chunk-IJOIZLYK.js → chunk-IK7DQLH7.js} +4 -4
- package/dist/{chunk-4KC5DS6S.js → chunk-IPTZMILN.js} +1 -1
- package/dist/{chunk-ZOCKADVZ.js → chunk-IQA5CXNE.js} +1 -1
- package/dist/{chunk-7LO34MHD.js → chunk-JET2QWI5.js} +2 -2
- package/dist/{chunk-N4FY2HKI.js → chunk-JN4ING5S.js} +2 -2
- package/dist/{chunk-SUZQXGUS.js → chunk-JUI6DQFD.js} +2 -2
- package/dist/{chunk-TE3W2M5C.js → chunk-JX7623IE.js} +4 -274
- package/dist/{chunk-MGDDKISL.js → chunk-JYOOWDQK.js} +1 -1
- package/dist/{chunk-2NDIECXH.js → chunk-LIQZZ6AE.js} +1 -1
- package/dist/{chunk-IHRUU5WH.js → chunk-M5PWCI3M.js} +2 -2
- package/dist/{chunk-TQIH2UOD.js → chunk-MZ2LNNLT.js} +4 -4
- package/dist/{chunk-3GF2F27E.js → chunk-NAUOUIEW.js} +1 -1
- package/dist/{chunk-2KVC32Y3.js → chunk-NECZT66A.js} +2 -2
- package/dist/{chunk-LE3XMWQX.js → chunk-OFAEOC67.js} +4 -4
- package/dist/{chunk-XG64CLX7.js → chunk-OO4R2IFF.js} +1 -1
- package/dist/{chunk-WOJPS7PK.js → chunk-P4FZ67X5.js} +1 -1
- package/dist/{chunk-KWZSUULG.js → chunk-PBTXEWFY.js} +2 -2
- package/dist/{chunk-3JFTAIKA.js → chunk-POCPG2WI.js} +7 -7
- package/dist/{chunk-J7XEUHMI.js → chunk-PVR4LBWK.js} +9 -9
- package/dist/{upstreamProxy-W5FWAT5Z.js → chunk-QCAKISPA.js} +0 -11
- package/dist/{chunk-ZPRNVEOF.js → chunk-QQSVDBSH.js} +9 -9
- package/dist/{chunk-57LBTIIT.js → chunk-RGGQBF7T.js} +1 -1
- package/dist/{chunk-PE4MPXIE.js → chunk-RV6ZSL4E.js} +3 -3
- package/dist/{chunk-YVWL2VBO.js → chunk-SGLUNJTO.js} +1 -1
- package/dist/{chunk-WMHMIMFW.js → chunk-SXMAJMTP.js} +1 -1
- package/dist/{chunk-3FSMDR37.js → chunk-T4TF22AD.js} +5 -5
- package/dist/{chunk-PLXD7DE2.js → chunk-TM4PTEAL.js} +1 -1
- package/dist/{chunk-3GSERPDG.js → chunk-TPVRUKKI.js} +4 -4
- package/dist/chunk-UG3G4HEH.js +701 -0
- package/dist/{chunk-FWNIFHN5.js → chunk-ULNYVLR5.js} +1 -1
- package/dist/{chunk-P63B2XHE.js → chunk-VTLYJLGX.js} +2 -2
- package/dist/{chunk-GCL4GZVF.js → chunk-W56YNDIJ.js} +1 -1
- package/dist/{chunk-X3ZA4UCJ.js → chunk-WT2OKPEW.js} +1 -1
- package/dist/{chunk-KHK4M5ZI.js → chunk-XUCEC2EI.js} +1 -1
- package/dist/{chunk-HZE3LKBA.js → chunk-YZERHM3O.js} +2 -2
- package/dist/{chunk-E57FGXI2.js → chunk-Z2DDFW7J.js} +8 -8
- package/dist/{chunk-OGCP6FB2.js → chunk-ZJTSSZVG.js} +1 -1
- package/dist/{chunk-XEGFC2UX.js → chunk-ZQMK76GC.js} +1 -1
- package/dist/{chunk-5PE6556N.js → chunk-ZR7CJIH3.js} +18 -18
- package/dist/{clean-ZJIHNP2V.js → clean-YTQ7THRZ.js} +8 -7
- package/dist/cli.js +61 -61
- package/dist/{cloud-7I6NRBUH.js → cloud-NYF5MJVW.js} +4 -4
- package/dist/{compare-3LJ7SO5I.js → compare-Z32R2SCB.js} +11 -10
- package/dist/{component-MDRAU2EL.js → component-UAZQ4P7D.js} +3 -3
- package/dist/{compositions-7WWVFUKL.js → compositions-WRX752GP.js} +7 -6
- package/dist/{curve-CV2TEGZL.js → curve-GPONFTFR.js} +7 -6
- package/dist/{cuts-UUAWNDQJ.js → cuts-RC2WIAYL.js} +8 -7
- package/dist/{delete-FFGW2LXY.js → delete-MDRUJACW.js} +2 -2
- package/dist/{deploy-CWTKDXLS.js → deploy-EV4JCQW6.js} +2 -2
- package/dist/{describeProject-EDKWLCSL.js → describeProject-D2MMDRME.js} +3 -2
- package/dist/{destroy-NOYFGGDD.js → destroy-IBQ64X7C.js} +2 -2
- package/dist/{diff-YSHVMJC7.js → diff-BGZFEZ7V.js} +20 -19
- package/dist/{doctor-4FEE457C.js → doctor-TDF4VFEI.js} +7 -6
- package/dist/{energy-POEWTT6O.js → energy-DDE435SP.js} +8 -7
- package/dist/{events-FULDXHAM.js → events-CQLKSC62.js} +2 -2
- package/dist/{events-XQQBVMQT.js → events-IFAKMWNL.js} +9 -8
- package/dist/{events-I4LQF5YH.js → events-WA3SQMWZ.js} +3 -3
- package/dist/{execute-PM46UN5B.js → execute-H337HQ2I.js} +13 -12
- package/dist/{extract-RB6GUKDH.js → extract-LOH2HC74.js} +8 -7
- package/dist/{face-CTNMUSZJ.js → face-RMDNBINB.js} +8 -7
- package/dist/{feedback-JHSCPZAH.js → feedback-QX4CBEFU.js} +5 -5
- package/dist/{ffmpeg-ZDD7X4NY.js → ffmpeg-LXWLSIJN.js} +3 -2
- package/dist/{figma-DOTGYJR2.js → figma-QNCIZZKI.js} +3 -3
- package/dist/fontLocalizeCli.js +6 -5
- package/dist/{frames-BA2O2YJD.js → frames-M3ZAUTAZ.js} +9 -8
- package/dist/{generate-UVYECX6G.js → generate-JHWY26CH.js} +13 -12
- package/dist/{get-THXXCSQ6.js → get-UOPVKIUK.js} +2 -2
- package/dist/{gpuPolicy-SXWEHK7V.js → gpuPolicy-4UHHZMH7.js} +3 -2
- package/dist/{grade-compare-H3VNRJQD.js → grade-compare-TRTR3HGM.js} +12 -11
- package/dist/{heifImagePrep-OLZTCTGK.js → heifImagePrep-7DRKOFIJ.js} +4 -3
- package/dist/{help-LKHACFHV.js → help-XBJ3CPJG.js} +1 -1
- package/dist/{history-6ABMJPFQ.js → history-4NBOWTAK.js} +6 -6
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-6ID5AKTQ.js → info-6OUYHW5G.js} +9 -8
- package/dist/{init-DMFKWS6X.js → init-U4UGYE5D.js} +19 -18
- package/dist/{ink-TGKWBWHT.js → ink-3K5U33XB.js} +8 -7
- package/dist/{inspect-YV6LZCC5.js → inspect-U6QLWQW2.js} +13 -12
- package/dist/{keyframes-ZAEKCOXL.js → keyframes-HRT4ICFF.js} +6 -6
- package/dist/{lambda-44XW4CWE.js → lambda-QCYXB7S3.js} +5 -4
- package/dist/{layout-C5ZLVGVK.js → layout-S6E5YVK5.js} +13 -12
- package/dist/{lint-II2XYWFT.js → lint-JNQUZ5H6.js} +6 -6
- package/dist/{list-VR64W4L2.js → list-IEATKMVG.js} +2 -2
- package/dist/{localPage-7ANEOK7B.js → localPage-KKLCOLJR.js} +3 -2
- package/dist/{login-IXGTJPST.js → login-BWXQWFKL.js} +4 -4
- package/dist/{look-CJTTSIFD.js → look-5EMJASLS.js} +8 -7
- package/dist/{manager-W5HFI6EI.js → manager-7XKYKMB7.js} +4 -3
- package/dist/{measure-FSFVXCQ5.js → measure-UW3MUWR7.js} +11 -11
- package/dist/{media-treatment-2NRQQJKN.js → media-treatment-C26U3INH.js} +8 -7
- package/dist/{media-use-IKIIV7TQ.js → media-use-IGSJKXLU.js} +3 -3
- package/dist/{models-XDVZN6B2.js → models-XQMHEBHU.js} +7 -6
- package/dist/{motionShot-PJU7NV2G.js → motionShot-PH2I6VOO.js} +8 -7
- package/dist/{normalize-audio-6G5VU5XM.js → normalize-audio-ROHXFODM.js} +4 -4
- package/dist/{open-22OQII2X.js → open-UAGIY4HR.js} +4 -4
- package/dist/{parakeetRunner-YOQACWZQ.js → parakeetRunner-OOJI6E2B.js} +8 -7
- package/dist/{pipeline-DFPGGGHW.js → pipeline-GQUCPCXS.js} +6 -5
- package/dist/{plan-7IH2XDWA.js → plan-PNV4KSCO.js} +9 -8
- package/dist/{play-YDY6IZZH.js → play-UEEYAMEA.js} +4 -4
- package/dist/{preflight-EPJE4LO7.js → preflight-E6FYCMJX.js} +4 -3
- package/dist/{present-FFNDXDPP.js → present-ZKBO5RTJ.js} +4 -4
- package/dist/{preview-KBV5YTCC.js → preview-SQFT4TGS.js} +9 -8
- package/dist/{probe-ZN5VLXRP.js → probe-35RQ7WQ6.js} +8 -7
- package/dist/{producer-JIJV6EUA.js → producer-7PCYSXHR.js} +1 -1
- package/dist/publicNetwork-CWRD7PSE.js +34 -0
- package/dist/{publish-P5WEMSFM.js → publish-UEF3X6G7.js} +3 -3
- package/dist/{remove-background-TUJDKW2H.js → remove-background-KES26J53.js} +7 -6
- package/dist/{render-KICKIUBU.js → render-4C7Q32BC.js} +21 -20
- package/dist/{render-IS5W2MXU.js → render-GH2KWOVT.js} +13 -12
- package/dist/{reverse-AUPP7FPD.js → reverse-I6VOINAN.js} +1 -1
- package/dist/{screenshotCapture-WLPWWM4U.js → screenshotCapture-HXTGIPHY.js} +3 -2
- package/dist/{service-WJTJEB5D.js → service-KXRPG74T.js} +7 -6
- package/dist/{share-62SZB3ZC.js → share-G2UPZLLH.js} +10 -9
- package/dist/{sherpa-MCYJFFXG.js → sherpa-P3IEXV3S.js} +7 -6
- package/dist/{skills-WJWBMXTF.js → skills-4KNW2APN.js} +6 -6
- package/dist/{skillsUpdateCheck-UF27YQL3.js → skillsUpdateCheck-XRXMK2BR.js} +3 -3
- package/dist/{snapshot-EXHFVNL2.js → snapshot-MSTKQXSJ.js} +19 -18
- package/dist/{src-2IOZPMJR.js → src-5O3RW44E.js} +7 -5
- package/dist/{src-JYBAAFEQ.js → src-EJXQBNFT.js} +5 -4
- package/dist/{start-XSG7DSQ2.js → start-WERFNWUG.js} +11 -10
- package/dist/{staticProjectServer-FIGDMMOC.js → staticProjectServer-MTL5UOLQ.js} +3 -2
- package/dist/{status-PQ2WYRMY.js → status-MOLSRFMM.js} +4 -4
- package/dist/studio/assets/{hyperframes-player-DTdMXCCs.js → hyperframes-player-DYtpqF4w.js} +1 -1
- package/dist/studio/assets/{index-CdtV6F8j.js → index-D_6Nvt4M.js} +5 -5
- package/dist/studio/assets/{index-DA5GM2Mj.js → index-pSFnTYYo.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-B4OsoiOL.js → pausedVideoDecoder-D_jYmpmj.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studioServer-R5OHWANQ.js → studioServer-A73V7BGB.js} +27 -26
- package/dist/{sync-LD3KRR6A.js → sync-VV4THGGW.js} +8 -7
- package/dist/{telemetry-QZ6KSMD7.js → telemetry-VTF2M5AG.js} +3 -3
- package/dist/{templates-LMVSSS6P.js → templates-IDYVXLRA.js} +4 -4
- package/dist/{timeline-RFMWAREC.js → timeline-RHXNE24Z.js} +8 -7
- package/dist/{tokens-5G463QQT.js → tokens-TYYUI63J.js} +2 -2
- package/dist/{transcribe-7DCWYRRP.js → transcribe-5JGZPJCT.js} +15 -14
- package/dist/{transcribe-N3NT7EMS.js → transcribe-ZC22NJXV.js} +6 -5
- package/dist/{update-44NG62J2.js → update-QIVTZXMN.js} +7 -7
- package/dist/{updateCheck-PEVRHYT2.js → updateCheck-7RZEDERP.js} +2 -2
- package/dist/{upgrade-YGBOB2HE.js → upgrade-HYRR4ZLW.js} +3 -3
- package/dist/{urlDownloader-NBGMT536.js → urlDownloader-YPKIQ2PI.js} +2 -1
- package/dist/{validate-V65Y26SO.js → validate-ZWUJ2E2U.js} +12 -11
- package/dist/{video-RYUMW6QV.js → video-CNLMBOOB.js} +5 -4
- package/dist/{voices-OBIFVMMB.js → voices-4GOW5GZG.js} +11 -10
- package/dist/warmCheck.js +21 -20
- package/package.json +1 -1
- package/dist/chunk-TSYRN646.js +0 -84
|
@@ -4,14 +4,9 @@ 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
|
-
captureUpstreamProxy,
|
|
9
|
-
connectAuthority,
|
|
10
|
-
openUpstreamTunnel
|
|
11
|
-
} from "./chunk-TSYRN646.js";
|
|
12
7
|
import {
|
|
13
8
|
fetchLocalPageUrl
|
|
14
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CDBPBLYJ.js";
|
|
15
10
|
import {
|
|
16
11
|
ensureCaptureDirSync,
|
|
17
12
|
writeCaptureFileSync
|
|
@@ -24,8 +19,9 @@ import {
|
|
|
24
19
|
readBoundedResponse
|
|
25
20
|
} from "./chunk-AWDFDFI3.js";
|
|
26
21
|
import {
|
|
27
|
-
isBlockedNetworkHost
|
|
28
|
-
|
|
22
|
+
isBlockedNetworkHost,
|
|
23
|
+
publicRequest
|
|
24
|
+
} from "./chunk-UG3G4HEH.js";
|
|
29
25
|
import {
|
|
30
26
|
DOMParser,
|
|
31
27
|
parseHTML
|
|
@@ -34,270 +30,6 @@ import {
|
|
|
34
30
|
// src/capture/userAgent.ts
|
|
35
31
|
var CAPTURE_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36";
|
|
36
32
|
|
|
37
|
-
// src/capture/publicNetwork.ts
|
|
38
|
-
import { execFile } from "child_process";
|
|
39
|
-
import { promises as dns } from "dns";
|
|
40
|
-
import { readFile } from "fs/promises";
|
|
41
|
-
import { isIP } from "net";
|
|
42
|
-
import { request as httpRequest } from "http";
|
|
43
|
-
import { request as httpsRequest } from "https";
|
|
44
|
-
import { connect as tlsConnect } from "tls";
|
|
45
|
-
var DNS_TIMEOUT_MS = 1e4;
|
|
46
|
-
var CARES_TIMEOUT_MS = 5e3;
|
|
47
|
-
function isPublicIPv4(address) {
|
|
48
|
-
return isIP(address) === 4 && !isBlockedNetworkHost(address);
|
|
49
|
-
}
|
|
50
|
-
function assertPublicHostname(hostname) {
|
|
51
|
-
const host = hostname.toLowerCase().replace(/\.$/, "");
|
|
52
|
-
if (isIP(host) === 4) {
|
|
53
|
-
if (!isPublicIPv4(host)) throw new Error("Capture requires a public IPv4 address");
|
|
54
|
-
return host;
|
|
55
|
-
}
|
|
56
|
-
if (!host.includes(".") || !/^[a-z0-9.-]+$/.test(host) || /(?:^|\.)(?:localhost|local|internal|home|lan|test|invalid|example)$/.test(host) || host.split(".").some((label) => !label || label.startsWith("-") || label.endsWith("-"))) {
|
|
57
|
-
throw new Error("Capture requires a public hostname");
|
|
58
|
-
}
|
|
59
|
-
return host;
|
|
60
|
-
}
|
|
61
|
-
async function resolvePublicAddress(hostname) {
|
|
62
|
-
const host = assertPublicHostname(hostname);
|
|
63
|
-
if (isIP(host) === 4) return host;
|
|
64
|
-
const answers = await resolveIPv4(host);
|
|
65
|
-
const first = answers[0];
|
|
66
|
-
if (!first || !answers.every(isPublicIPv4)) {
|
|
67
|
-
throw new Error("Capture DNS returned a non-public address");
|
|
68
|
-
}
|
|
69
|
-
return first;
|
|
70
|
-
}
|
|
71
|
-
async function resolveIPv4(host) {
|
|
72
|
-
const fromHostsFile = (await hostsFileAnswers()).get(host);
|
|
73
|
-
if (fromHostsFile) return fromHostsFile;
|
|
74
|
-
const deadline = Date.now() + DNS_TIMEOUT_MS;
|
|
75
|
-
const fromSystem = systemAnswers.get(host);
|
|
76
|
-
if (fromSystem) return beforeDeadline(fromSystem, deadline);
|
|
77
|
-
return resolveWithCares(host).catch(
|
|
78
|
-
() => beforeDeadline(systemLookupInKillableChild(host, deadline - Date.now()), deadline)
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
var hostsFile;
|
|
82
|
-
function hostsFileAnswers() {
|
|
83
|
-
const path = process.platform === "win32" ? `${process.env.SystemRoot ?? "C:\\Windows"}\\System32\\drivers\\etc\\hosts` : "/etc/hosts";
|
|
84
|
-
hostsFile ??= readFile(path, "utf8").then(parseHostsFile, () => /* @__PURE__ */ new Map());
|
|
85
|
-
return hostsFile;
|
|
86
|
-
}
|
|
87
|
-
function parseHostsFile(text) {
|
|
88
|
-
const answers = /* @__PURE__ */ new Map();
|
|
89
|
-
for (const line of text.split(/\r?\n/)) {
|
|
90
|
-
const [address, ...names] = line.replace(/#.*/, "").trim().split(/\s+/);
|
|
91
|
-
if (!address || isIP(address) !== 4) continue;
|
|
92
|
-
for (const name of names) {
|
|
93
|
-
const key = name.toLowerCase().replace(/\.$/, "");
|
|
94
|
-
answers.set(key, [...answers.get(key) ?? [], address]);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return answers;
|
|
98
|
-
}
|
|
99
|
-
function beforeDeadline(work, deadline) {
|
|
100
|
-
let timer;
|
|
101
|
-
const late = new Promise((_resolve, reject) => {
|
|
102
|
-
timer = setTimeout(
|
|
103
|
-
() => reject(new Error("Capture DNS timed out")),
|
|
104
|
-
Math.max(0, deadline - Date.now())
|
|
105
|
-
);
|
|
106
|
-
});
|
|
107
|
-
return Promise.race([work, late]).finally(() => clearTimeout(timer));
|
|
108
|
-
}
|
|
109
|
-
async function resolveWithCares(host) {
|
|
110
|
-
const cancellableResolver = new dns.Resolver();
|
|
111
|
-
const timer = setTimeout(() => cancellableResolver.cancel(), CARES_TIMEOUT_MS);
|
|
112
|
-
try {
|
|
113
|
-
return await cancellableResolver.resolve4(host);
|
|
114
|
-
} finally {
|
|
115
|
-
clearTimeout(timer);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
var systemAnswers = /* @__PURE__ */ new Map();
|
|
119
|
-
var SYSTEM_LOOKUP = `require("node:dns").lookup(process.argv[1], { all: true, family: 4 }, (error, answers) =>
|
|
120
|
-
error ? process.stderr.write(String(error.code)) : process.stdout.write(JSON.stringify(answers.map((a) => a.address))))`;
|
|
121
|
-
var liveLookups = /* @__PURE__ */ new Set();
|
|
122
|
-
function helperEnded(error) {
|
|
123
|
-
if (!error) return "the lookup helper printed no answer";
|
|
124
|
-
return error.signal ? `the lookup helper was ended by ${error.signal}` : `the lookup helper exited with code ${error.code}`;
|
|
125
|
-
}
|
|
126
|
-
function systemLookupInKillableChild(host, timeoutMs) {
|
|
127
|
-
if (!process.listeners("exit").includes(killLiveLookups)) process.on("exit", killLiveLookups);
|
|
128
|
-
const answers = new Promise((resolve, reject) => {
|
|
129
|
-
const child = execFile(
|
|
130
|
-
process.execPath,
|
|
131
|
-
["-e", SYSTEM_LOOKUP, host],
|
|
132
|
-
{
|
|
133
|
-
timeout: Math.max(1, timeoutMs),
|
|
134
|
-
killSignal: "SIGKILL",
|
|
135
|
-
windowsHide: true,
|
|
136
|
-
env: { ...process.env, NODE_OPTIONS: "" }
|
|
137
|
-
},
|
|
138
|
-
(error, stdout, stderr) => {
|
|
139
|
-
if (error?.killed) reject(new Error("Capture DNS timed out"));
|
|
140
|
-
else if (!stdout) reject(new Error(`Capture DNS failed: ${stderr || helperEnded(error)}`));
|
|
141
|
-
else {
|
|
142
|
-
try {
|
|
143
|
-
resolve(JSON.parse(stdout));
|
|
144
|
-
} catch (parseError) {
|
|
145
|
-
reject(parseError);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
);
|
|
150
|
-
liveLookups.add(child);
|
|
151
|
-
child.once("exit", () => liveLookups.delete(child));
|
|
152
|
-
});
|
|
153
|
-
systemAnswers.set(host, answers);
|
|
154
|
-
answers.catch(() => systemAnswers.delete(host));
|
|
155
|
-
return answers;
|
|
156
|
-
}
|
|
157
|
-
function killLiveLookups() {
|
|
158
|
-
for (const child of liveLookups) child.kill("SIGKILL");
|
|
159
|
-
}
|
|
160
|
-
async function pinnedRoute(target, signal) {
|
|
161
|
-
const address = await new Promise((resolve, reject) => {
|
|
162
|
-
const onAbort = () => reject(signal.reason);
|
|
163
|
-
signal.addEventListener("abort", onAbort, { once: true });
|
|
164
|
-
resolvePublicAddress(target.hostname).then(resolve, reject).finally(() => signal.removeEventListener("abort", onAbort));
|
|
165
|
-
});
|
|
166
|
-
signal.throwIfAborted();
|
|
167
|
-
return {
|
|
168
|
-
options: {
|
|
169
|
-
hostname: address,
|
|
170
|
-
port: target.port || void 0,
|
|
171
|
-
agent: false,
|
|
172
|
-
servername: target.hostname,
|
|
173
|
-
rejectUnauthorized: true
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
async function upstreamRoute(target, proxy, headers, signal) {
|
|
178
|
-
assertPublicHostname(target.hostname);
|
|
179
|
-
if (target.protocol === "http:") {
|
|
180
|
-
if (proxy.authorization) headers.set("proxy-authorization", proxy.authorization);
|
|
181
|
-
const path = `${target.origin}${target.pathname}${target.search}`;
|
|
182
|
-
return { options: { hostname: proxy.host, port: proxy.port, agent: false, path } };
|
|
183
|
-
}
|
|
184
|
-
const tunnel = await openUpstreamTunnel(proxy, connectAuthority(target), { signal });
|
|
185
|
-
return {
|
|
186
|
-
tunnel,
|
|
187
|
-
options: {
|
|
188
|
-
createConnection: () => tlsConnect({ socket: tunnel, servername: target.hostname, rejectUnauthorized: true })
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
async function publicRequest(url, init = {}) {
|
|
193
|
-
const target = new URL(url);
|
|
194
|
-
if (!["http:", "https:"].includes(target.protocol) || target.username || target.password) {
|
|
195
|
-
throw new Error("Capture requires an HTTP(S) URL without credentials");
|
|
196
|
-
}
|
|
197
|
-
const method = (init.method ?? "GET").toUpperCase();
|
|
198
|
-
if (!["GET", "HEAD"].includes(method) || init.body != null) {
|
|
199
|
-
throw new Error("Capture asset requests support only GET and HEAD without a body");
|
|
200
|
-
}
|
|
201
|
-
const signal = init.signal ?? AbortSignal.timeout(3e4);
|
|
202
|
-
signal.throwIfAborted();
|
|
203
|
-
const headers = new Headers(init.headers);
|
|
204
|
-
for (const name of [
|
|
205
|
-
"connection",
|
|
206
|
-
"proxy-authorization",
|
|
207
|
-
"proxy-connection",
|
|
208
|
-
"transfer-encoding",
|
|
209
|
-
"upgrade",
|
|
210
|
-
"content-length"
|
|
211
|
-
])
|
|
212
|
-
headers.delete(name);
|
|
213
|
-
headers.set("host", target.host);
|
|
214
|
-
headers.set("accept-encoding", "identity");
|
|
215
|
-
const proxy = captureUpstreamProxy();
|
|
216
|
-
const { options, tunnel } = proxy ? await upstreamRoute(target, proxy, headers, signal) : await pinnedRoute(target, signal);
|
|
217
|
-
return new Promise((resolve, reject) => {
|
|
218
|
-
const request = target.protocol === "https:" ? httpsRequest : httpRequest;
|
|
219
|
-
const req = request(
|
|
220
|
-
{
|
|
221
|
-
protocol: target.protocol,
|
|
222
|
-
path: `${target.pathname}${target.search}`,
|
|
223
|
-
...options,
|
|
224
|
-
method,
|
|
225
|
-
headers: Object.fromEntries(headers),
|
|
226
|
-
signal
|
|
227
|
-
},
|
|
228
|
-
(incoming) => {
|
|
229
|
-
try {
|
|
230
|
-
resolve(assetResponse(incoming, req, method));
|
|
231
|
-
} catch (error) {
|
|
232
|
-
incoming.destroy();
|
|
233
|
-
reject(error);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
);
|
|
237
|
-
req.once("error", (error) => {
|
|
238
|
-
tunnel?.destroy();
|
|
239
|
-
reject(error);
|
|
240
|
-
});
|
|
241
|
-
req.end();
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
function responseHeaders(incoming) {
|
|
245
|
-
const headers = new Headers();
|
|
246
|
-
for (const [name, value] of Object.entries(incoming.headers)) {
|
|
247
|
-
if (value === void 0) continue;
|
|
248
|
-
for (const item of Array.isArray(value) ? value : [value]) headers.append(name, item);
|
|
249
|
-
}
|
|
250
|
-
return headers;
|
|
251
|
-
}
|
|
252
|
-
function assetResponse(incoming, req, method) {
|
|
253
|
-
incoming.on("error", () => {
|
|
254
|
-
});
|
|
255
|
-
const headers = responseHeaders(incoming);
|
|
256
|
-
const encoding = headers.get("content-encoding")?.toLowerCase();
|
|
257
|
-
if (encoding && encoding !== "identity") {
|
|
258
|
-
throw new Error("Capture server ignored identity content encoding");
|
|
259
|
-
}
|
|
260
|
-
const status = incoming.statusCode ?? 502;
|
|
261
|
-
if (method === "HEAD" || [204, 205, 304].includes(status)) {
|
|
262
|
-
incoming.resume();
|
|
263
|
-
return new Response(null, { status, headers });
|
|
264
|
-
}
|
|
265
|
-
return new Response(responseBody(incoming, req), { status, headers });
|
|
266
|
-
}
|
|
267
|
-
function responseBody(incoming, req) {
|
|
268
|
-
let finished = false;
|
|
269
|
-
return new ReadableStream({
|
|
270
|
-
start(controller) {
|
|
271
|
-
incoming.on("data", (chunk) => {
|
|
272
|
-
if (finished) return;
|
|
273
|
-
controller.enqueue(chunk);
|
|
274
|
-
incoming.pause();
|
|
275
|
-
});
|
|
276
|
-
incoming.once("end", () => {
|
|
277
|
-
if (finished) return;
|
|
278
|
-
finished = true;
|
|
279
|
-
controller.close();
|
|
280
|
-
});
|
|
281
|
-
const fail = (error) => {
|
|
282
|
-
if (finished) return;
|
|
283
|
-
finished = true;
|
|
284
|
-
controller.error(error);
|
|
285
|
-
};
|
|
286
|
-
incoming.once("error", fail);
|
|
287
|
-
incoming.once("aborted", () => fail(new Error("Capture response aborted")));
|
|
288
|
-
incoming.pause();
|
|
289
|
-
},
|
|
290
|
-
pull() {
|
|
291
|
-
incoming.resume();
|
|
292
|
-
},
|
|
293
|
-
cancel() {
|
|
294
|
-
finished = true;
|
|
295
|
-
incoming.destroy();
|
|
296
|
-
req.destroy();
|
|
297
|
-
}
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
|
|
301
33
|
// src/capture/assetDownloader.ts
|
|
302
34
|
import { join, extname } from "path";
|
|
303
35
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -1138,8 +870,6 @@ function deriveAssetName(parsedUrl, catalog, isPoster, idx, usedNames) {
|
|
|
1138
870
|
}
|
|
1139
871
|
|
|
1140
872
|
export {
|
|
1141
|
-
assertPublicHostname,
|
|
1142
|
-
resolvePublicAddress,
|
|
1143
873
|
CAPTURE_USER_AGENT,
|
|
1144
874
|
noDrops,
|
|
1145
875
|
mergeDrops,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
findFFmpeg,
|
|
22
22
|
findFFprobe,
|
|
23
23
|
getFFmpegInstallHint
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZJTSSZVG.js";
|
|
25
25
|
import {
|
|
26
26
|
AUDIO_EXTS,
|
|
27
27
|
CONVERTIBLE_IMAGE_EXTS,
|
|
@@ -630,7 +630,7 @@ async function prepareEntryGifs(ctx, fileMap) {
|
|
|
630
630
|
if (!html || !/\.gif\b/i.test(html)) return;
|
|
631
631
|
const sourceAssets = entryGifSources(ctx, entryPath, html);
|
|
632
632
|
if (!sourceAssets) return;
|
|
633
|
-
const prep = ctx.opts.gifPrep ?? (await import("./src-
|
|
633
|
+
const prep = ctx.opts.gifPrep ?? (await import("./src-EJXQBNFT.js")).prepareAnimatedGifInputs;
|
|
634
634
|
const outputDir = mkdtempSync(join(tmpdir(), "hf-offload-gif-"));
|
|
635
635
|
ctx.tempFiles.push(outputDir);
|
|
636
636
|
const result = await prep(html, {
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
} from "./chunk-I6V25IXG.js";
|
|
14
14
|
import {
|
|
15
15
|
parseDeliveryFlags
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2GS3N3TZ.js";
|
|
17
17
|
import {
|
|
18
18
|
resolveProject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IQA5CXNE.js";
|
|
20
20
|
import {
|
|
21
21
|
parseGifLoopArg,
|
|
22
22
|
parseHlsSegmentSecondsArg,
|
|
23
23
|
resolveBrowserTimeoutMsArg,
|
|
24
24
|
resolveDefaultFpsArg
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WT2OKPEW.js";
|
|
26
26
|
import {
|
|
27
27
|
errorBox
|
|
28
28
|
} from "./chunk-ZLTB7ZCQ.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
MAX_VP9_CPU_USED,
|
|
39
39
|
MIN_VP9_CPU_USED,
|
|
40
40
|
isVideoFrameFormat
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-3JWNN5PN.js";
|
|
42
42
|
import {
|
|
43
43
|
DISTRIBUTED_FPS,
|
|
44
44
|
formatRenderOutputTimestamp,
|
|
@@ -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-WA3SQMWZ.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
loadProducer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FFZE3G5R.js";
|
|
10
10
|
import {
|
|
11
11
|
extractAudioMetadata
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3JWNN5PN.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveProjectRelativeSrc
|
|
15
15
|
} from "./chunk-MP4TEYUJ.js";
|
|
@@ -7,12 +7,12 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
findCuts,
|
|
9
9
|
signatures
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EWMPCW7J.js";
|
|
11
11
|
import {
|
|
12
12
|
jsonArg,
|
|
13
13
|
num,
|
|
14
14
|
runMeasure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FLHKID4G.js";
|
|
16
16
|
import {
|
|
17
17
|
chargedCredits,
|
|
18
18
|
idempotencyKey,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
publicVoices,
|
|
23
23
|
runJob,
|
|
24
24
|
senderScope
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YZERHM3O.js";
|
|
26
26
|
import {
|
|
27
27
|
Fix,
|
|
28
28
|
probeSeconds,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
round,
|
|
32
32
|
runFfmpeg,
|
|
33
33
|
videoClip
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-LIQZZ6AE.js";
|
|
35
35
|
import {
|
|
36
36
|
loadSharp
|
|
37
37
|
} from "./chunk-YTHXSYYB.js";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FF3VETCD.js";
|
|
11
11
|
import {
|
|
12
12
|
readJsonFlag
|
|
13
13
|
} from "./chunk-EHZESMRB.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-MOTJT42J.js";
|
|
33
33
|
import {
|
|
34
34
|
trackRegistryItemAdded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-5AJNQMML.js";
|
|
36
36
|
import {
|
|
37
37
|
defineCommand
|
|
38
38
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -6,34 +6,34 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
parakeetRunner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OO4R2IFF.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ESXZZU25.js";
|
|
16
16
|
import {
|
|
17
17
|
idempotencyKey,
|
|
18
18
|
runJob
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YZERHM3O.js";
|
|
20
20
|
import {
|
|
21
21
|
projectOf,
|
|
22
22
|
runFfmpeg
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-LIQZZ6AE.js";
|
|
24
24
|
import {
|
|
25
25
|
initialModelForLanguage,
|
|
26
26
|
transcribe
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-DACTRVDQ.js";
|
|
28
28
|
import {
|
|
29
29
|
createRenderCancellationScope,
|
|
30
30
|
stoppedByCancelSignal
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JYOOWDQK.js";
|
|
32
32
|
import {
|
|
33
33
|
DEFAULT_MODEL,
|
|
34
34
|
findWhisper,
|
|
35
35
|
isWhisperUnavailable
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-7X2TCJJ7.js";
|
|
37
37
|
import {
|
|
38
38
|
formatSrt,
|
|
39
39
|
formatVtt,
|
|
@@ -9,20 +9,20 @@ import {
|
|
|
9
9
|
resolveCliChromeGpuMode,
|
|
10
10
|
seekCompositionTimeline,
|
|
11
11
|
waitForRuntimeReady
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CTWD5ND3.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveCompositionViewportFromHtml
|
|
15
15
|
} from "./chunk-MR7VKWYT.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveProject
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IQA5CXNE.js";
|
|
19
19
|
import {
|
|
20
20
|
pageNavigationTimeoutMs
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WT2OKPEW.js";
|
|
22
22
|
import {
|
|
23
23
|
launchManagedBrowser,
|
|
24
24
|
resolveManagedGpuMode
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-GXPAR6JC.js";
|
|
26
26
|
import {
|
|
27
27
|
defineCommand
|
|
28
28
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
printDeprecationNotice,
|
|
40
40
|
withMeta
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ULNYVLR5.js";
|
|
42
42
|
import {
|
|
43
43
|
failureMessage,
|
|
44
44
|
jsonFailure
|
|
@@ -253,7 +253,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
253
253
|
async function localizeRemoteAssets(html) {
|
|
254
254
|
let dir;
|
|
255
255
|
try {
|
|
256
|
-
const { loadProducer } = await import("./producer-
|
|
256
|
+
const { loadProducer } = await import("./producer-7PCYSXHR.js");
|
|
257
257
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
258
258
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
259
259
|
const assetDir = dir;
|
|
@@ -276,7 +276,7 @@ async function validateInBrowser(project, opts) {
|
|
|
276
276
|
const projectDir = project.dir;
|
|
277
277
|
const { bundleToSingleHtml } = await import("./compiler-XTVXLGQA.js");
|
|
278
278
|
const { ensureBrowser } = await import("./manager-25RJ4IZN.js");
|
|
279
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
279
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-MTL5UOLQ.js");
|
|
280
280
|
const { lintProject } = await import("./lintProject-7C4U6NHF.js");
|
|
281
281
|
const lintResult = await lintProject(projectDir);
|
|
282
282
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
@@ -298,9 +298,9 @@ async function validateInBrowser(project, opts) {
|
|
|
298
298
|
try {
|
|
299
299
|
const browser = await ensureBrowser();
|
|
300
300
|
const puppeteer = await import("puppeteer-core");
|
|
301
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
301
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-5O3RW44E.js");
|
|
302
302
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
303
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-
|
|
303
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-4UHHZMH7.js");
|
|
304
304
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
305
305
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
306
306
|
const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|
|
@@ -4,14 +4,3 @@ 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
|
-
captureUpstreamProxy,
|
|
9
|
-
connectAuthority,
|
|
10
|
-
openUpstreamTunnel
|
|
11
|
-
} from "./chunk-TSYRN646.js";
|
|
12
|
-
import "./chunk-M2WBOQ2Q.js";
|
|
13
|
-
export {
|
|
14
|
-
captureUpstreamProxy,
|
|
15
|
-
connectAuthority,
|
|
16
|
-
openUpstreamTunnel
|
|
17
|
-
};
|
|
@@ -7,15 +7,15 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
ambiguousIssue,
|
|
9
9
|
loadBrowserScript
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Z2DDFW7J.js";
|
|
11
11
|
import {
|
|
12
12
|
auditClipDurations,
|
|
13
13
|
shouldIgnoreHttpError,
|
|
14
14
|
shouldIgnoreRequestFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PVR4LBWK.js";
|
|
16
16
|
import {
|
|
17
17
|
serveStaticProjectHtml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6DNSUUKB.js";
|
|
19
19
|
import {
|
|
20
20
|
AUDIT_SEEK_OPTIONS,
|
|
21
21
|
DEFAULT_ZOOM_PADDING_PX,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
seekCompositionTimeline,
|
|
30
30
|
seekInPage,
|
|
31
31
|
waitForPreferredSeekTarget
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CTWD5ND3.js";
|
|
33
33
|
import {
|
|
34
34
|
SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS,
|
|
35
35
|
withRemainingBudget
|
|
@@ -59,13 +59,13 @@ import {
|
|
|
59
59
|
BrowserCleanupError,
|
|
60
60
|
closeManagedBrowser,
|
|
61
61
|
onStopSignal
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-GXPAR6JC.js";
|
|
63
63
|
import {
|
|
64
64
|
resolveAutoProxy
|
|
65
65
|
} from "./chunk-FCNMU7LC.js";
|
|
66
66
|
import {
|
|
67
67
|
DEFAULT_CONFIG
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-3JWNN5PN.js";
|
|
69
69
|
import {
|
|
70
70
|
injectTagsAtHeadStart
|
|
71
71
|
} from "./chunk-DQZRNGDS.js";
|
|
@@ -928,7 +928,7 @@ function proxyFailedDraft(message) {
|
|
|
928
928
|
return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
|
|
929
929
|
}
|
|
930
930
|
async function loadCheckHtmlWithDeferredMedia(dir) {
|
|
931
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
931
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-M64DWYM5.js");
|
|
932
932
|
return withCapturePreviewMark(await bundleWithLocalizedFonts(dir));
|
|
933
933
|
}
|
|
934
934
|
function withCapturePreviewMark(html) {
|
|
@@ -1001,7 +1001,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
1001
1001
|
).map((draft) => runtimeFinding(draft, rootAnchor))
|
|
1002
1002
|
}));
|
|
1003
1003
|
const launchSettleMs = Date.now() - launchSettleStart;
|
|
1004
|
-
const { analyzeClipMediaFit } = await import("./src-
|
|
1004
|
+
const { analyzeClipMediaFit } = await import("./src-5O3RW44E.js");
|
|
1005
1005
|
for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
|
|
1006
1006
|
drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
|
|
1007
1007
|
}
|
|
@@ -1143,7 +1143,7 @@ async function captureFindingCrops(project, options, requests, deadline) {
|
|
|
1143
1143
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
1144
1144
|
if (requests.length === 0) return { written: [], inspected: [] };
|
|
1145
1145
|
const inspector = requests.some((request) => request.inspect?.length) ? await prepareFindingInspector(project.dir, async (bundleOptions) => {
|
|
1146
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
1146
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-M64DWYM5.js");
|
|
1147
1147
|
return withCapturePreviewMark(
|
|
1148
1148
|
await bundleWithLocalizedFonts(project.dir, void 0, bundleOptions)
|
|
1149
1149
|
);
|