hyperframes 0.9.10 → 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-AFD3HNXB.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 +9 -9
- package/dist/{asset-P6SF46UX.js → asset-UR4PH6KJ.js} +2 -2
- package/dist/{assetCataloger-SDFP4DWL.js → assetCataloger-VKJIQCYP.js} +1 -1
- package/dist/{audio-DFQXEAEE.js → audio-HZJ7QZQR.js} +9 -9
- package/dist/{auth-T62ANGDQ.js → auth-UBNAW62X.js} +1 -1
- package/dist/{autoUpdate-3IT56KGL.js → autoUpdate-DDFTFHRP.js} +3 -3
- package/dist/{backgroundChecks-UKBVUYML.js → backgroundChecks-H3TNVYJV.js} +4 -4
- package/dist/backgroundChecksWorker.js +4 -4
- package/dist/{beats-7UFMDXBY.js → beats-HOIQSFFP.js} +6 -6
- package/dist/{benchmark-LCSHBJJF.js → benchmark-ZYOQV7DK.js} +7 -7
- package/dist/{browser-5DZHA4EW.js → browser-PLFK53IZ.js} +4 -4
- package/dist/{bundleWithLocalizedFonts-TJL2JWRD.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-F2XB4VPP.js → catalog-CGT32566.js} +6 -6
- package/dist/{catch-up-HCBA3MIP.js → catch-up-TMYPXRKC.js} +5 -5
- package/dist/{check-E2RQCELF.js → check-4O5J4OWS.js} +23 -23
- package/dist/{checkAudio-R4DRK3VG.js → checkAudio-AAVDZFIQ.js} +3 -3
- package/dist/{checkBrowser-NGY225IO.js → checkBrowser-3OCZBJC7.js} +17 -17
- package/dist/{chunk-BYC4C4YY.js → chunk-2VYAX3ZD.js} +2 -2
- package/dist/{chunk-GIYZMGYT.js → chunk-2VZVMCV6.js} +1 -1
- package/dist/{chunk-RZFW7FBA.js → chunk-33K2UZBX.js} +2 -2
- package/dist/{chunk-CBTBVRXB.js → chunk-37537KOL.js} +4 -4
- package/dist/{chunk-CDSTLOB7.js → chunk-4ILKN2MX.js} +8 -8
- package/dist/{chunk-NCP3JQ6S.js → chunk-4J4EGANW.js} +2 -2
- package/dist/{chunk-NBWYATVA.js → chunk-4YCNVKJX.js} +194 -17
- package/dist/{chunk-5CDTGHED.js → chunk-6DHC3MVK.js} +2 -2
- package/dist/{chunk-MHZ7NSL5.js → chunk-6JDNEQV5.js} +1 -1
- package/dist/{chunk-6HO6QKYG.js → chunk-6R2PED3X.js} +6 -6
- package/dist/{chunk-3XHWHH5A.js → chunk-6Y7WZTHJ.js} +23 -23
- package/dist/{chunk-W4Q6VYPZ.js → chunk-7ZBMUKHY.js} +2 -2
- package/dist/{chunk-7VOLQUA2.js → chunk-BBMMVLA3.js} +1 -1
- package/dist/{chunk-BLBMPEBX.js → chunk-BONBJJ35.js} +1 -0
- package/dist/{chunk-2WNIF4YT.js → chunk-CD65TPHT.js} +1 -1
- package/dist/{chunk-ZMXFRRQR.js → chunk-CN3Q4CDK.js} +3 -3
- package/dist/{chunk-QPEDM2ZR.js → chunk-DI3ZFBZ3.js} +1 -1
- package/dist/{chunk-UDBNPVUR.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-DKROJ3GJ.js → chunk-H7H7XNYY.js} +80 -20
- package/dist/{chunk-JZPUXDQE.js → chunk-HY64QA63.js} +1 -1
- package/dist/{chunk-7VGM5TLZ.js → chunk-I4XTKG2B.js} +2 -2
- package/dist/{skills-T5XCP3RC.js → chunk-IMK55N3Z.js} +25 -32
- package/dist/{chunk-WCETVN3N.js → chunk-IQ5OMRLK.js} +24 -38
- package/dist/{chunk-PPMCILED.js → chunk-JS6ZTPYC.js} +4 -4
- package/dist/{chunk-PO7LSMN5.js → chunk-JT2ZGKKB.js} +2 -2
- package/dist/{chunk-Q3W7TDQX.js → chunk-KNOIX2U5.js} +3 -3
- package/dist/{chunk-P4WYY52Y.js → chunk-LWFXO732.js} +1 -1
- package/dist/{upgrade-2FS4AMCA.js → chunk-MZHCA5KY.js} +65 -27
- package/dist/{chunk-EN6MPNZT.js → chunk-NQYW4IYN.js} +2 -2
- package/dist/{chunk-QBPZHOEJ.js → chunk-OKD2LP73.js} +1 -1
- package/dist/{chunk-WP5QHNXN.js → chunk-OQGA4QBD.js} +17 -5
- package/dist/{chunk-PYUS627M.js → chunk-OQHC5YIB.js} +2 -2
- package/dist/{chunk-BHL4KN3H.js → chunk-PKLZ5PV2.js} +1 -1
- package/dist/{chunk-YXSM33UC.js → chunk-QM4OL5MZ.js} +9 -9
- package/dist/{chunk-2CKL2FUJ.js → chunk-SUM3VFPQ.js} +2 -2
- package/dist/{chunk-6VKYITOR.js → chunk-T4ELNOK6.js} +1 -1
- package/dist/{chunk-GRUI2S2F.js → chunk-VWUUNGSV.js} +1 -1
- package/dist/{chunk-7VU4RBHC.js → chunk-WJ7E5J77.js} +9 -9
- package/dist/{chunk-NVYVI4FR.js → chunk-YJZYUXHQ.js} +1 -1
- package/dist/{chunk-WWPOGMNX.js → chunk-ZUACTOAB.js} +1 -1
- package/dist/{clean-BXHJEVVO.js → clean-2FWZPS4J.js} +8 -8
- package/dist/cli.js +59 -58
- package/dist/{cloud-ISWLTHGP.js → cloud-2UFI7NLD.js} +4 -4
- package/dist/cloud-Z3FNCC4T.js +1 -1
- package/dist/{compare-MLZYDSZD.js → compare-HKRLSFTU.js} +15 -15
- package/dist/{compiler-NAIDMQFU.js → compiler-KKIYPREA.js} +1 -1
- package/dist/{component-MMBTCMY3.js → component-F43F3363.js} +3 -3
- package/dist/{compositions-WT2577NJ.js → compositions-FFXCISLD.js} +7 -7
- package/dist/{curve-HHKVZ6LX.js → curve-RHSJUG5P.js} +5 -5
- package/dist/{cuts-66GBRT5P.js → cuts-KVFY3U6C.js} +5 -5
- package/dist/{delete-P3WYOC7I.js → delete-O7IZKKUN.js} +4 -4
- package/dist/{deploy-OJ3M7QJQ.js → deploy-PZAAUW75.js} +8 -8
- package/dist/{describeProject-DN6YQU3X.js → describeProject-E44RWBJL.js} +1 -1
- package/dist/{diff-R74KQXXN.js → diff-OMNILRNN.js} +18 -18
- package/dist/{dist-CCPYPKOC.js → dist-PUHEYGA5.js} +3 -3
- package/dist/{doctor-DT52W4UE.js → doctor-4HZN7ZVI.js} +9 -5
- package/dist/{energy-WOMDOOLC.js → energy-N3ZIPHTP.js} +5 -5
- package/dist/{events-YVQJLQWG.js → events-56A5D6DK.js} +4 -4
- package/dist/{events-WEVZ2ELP.js → events-TUTAERAN.js} +6 -6
- package/dist/{events-PCK4AIN5.js → events-VAJ4Y6XF.js} +3 -3
- package/dist/{extract-CNXA3DWB.js → extract-NJMZEOLG.js} +6 -6
- package/dist/{face-2WNBW74C.js → face-KLV4W6CP.js} +5 -5
- package/dist/{feedback-ADMM2XDS.js → feedback-4VEKGVLN.js} +5 -5
- package/dist/{ffmpeg-PERZ6YHQ.js → ffmpeg-A2O4HSRD.js} +1 -1
- package/dist/{figma-5MMN5JUU.js → figma-6XDKKOA6.js} +3 -3
- package/dist/fontLocalizeCli.js +3 -3
- package/dist/{frames-7CQGHRWT.js → frames-IAMGMNCA.js} +5 -5
- package/dist/{generate-XOR4UJDW.js → generate-FMATRA3L.js} +8 -8
- package/dist/{get-5K6ALHBS.js → get-JKA3APWR.js} +4 -4
- package/dist/{gpuPolicy-DUNSQM6M.js → gpuPolicy-TKHFDEH2.js} +2 -2
- package/dist/{grade-compare-DK63C776.js → grade-compare-TCLCDUG5.js} +14 -14
- package/dist/{heifImagePrep-YNPHFR6W.js → heifImagePrep-L2EY67F2.js} +1 -1
- package/dist/{help-AUF2KA6D.js → help-TWDOQJDN.js} +3 -2
- package/dist/{history-G3FXVX4A.js → history-SOWVZUAB.js} +7 -7
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-DGU3CIU5.js → info-JDINBZLH.js} +6 -6
- package/dist/{init-LYZI2WCS.js → init-ACNL6AFC.js} +15 -15
- package/dist/{ink-DYZG4BST.js → ink-WNEJROFH.js} +5 -5
- package/dist/{inspect-BYQSCRKT.js → inspect-37AMWUW3.js} +15 -15
- package/dist/{keyframes-XX2DIYPI.js → keyframes-LMUFQW4Z.js} +7 -7
- package/dist/{lambda-RKI7KKWW.js → lambda-DRGDNEW6.js} +3 -3
- package/dist/{layout-RQFOMQRO.js → layout-E63HPSXW.js} +15 -15
- package/dist/{lint-LFCMCDEG.js → lint-HNZPRCXH.js} +7 -7
- package/dist/{list-V4TGMQ3Y.js → list-UMR5VN2M.js} +4 -4
- package/dist/{localPage-6MQ6YFER.js → localPage-KIFKMB2B.js} +1 -1
- package/dist/{login-EXCG7PEH.js → login-OXOPCSUY.js} +4 -4
- package/dist/{look-RBHKHGMF.js → look-DFQJP2LY.js} +5 -5
- package/dist/{manager-ARXEX6OP.js → manager-T633Z2L4.js} +1 -1
- package/dist/{measure-SAV5K4WT.js → measure-Y2VXF6LJ.js} +11 -11
- package/dist/{media-treatment-2BVHRXJS.js → media-treatment-U2PDH4P3.js} +8 -8
- package/dist/{media-use-YEBYLITF.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-ILLUZPTO.js → normalize-audio-SOXEVIKM.js} +5 -5
- package/dist/{open-GTNLU7UF.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-F2HIXJKH.js → play-HTHDFMOU.js} +10 -10
- package/dist/{preflight-QMXCKE5P.js → preflight-XZZXHV42.js} +1 -1
- package/dist/{present-GDR6LCKE.js → present-LQ4PJTP4.js} +10 -10
- package/dist/{preview-4TV5426Q.js → preview-CTEDNFN3.js} +9 -9
- package/dist/{probe-TYM7WKX2.js → probe-6IZD5TPR.js} +6 -6
- package/dist/{producer-NHQXKH7Y.js → producer-4CR46ON4.js} +1 -1
- package/dist/{remove-background-LURZDSDJ.js → remove-background-SYHNGASQ.js} +5 -5
- package/dist/{render-GEAO2HAV.js → render-JHSMAWED.js} +9 -9
- package/dist/{render-YLAS7GVD.js → render-VZLEKSHR.js} +18 -18
- package/dist/{reverse-3KAZZXB2.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/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 +1 -1
- 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-IG7KLWIA.js → skillsUpdateCheck-MGXL5VXL.js} +6 -4
- package/dist/{snapshot-RULSIRM6.js → snapshot-P27Y3NJE.js} +18 -18
- package/dist/{src-RL6YEPTD.js → src-L7UBHHKB.js} +1 -1
- package/dist/{src-DHBRQZFZ.js → src-MWO2XBSA.js} +2 -2
- package/dist/{start-GF3JCTGF.js → start-L5M26YD5.js} +6 -6
- package/dist/{staticProjectServer-BX4RWEY5.js → staticProjectServer-2JYB7RLI.js} +5 -5
- package/dist/studio/assets/{hyperframes-player-BcELSci_.js → hyperframes-player-BbRz52ui.js} +1 -1
- package/dist/studio/assets/{index-2SLNyxZG.js → index-CCSgOq2L.js} +1 -1
- package/dist/studio/assets/{index-DR2eua-L.js → index-D3y5mWmH.js} +4 -4
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-PEUXVD7P.js → studio-api-MEZKFJBY.js} +3 -3
- package/dist/{studioServer-DOTRPHS3.js → studioServer-J5RPUMHP.js} +24 -24
- package/dist/{sync-XQPBXGGX.js → sync-FHT2CHKU.js} +5 -5
- package/dist/{telemetry-7TIIOBVB.js → telemetry-JWEOBK3Q.js} +4 -4
- package/dist/{telemetry-T73TKZOL.js → telemetry-WGNNQUSF.js} +1 -1
- package/dist/{timeline-4JIUAUIP.js → timeline-ZO3PNIET.js} +9 -9
- package/dist/{tokens-4PQU4LVQ.js → tokens-X6OTCQCV.js} +2 -2
- package/dist/{transcribe-IKUPC2R3.js → transcribe-KNO3BK5S.js} +8 -8
- 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-LBPTWEZV.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-MLVDUEK7.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/{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
|
@@ -5,27 +5,26 @@ var require = __hf_createRequire(import.meta.url);
|
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
|
+
claimDailyNotice,
|
|
8
9
|
updateCheckDisabled
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4YCNVKJX.js";
|
|
10
11
|
import {
|
|
11
12
|
hostAnswers
|
|
12
13
|
} from "./chunk-BR2JQQC5.js";
|
|
13
14
|
import {
|
|
14
|
-
CONFIG_PATH,
|
|
15
15
|
readConfig,
|
|
16
16
|
readConfigFresh,
|
|
17
17
|
writeConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BONBJJ35.js";
|
|
19
19
|
import {
|
|
20
20
|
isUnattended
|
|
21
21
|
} from "./chunk-J3RXEDR2.js";
|
|
22
22
|
import {
|
|
23
23
|
VERSION
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-I4XTKG2B.js";
|
|
25
25
|
|
|
26
26
|
// src/utils/skillsUpdateCheck.ts
|
|
27
|
-
import {
|
|
28
|
-
import { dirname, join as join2, resolve as resolve2 } from "path";
|
|
27
|
+
import { resolve as resolve2 } from "path";
|
|
29
28
|
|
|
30
29
|
// src/utils/skillsManifest.ts
|
|
31
30
|
import { execFile } from "child_process";
|
|
@@ -440,7 +439,7 @@ async function checkSkills(opts = {}) {
|
|
|
440
439
|
}
|
|
441
440
|
|
|
442
441
|
// src/utils/skillsUpdateCheck.ts
|
|
443
|
-
var CHECK_INTERVAL_MS =
|
|
442
|
+
var CHECK_INTERVAL_MS = 2 * 60 * 60 * 1e3;
|
|
444
443
|
function getSkillsUpdateMeta() {
|
|
445
444
|
const config = readConfig();
|
|
446
445
|
return {
|
|
@@ -449,26 +448,29 @@ function getSkillsUpdateMeta() {
|
|
|
449
448
|
missing: config.skillsMissingCount ?? 0
|
|
450
449
|
};
|
|
451
450
|
}
|
|
452
|
-
function cacheFresh(
|
|
453
|
-
if (!lastSkillsCheck) return false;
|
|
454
|
-
return now - new Date(lastSkillsCheck).getTime() < CHECK_INTERVAL_MS;
|
|
451
|
+
function cacheFresh(config, now) {
|
|
452
|
+
if (!config.lastSkillsCheck || config.skillsCheckedVersion !== VERSION) return false;
|
|
453
|
+
return now - new Date(config.lastSkillsCheck).getTime() < CHECK_INTERVAL_MS;
|
|
455
454
|
}
|
|
456
455
|
async function refreshSkillsCache() {
|
|
457
456
|
if (!await hostAnswers("github.com")) return;
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
457
|
+
recordSkillsCheck(await checkSkills({ canonical: true, cliVersion: VERSION }));
|
|
458
|
+
}
|
|
459
|
+
function recordSkillsCheck(result) {
|
|
460
|
+
if (!result.location) return;
|
|
461
|
+
const config = readConfigFresh();
|
|
462
|
+
config.lastSkillsCheck = (/* @__PURE__ */ new Date()).toISOString();
|
|
463
|
+
config.skillsCheckedVersion = VERSION;
|
|
464
|
+
config.skillsUpdateAvailable = result.updateAvailable;
|
|
465
|
+
config.skillsOutdatedCount = result.summary.outdated;
|
|
466
|
+
config.skillsMissingCount = result.summary.coreMissing;
|
|
467
|
+
writeConfig(config);
|
|
467
468
|
}
|
|
468
469
|
function invalidateSkillsCache() {
|
|
469
470
|
try {
|
|
470
471
|
const config = readConfigFresh();
|
|
471
472
|
delete config.lastSkillsCheck;
|
|
473
|
+
delete config.skillsCheckedVersion;
|
|
472
474
|
delete config.skillsUpdateAvailable;
|
|
473
475
|
delete config.skillsOutdatedCount;
|
|
474
476
|
delete config.skillsMissingCount;
|
|
@@ -481,24 +483,7 @@ function skillsNoticeOff() {
|
|
|
481
483
|
}
|
|
482
484
|
function skillsCheckDue() {
|
|
483
485
|
if (skillsNoticeOff()) return false;
|
|
484
|
-
return !cacheFresh(readConfig()
|
|
485
|
-
}
|
|
486
|
-
function claimDailyNotice(project, now = Date.now()) {
|
|
487
|
-
const noticeFile = join2(dirname(CONFIG_PATH), "skills-notice.json");
|
|
488
|
-
let shown = {};
|
|
489
|
-
try {
|
|
490
|
-
shown = JSON.parse(readFileSync2(noticeFile, "utf-8"));
|
|
491
|
-
} catch {
|
|
492
|
-
}
|
|
493
|
-
if (now - (shown[project] ?? 0) < CHECK_INTERVAL_MS) return false;
|
|
494
|
-
const kept = Object.entries(shown).filter(([, at]) => now - at < CHECK_INTERVAL_MS);
|
|
495
|
-
try {
|
|
496
|
-
mkdirSync(dirname(noticeFile), { recursive: true, mode: 448 });
|
|
497
|
-
writeFileSync(noticeFile, JSON.stringify(Object.fromEntries([...kept, [project, now]])));
|
|
498
|
-
} catch {
|
|
499
|
-
return false;
|
|
500
|
-
}
|
|
501
|
-
return true;
|
|
486
|
+
return !cacheFresh(readConfig(), Date.now());
|
|
502
487
|
}
|
|
503
488
|
function skillsNoticeText(meta) {
|
|
504
489
|
const total = meta.outdated + meta.missing;
|
|
@@ -514,7 +499,7 @@ function printSkillsUpdateNotice(cwd = process.cwd()) {
|
|
|
514
499
|
if (skillsNoticeOff()) return;
|
|
515
500
|
const meta = getSkillsUpdateMeta();
|
|
516
501
|
const text = skillsNoticeText(isUnattended() ? { ...meta, outdated: 0 } : meta);
|
|
517
|
-
if (text && claimDailyNotice(resolve2(cwd))) process.stderr.write(text);
|
|
502
|
+
if (text && claimDailyNotice("skills", resolve2(cwd))) process.stderr.write(text);
|
|
518
503
|
}
|
|
519
504
|
|
|
520
505
|
export {
|
|
@@ -528,6 +513,7 @@ export {
|
|
|
528
513
|
cliReleaseTag,
|
|
529
514
|
checkSkills,
|
|
530
515
|
refreshSkillsCache,
|
|
516
|
+
recordSkillsCheck,
|
|
531
517
|
invalidateSkillsCache,
|
|
532
518
|
skillsCheckDue,
|
|
533
519
|
printSkillsUpdateNotice
|
|
@@ -1010,10 +1010,10 @@ function inlineSubCompositions(document, hosts, options) {
|
|
|
1010
1010
|
const compDoc = parseCopy(compHtml);
|
|
1011
1011
|
let compId;
|
|
1012
1012
|
let runtimeCompId;
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
compId = identity
|
|
1016
|
-
runtimeCompId = identity
|
|
1013
|
+
const identity = hostIdentityMap?.get(hostEl);
|
|
1014
|
+
if (identity) {
|
|
1015
|
+
compId = identity.authoredCompositionId || null;
|
|
1016
|
+
runtimeCompId = identity.runtimeCompositionId || compId || "";
|
|
1017
1017
|
} else {
|
|
1018
1018
|
compId = hostEl.getAttribute("data-composition-id") || null;
|
|
1019
1019
|
runtimeCompId = compId || "";
|
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
readConfig,
|
|
41
41
|
telemetryRuntimeOverride,
|
|
42
42
|
writeConfig
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-BONBJJ35.js";
|
|
44
44
|
import {
|
|
45
45
|
VERSION
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-I4XTKG2B.js";
|
|
47
47
|
|
|
48
48
|
// src/telemetry/transport.ts
|
|
49
49
|
import { spawn } from "child_process";
|
|
@@ -197,7 +197,7 @@ import {
|
|
|
197
197
|
parsesAsScript,
|
|
198
198
|
prepareFlattenedInnerRoot,
|
|
199
199
|
stripSdrPngColourTags
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-JS6ZTPYC.js";
|
|
201
201
|
import {
|
|
202
202
|
collectScratchLeftovers,
|
|
203
203
|
removeScratch,
|
|
@@ -16938,7 +16938,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
|
|
|
16938
16938
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
16939
16939
|
if (probeResult.probeSession) {
|
|
16940
16940
|
try {
|
|
16941
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
16941
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-L7UBHHKB.js");
|
|
16942
16942
|
await closeCaptureSession2(probeResult.probeSession);
|
|
16943
16943
|
} catch (err) {
|
|
16944
16944
|
log.warn("[plan] probe session close failed", {
|
|
@@ -20324,7 +20324,7 @@ function startServer(options = {}) {
|
|
|
20324
20324
|
});
|
|
20325
20325
|
async function shutdown(signal) {
|
|
20326
20326
|
log.info(`Received ${signal}, shutting down`);
|
|
20327
|
-
const { drainBrowserPool } = await import("./src-
|
|
20327
|
+
const { drainBrowserPool } = await import("./src-L7UBHHKB.js");
|
|
20328
20328
|
await drainBrowserPool().catch(() => {
|
|
20329
20329
|
});
|
|
20330
20330
|
const handle = await Promise.race([
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
shouldTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JT2ZGKKB.js";
|
|
10
10
|
|
|
11
11
|
// src/telemetry/renderObservability.ts
|
|
12
12
|
function renderObservabilityTelemetryPayload(observability) {
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
defineCommand
|
|
17
17
|
} from "./chunk-DL4OD7IA.js";
|
|
18
|
-
import "./chunk-S3S4TGEH.js";
|
|
19
18
|
import {
|
|
20
19
|
c
|
|
21
20
|
} from "./chunk-2GICKZ3I.js";
|
|
22
21
|
import {
|
|
22
|
+
NO_UPDATE_NOTICE,
|
|
23
23
|
checkForUpdate,
|
|
24
24
|
detectInstaller,
|
|
25
25
|
installInvocation,
|
|
@@ -27,31 +27,21 @@ import {
|
|
|
27
27
|
rewritePinnedHyperframesText,
|
|
28
28
|
rewriteProjectPinnedScripts,
|
|
29
29
|
withMeta
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-BR2JQQC5.js";
|
|
32
|
-
import "./chunk-BLBMPEBX.js";
|
|
33
|
-
import "./chunk-ISN5GRYI.js";
|
|
34
|
-
import "./chunk-ADVVQX4I.js";
|
|
30
|
+
} from "./chunk-4YCNVKJX.js";
|
|
35
31
|
import {
|
|
36
32
|
setCommandExitCode
|
|
37
33
|
} from "./chunk-66W5IWLO.js";
|
|
38
34
|
import {
|
|
39
35
|
isUnattended
|
|
40
36
|
} from "./chunk-J3RXEDR2.js";
|
|
41
|
-
import "./chunk-QBXDU24O.js";
|
|
42
37
|
import {
|
|
43
38
|
VERSION
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-E63BDV4Z.js";
|
|
46
|
-
import "./chunk-G7VEYUZ2.js";
|
|
47
|
-
import "./chunk-XT6MXC7A.js";
|
|
48
|
-
import "./chunk-7KDQAD2W.js";
|
|
49
|
-
import "./chunk-M2WBOQ2Q.js";
|
|
39
|
+
} from "./chunk-I4XTKG2B.js";
|
|
50
40
|
|
|
51
41
|
// src/commands/upgrade.ts
|
|
52
42
|
import { execFileSync } from "child_process";
|
|
53
43
|
import { existsSync, readFileSync, writeFileSync, renameSync, readdirSync } from "fs";
|
|
54
|
-
import { resolve } from "path";
|
|
44
|
+
import { join, resolve } from "path";
|
|
55
45
|
var examples = [
|
|
56
46
|
["Check for updates interactively", "hyperframes upgrade"],
|
|
57
47
|
["Check for updates without prompting", "hyperframes upgrade --check"],
|
|
@@ -77,7 +67,7 @@ var upgrade_default = defineCommand({
|
|
|
77
67
|
const p = resolveProjectArgs(args.project, { check: checkOnly, json: useJson });
|
|
78
68
|
const res = await upgradeProjectPins(resolve(p.dir), { json: p.json, check: p.check });
|
|
79
69
|
if (p.json) {
|
|
80
|
-
console.log(JSON.stringify(withMeta(res), null, 2));
|
|
70
|
+
console.log(JSON.stringify(withMeta(res, NO_UPDATE_NOTICE), null, 2));
|
|
81
71
|
return;
|
|
82
72
|
}
|
|
83
73
|
printProjectPinResult(res, p.check);
|
|
@@ -85,7 +75,7 @@ var upgrade_default = defineCommand({
|
|
|
85
75
|
}
|
|
86
76
|
if (useJson) {
|
|
87
77
|
const result2 = await checkForUpdate(true);
|
|
88
|
-
console.log(JSON.stringify(withMeta(result2), null, 2));
|
|
78
|
+
console.log(JSON.stringify(withMeta(result2, NO_UPDATE_NOTICE), null, 2));
|
|
89
79
|
return;
|
|
90
80
|
}
|
|
91
81
|
const autoYes = args.yes === true;
|
|
@@ -130,19 +120,65 @@ function applyUpgrade(result, autoYes) {
|
|
|
130
120
|
setCommandExitCode(1);
|
|
131
121
|
return;
|
|
132
122
|
}
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
const npxFallback = `npx hyperframes@${result.latest}`;
|
|
137
|
-
if (!invocation || !displayCmd) {
|
|
138
|
-
printNpxFallback(installer.reason, npxFallback, autoYes);
|
|
123
|
+
const plan = upgradePlan(result.latest);
|
|
124
|
+
if ("manual" in plan) {
|
|
125
|
+
printNpxFallback(plan.reason, plan.manual, autoYes);
|
|
139
126
|
return;
|
|
140
127
|
}
|
|
141
128
|
if (!autoYes) {
|
|
142
|
-
printManualCommands(displayCmd,
|
|
129
|
+
printManualCommands(plan.displayCmd, `npx hyperframes@${result.latest}`);
|
|
143
130
|
return;
|
|
144
131
|
}
|
|
145
|
-
runDetectedInstall(invocation, displayCmd, result.latest);
|
|
132
|
+
runDetectedInstall(plan.invocation, plan.displayCmd, result.latest);
|
|
133
|
+
}
|
|
134
|
+
var NPX_LATEST = "npx hyperframes@latest";
|
|
135
|
+
function upgradePlan(latest) {
|
|
136
|
+
const installer = detectInstaller();
|
|
137
|
+
const invocation = installInvocation(installer.kind, latest);
|
|
138
|
+
const displayCmd = installer.installCommand(latest);
|
|
139
|
+
if (!invocation || !displayCmd) return { manual: NPX_LATEST, reason: installer.reason };
|
|
140
|
+
return { invocation, displayCmd, pinsVersion: installer.kind !== "brew" };
|
|
141
|
+
}
|
|
142
|
+
function brewInstalledVersion() {
|
|
143
|
+
try {
|
|
144
|
+
const prefix = execFileSync("brew", ["--prefix", "hyperframes"], {
|
|
145
|
+
encoding: "utf8",
|
|
146
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
147
|
+
shell: false
|
|
148
|
+
}).trim();
|
|
149
|
+
const version = execFileSync(join(prefix, "bin", "hyperframes"), ["--version"], {
|
|
150
|
+
encoding: "utf8",
|
|
151
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
152
|
+
shell: false,
|
|
153
|
+
env: { ...process.env, HYPERFRAMES_NO_UPDATE_CHECK: "1", HYPERFRAMES_NO_TELEMETRY: "1" }
|
|
154
|
+
}).trim();
|
|
155
|
+
return isSafeVersion(version) ? version : null;
|
|
156
|
+
} catch {
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
function upgradeRunningCli(latest) {
|
|
161
|
+
if (!isSafeVersion(latest)) return { status: "failed", command: NPX_LATEST };
|
|
162
|
+
const plan = upgradePlan(latest);
|
|
163
|
+
if ("manual" in plan) return { status: "manual", command: plan.manual, reason: plan.reason };
|
|
164
|
+
try {
|
|
165
|
+
execFileSync(plan.invocation.bin, plan.invocation.args, {
|
|
166
|
+
stdio: ["inherit", 2, 2],
|
|
167
|
+
shell: false
|
|
168
|
+
});
|
|
169
|
+
} catch {
|
|
170
|
+
return { status: "failed", command: plan.displayCmd };
|
|
171
|
+
}
|
|
172
|
+
const installed = plan.pinsVersion ? latest : brewInstalledVersion();
|
|
173
|
+
const command = plan.displayCmd;
|
|
174
|
+
if (installed === null) {
|
|
175
|
+
return { status: "unverified", command, reason: "the installed version could not be read" };
|
|
176
|
+
}
|
|
177
|
+
if (installed === VERSION) {
|
|
178
|
+
const reason = `${command} left ${installed} in place; npm has ${latest}`;
|
|
179
|
+
return { status: "unchanged", version: installed, command, reason };
|
|
180
|
+
}
|
|
181
|
+
return { status: "upgraded", version: installed, command };
|
|
146
182
|
}
|
|
147
183
|
function printNpxFallback(reason, npxFallback, autoYes) {
|
|
148
184
|
console.log();
|
|
@@ -237,10 +273,12 @@ function runDetectedInstall(invocation, displayCmd, version) {
|
|
|
237
273
|
setCommandExitCode(1);
|
|
238
274
|
}
|
|
239
275
|
}
|
|
276
|
+
|
|
240
277
|
export {
|
|
241
|
-
upgrade_default as default,
|
|
242
278
|
examples,
|
|
279
|
+
upgrade_default,
|
|
280
|
+
upgradeRunningCli,
|
|
243
281
|
resolveProjectArgs,
|
|
244
|
-
|
|
245
|
-
|
|
282
|
+
upgradeProjectPins,
|
|
283
|
+
runDetectedInstall
|
|
246
284
|
};
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-AVNF52HR.js";
|
|
19
19
|
import {
|
|
20
20
|
registerBrowserSessionCleanup
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PKLZ5PV2.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_VP9_CPU_USED,
|
|
24
24
|
SDR_RGB_TO_BT709_FILTER,
|
|
@@ -432,7 +432,7 @@ async function decoderTransposesDimensions(inputPath) {
|
|
|
432
432
|
}
|
|
433
433
|
async function probeMedia(inputPath) {
|
|
434
434
|
const isImage = inferInputKind(inputPath) === "image";
|
|
435
|
-
const engine = await import("./src-
|
|
435
|
+
const engine = await import("./src-L7UBHHKB.js");
|
|
436
436
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
437
437
|
if (isImage) {
|
|
438
438
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -40,15 +40,18 @@ import {
|
|
|
40
40
|
} from "./chunk-FBN2M2HK.js";
|
|
41
41
|
import {
|
|
42
42
|
getUpdateMeta,
|
|
43
|
+
installChannelLabel,
|
|
44
|
+
runningInstall,
|
|
45
|
+
updateCommandFor,
|
|
43
46
|
withMeta
|
|
44
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-4YCNVKJX.js";
|
|
45
48
|
import {
|
|
46
49
|
CONFIG_PATH,
|
|
47
50
|
withFileLock
|
|
48
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-BONBJJ35.js";
|
|
49
52
|
import {
|
|
50
53
|
VERSION
|
|
51
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-I4XTKG2B.js";
|
|
52
55
|
import {
|
|
53
56
|
normalizeErrorMessage
|
|
54
57
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -99,11 +102,17 @@ function checkVersion() {
|
|
|
99
102
|
return {
|
|
100
103
|
ok: false,
|
|
101
104
|
detail: `${VERSION} \u2192 ${meta.latestVersion} available`,
|
|
102
|
-
hint:
|
|
105
|
+
hint: `Run: ${updateCommandFor(runningInstall(), meta.latestVersion)}`
|
|
103
106
|
};
|
|
104
107
|
}
|
|
108
|
+
if (!meta.latestVersion) return { ok: true, detail: `${VERSION} (not checked yet)` };
|
|
105
109
|
return { ok: true, detail: `${VERSION} (latest)` };
|
|
106
110
|
}
|
|
111
|
+
function checkInstall() {
|
|
112
|
+
const install = runningInstall();
|
|
113
|
+
const where = install.path ?? "entry path unknown";
|
|
114
|
+
return { ok: true, detail: `${installChannelLabel(install.channel)} \xB7 ${where}` };
|
|
115
|
+
}
|
|
107
116
|
function checkNode() {
|
|
108
117
|
return { ok: true, detail: `${process.version} (${process.platform} ${process.arch})` };
|
|
109
118
|
}
|
|
@@ -240,7 +249,7 @@ function checkEnvironment() {
|
|
|
240
249
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
241
250
|
}
|
|
242
251
|
async function checkWhisper() {
|
|
243
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
252
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-T633Z2L4.js");
|
|
244
253
|
const result = findWhisper();
|
|
245
254
|
if (result) {
|
|
246
255
|
return { ok: true, detail: result.executablePath };
|
|
@@ -309,6 +318,7 @@ var doctor_default = defineCommand({
|
|
|
309
318
|
const environment = await runEnvironmentChecks({ includeBrowser: true });
|
|
310
319
|
const checks = [
|
|
311
320
|
{ name: "Version", run: checkVersion },
|
|
321
|
+
{ name: "CLI binary", run: checkInstall },
|
|
312
322
|
{ name: "Node.js", run: checkNode },
|
|
313
323
|
{ name: "CPU", run: checkCPU },
|
|
314
324
|
{ name: "Memory", run: checkMemory },
|
|
@@ -389,6 +399,8 @@ export {
|
|
|
389
399
|
examples,
|
|
390
400
|
TESTED_FFMPEG_VERSION,
|
|
391
401
|
ffmpegDoctorDetail,
|
|
402
|
+
checkVersion,
|
|
403
|
+
checkInstall,
|
|
392
404
|
checkFramesCache,
|
|
393
405
|
checkArchiveExtractor,
|
|
394
406
|
checkSettingsLock,
|
|
@@ -6,14 +6,14 @@ 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-ZUACTOAB.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProjectRelativeSrc
|
|
12
12
|
} from "./chunk-WVRAFHJU.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/projectMedia.ts
|
|
15
15
|
async function collectProjectMedia(projectDir) {
|
|
16
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
16
|
+
const { bundleToSingleHtml } = await import("./compiler-KKIYPREA.js");
|
|
17
17
|
const html = await bundleToSingleHtml(projectDir);
|
|
18
18
|
const producer = await loadProducer();
|
|
19
19
|
if (!producer.collectRenderMedia) throw new Error("Render media collector unavailable");
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveCaptureBrowserGpuMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FC4WF2VQ.js";
|
|
10
10
|
import {
|
|
11
11
|
explainChromeLaunchFailure,
|
|
12
12
|
inAgentSandbox,
|
|
@@ -7,15 +7,15 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
ambiguousIssue,
|
|
9
9
|
loadBrowserScript
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4ILKN2MX.js";
|
|
11
11
|
import {
|
|
12
12
|
auditClipDurations,
|
|
13
13
|
shouldIgnoreHttpError,
|
|
14
14
|
shouldIgnoreRequestFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WJ7E5J77.js";
|
|
16
16
|
import {
|
|
17
17
|
serveStaticProjectHtml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2VYAX3ZD.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-6R2PED3X.js";
|
|
33
33
|
import {
|
|
34
34
|
SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
|
|
35
35
|
} from "./chunk-YGGZ23BB.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
41
41
|
STUDIO_PREVIEW_MARK_META
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-4J4EGANW.js";
|
|
43
43
|
import {
|
|
44
44
|
artifactDirectory,
|
|
45
45
|
finishSnapshotRun
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
BrowserCleanupError,
|
|
61
61
|
closeManagedBrowser,
|
|
62
62
|
onStopSignal
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-PKLZ5PV2.js";
|
|
64
64
|
import {
|
|
65
65
|
DEFAULT_CONFIG
|
|
66
66
|
} from "./chunk-N6FGHJ7X.js";
|
|
@@ -586,7 +586,7 @@ function proxyFailedDraft(message) {
|
|
|
586
586
|
return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
|
|
587
587
|
}
|
|
588
588
|
async function loadCheckHtmlWithDeferredMedia(dir) {
|
|
589
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
589
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-TH5SLG6O.js");
|
|
590
590
|
return withCapturePreviewMark(await bundleWithLocalizedFonts(dir));
|
|
591
591
|
}
|
|
592
592
|
function withCapturePreviewMark(html) {
|
|
@@ -648,7 +648,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
648
648
|
).map((draft) => runtimeFinding(draft, rootAnchor))
|
|
649
649
|
}));
|
|
650
650
|
const launchSettleMs = Date.now() - launchSettleStart;
|
|
651
|
-
const { analyzeClipMediaFit } = await import("./src-
|
|
651
|
+
const { analyzeClipMediaFit } = await import("./src-L7UBHHKB.js");
|
|
652
652
|
for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
|
|
653
653
|
drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
|
|
654
654
|
}
|
|
@@ -789,7 +789,7 @@ async function captureFindingCrops(project, options, requests, deadline) {
|
|
|
789
789
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
790
790
|
if (requests.length === 0) return { written: [], inspected: [] };
|
|
791
791
|
const inspector = requests.some((request) => request.inspect?.length) ? await prepareFindingInspector(project.dir, async (bundleOptions) => {
|
|
792
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
792
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-TH5SLG6O.js");
|
|
793
793
|
return withCapturePreviewMark(
|
|
794
794
|
await bundleWithLocalizedFonts(project.dir, void 0, bundleOptions)
|
|
795
795
|
);
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6DHC3MVK.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JT2ZGKKB.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
@@ -621,7 +621,7 @@ async function prepareEntryGifs(ctx, fileMap) {
|
|
|
621
621
|
if (!html || !/\.gif\b/i.test(html)) return;
|
|
622
622
|
const sourceAssets = entryGifSources(ctx, entryPath, html);
|
|
623
623
|
if (!sourceAssets) return;
|
|
624
|
-
const prep = ctx.opts.gifPrep ?? (await import("./src-
|
|
624
|
+
const prep = ctx.opts.gifPrep ?? (await import("./src-MWO2XBSA.js")).prepareAnimatedGifInputs;
|
|
625
625
|
const outputDir = mkdtempSync(join(tmpdir(), "hf-offload-gif-"));
|
|
626
626
|
ctx.tempFiles.push(outputDir);
|
|
627
627
|
const result = await prep(html, {
|
|
@@ -6,13 +6,13 @@ 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-BBMMVLA3.js";
|
|
10
10
|
import {
|
|
11
11
|
installPageFunctionGuard,
|
|
12
12
|
resolveCliChromeGpuMode,
|
|
13
13
|
seekCompositionTimeline,
|
|
14
14
|
waitForRuntimeReady
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6R2PED3X.js";
|
|
16
16
|
import {
|
|
17
17
|
pageNavigationTimeoutMs
|
|
18
18
|
} from "./chunk-E2YXF2EP.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
launchManagedBrowser,
|
|
24
24
|
resolveManagedGpuMode
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PKLZ5PV2.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-4YCNVKJX.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-4CR46ON4.js");
|
|
257
257
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
258
258
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
259
259
|
const assetDir = dir;
|
|
@@ -274,9 +274,9 @@ async function localizeRemoteAssets(html) {
|
|
|
274
274
|
}
|
|
275
275
|
async function validateInBrowser(project, opts) {
|
|
276
276
|
const projectDir = project.dir;
|
|
277
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
277
|
+
const { bundleToSingleHtml } = await import("./compiler-KKIYPREA.js");
|
|
278
278
|
const { ensureBrowser } = await import("./manager-SAXHANEY.js");
|
|
279
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
279
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-2JYB7RLI.js");
|
|
280
280
|
const { lintProject } = await import("./lintProject-EV3EEBY3.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-L7UBHHKB.js");
|
|
302
302
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
303
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-
|
|
303
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-TKHFDEH2.js");
|
|
304
304
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
305
305
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
306
306
|
const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|