hyperframes 0.8.195 → 0.8.197
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-NL6XABRV.js → add-5GQIR5OE.js} +12 -12
- package/dist/{animatedGifPrep-JD4BBM2L.js → animatedGifPrep-MGFQWIGJ.js} +8 -8
- package/dist/api.js +16 -16
- package/dist/{asset-LRRHLG4L.js → asset-ADX55DGH.js} +2 -2
- package/dist/{assetCataloger-D7KGO346.js → assetCataloger-GGBWBQZW.js} +8 -8
- package/dist/{audio-34CZM4HF.js → audio-SPB4CLRU.js} +14 -14
- package/dist/{auth-FL5ZMOXB.js → auth-WBAB35QA.js} +1 -1
- package/dist/{autoUpdate-FZTJFLIH.js → autoUpdate-5VUDX7JO.js} +2 -2
- package/dist/{backgroundChecks-6ZKDCQET.js → backgroundChecks-ATZQQUMR.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-KDZ4F4QT.js → batchRender-6S2XULOE.js} +4 -4
- package/dist/{beats-7PK677VR.js → beats-WJPHWDZ6.js} +9 -9
- package/dist/{benchmark-LO36QH5D.js → benchmark-LZVR7PF6.js} +9 -9
- package/dist/{browser-3F7NDHU2.js → browser-QJ3PFVDY.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-JL5J52L6.js → bundleWithLocalizedFonts-564BQ73K.js} +2 -2
- package/dist/{capture-DOP3ONNZ.js → capture-3PUQLQNM.js} +11 -11
- package/dist/{capture-JOSZZYUW.js → capture-IRAYPK52.js} +2 -2
- package/dist/{captureCompositionFrame-SWZ4GEJP.js → captureCompositionFrame-OHS3WBTA.js} +13 -13
- package/dist/{catalog-EZLHZMLM.js → catalog-IQKJLTSF.js} +12 -12
- package/dist/{catch-up-6B7VY43I.js → catch-up-C4JJJNP3.js} +4 -4
- package/dist/{check-QGELCBBF.js → check-46Z5CAA4.js} +37 -37
- package/dist/{checkBrowser-A5C2AB4L.js → checkBrowser-KAC54SLQ.js} +32 -32
- package/dist/{chunk-NKNRVPNV.js → chunk-2C4VIQ2H.js} +2 -2
- package/dist/{chunk-D6XDOYMB.js → chunk-2R7QYR2D.js} +1 -1
- package/dist/{chunk-W7GMPEY3.js → chunk-33BFEUCL.js} +15 -11
- package/dist/{chunk-KJ6ZQL34.js → chunk-3DEBV7RH.js} +1 -1
- package/dist/{chunk-7DFIVUOW.js → chunk-3HOQ5ZMS.js} +6 -6
- package/dist/{chunk-L4BFXWHC.js → chunk-454VK7CA.js} +17 -17
- package/dist/{chunk-IZR7U27Z.js → chunk-46J53I7B.js} +47 -16
- package/dist/{chunk-SMROKE63.js → chunk-4FXJ54L4.js} +2 -2
- package/dist/{chunk-OB4GJZTY.js → chunk-4MNF7ALL.js} +1 -1
- package/dist/{chunk-GKMRLES4.js → chunk-5FY7ARKL.js} +1 -1
- package/dist/{chunk-YUFECVHG.js → chunk-5L6UY76S.js} +1 -1
- package/dist/{chunk-IZCW2NKT.js → chunk-5S7W3TUO.js} +1 -0
- package/dist/{chunk-YSXCPSJ4.js → chunk-6DMFWXDH.js} +3 -3
- package/dist/{chunk-KVLGJJTE.js → chunk-6LN4GQH3.js} +5 -5
- package/dist/{chunk-E527A6RS.js → chunk-6UX32GRW.js} +2 -2
- package/dist/{chunk-4R2NWLQL.js → chunk-7JMUJID2.js} +1 -1
- package/dist/{chunk-WUL5LPI2.js → chunk-AHE4R7PV.js} +9 -1
- package/dist/{chunk-F4T7XYMF.js → chunk-AXJMD32I.js} +1 -1
- package/dist/{chunk-FWDDLW2H.js → chunk-B6D7KOXQ.js} +2 -2
- package/dist/{chunk-ES7KSCSO.js → chunk-BF3ACZAB.js} +9 -9
- package/dist/{chunk-3OAFRLD3.js → chunk-BNMVX4JK.js} +11 -8
- package/dist/{chunk-66Q27H72.js → chunk-BXXEQFRW.js} +2 -2
- package/dist/{chunk-NOHH25WS.js → chunk-C4REI4HU.js} +2 -2
- package/dist/{chunk-CCZMCX3F.js → chunk-DTC4KKFP.js} +1 -1
- package/dist/{chunk-ST35C4K6.js → chunk-DY53XJ3P.js} +1 -1
- package/dist/{chunk-BBXZPDEA.js → chunk-FFPKJU7T.js} +2 -2
- package/dist/{chunk-ROEW726S.js → chunk-FMTJ4I6I.js} +1 -1
- package/dist/{chunk-ORZMO6NY.js → chunk-FUAS4KCJ.js} +3 -3
- package/dist/chunk-G5RNOVAV.js +3901 -0
- package/dist/{chunk-7Y5RVQQ7.js → chunk-GC4NUZAR.js} +4 -4
- package/dist/{chunk-7G2LQM3J.js → chunk-GGURM4ZM.js} +27 -18
- package/dist/{chunk-VNWX5GBF.js → chunk-GI2WXOY5.js} +4 -3
- package/dist/{chunk-ZOJHEN3C.js → chunk-GM6WM6YH.js} +1 -1
- package/dist/{chunk-6ORTRIDW.js → chunk-IFOJM6PV.js} +3 -3
- package/dist/{chunk-SC6NILKD.js → chunk-IHSFWHXI.js} +1 -1
- package/dist/{chunk-E74JMKSK.js → chunk-IK4Q7EKF.js} +2 -2
- package/dist/{chunk-TE6VGYHQ.js → chunk-IY2NZKMG.js} +1 -1
- package/dist/{chunk-636WBDXB.js → chunk-J756NYRP.js} +5 -5
- package/dist/{chunk-GJG4CTXD.js → chunk-KBVJ6G65.js} +3 -3
- package/dist/{chunk-3PYIQLPL.js → chunk-MGSQPE6P.js} +1 -1
- package/dist/{chunk-YFTO5YD7.js → chunk-NAZ54XAE.js} +5 -5
- package/dist/{chunk-XOUWCZHD.js → chunk-OEC7RJVD.js} +1 -1
- package/dist/{chunk-W4SSWOOD.js → chunk-PDDVEHWJ.js} +2 -2
- package/dist/{chunk-OJNNKHAZ.js → chunk-PGDWNIOK.js} +7 -2
- package/dist/{chunk-RZUEXJRC.js → chunk-POYHL7UJ.js} +2 -2
- package/dist/{chunk-L2EBYFU7.js → chunk-PRURJIVL.js} +1 -1
- package/dist/{chunk-2OYYNKJ4.js → chunk-QXPZGDTI.js} +1 -1
- package/dist/{chunk-IA7HZ4CM.js → chunk-RHYXITPN.js} +3 -3
- package/dist/{chunk-GOOE33GV.js → chunk-RNPTRRLX.js} +1 -1
- package/dist/{chunk-ELQ2QQC5.js → chunk-SD2IVQXM.js} +1 -1
- package/dist/{chunk-HJINEUHY.js → chunk-T3CBCGU4.js} +179 -131
- package/dist/{chunk-7PXVXRVX.js → chunk-UP7IRMTI.js} +9 -9
- package/dist/{chunk-HTLCE7M2.js → chunk-VFSFTVOT.js} +67 -24
- package/dist/{chunk-CZNSLFYD.js → chunk-VLVQQJOX.js} +14 -7
- package/dist/{chunk-B7Y2DGU6.js → chunk-WKHPW2BC.js} +1 -1
- package/dist/{chunk-RAACYYWX.js → chunk-WNLHEUZU.js} +1 -1
- package/dist/{chunk-2G6JZJAV.js → chunk-WWE73ZFN.js} +2 -2
- package/dist/{chunk-HT33OHQL.js → chunk-WY6X5Q33.js} +1 -1
- package/dist/{chunk-ZL6ZCLY6.js → chunk-X56HO2IP.js} +1 -1
- package/dist/{chunk-XC7SJ2UR.js → chunk-X73MOLUS.js} +3 -3
- package/dist/{chunk-2HSRLKZR.js → chunk-XE5DW6UC.js} +3 -3
- package/dist/{chunk-B7RJV74O.js → chunk-XOTUPVIF.js} +4 -0
- package/dist/{chunk-2TU4OKIR.js → chunk-YUODO5H2.js} +31 -0
- package/dist/{chunk-ZAVUASNT.js → chunk-ZAY376M4.js} +1 -1
- package/dist/{chunk-P5X5URNQ.js → chunk-ZE6CLWXL.js} +1 -1
- package/dist/{clean-PI4JLT6O.js → clean-JM6Y5V2G.js} +18 -18
- package/dist/cli.js +53 -53
- package/dist/{cloud-SQRY723M.js → cloud-DWKTRWWB.js} +4 -4
- package/dist/{cloudrun-VMPROR43.js → cloudrun-HLUQOVRO.js} +6 -6
- package/dist/{compare-EHX4APTP.js → compare-GVTQBP4N.js} +29 -29
- package/dist/{compiler-FZCJGGBF.js → compiler-3MDCAKFB.js} +4 -4
- package/dist/{component-I75ZKJYH.js → component-QSRD6BSP.js} +3 -3
- package/dist/{compositions-YNYYUEQD.js → compositions-BDITIWMO.js} +12 -12
- package/dist/{delete-7BVTBKOC.js → delete-G2MXPSLU.js} +2 -2
- package/dist/{deploy-TUEEJP3W.js → deploy-Q7RDYGFL.js} +1 -1
- package/dist/{deterministicFonts-RADD3BSX.js → deterministicFonts-RMA7GDJC.js} +2 -2
- package/dist/{dist-VVROHSP4.js → dist-WHAM6TAE.js} +3 -3
- package/dist/{dist-VRGIE57H.js → dist-XPD7X6JB.js} +1 -1
- package/dist/{doctor-53DSQFW4.js → doctor-Q7SJW3MZ.js} +12 -12
- package/dist/{events-AD3U6E7I.js → events-DOABLVUG.js} +2 -2
- package/dist/{events-M6FIUDNQ.js → events-XEAJVOX2.js} +3 -3
- package/dist/{feedback-7SQ7KKAR.js → feedback-K7I2FQQF.js} +8 -8
- package/dist/{ffmpeg-3HSSPXS4.js → ffmpeg-2LKYJYAF.js} +8 -8
- package/dist/{figma-B5XII2BO.js → figma-LXJRAIDI.js} +3 -3
- package/dist/fontLocalizeCli.js +11 -11
- package/dist/{get-RZKNBIRD.js → get-EDCTYZB6.js} +2 -2
- package/dist/{gpuPolicy-77LOK3K6.js → gpuPolicy-4YOOXLBX.js} +8 -8
- package/dist/{grade-compare-K3YB3FQA.js → grade-compare-ZWUXB3MD.js} +30 -30
- package/dist/{help-UM6INVL5.js → help-LEZ3E433.js} +1 -1
- package/dist/{history-EWKPACWR.js → history-YD7OKO74.js} +7 -7
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +58 -58
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-KY3MFTCY.js → info-SI2KU7J7.js} +8 -8
- package/dist/{init-LURF2PL5.js → init-INX5WA2G.js} +28 -28
- package/dist/{inspect-46CZJM6P.js → inspect-SJENYN3F.js} +30 -30
- package/dist/{installer-NGFX6INI.js → installer-JQ6DMFZ2.js} +5 -5
- package/dist/{keyframes-YCSK6POI.js → keyframes-EAVHD4PM.js} +6 -6
- package/dist/{lambda-5KXULI2S.js → lambda-323RMLN5.js} +8 -8
- package/dist/{layout-WOLH24YE.js → layout-JGCQYWWK.js} +30 -30
- package/dist/{lint-P3P2LX6S.js → lint-SFE43W5P.js} +7 -7
- package/dist/{lintProject-ESAJKFOX.js → lintProject-Q4ZVEF3G.js} +1 -1
- package/dist/{list-RUYQWMF2.js → list-N2NSYK6G.js} +2 -2
- package/dist/{login-THBBWZAY.js → login-QGISW3KF.js} +4 -4
- package/dist/{manager-V34BMSAG.js → manager-IXZJADWC.js} +9 -9
- package/dist/{media-treatment-IMBLTYGV.js → media-treatment-BTA7BV52.js} +14 -14
- package/dist/{models-3NW7HU72.js → models-NZEBSWXZ.js} +12 -12
- package/dist/{motionShot-VTTYZ6KW.js → motionShot-E4GNRX4N.js} +16 -16
- package/dist/{normalize-audio-ME3X7HBX.js → normalize-audio-F4Q5ZX5R.js} +6 -6
- package/dist/{open-GLGSJISM.js → open-A4U2RXCG.js} +12 -12
- package/dist/{parakeetRunner-T3UGRZWC.js → parakeetRunner-OVNNGTEB.js} +13 -13
- package/dist/{pipeline-IJXVEQCU.js → pipeline-Z76DCEY7.js} +9 -9
- package/dist/{play-HFFGGAZH.js → play-NWSZMZZG.js} +21 -21
- package/dist/{preflight-QV6V3UO2.js → preflight-I6UXFNYV.js} +9 -9
- package/dist/{present-TH34CTYY.js → present-QFZQ5VRM.js} +17 -17
- package/dist/{preview-R67EQGQP.js → preview-GXNG3UOV.js} +19 -19
- package/dist/{producer-HWPFETDU.js → producer-MGXGNSQX.js} +1 -1
- package/dist/{projectConfig-AO4V3RHS.js → projectConfig-TNL3ZDIP.js} +7 -7
- package/dist/{publication-BDQ3PXYG.js → publication-OO772CBM.js} +3 -3
- package/dist/{publish-PXYTWSXN.js → publish-X33ZCMFO.js} +11 -11
- package/dist/{remove-background-BVDJPT3Z.js → remove-background-JAD2RBYP.js} +10 -10
- package/dist/{render-45YHWV6W.js → render-2FX26ITP.js} +6 -6
- package/dist/{render-5MZY4TAB.js → render-BZCK6XNT.js} +16 -16
- package/dist/{render-5RQUYPIV.js → render-OJEKVJNG.js} +30 -30
- package/dist/{render-batch-ZUTUBTHX.js → render-batch-SP6HKIF4.js} +6 -6
- package/dist/renderSetupWorker.js +1 -1
- package/dist/{resolver-FN2M3XVM.js → resolver-QB7L6U4Q.js} +5 -5
- package/dist/{sherpa-6KWNPRWB.js → sherpa-BZLXBJTD.js} +12 -12
- package/dist/skills/hyperframes/references/film.md +1 -0
- package/dist/skills/media-use/scripts/lib/recipe-store.mjs +1 -0
- package/dist/skills/media-use/scripts/lib/recipe-store.test.mjs +24 -0
- package/dist/skills/media-use/scripts/lib/svg-sanitize.mjs +2 -2
- package/dist/{skills-PWQCM2BT.js → skills-OMKCU4HZ.js} +5 -5
- package/dist/{skillsUpdateCheck-EHV2G3JX.js → skillsUpdateCheck-NNURJXBS.js} +3 -3
- package/dist/{snapshot-7Q24NFEI.js → snapshot-J7Y3PCCI.js} +58 -37
- package/dist/{src-OS2FRVZV.js → src-2YZVFDNC.js} +7 -7
- package/dist/{src-J43SXEHJ.js → src-T5WHBOD2.js} +10 -10
- package/dist/{staticProjectServer-YJWOQJF4.js → staticProjectServer-PHNKV2NL.js} +18 -18
- package/dist/studio/assets/{hyperframes-player-DnIPEARk.js → hyperframes-player-Cyi8HgFo.js} +1 -1
- package/dist/studio/assets/{index-Dkt4c1MV.js → index-6njHuMnJ.js} +106 -105
- package/dist/studio/assets/{index-CVppCm_X.js → index-DG6ZXBnu.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-CZBZ4D65.js → studio-api-VLJJP2GQ.js} +11 -11
- package/dist/{studioServer-U6EX5DSB.js → studioServer-G7RGGTWJ.js} +49 -49
- package/dist/{telemetry-VP4UWWO3.js → telemetry-2R6G2A54.js} +3 -3
- package/dist/{timeline-LMSUKEG6.js → timeline-B2CM5IZO.js} +19 -19
- package/dist/{tokens-FQ5AI5H4.js → tokens-7EOFUTMX.js} +2 -2
- package/dist/{transcribe-DNQFPZ2S.js → transcribe-7GTD3CEW.js} +11 -11
- package/dist/{transcribe-VAMXV7QS.js → transcribe-YJM673R7.js} +17 -17
- package/dist/{updateCheck-TOU7VLZK.js → updateCheck-JBIJ7L2D.js} +2 -2
- package/dist/{upgrade-CJRMRR2S.js → upgrade-WF2CBHOE.js} +2 -2
- package/dist/{urlDownloader-GETNWEIT.js → urlDownloader-HMXLCV4T.js} +7 -7
- package/dist/{validate-PRI2UTQS.js → validate-OHWQ7DQO.js} +24 -24
- package/dist/{video-VOCQA6AG.js → video-OEEM43V6.js} +8 -8
- package/dist/warmCheck.js +37 -37
- package/package.json +2 -2
- package/dist/chunk-ZQRD62QZ.js +0 -3901
|
@@ -7,19 +7,23 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
ambiguousIssue,
|
|
9
9
|
loadBrowserScript
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UP7IRMTI.js";
|
|
11
11
|
import {
|
|
12
12
|
auditClipDurations,
|
|
13
13
|
shouldIgnoreHttpError,
|
|
14
14
|
shouldIgnoreRequestFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GGURM4ZM.js";
|
|
16
16
|
import {
|
|
17
17
|
serveStaticProjectHtml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6LN4GQH3.js";
|
|
19
|
+
import {
|
|
20
|
+
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
21
|
+
STUDIO_PREVIEW_MARK_META
|
|
22
|
+
} from "./chunk-454VK7CA.js";
|
|
19
23
|
import {
|
|
20
24
|
artifactDirectory,
|
|
21
25
|
finishSnapshotRun
|
|
22
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PGDWNIOK.js";
|
|
23
27
|
import {
|
|
24
28
|
FfmpegUnavailableError,
|
|
25
29
|
decideMediaProxyEligibility,
|
|
@@ -27,7 +31,7 @@ import {
|
|
|
27
31
|
proxyVariantFor,
|
|
28
32
|
resolveProxies,
|
|
29
33
|
scanProjectMediaCodecMap
|
|
30
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-KBVJ6G65.js";
|
|
31
35
|
import {
|
|
32
36
|
AUDIT_SEEK_OPTIONS,
|
|
33
37
|
DEFAULT_ZOOM_PADDING_PX,
|
|
@@ -41,17 +45,20 @@ import {
|
|
|
41
45
|
seekCompositionTimeline,
|
|
42
46
|
seekInPage,
|
|
43
47
|
waitForPreferredSeekTarget
|
|
44
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-BF3ACZAB.js";
|
|
45
49
|
import {
|
|
46
50
|
BrowserCleanupError,
|
|
47
51
|
closeManagedBrowser
|
|
48
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-AHE4R7PV.js";
|
|
49
53
|
import {
|
|
50
54
|
findStageProxyBox
|
|
51
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-RNPTRRLX.js";
|
|
52
56
|
import {
|
|
53
57
|
resolveAutoProxy
|
|
54
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-WNLHEUZU.js";
|
|
59
|
+
import {
|
|
60
|
+
injectTagsAtHeadStart
|
|
61
|
+
} from "./chunk-G5RNOVAV.js";
|
|
55
62
|
import {
|
|
56
63
|
normalizeErrorMessage
|
|
57
64
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -388,9 +395,15 @@ function proxyCached(projectDir, source) {
|
|
|
388
395
|
function proxyFailedDraft(message) {
|
|
389
396
|
return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
|
|
390
397
|
}
|
|
398
|
+
async function loadCheckHtmlWithDeferredMedia(dir) {
|
|
399
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-564BQ73K.js");
|
|
400
|
+
return injectTagsAtHeadStart(
|
|
401
|
+
await bundleWithLocalizedFonts(dir),
|
|
402
|
+
`<meta name="${STUDIO_PREVIEW_MARK_META}" content="${STUDIO_PREVIEW_CAPTURE_MODE}">`
|
|
403
|
+
);
|
|
404
|
+
}
|
|
391
405
|
async function runBrowserCheck(project, options, motion, runGrid, deadline, prelaunched) {
|
|
392
|
-
const
|
|
393
|
-
const html = await bundleWithLocalizedFonts(project.dir);
|
|
406
|
+
const html = await loadCheckHtmlWithDeferredMedia(project.dir);
|
|
394
407
|
deadline?.enter("copies");
|
|
395
408
|
const { findings: drafts, failedPaths } = await preResolveHostileMediaProxies(
|
|
396
409
|
project.dir,
|
|
@@ -442,7 +455,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
442
455
|
).map((draft) => runtimeFinding(draft, rootAnchor))
|
|
443
456
|
}));
|
|
444
457
|
const launchSettleMs = Date.now() - launchSettleStart;
|
|
445
|
-
const { analyzeClipMediaFit } = await import("./src-
|
|
458
|
+
const { analyzeClipMediaFit } = await import("./src-2YZVFDNC.js");
|
|
446
459
|
for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
|
|
447
460
|
drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
|
|
448
461
|
}
|
|
@@ -559,8 +572,7 @@ function mergeHelperDrafts(primary, helper) {
|
|
|
559
572
|
}
|
|
560
573
|
async function captureFindingCrops(project, options, requests, deadline) {
|
|
561
574
|
if (requests.length === 0) return [];
|
|
562
|
-
const
|
|
563
|
-
const html = await bundleWithLocalizedFonts(project.dir);
|
|
575
|
+
const html = await loadCheckHtmlWithDeferredMedia(project.dir);
|
|
564
576
|
const server = await serveStaticProjectHtml(
|
|
565
577
|
project.dir,
|
|
566
578
|
html,
|
|
@@ -786,8 +798,27 @@ function wireNetworkListeners(page, drafts, clock) {
|
|
|
786
798
|
});
|
|
787
799
|
});
|
|
788
800
|
}
|
|
801
|
+
function failWhenPageDies(page, driver) {
|
|
802
|
+
const dead = new Promise((_, reject) => {
|
|
803
|
+
page.on(
|
|
804
|
+
"error",
|
|
805
|
+
(error) => reject(new Error(`The page crashed: ${normalizeErrorMessage(error)}`))
|
|
806
|
+
);
|
|
807
|
+
page.on("close", () => reject(new Error("The page closed before the check finished")));
|
|
808
|
+
});
|
|
809
|
+
dead.catch(() => void 0);
|
|
810
|
+
return Object.fromEntries(
|
|
811
|
+
Object.entries(driver).map(([name, member]) => [
|
|
812
|
+
name,
|
|
813
|
+
typeof member === "function" ? (...args) => {
|
|
814
|
+
const result = Reflect.apply(member, driver, args);
|
|
815
|
+
return result instanceof Promise ? Promise.race([result, dead]) : result;
|
|
816
|
+
} : member
|
|
817
|
+
])
|
|
818
|
+
);
|
|
819
|
+
}
|
|
789
820
|
function createPageDriver(page, clock = createRuntimeClock(), sampleLog) {
|
|
790
|
-
return {
|
|
821
|
+
return failWhenPageDies(page, {
|
|
791
822
|
initialize: (contrast) => injectAuditScripts(page, contrast),
|
|
792
823
|
markSamples: (phase) => {
|
|
793
824
|
if (!sampleLog) return;
|
|
@@ -836,7 +867,7 @@ function createPageDriver(page, clock = createRuntimeClock(), sampleLog) {
|
|
|
836
867
|
collectContrast: (time, annotations) => collectContrast(page, time, annotations),
|
|
837
868
|
collectCraftFrame: (time) => collectCraftFrame(page, time),
|
|
838
869
|
collectCraftFilm: () => collectCraftFilm(page)
|
|
839
|
-
};
|
|
870
|
+
});
|
|
840
871
|
}
|
|
841
872
|
async function collectCraftFrame(page, time) {
|
|
842
873
|
const raw = await page.evaluate(() => {
|
|
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZAY376M4.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_HISTORY_ROOT,
|
|
12
12
|
HistoryBusyError,
|
|
13
13
|
MAX_WINDOW_IDLE_MS,
|
|
14
14
|
openProjectHistory,
|
|
15
15
|
readProjectHistory
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PGDWNIOK.js";
|
|
17
17
|
import {
|
|
18
18
|
findPreviewServerForProject,
|
|
19
19
|
studioApiUrl
|
|
@@ -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-XEAJVOX2.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
readCompositionFps
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DTC4KKFP.js";
|
|
10
10
|
import {
|
|
11
11
|
errorBox
|
|
12
12
|
} from "./chunk-K2FLNJVB.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_CONFIG,
|
|
18
18
|
resolvePageNavigationTimeout
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-T3CBCGU4.js";
|
|
20
20
|
import {
|
|
21
21
|
parseFps
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IK4Q7EKF.js";
|
|
23
23
|
|
|
24
24
|
// src/browser/windowsCrash.ts
|
|
25
25
|
var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-454VK7CA.js";
|
|
11
11
|
import {
|
|
12
12
|
PROXY_VARIANT_CONFIG,
|
|
13
13
|
ProxyCapacityError,
|
|
@@ -18,17 +18,17 @@ import {
|
|
|
18
18
|
recordProxyRequest,
|
|
19
19
|
resolveProxy,
|
|
20
20
|
resolveProxyVariantRequest
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KBVJ6G65.js";
|
|
22
22
|
import {
|
|
23
23
|
findStageProxyBox
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-RNPTRRLX.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveAutoProxy
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WNLHEUZU.js";
|
|
28
28
|
import {
|
|
29
29
|
PREVIEW_PROXY_BOX_PARAM,
|
|
30
30
|
parsePreviewProxyBox
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IK4Q7EKF.js";
|
|
32
32
|
import {
|
|
33
33
|
decodeWellFormedEscapes
|
|
34
34
|
} from "./chunk-BSQ7XANM.js";
|
|
@@ -6,11 +6,11 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
withOwner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4FXJ54L4.js";
|
|
10
10
|
import {
|
|
11
11
|
HistoryBusyError,
|
|
12
12
|
beginArtifactCapture
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PGDWNIOK.js";
|
|
14
14
|
|
|
15
15
|
// src/utils/artifactCapture.ts
|
|
16
16
|
var SKIP_BUSY_HISTORY = { ownerWaitMs: 0 };
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-DKPNNYBZ.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveCaptureBrowserGpuMode
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FFPKJU7T.js";
|
|
18
18
|
import {
|
|
19
19
|
requestCliExit
|
|
20
20
|
} from "./chunk-JVBRJMOP.js";
|
|
@@ -90,8 +90,15 @@ var LAUNCH_TIMEOUT_MS = 3e4;
|
|
|
90
90
|
var EXIT_POLL_MS = 50;
|
|
91
91
|
var listening = false;
|
|
92
92
|
var shutdown;
|
|
93
|
+
var stopListeners = /* @__PURE__ */ new Set();
|
|
94
|
+
function onStopSignal(listener) {
|
|
95
|
+
ownSignals();
|
|
96
|
+
stopListeners.add(listener);
|
|
97
|
+
return () => stopListeners.delete(listener);
|
|
98
|
+
}
|
|
93
99
|
function stopForSignal(signal) {
|
|
94
100
|
if (shutdown) return;
|
|
101
|
+
for (const listener of stopListeners) listener(signal);
|
|
95
102
|
shutdown = closeManagedBrowsers();
|
|
96
103
|
void shutdown.then(
|
|
97
104
|
() => requestCliExit(signal === "SIGINT" ? 130 : 143),
|
|
@@ -272,6 +279,7 @@ async function closedWithoutKill(browser) {
|
|
|
272
279
|
|
|
273
280
|
export {
|
|
274
281
|
BrowserCleanupError,
|
|
282
|
+
onStopSignal,
|
|
275
283
|
resolveManagedGpuMode,
|
|
276
284
|
launchManagedBrowser,
|
|
277
285
|
registerBrowserSessionCleanup,
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
isHttpUrl,
|
|
10
10
|
renameWithRetry,
|
|
11
11
|
runFfmpeg
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-T3CBCGU4.js";
|
|
13
13
|
import {
|
|
14
14
|
parseAnimatedGifMetadata
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IK4Q7EKF.js";
|
|
16
16
|
import {
|
|
17
17
|
parseHTML
|
|
18
18
|
} from "./chunk-SDYDNHEE.js";
|
|
@@ -8,31 +8,31 @@ import {
|
|
|
8
8
|
launchManagedBrowser,
|
|
9
9
|
resolveManagedGpuMode,
|
|
10
10
|
rethrowAfterBrowserCleanup
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AHE4R7PV.js";
|
|
12
12
|
import {
|
|
13
13
|
gotoWhenSent
|
|
14
14
|
} from "./chunk-MOEGCMKI.js";
|
|
15
15
|
import {
|
|
16
16
|
pageNavigationTimeoutMs,
|
|
17
17
|
windowsChromeCrashRemediation
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6DMFWXDH.js";
|
|
19
19
|
import {
|
|
20
20
|
oneProcessOverPipe
|
|
21
21
|
} from "./chunk-DKPNNYBZ.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveCompositionViewportFromHtml
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-RNPTRRLX.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveLocalBrowserGpuMode,
|
|
27
27
|
resolveLocalWebGpu
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FFPKJU7T.js";
|
|
29
29
|
import {
|
|
30
30
|
c
|
|
31
31
|
} from "./chunk-ZTZA4UWZ.js";
|
|
32
32
|
import {
|
|
33
33
|
assertWebGpuAdapterAvailable,
|
|
34
34
|
compositionRequiresWebGpu
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-T3CBCGU4.js";
|
|
36
36
|
import {
|
|
37
37
|
normalizeErrorMessage
|
|
38
38
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -140,7 +140,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
140
140
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
141
141
|
});
|
|
142
142
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
143
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
143
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-2YZVFDNC.js");
|
|
144
144
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
145
145
|
await waitForImagesReady(
|
|
146
146
|
page,
|
|
@@ -189,7 +189,7 @@ async function installPageFunctionGuard(page) {
|
|
|
189
189
|
async function openSettledCompositionPage(html, url, options) {
|
|
190
190
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
191
191
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
192
|
-
const answer = (await import("./staticProjectServer-
|
|
192
|
+
const answer = (await import("./staticProjectServer-PHNKV2NL.js")).inProcessAnswer(url);
|
|
193
193
|
const noListen = answer !== void 0;
|
|
194
194
|
let chromeBrowser;
|
|
195
195
|
try {
|
|
@@ -200,7 +200,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
200
200
|
options.onBrowserReady?.();
|
|
201
201
|
const page = await chromeBrowser.newPage();
|
|
202
202
|
await installPageFunctionGuard(page);
|
|
203
|
-
const { installMediaRenderIdBridge } = await import("./src-
|
|
203
|
+
const { installMediaRenderIdBridge } = await import("./src-2YZVFDNC.js");
|
|
204
204
|
await installMediaRenderIdBridge(page);
|
|
205
205
|
await page.setViewport(viewport);
|
|
206
206
|
if (answer) await answerPageInProcess(page, url, answer);
|
|
@@ -219,7 +219,7 @@ async function launchCompositionBrowser(html, noListen, options) {
|
|
|
219
219
|
const { ensureBrowser, findSystemBrowser } = await import("./manager-COSJVRAE.js");
|
|
220
220
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
221
221
|
const puppeteer = await import("puppeteer-core");
|
|
222
|
-
const { buildChromeArgs } = await import("./src-
|
|
222
|
+
const { buildChromeArgs } = await import("./src-2YZVFDNC.js");
|
|
223
223
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
224
224
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
225
225
|
let softwareWebGpu = false;
|
|
@@ -7,29 +7,29 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MGSQPE6P.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PROJECT_CONFIG,
|
|
13
13
|
createProjectConfig,
|
|
14
14
|
loadProjectConfig,
|
|
15
15
|
projectConfigPath,
|
|
16
16
|
recordProjectRegistryItems
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WNLHEUZU.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveItemWithDependencies,
|
|
20
20
|
resolveItemsByTag
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2R7QYR2D.js";
|
|
22
22
|
import {
|
|
23
23
|
InvalidVariableValuesError,
|
|
24
24
|
prepareItem,
|
|
25
25
|
publishItem
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PDDVEHWJ.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_REGISTRY_URL
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WY6X5Q33.js";
|
|
30
30
|
import {
|
|
31
31
|
trackRegistryItemAdded
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-X56HO2IP.js";
|
|
33
33
|
import {
|
|
34
34
|
defineCommand
|
|
35
35
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-ZTZA4UWZ.js";
|
|
42
42
|
import {
|
|
43
43
|
ITEM_TYPE_DIRS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-IK4Q7EKF.js";
|
|
45
45
|
import {
|
|
46
46
|
isProjectRootMissing,
|
|
47
47
|
realpath
|
|
@@ -57,6 +57,7 @@ import { resolve, relative } from "path";
|
|
|
57
57
|
// src/utils/clipboard.ts
|
|
58
58
|
import { spawnSync } from "child_process";
|
|
59
59
|
import { platform } from "os";
|
|
60
|
+
var COPY_TIMEOUT_MS = 5e3;
|
|
60
61
|
function detectProvider() {
|
|
61
62
|
const os = platform();
|
|
62
63
|
if (os === "darwin") {
|
|
@@ -86,7 +87,9 @@ function copyToClipboard(text) {
|
|
|
86
87
|
try {
|
|
87
88
|
const res = spawnSync(provider.cmd, provider.args, {
|
|
88
89
|
input: text,
|
|
89
|
-
encoding: "utf-8"
|
|
90
|
+
encoding: "utf-8",
|
|
91
|
+
stdio: ["pipe", "ignore", "ignore"],
|
|
92
|
+
timeout: COPY_TIMEOUT_MS
|
|
90
93
|
});
|
|
91
94
|
return res.status === 0;
|
|
92
95
|
} catch {
|
|
@@ -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.8.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.8.
|
|
9
|
+
var VERSION = true ? "0.8.197" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.8.197" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-5L6UY76S.js";
|
|
24
24
|
import {
|
|
25
25
|
defineCommand
|
|
26
26
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -229,7 +229,7 @@ var asset_default = defineCommand({
|
|
|
229
229
|
rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
|
-
const { trackFigmaImport } = await import("./telemetry-
|
|
232
|
+
const { trackFigmaImport } = await import("./telemetry-2R6G2A54.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
VALID_CANVAS_RESOLUTIONS,
|
|
9
9
|
resolveResolutionFlagPair
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XOTUPVIF.js";
|
|
11
11
|
|
|
12
12
|
// src/utils/parseOutputResolution.ts
|
|
13
13
|
function parseOutputResolutionFlag(raw, options) {
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-T3CBCGU4.js";
|
|
11
11
|
|
|
12
12
|
// src/browser/gpuPolicy.ts
|
|
13
13
|
function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
|
|
|
17
17
|
return "auto";
|
|
18
18
|
}
|
|
19
19
|
async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
|
|
20
|
-
const { resolveBrowserGpuMode } = await import("./src-
|
|
20
|
+
const { resolveBrowserGpuMode } = await import("./src-2YZVFDNC.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-X56HO2IP.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3DEBV7RH.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YUODO5H2.js";
|
|
18
18
|
|
|
19
19
|
// src/telemetry/lintStreaks.ts
|
|
20
20
|
import { createHash } from "crypto";
|