hyperframes 0.9.9 → 0.9.11
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/README.md +9 -0
- package/dist/{add-FQX5F6PC.js → add-IAFJH5RC.js} +6 -6
- package/dist/{agentPromptGenerator-XNGPKVEX.js → agentPromptGenerator-S3GWYMVC.js} +1 -1
- package/dist/{animatedGifPrep-E3PYKFJ3.js → animatedGifPrep-YU7IOD5D.js} +1 -1
- package/dist/api.js +10 -10
- package/dist/{asset-X5GG5TTP.js → asset-UR4PH6KJ.js} +2 -2
- package/dist/{assetCataloger-SDFP4DWL.js → assetCataloger-VKJIQCYP.js} +1 -1
- package/dist/{audio-DDTYFS23.js → audio-HZJ7QZQR.js} +9 -9
- package/dist/{auth-OAWLDT3A.js → auth-UBNAW62X.js} +2 -2
- package/dist/{autoUpdate-BWIPXW2W.js → autoUpdate-DDFTFHRP.js} +3 -3
- package/dist/{backgroundChecks-YJ5NRMBA.js → backgroundChecks-H3TNVYJV.js} +4 -4
- package/dist/backgroundChecksWorker.js +4 -4
- package/dist/{beats-Q2TIAA7S.js → beats-HOIQSFFP.js} +6 -6
- package/dist/{benchmark-I3GRHFIN.js → benchmark-ZYOQV7DK.js} +7 -7
- package/dist/billing-5YSYJJ2V.js +142 -0
- package/dist/{browser-F24WMZ52.js → browser-PLFK53IZ.js} +4 -4
- package/dist/{bundleWithLocalizedFonts-K5CQPNIZ.js → bundleWithLocalizedFonts-TH5SLG6O.js} +2 -2
- package/dist/{capture-UKWY3SZQ.js → capture-MICLAF6V.js} +13 -13
- package/dist/{capture-HLC6I4RE.js → capture-R77HOGLQ.js} +3 -3
- package/dist/{captureCompositionFrame-YMB3CKSP.js → captureCompositionFrame-WBMFZHEF.js} +4 -4
- package/dist/{catalog-H7SOITD6.js → catalog-CGT32566.js} +6 -6
- package/dist/{catch-up-YRGPVEM6.js → catch-up-TMYPXRKC.js} +5 -5
- package/dist/{check-BPQZZ2MO.js → check-4O5J4OWS.js} +23 -23
- package/dist/{checkAudio-4NRQ3WGS.js → checkAudio-AAVDZFIQ.js} +3 -3
- package/dist/{checkBrowser-S66AHKW3.js → checkBrowser-3OCZBJC7.js} +19 -17
- package/dist/{chunk-BYC4C4YY.js → chunk-2VYAX3ZD.js} +2 -2
- package/dist/{chunk-GIYZMGYT.js → chunk-2VZVMCV6.js} +1 -1
- package/dist/{chunk-322AG75G.js → chunk-33K2UZBX.js} +2 -2
- package/dist/{chunk-5YIZRU2L.js → chunk-37537KOL.js} +4 -4
- package/dist/{chunk-NX2X326Z.js → chunk-4ILKN2MX.js} +8 -8
- package/dist/{chunk-NCP3JQ6S.js → chunk-4J4EGANW.js} +2 -2
- package/dist/{chunk-TZBJEKKU.js → chunk-4YCNVKJX.js} +194 -17
- package/dist/{chunk-2ROPUTCS.js → chunk-6DHC3MVK.js} +2 -2
- package/dist/{chunk-BX2JB24X.js → chunk-6JDNEQV5.js} +1 -1
- package/dist/{chunk-6HO6QKYG.js → chunk-6R2PED3X.js} +6 -6
- package/dist/{chunk-DIKIN4BA.js → chunk-6Y7WZTHJ.js} +54 -38
- package/dist/{chunk-HBHLCMOQ.js → chunk-7ZBMUKHY.js} +2 -2
- package/dist/chunk-AHLDGEH5.js +158 -0
- package/dist/{chunk-6DKWOG7L.js → chunk-BBMMVLA3.js} +1 -1
- package/dist/{chunk-BLBMPEBX.js → chunk-BONBJJ35.js} +1 -0
- package/dist/{chunk-63GTSNMY.js → chunk-CD65TPHT.js} +1 -1
- package/dist/{chunk-HUJMTTKR.js → chunk-CN3Q4CDK.js} +43 -27
- package/dist/{chunk-2Y575PWJ.js → chunk-DI3ZFBZ3.js} +1 -1
- package/dist/{chunk-NNF6G2UH.js → chunk-EL2DMHA5.js} +1 -1
- package/dist/{chunk-B5GWDPUO.js → chunk-EPCVE3OX.js} +2 -2
- package/dist/{chunk-6UZLHLFP.js → chunk-FC4WF2VQ.js} +1 -1
- package/dist/{chunk-4W5X4S47.js → chunk-H7H7XNYY.js} +88 -28
- package/dist/{chunk-JZPUXDQE.js → chunk-HY64QA63.js} +1 -1
- package/dist/{chunk-AH6MUQQC.js → chunk-I4XTKG2B.js} +2 -2
- package/dist/{skills-EBVQSIK4.js → chunk-IMK55N3Z.js} +46 -38
- package/dist/{chunk-VNR7LSN4.js → chunk-IQ5OMRLK.js} +39 -41
- package/dist/{chunk-PPMCILED.js → chunk-JS6ZTPYC.js} +4 -4
- package/dist/{chunk-V74HSKGY.js → chunk-JT2ZGKKB.js} +2 -2
- package/dist/{chunk-2NGBIAUF.js → chunk-KNOIX2U5.js} +220 -177
- package/dist/{chunk-MY4PAH7C.js → chunk-LWFXO732.js} +1 -1
- package/dist/{upgrade-ZUWFB2QM.js → chunk-MZHCA5KY.js} +65 -27
- package/dist/{chunk-EN6MPNZT.js → chunk-NQYW4IYN.js} +2 -2
- package/dist/{chunk-H534266X.js → chunk-OKD2LP73.js} +1 -1
- package/dist/{chunk-A2NFFVWH.js → chunk-OQGA4QBD.js} +18 -6
- package/dist/{chunk-UWYHZCEQ.js → chunk-OQHC5YIB.js} +2 -2
- package/dist/{chunk-BHL4KN3H.js → chunk-PKLZ5PV2.js} +1 -1
- package/dist/{chunk-OYAZODSP.js → chunk-QM4OL5MZ.js} +16 -11
- package/dist/{chunk-BBP5KGYS.js → chunk-SUM3VFPQ.js} +2 -2
- package/dist/{chunk-CNX3WKQ5.js → chunk-T4ELNOK6.js} +1 -1
- package/dist/{chunk-VZ5O7A77.js → chunk-V6HV2IDT.js} +5 -2
- package/dist/{chunk-BXYB5NGT.js → chunk-VWUUNGSV.js} +1 -1
- package/dist/{chunk-CBPBTQBH.js → chunk-WJ7E5J77.js} +11 -10
- package/dist/{chunk-62ATHBDS.js → chunk-YJZYUXHQ.js} +1 -1
- package/dist/{chunk-TJ2USKCK.js → chunk-ZUACTOAB.js} +1 -1
- package/dist/{clean-RCXKQNFM.js → clean-2FWZPS4J.js} +9 -9
- package/dist/cli.js +61 -60
- package/dist/{cloud-TQPQZRC5.js → cloud-2UFI7NLD.js} +4 -4
- package/dist/cloud-Z3FNCC4T.js +1 -1
- package/dist/{compare-EO32AASM.js → compare-HKRLSFTU.js} +15 -15
- package/dist/{compiler-NAIDMQFU.js → compiler-KKIYPREA.js} +1 -1
- package/dist/{component-S3TYNVCR.js → component-F43F3363.js} +3 -3
- package/dist/{compositions-4TXRLZ3M.js → compositions-FFXCISLD.js} +7 -7
- package/dist/{curve-HGLOP2GY.js → curve-RHSJUG5P.js} +5 -5
- package/dist/{cuts-VNFIISLL.js → cuts-KVFY3U6C.js} +5 -5
- package/dist/{delete-TIWI3G7X.js → delete-O7IZKKUN.js} +4 -4
- package/dist/{deploy-EHPNOGSY.js → deploy-PZAAUW75.js} +8 -8
- package/dist/{describeProject-DN6YQU3X.js → describeProject-E44RWBJL.js} +1 -1
- package/dist/{diff-46JK5ZCL.js → diff-OMNILRNN.js} +21 -19
- package/dist/{dist-CCPYPKOC.js → dist-PUHEYGA5.js} +3 -3
- package/dist/{doctor-LD23DW4N.js → doctor-4HZN7ZVI.js} +10 -6
- package/dist/{energy-YZ3DB6AI.js → energy-N3ZIPHTP.js} +5 -5
- package/dist/{events-3OWNDNJX.js → events-56A5D6DK.js} +4 -4
- package/dist/{events-MQIKCKA5.js → events-TUTAERAN.js} +6 -6
- package/dist/{events-DRTMYSQ6.js → events-VAJ4Y6XF.js} +3 -3
- package/dist/{extract-F3NBE3X5.js → extract-NJMZEOLG.js} +6 -6
- package/dist/{face-ZU7ZDYGO.js → face-KLV4W6CP.js} +5 -5
- package/dist/{feedback-37M37Y4F.js → feedback-4VEKGVLN.js} +5 -5
- package/dist/{ffmpeg-PERZ6YHQ.js → ffmpeg-A2O4HSRD.js} +1 -1
- package/dist/{figma-55AG42NN.js → figma-6XDKKOA6.js} +3 -3
- package/dist/fontLocalizeCli.js +3 -3
- package/dist/{frames-DJA3CFSY.js → frames-IAMGMNCA.js} +5 -5
- package/dist/{generate-BVJ5XNWP.js → generate-FMATRA3L.js} +11 -9
- package/dist/{get-PGLCWEBG.js → get-JKA3APWR.js} +4 -4
- package/dist/{gpuPolicy-DUNSQM6M.js → gpuPolicy-TKHFDEH2.js} +2 -2
- package/dist/{grade-compare-R6Q6G6WP.js → grade-compare-TCLCDUG5.js} +14 -14
- package/dist/{heifImagePrep-YNPHFR6W.js → heifImagePrep-L2EY67F2.js} +1 -1
- package/dist/{help-4SNDXHWQ.js → help-TWDOQJDN.js} +3 -2
- package/dist/{history-NKRHKIE2.js → history-SOWVZUAB.js} +7 -7
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-U4VDKU2Y.js → info-JDINBZLH.js} +6 -6
- package/dist/{init-2RUVBHQO.js → init-ACNL6AFC.js} +15 -15
- package/dist/{ink-TX3USU7X.js → ink-WNEJROFH.js} +5 -5
- package/dist/{inspect-MAGHXEWS.js → inspect-37AMWUW3.js} +15 -15
- package/dist/{keyframes-2TDECIQZ.js → keyframes-LMUFQW4Z.js} +7 -7
- package/dist/{lambda-CRVYDETX.js → lambda-DRGDNEW6.js} +3 -3
- package/dist/{layout-I3VNHWJH.js → layout-E63HPSXW.js} +15 -15
- package/dist/{lint-MCVWXDJX.js → lint-HNZPRCXH.js} +7 -7
- package/dist/{list-FJJNWPM6.js → list-UMR5VN2M.js} +4 -4
- package/dist/{localPage-6MQ6YFER.js → localPage-KIFKMB2B.js} +1 -1
- package/dist/{login-YAZZWYFK.js → login-OXOPCSUY.js} +4 -4
- package/dist/{look-U5UHXPUQ.js → look-DFQJP2LY.js} +5 -5
- package/dist/{manager-ARXEX6OP.js → manager-T633Z2L4.js} +1 -1
- package/dist/{measure-JAPDVQ5X.js → measure-Y2VXF6LJ.js} +11 -11
- package/dist/{media-treatment-A4Z32NGP.js → media-treatment-U2PDH4P3.js} +8 -8
- package/dist/{media-use-6HX7JHRD.js → media-use-KGNGAQQP.js} +2 -1
- package/dist/{models-GMJODMZ5.js → models-HATSG3VK.js} +5 -5
- package/dist/{motionShot-Z63I3GO7.js → motionShot-45M7MSFQ.js} +7 -7
- package/dist/{normalize-audio-45CHOWKY.js → normalize-audio-SOXEVIKM.js} +5 -5
- package/dist/{open-RSTNLDYI.js → open-LRPNBFRW.js} +5 -5
- package/dist/{parakeetRunner-K4EGDDVH.js → parakeetRunner-A7Z6CQOT.js} +1 -1
- package/dist/{pipeline-EKLTELWF.js → pipeline-N3M6VXBC.js} +4 -4
- package/dist/{play-BYIEIRQQ.js → play-HTHDFMOU.js} +10 -10
- package/dist/{preflight-TC6ZW3GB.js → preflight-XZZXHV42.js} +2 -2
- package/dist/{present-5B5VQKT5.js → present-LQ4PJTP4.js} +10 -10
- package/dist/{preview-5O2HT2WF.js → preview-CTEDNFN3.js} +9 -9
- package/dist/{probe-ZGK6DBAR.js → probe-6IZD5TPR.js} +6 -6
- package/dist/{producer-RFTB2APL.js → producer-4CR46ON4.js} +1 -1
- package/dist/{remove-background-LURZDSDJ.js → remove-background-SYHNGASQ.js} +5 -5
- package/dist/{render-ETZ3WAJO.js → render-JHSMAWED.js} +9 -9
- package/dist/{render-7HIEI7QP.js → render-VZLEKSHR.js} +19 -19
- package/dist/{reverse-VPBNBP2Q.js → reverse-SCXEQVRH.js} +1 -1
- package/dist/{run-XER4YJY5.js → run-GRCZ6JO5.js} +2 -2
- package/dist/{sherpa-D6FQ3CHN.js → sherpa-EENLR3RM.js} +1 -1
- package/dist/skills/hyperframes-cli/SKILL.md +2 -0
- package/dist/skills/media-use/SKILL.md +1 -1
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +1 -1
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +1 -1
- package/dist/skills/media-use/audio/scripts/lib/tts.mjs +2 -0
- package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +14 -0
- package/dist/skills/media-use/references/heygen.md +2 -2
- package/dist/skills/media-use/scripts/lib/credit-limit.d.mts +3 -0
- package/dist/skills/media-use/scripts/lib/credit-limit.mjs +41 -0
- package/dist/skills/media-use/scripts/lib/credit-limit.test.mjs +39 -0
- package/dist/skills/media-use/scripts/lib/heygen-video-provider.mjs +2 -0
- package/dist/skills/media-use/scripts/lib/voice-provider.mjs +2 -0
- package/dist/skills-4TSYBAGW.js +49 -0
- package/dist/{skillsUpdateCheck-7VXK4R4J.js → skillsUpdateCheck-MGXL5VXL.js} +6 -4
- package/dist/{snapshot-PJUNSMDS.js → snapshot-P27Y3NJE.js} +18 -18
- package/dist/{src-RL6YEPTD.js → src-L7UBHHKB.js} +1 -1
- package/dist/{src-SMIMKSHZ.js → src-MWO2XBSA.js} +2 -2
- package/dist/{start-5ZDH643Z.js → start-L5M26YD5.js} +31 -19
- package/dist/{staticProjectServer-BX4RWEY5.js → staticProjectServer-2JYB7RLI.js} +5 -5
- package/dist/{status-4LLUW5YT.js → status-SUK4I7TS.js} +8 -5
- package/dist/studio/assets/{hyperframes-player-CcNGHTev.js → hyperframes-player-BbRz52ui.js} +1 -1
- package/dist/studio/assets/{index-D9uDed3x.js → index-CCSgOq2L.js} +1 -1
- package/dist/studio/assets/{index-DSRgrCDX.js → index-D3y5mWmH.js} +22 -22
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-PEUXVD7P.js → studio-api-MEZKFJBY.js} +3 -3
- package/dist/{studioServer-2WIQBEQC.js → studioServer-J5RPUMHP.js} +25 -25
- package/dist/{sync-P3O3WZWT.js → sync-FHT2CHKU.js} +5 -5
- package/dist/{telemetry-267LV4SC.js → telemetry-JWEOBK3Q.js} +4 -4
- package/dist/{telemetry-T73TKZOL.js → telemetry-WGNNQUSF.js} +1 -1
- package/dist/{templates-MQ742KVZ.js → templates-7DIQ52Y4.js} +40 -11
- package/dist/{timeline-WP7AZAQC.js → timeline-ZO3PNIET.js} +9 -9
- package/dist/{tokens-ROFKR7AE.js → tokens-X6OTCQCV.js} +2 -2
- package/dist/{transcribe-WS2STSCJ.js → transcribe-KNO3BK5S.js} +9 -9
- package/dist/{transcribe-N66QUYCS.js → transcribe-QIZGXMR5.js} +1 -1
- package/dist/{tts-HIQMJU6O.js → tts-JHGGL7GL.js} +1 -1
- package/dist/update-WXGSPMEG.js +280 -0
- package/dist/{updateCheck-M2SMSDIO.js → updateCheck-OBYSCTWV.js} +7 -3
- package/dist/upgrade-YCCIVSI6.js +40 -0
- package/dist/{urlDownloader-YNI3Y3IE.js → urlDownloader-FOXK4FYP.js} +1 -1
- package/dist/{validate-M2M37G47.js → validate-TDVQ2B6Y.js} +13 -13
- package/dist/{video-2OEOTSPQ.js → video-AVEGMBDM.js} +1 -1
- package/dist/voices-2LIY4CYK.js +97 -0
- package/dist/warmCheck.js +23 -23
- package/package.json +1 -1
- package/dist/billing-W224NIAM.js +0 -96
- package/dist/chunk-ASGRVFQ3.js +0 -59
- package/dist/{chunk-QUBVGS27.js → chunk-LNTUFRZD.js} +3 -3
- package/dist/{destroy-C5GQLZVZ.js → destroy-IQLGADZM.js} +4 -4
- package/dist/{synthesize-YK3WLOEQ.js → synthesize-YYT7UON6.js} +5 -5
|
@@ -8,10 +8,11 @@ import {
|
|
|
8
8
|
hostAnswers
|
|
9
9
|
} from "./chunk-BR2JQQC5.js";
|
|
10
10
|
import {
|
|
11
|
+
CONFIG_PATH,
|
|
11
12
|
readConfig,
|
|
12
13
|
readConfigFresh,
|
|
13
14
|
writeConfig
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BONBJJ35.js";
|
|
15
16
|
import {
|
|
16
17
|
isDevMode
|
|
17
18
|
} from "./chunk-ISN5GRYI.js";
|
|
@@ -24,16 +25,59 @@ import {
|
|
|
24
25
|
} from "./chunk-J3RXEDR2.js";
|
|
25
26
|
import {
|
|
26
27
|
VERSION
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-I4XTKG2B.js";
|
|
28
29
|
|
|
29
30
|
// src/utils/updateCheck.ts
|
|
30
|
-
import { existsSync, readFileSync } from "fs";
|
|
31
|
-
import { join } from "path";
|
|
31
|
+
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
32
|
+
import { join as join2, resolve } from "path";
|
|
32
33
|
import { compareVersions } from "compare-versions";
|
|
33
34
|
|
|
35
|
+
// src/utils/dailyNotice.ts
|
|
36
|
+
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "fs";
|
|
37
|
+
import { dirname, join } from "path";
|
|
38
|
+
var NOTICE_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
39
|
+
function readShown(noticeFile) {
|
|
40
|
+
let parsed;
|
|
41
|
+
try {
|
|
42
|
+
parsed = JSON.parse(readFileSync(noticeFile, "utf-8"));
|
|
43
|
+
} catch {
|
|
44
|
+
return {};
|
|
45
|
+
}
|
|
46
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return {};
|
|
47
|
+
return Object.fromEntries(
|
|
48
|
+
Object.entries(parsed).filter((entry) => Number.isFinite(entry[1]))
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
var recent = (at, now) => at <= now && now - at < NOTICE_INTERVAL_MS;
|
|
52
|
+
function claimDailyNotice(kind, project, now = Date.now()) {
|
|
53
|
+
const noticeFile = join(dirname(CONFIG_PATH), `${kind}-notice.json`);
|
|
54
|
+
const shown = readShown(noticeFile);
|
|
55
|
+
if (recent(shown[project] ?? 0, now)) return false;
|
|
56
|
+
const kept = Object.entries(shown).filter(([, at]) => recent(at, now));
|
|
57
|
+
const tmp = `${noticeFile}.${process.pid}.tmp`;
|
|
58
|
+
try {
|
|
59
|
+
mkdirSync(dirname(noticeFile), { recursive: true, mode: 448 });
|
|
60
|
+
writeFileSync(tmp, JSON.stringify(Object.fromEntries([...kept, [project, now]])), {
|
|
61
|
+
mode: 384
|
|
62
|
+
});
|
|
63
|
+
renameSync(tmp, noticeFile);
|
|
64
|
+
} catch {
|
|
65
|
+
rmSync(tmp, { force: true });
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
34
71
|
// src/utils/installerDetection.ts
|
|
35
|
-
import { realpathSync } from "fs";
|
|
72
|
+
import { existsSync, realpathSync } from "fs";
|
|
36
73
|
import { posix } from "path";
|
|
74
|
+
|
|
75
|
+
// src/utils/safeVersion.ts
|
|
76
|
+
function isSafeVersion(v) {
|
|
77
|
+
return /^[0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(v);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// src/utils/installerDetection.ts
|
|
37
81
|
function resolveEntry() {
|
|
38
82
|
const entry = process.argv[1];
|
|
39
83
|
if (!entry) return null;
|
|
@@ -52,7 +96,8 @@ function isWorkspaceLink(realEntry) {
|
|
|
52
96
|
}
|
|
53
97
|
function isEphemeralExec(realEntry) {
|
|
54
98
|
const normalized = normalizePath(realEntry);
|
|
55
|
-
return normalized.includes("/_npx/") || normalized.includes("/.npm/_npx/") || posix.basename(posix.dirname(normalized)).startsWith("bunx-")
|
|
99
|
+
return normalized.includes("/_npx/") || normalized.includes("/.npm/_npx/") || posix.basename(posix.dirname(normalized)).startsWith("bunx-") || // bunx installs the package under its temp dir: `/tmp/bunx-<uid>-<spec>/node_modules/…`.
|
|
100
|
+
/\/bunx-[^/]+\/node_modules\//.test(normalized);
|
|
56
101
|
}
|
|
57
102
|
function isHomebrewInstall(realEntry) {
|
|
58
103
|
return normalizePath(realEntry).includes("/Cellar/hyperframes/");
|
|
@@ -132,10 +177,58 @@ function installInvocation(kind, version) {
|
|
|
132
177
|
return null;
|
|
133
178
|
}
|
|
134
179
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
180
|
+
var CHANNEL_LABELS = {
|
|
181
|
+
npm: "npm global install",
|
|
182
|
+
pnpm: "pnpm global install",
|
|
183
|
+
bun: "bun global install",
|
|
184
|
+
brew: "Homebrew install",
|
|
185
|
+
npx: "npx / bunx (temporary cache)",
|
|
186
|
+
project: "project-local install (node_modules)",
|
|
187
|
+
workspace: "workspace link (monorepo dev)",
|
|
188
|
+
plugin: "agent plugin (version pinned by the plugin)",
|
|
189
|
+
unknown: "unrecognized install layout"
|
|
190
|
+
};
|
|
191
|
+
function installChannelLabel(channel) {
|
|
192
|
+
return CHANNEL_LABELS[channel];
|
|
193
|
+
}
|
|
194
|
+
function runningInstall() {
|
|
195
|
+
const path = resolveEntry();
|
|
196
|
+
if (process.env["HYPERFRAMES_PLUGIN_VERSION"]) return { channel: "plugin", path };
|
|
197
|
+
const installer = detectInstaller();
|
|
198
|
+
if (installer.kind !== "skip") return { channel: installer.kind, path };
|
|
199
|
+
if (!path) return { channel: "unknown", path };
|
|
200
|
+
if (isWorkspaceLink(path)) return { channel: "workspace", path };
|
|
201
|
+
if (isEphemeralExec(path)) return { channel: "npx", path };
|
|
202
|
+
if (normalizePath(path).includes("/node_modules/hyperframes/")) {
|
|
203
|
+
return { channel: "project", path };
|
|
204
|
+
}
|
|
205
|
+
return { channel: "unknown", path };
|
|
206
|
+
}
|
|
207
|
+
var PROJECT_LOCKFILES = [
|
|
208
|
+
["bun.lock", (spec) => `bun add ${spec}`],
|
|
209
|
+
["bun.lockb", (spec) => `bun add ${spec}`],
|
|
210
|
+
["pnpm-lock.yaml", (spec) => `pnpm add ${spec}`],
|
|
211
|
+
["yarn.lock", (spec) => `yarn add ${spec}`]
|
|
212
|
+
];
|
|
213
|
+
function projectInstallCommand(path, version) {
|
|
214
|
+
const normalized = normalizePath(path);
|
|
215
|
+
const root = normalized.slice(0, normalized.indexOf("/node_modules/"));
|
|
216
|
+
const spec = `hyperframes@${version}`;
|
|
217
|
+
const lockfile = PROJECT_LOCKFILES.find(([name]) => existsSync(posix.join(root, name)));
|
|
218
|
+
return lockfile ? lockfile[1](spec) : `npm install ${spec}`;
|
|
219
|
+
}
|
|
220
|
+
function updateCommandFor(install, latest) {
|
|
221
|
+
if (install.channel === "plugin") return "update the HyperFrames plugin in your agent";
|
|
222
|
+
if (install.channel === "brew") return "brew upgrade hyperframes";
|
|
223
|
+
if (install.channel === "project" && install.path && isSafeVersion(latest)) {
|
|
224
|
+
return projectInstallCommand(install.path, latest);
|
|
225
|
+
}
|
|
226
|
+
const kind = install.channel;
|
|
227
|
+
if (kind === "npm" || kind === "pnpm" || kind === "bun") {
|
|
228
|
+
const invocation = installInvocation(kind, latest);
|
|
229
|
+
if (invocation) return `${invocation.bin} ${invocation.args.join(" ")}`;
|
|
230
|
+
}
|
|
231
|
+
return "npx hyperframes@latest";
|
|
139
232
|
}
|
|
140
233
|
|
|
141
234
|
// src/utils/projectPin.ts
|
|
@@ -182,7 +275,8 @@ function rewriteProjectPinnedScripts(scripts, targetVersion) {
|
|
|
182
275
|
|
|
183
276
|
// src/utils/updateCheck.ts
|
|
184
277
|
var NPM_REGISTRY_URL = "https://registry.npmjs.org/hyperframes/latest";
|
|
185
|
-
var CHECK_INTERVAL_MS =
|
|
278
|
+
var CHECK_INTERVAL_MS = 2 * 60 * 60 * 1e3;
|
|
279
|
+
var SKILLS_COUNT_MAX_AGE_MS = 24 * 60 * 60 * 1e3;
|
|
186
280
|
var FETCH_TIMEOUT_MS = 3e3;
|
|
187
281
|
function isNewerSemver(a, b) {
|
|
188
282
|
try {
|
|
@@ -227,6 +321,7 @@ async function checkForUpdate(force) {
|
|
|
227
321
|
function updateCheckDue(config = readConfig()) {
|
|
228
322
|
if (updateCheckDisabled()) return false;
|
|
229
323
|
if (!config.lastUpdateCheck || !isSafeCache(config.latestVersion)) return true;
|
|
324
|
+
if (isNewerSemver(VERSION, config.latestVersion)) return true;
|
|
230
325
|
const fresh = Date.now() - new Date(config.lastUpdateCheck).getTime() < CHECK_INTERVAL_MS;
|
|
231
326
|
return !fresh;
|
|
232
327
|
}
|
|
@@ -246,15 +341,91 @@ function cachedVersionForThisInstall(value) {
|
|
|
246
341
|
return isSafeCache(value) && !isNewerSemver(VERSION, value) ? value : void 0;
|
|
247
342
|
}
|
|
248
343
|
function getUpdateMeta() {
|
|
249
|
-
const
|
|
344
|
+
const config = readConfig();
|
|
345
|
+
const latestVersion = cachedVersionForThisInstall(config.latestVersion);
|
|
346
|
+
const checkedAt = latestVersion ? config.lastUpdateCheck : void 0;
|
|
347
|
+
const skillsOutdated = cachedSkillsCount(config, config.skillsOutdatedCount);
|
|
348
|
+
const skillsMissing = cachedSkillsCount(config, config.skillsMissingCount);
|
|
250
349
|
return {
|
|
251
350
|
version: VERSION,
|
|
252
351
|
latestVersion,
|
|
253
|
-
updateAvailable: latestVersion ? isNewerSemver(latestVersion, VERSION) : false
|
|
352
|
+
updateAvailable: latestVersion ? isNewerSemver(latestVersion, VERSION) : false,
|
|
353
|
+
...checkedAt ? { checkedAt } : {},
|
|
354
|
+
...skillsOutdated === void 0 ? {} : { skillsOutdated },
|
|
355
|
+
...skillsMissing === void 0 ? {} : { skillsMissing }
|
|
254
356
|
};
|
|
255
357
|
}
|
|
358
|
+
function cachedSkillsCount(config, count) {
|
|
359
|
+
if (process.env["HYPERFRAMES_SKIP_SKILLS"] === "1") return void 0;
|
|
360
|
+
if (!config.lastSkillsCheck || config.skillsCheckedVersion !== VERSION) return void 0;
|
|
361
|
+
const age = Date.now() - new Date(config.lastSkillsCheck).getTime();
|
|
362
|
+
if (!(age >= 0 && age < SKILLS_COUNT_MAX_AGE_MS)) return void 0;
|
|
363
|
+
return typeof count === "number" && Number.isInteger(count) && count >= 0 ? count : void 0;
|
|
364
|
+
}
|
|
365
|
+
function skillsBehindPhrase(meta) {
|
|
366
|
+
const outdated = meta.skillsOutdated ?? 0;
|
|
367
|
+
const missing = meta.skillsMissing ?? 0;
|
|
368
|
+
const parts = [];
|
|
369
|
+
if (outdated > 0) {
|
|
370
|
+
parts.push(
|
|
371
|
+
`${outdated} installed HyperFrames ${outdated === 1 ? "skill is" : "skills are"} out of date`
|
|
372
|
+
);
|
|
373
|
+
}
|
|
374
|
+
if (missing > 0) {
|
|
375
|
+
const which = outdated > 0 ? "core" : "core HyperFrames";
|
|
376
|
+
parts.push(`${missing} ${which} ${missing === 1 ? "skill is" : "skills are"} missing`);
|
|
377
|
+
}
|
|
378
|
+
return parts.length > 0 ? parts.join(" and ") : null;
|
|
379
|
+
}
|
|
380
|
+
var GLOBAL_CHANNELS = /* @__PURE__ */ new Set(["npm", "pnpm", "bun", "brew"]);
|
|
381
|
+
function projectNoticeCommand(install, cliBehind, skillsBehind, latest) {
|
|
382
|
+
if (!cliBehind) return "npx hyperframes update";
|
|
383
|
+
const bump = updateCommandFor(install, latest);
|
|
384
|
+
return skillsBehind ? `${bump}, then npx hyperframes update` : bump;
|
|
385
|
+
}
|
|
386
|
+
function updateCommandForThisInstall(cliBehind, skillsBehind, latest) {
|
|
387
|
+
const install = runningInstall();
|
|
388
|
+
if (GLOBAL_CHANNELS.has(install.channel)) {
|
|
389
|
+
return skillsBehind ? "hyperframes update" : updateCommandFor(install, latest);
|
|
390
|
+
}
|
|
391
|
+
if (install.channel === "project") {
|
|
392
|
+
return projectNoticeCommand(install, cliBehind, skillsBehind, latest);
|
|
393
|
+
}
|
|
394
|
+
return install.channel === "npx" && cliBehind ? "npx hyperframes@latest update" : "npx hyperframes update";
|
|
395
|
+
}
|
|
396
|
+
function noticeSentence(version, latest, skills, command) {
|
|
397
|
+
const cli = latest ? `HyperFrames CLI ${latest} is available (this run is ${version})` : null;
|
|
398
|
+
if (cli && skills) return `For the user: ${cli}, and ${skills}. To update both, run: ${command}`;
|
|
399
|
+
if (cli) return `For the user: ${cli}. To update, run: ${command}`;
|
|
400
|
+
return `For the user: ${skills} (this run is HyperFrames CLI ${version}). To update them, run: ${command}`;
|
|
401
|
+
}
|
|
402
|
+
function updateNoticeText(meta) {
|
|
403
|
+
if (updateCheckDisabled() || process.env["HYPERFRAMES_PLUGIN_VERSION"]) return null;
|
|
404
|
+
const latest = meta.updateAvailable ? meta.latestVersion ?? null : null;
|
|
405
|
+
const skills = skillsBehindPhrase(meta);
|
|
406
|
+
if (!latest && !skills) return null;
|
|
407
|
+
const command = updateCommandForThisInstall(
|
|
408
|
+
latest !== null,
|
|
409
|
+
skills !== null,
|
|
410
|
+
latest ?? meta.version
|
|
411
|
+
);
|
|
412
|
+
return noticeSentence(meta.version, latest, skills, command);
|
|
413
|
+
}
|
|
414
|
+
function noticeOrNull(meta) {
|
|
415
|
+
try {
|
|
416
|
+
const notice = updateNoticeText(meta);
|
|
417
|
+
return notice && claimDailyNotice("update", resolve(process.cwd())) ? notice : null;
|
|
418
|
+
} catch {
|
|
419
|
+
return null;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
var NO_UPDATE_NOTICE = { updateNotice: false };
|
|
256
423
|
function withMeta(data, options) {
|
|
257
424
|
const meta = getUpdateMeta();
|
|
425
|
+
if (options?.updateNotice !== false) {
|
|
426
|
+
const notice = noticeOrNull(meta);
|
|
427
|
+
if (notice) meta.updateNotice = notice;
|
|
428
|
+
}
|
|
258
429
|
if (options?.deprecated) meta.deprecated = true;
|
|
259
430
|
return { ...data, _meta: meta };
|
|
260
431
|
}
|
|
@@ -295,9 +466,9 @@ function printStalePinNotice(cwd = process.cwd()) {
|
|
|
295
466
|
if (updateCheckDisabled()) return;
|
|
296
467
|
let scripts = {};
|
|
297
468
|
try {
|
|
298
|
-
const pkgPath =
|
|
299
|
-
if (!
|
|
300
|
-
scripts = JSON.parse(
|
|
469
|
+
const pkgPath = join2(cwd, "package.json");
|
|
470
|
+
if (!existsSync2(pkgPath)) return;
|
|
471
|
+
scripts = JSON.parse(readFileSync2(pkgPath, "utf-8")).scripts ?? {};
|
|
301
472
|
} catch {
|
|
302
473
|
return;
|
|
303
474
|
}
|
|
@@ -338,15 +509,21 @@ function printStalePinNotice(cwd = process.cwd()) {
|
|
|
338
509
|
}
|
|
339
510
|
|
|
340
511
|
export {
|
|
512
|
+
claimDailyNotice,
|
|
513
|
+
isSafeVersion,
|
|
341
514
|
detectInstaller,
|
|
342
515
|
installInvocation,
|
|
343
|
-
|
|
516
|
+
installChannelLabel,
|
|
517
|
+
runningInstall,
|
|
518
|
+
updateCommandFor,
|
|
344
519
|
rewritePinnedHyperframesText,
|
|
345
520
|
rewriteProjectPinnedScripts,
|
|
346
521
|
checkForUpdate,
|
|
347
522
|
updateCheckDue,
|
|
348
523
|
cachedUpdateCheck,
|
|
349
524
|
getUpdateMeta,
|
|
525
|
+
updateCommandForThisInstall,
|
|
526
|
+
NO_UPDATE_NOTICE,
|
|
350
527
|
withMeta,
|
|
351
528
|
printDeprecationNotice,
|
|
352
529
|
updateCheckDisabled,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
flush,
|
|
9
9
|
shouldTrack,
|
|
10
10
|
trackEvent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JT2ZGKKB.js";
|
|
12
12
|
import {
|
|
13
13
|
redactTelemetryString
|
|
14
14
|
} from "./chunk-TK7THLRO.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-LAGZGKKN.js";
|
|
18
18
|
import {
|
|
19
19
|
readConfig
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BONBJJ35.js";
|
|
21
21
|
import {
|
|
22
22
|
CliRuntimeError
|
|
23
23
|
} from "./chunk-66W5IWLO.js";
|
|
@@ -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-56A5D6DK.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
launchManagedBrowser,
|
|
24
24
|
resolveManagedGpuMode,
|
|
25
25
|
rethrowAfterBrowserCleanup
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PKLZ5PV2.js";
|
|
27
27
|
import {
|
|
28
28
|
resolveLocalBrowserGpuMode,
|
|
29
29
|
resolveLocalWebGpu
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-FC4WF2VQ.js";
|
|
31
31
|
import {
|
|
32
32
|
c
|
|
33
33
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -143,7 +143,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
143
143
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
144
144
|
});
|
|
145
145
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
146
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
146
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-L7UBHHKB.js");
|
|
147
147
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
148
148
|
await waitForImagesReady(
|
|
149
149
|
page,
|
|
@@ -192,7 +192,7 @@ async function installPageFunctionGuard(page) {
|
|
|
192
192
|
async function openSettledCompositionPage(html, url, options) {
|
|
193
193
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
194
194
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
195
|
-
const answer = (await import("./staticProjectServer-
|
|
195
|
+
const answer = (await import("./staticProjectServer-2JYB7RLI.js")).inProcessAnswer(url);
|
|
196
196
|
const noListen = answer !== void 0;
|
|
197
197
|
let chromeBrowser;
|
|
198
198
|
try {
|
|
@@ -203,7 +203,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
203
203
|
options.onBrowserReady?.();
|
|
204
204
|
const page = await chromeBrowser.newPage();
|
|
205
205
|
await installPageFunctionGuard(page);
|
|
206
|
-
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-
|
|
206
|
+
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-L7UBHHKB.js");
|
|
207
207
|
await installMediaRenderIdBridge(page);
|
|
208
208
|
await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
|
|
209
209
|
await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
|
|
@@ -225,7 +225,7 @@ async function launchCompositionBrowser(html, noListen, options) {
|
|
|
225
225
|
const { ensureBrowser, findSystemBrowser } = await import("./manager-SAXHANEY.js");
|
|
226
226
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
227
227
|
const puppeteer = await import("puppeteer-core");
|
|
228
|
-
const { buildChromeArgs } = await import("./src-
|
|
228
|
+
const { buildChromeArgs } = await import("./src-L7UBHHKB.js");
|
|
229
229
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
230
230
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
231
231
|
let softwareWebGpu = false;
|
|
@@ -11,23 +11,23 @@ import {
|
|
|
11
11
|
reportArtifacts,
|
|
12
12
|
withProjectLock
|
|
13
13
|
} from "./chunk-KUXOAS4Z.js";
|
|
14
|
+
import {
|
|
15
|
+
beginCheckSnapshots,
|
|
16
|
+
checkSnapshotDirectory,
|
|
17
|
+
finishCheckSnapshots,
|
|
18
|
+
preResolveHostileMediaProxies,
|
|
19
|
+
rectToBbox
|
|
20
|
+
} from "./chunk-QM4OL5MZ.js";
|
|
14
21
|
import {
|
|
15
22
|
collectProjectMedia,
|
|
16
23
|
mediaPath
|
|
17
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OQHC5YIB.js";
|
|
18
25
|
import {
|
|
19
26
|
captureArtifactRevision
|
|
20
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-OKD2LP73.js";
|
|
21
28
|
import {
|
|
22
29
|
trackLintRun
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
beginCheckSnapshots,
|
|
26
|
-
checkSnapshotDirectory,
|
|
27
|
-
finishCheckSnapshots,
|
|
28
|
-
preResolveHostileMediaProxies,
|
|
29
|
-
rectToBbox
|
|
30
|
-
} from "./chunk-OYAZODSP.js";
|
|
30
|
+
} from "./chunk-SUM3VFPQ.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-4ILKN2MX.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-BBMMVLA3.js";
|
|
61
61
|
import {
|
|
62
62
|
withRemainingBudget
|
|
63
63
|
} from "./chunk-YGGZ23BB.js";
|
|
@@ -69,14 +69,14 @@ import {
|
|
|
69
69
|
closeManagedBrowser,
|
|
70
70
|
onStopSignal,
|
|
71
71
|
registerBrowserSessionCleanup
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-PKLZ5PV2.js";
|
|
73
73
|
import {
|
|
74
74
|
resolveLocalBrowserGpuMode
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-FC4WF2VQ.js";
|
|
76
76
|
import {
|
|
77
77
|
trackCheckReport,
|
|
78
78
|
trackCommandFailure
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-6DHC3MVK.js";
|
|
80
80
|
import {
|
|
81
81
|
swallowedFlagUsageError
|
|
82
82
|
} from "./chunk-WWBEAKTO.js";
|
|
@@ -93,6 +93,7 @@ import {
|
|
|
93
93
|
c
|
|
94
94
|
} from "./chunk-2GICKZ3I.js";
|
|
95
95
|
import {
|
|
96
|
+
DEFAULT_CONFIG,
|
|
96
97
|
extractMediaMetadata,
|
|
97
98
|
findHdrAutoPromotion,
|
|
98
99
|
gradingKeepsSdr
|
|
@@ -103,10 +104,10 @@ import {
|
|
|
103
104
|
} from "./chunk-XX77LLFJ.js";
|
|
104
105
|
import {
|
|
105
106
|
withMeta
|
|
106
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-4YCNVKJX.js";
|
|
107
108
|
import {
|
|
108
109
|
recordLastCheck
|
|
109
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-BONBJJ35.js";
|
|
110
111
|
import {
|
|
111
112
|
failureMessage,
|
|
112
113
|
jsonFailure
|
|
@@ -136,6 +137,7 @@ var PHASE_LABELS = {
|
|
|
136
137
|
load: "loading the page",
|
|
137
138
|
settle: "waiting for the page to be ready",
|
|
138
139
|
samples: "checking samples",
|
|
140
|
+
analysis: "analyzing the samples",
|
|
139
141
|
overlap: "running the overlap pass",
|
|
140
142
|
crops: "capturing finding crops",
|
|
141
143
|
frames: "capturing finding frames"
|
|
@@ -822,7 +824,7 @@ var DEFAULT_CHECK_OPTIONS = {
|
|
|
822
824
|
maxIssues: 80,
|
|
823
825
|
collapseStatic: true,
|
|
824
826
|
tolerance: 2,
|
|
825
|
-
timeout:
|
|
827
|
+
timeout: DEFAULT_CONFIG.playerReadyTimeout,
|
|
826
828
|
contrast: true,
|
|
827
829
|
strict: false,
|
|
828
830
|
snapshots: false,
|
|
@@ -1753,6 +1755,18 @@ function wholeCompositionKeepsMoving(assertions) {
|
|
|
1753
1755
|
function disabledCraft() {
|
|
1754
1756
|
return { enabled: false, step: 0, samples: 0, findings: [] };
|
|
1755
1757
|
}
|
|
1758
|
+
function reportingProgress(driver, enter) {
|
|
1759
|
+
return new Proxy(driver, {
|
|
1760
|
+
get(target, name) {
|
|
1761
|
+
const member = Reflect.get(target, name);
|
|
1762
|
+
if (typeof member !== "function") return member;
|
|
1763
|
+
return (...args) => {
|
|
1764
|
+
enter("analysis", String(name));
|
|
1765
|
+
return member.apply(target, args);
|
|
1766
|
+
};
|
|
1767
|
+
}
|
|
1768
|
+
});
|
|
1769
|
+
}
|
|
1756
1770
|
async function runAuditGrid(driver, options, motion, helpers = Promise.resolve([]), enter = () => {
|
|
1757
1771
|
}, report = () => {
|
|
1758
1772
|
}, keep = () => {
|
|
@@ -1778,46 +1792,48 @@ async function runAuditGrid(driver, options, motion, helpers = Promise.resolve([
|
|
|
1778
1792
|
);
|
|
1779
1793
|
const seekLoopMs = Date.now() - seekLoopStart;
|
|
1780
1794
|
report("analyze", 0, 3);
|
|
1795
|
+
enter("analysis");
|
|
1796
|
+
const analysing = reportingProgress(driver, enter);
|
|
1781
1797
|
let motionIssues = plan.preflightIssues;
|
|
1782
1798
|
if (motion.kind === "valid" && plan.assertions.length > 0 && collected.motionFrames.length > 0) {
|
|
1783
|
-
const canvas = await
|
|
1799
|
+
const canvas = await analysing.getCanvas();
|
|
1784
1800
|
let evaluated = evaluateMotion(collected.motionFrames, plan.assertions, canvas, grid.duration);
|
|
1785
1801
|
if (evaluated.some((issue) => issue.code === "motion_frozen")) {
|
|
1786
|
-
const frames = await withFrameMotion(
|
|
1802
|
+
const frames = await withFrameMotion(analysing, collected.motionFrames, plan.assertions);
|
|
1787
1803
|
evaluated = evaluateMotion(frames, plan.assertions, canvas, grid.duration);
|
|
1788
1804
|
}
|
|
1789
|
-
motionIssues = [...motionIssues, ...await
|
|
1805
|
+
motionIssues = [...motionIssues, ...await analysing.anchorMotionIssues(evaluated)];
|
|
1790
1806
|
}
|
|
1791
1807
|
report("analyze", 1, 3);
|
|
1792
1808
|
const userPicked = new Set(grid.userPickedSamples);
|
|
1793
|
-
const noTimeline = await
|
|
1809
|
+
const noTimeline = await analysing.hasNoTimelineDeclaration();
|
|
1794
1810
|
const sweepSamples = collected.layoutStateSignatures.filter(
|
|
1795
1811
|
(sample) => !userPicked.has(sample.time)
|
|
1796
1812
|
);
|
|
1797
1813
|
const sweepVerdict = options.range ? [] : detectSweepStatic(grid.duration, sweepSamples, motionIssues, noTimeline);
|
|
1798
1814
|
const sweepFindings = sweepVerdict.length > 0 && await framesMoved(
|
|
1799
|
-
|
|
1815
|
+
analysing,
|
|
1800
1816
|
sweepSamples.map((sample) => sample.time)
|
|
1801
1817
|
) ? [] : sweepVerdict;
|
|
1802
1818
|
const rotationFindings = detectRotationPivotDrift(
|
|
1803
1819
|
collected.rotationSamples,
|
|
1804
|
-
await
|
|
1820
|
+
await analysing.getCanvas()
|
|
1805
1821
|
);
|
|
1806
1822
|
const offPivotFindings = detectOffPivotRotation(collected.indicatorFrames);
|
|
1807
1823
|
const contrast = buildContrastResults(collected.contrastEntries);
|
|
1808
1824
|
report("analyze", 2, 3);
|
|
1809
|
-
const craft = craftEnabled(
|
|
1825
|
+
const craft = craftEnabled(analysing, options) ? await auditCraft(
|
|
1810
1826
|
{
|
|
1811
1827
|
frames: collected.craftFrames,
|
|
1812
1828
|
duration: grid.duration,
|
|
1813
|
-
canvas: await
|
|
1814
|
-
soundSources:
|
|
1829
|
+
canvas: await analysing.getCanvas(),
|
|
1830
|
+
soundSources: analysing.collectCraftFilm ? (await analysing.collectCraftFilm()).soundSources : null,
|
|
1815
1831
|
stillnessJudgedElsewhere: noTimeline || sweepFindings.length > 0 || wholeCompositionKeepsMoving(plan.assertions)
|
|
1816
1832
|
},
|
|
1817
1833
|
async (time) => {
|
|
1818
|
-
await
|
|
1819
|
-
if (!
|
|
1820
|
-
return
|
|
1834
|
+
await analysing.seekGeometry(time, { draws: true });
|
|
1835
|
+
if (!analysing.collectCraftFrame) throw new Error("craft sampling unavailable");
|
|
1836
|
+
return analysing.collectCraftFrame(time);
|
|
1821
1837
|
}
|
|
1822
1838
|
) : disabledCraft();
|
|
1823
1839
|
if (options.components?.length) {
|
|
@@ -2362,7 +2378,7 @@ function resolveMotionSpec(projectDir) {
|
|
|
2362
2378
|
};
|
|
2363
2379
|
}
|
|
2364
2380
|
async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
|
|
2365
|
-
const module = await import("./checkBrowser-
|
|
2381
|
+
const module = await import("./checkBrowser-3OCZBJC7.js");
|
|
2366
2382
|
return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
|
|
2367
2383
|
}
|
|
2368
2384
|
var adoptedBrowser;
|
|
@@ -2376,7 +2392,7 @@ async function prelaunchBrowser(project, options) {
|
|
|
2376
2392
|
if (adopted) return adopted;
|
|
2377
2393
|
const html = await readFile(project.indexPath, "utf8").catch(() => void 0);
|
|
2378
2394
|
if (html === void 0) return void 0;
|
|
2379
|
-
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-
|
|
2395
|
+
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-WBMFZHEF.js");
|
|
2380
2396
|
return prelaunchCompositionBrowser(html, options.browserGpuMode);
|
|
2381
2397
|
}
|
|
2382
2398
|
async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
@@ -2388,11 +2404,11 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
|
2388
2404
|
return relative(projectDir, path);
|
|
2389
2405
|
}
|
|
2390
2406
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
2391
|
-
const module = await import("./checkBrowser-
|
|
2407
|
+
const module = await import("./checkBrowser-3OCZBJC7.js");
|
|
2392
2408
|
return module.captureFindingFrames(project, options, requests, deadline);
|
|
2393
2409
|
}
|
|
2394
2410
|
async function captureFindingCrops(project, options, requests, deadline) {
|
|
2395
|
-
const module = await import("./checkBrowser-
|
|
2411
|
+
const module = await import("./checkBrowser-3OCZBJC7.js");
|
|
2396
2412
|
return module.captureFindingCrops(project, options, requests, deadline);
|
|
2397
2413
|
}
|
|
2398
2414
|
async function inspectProjectMedia(project, dependencies) {
|
|
@@ -2414,7 +2430,7 @@ function collectMedia(project) {
|
|
|
2414
2430
|
return collectProjectMedia(project.dir);
|
|
2415
2431
|
}
|
|
2416
2432
|
async function inspectAudio(project, media) {
|
|
2417
|
-
const module = await import("./checkAudio-
|
|
2433
|
+
const module = await import("./checkAudio-AAVDZFIQ.js");
|
|
2418
2434
|
return module.inspectAudio(project.dir, relative(project.dir, project.indexPath), media);
|
|
2419
2435
|
}
|
|
2420
2436
|
function audioCheckFailure(project, error) {
|
|
@@ -2488,7 +2504,7 @@ var DEFAULT_COMMAND_DEPENDENCIES = {
|
|
|
2488
2504
|
}
|
|
2489
2505
|
},
|
|
2490
2506
|
async prepareMedia(project, options) {
|
|
2491
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
2507
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-TH5SLG6O.js");
|
|
2492
2508
|
const html = await bundleWithLocalizedFonts(project.dir);
|
|
2493
2509
|
return (await preResolveHostileMediaProxies(project.dir, html, options.autoProxy)).files;
|
|
2494
2510
|
},
|
|
@@ -2604,8 +2620,8 @@ var CHECK_COMMAND_ARGS = {
|
|
|
2604
2620
|
},
|
|
2605
2621
|
timeout: {
|
|
2606
2622
|
type: "string",
|
|
2607
|
-
description: "Initial render-ready timeout in ms, or with a unit (45s, 2m); also sets the navigation minimum (10s floor, default:
|
|
2608
|
-
default:
|
|
2623
|
+
description: "Initial render-ready timeout in ms, or with a unit (45s, 2m); also sets the navigation minimum (10s floor, default: 45000, as snapshot and render)",
|
|
2624
|
+
default: String(DEFAULT_CHECK_OPTIONS.timeout)
|
|
2609
2625
|
},
|
|
2610
2626
|
contrast: {
|
|
2611
2627
|
type: "boolean",
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EL2DMHA5.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PROJECT_CONFIG,
|
|
13
13
|
createProjectConfig,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-EHZESMRB.js";
|
|
33
33
|
import {
|
|
34
34
|
trackRegistryItemAdded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6DHC3MVK.js";
|
|
36
36
|
import {
|
|
37
37
|
defineCommand
|
|
38
38
|
} from "./chunk-DL4OD7IA.js";
|