hyperframes 0.8.111 → 0.8.113
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-M5WN2AM2.js → add-ILIGSLV4.js} +15 -15
- package/dist/{agentPromptGenerator-QL2KAWEP.js → agentPromptGenerator-VIIPZCJ3.js} +1 -1
- package/dist/{animatedGifPrep-NMGFOSIL.js → animatedGifPrep-U7FMC7DB.js} +6 -6
- package/dist/{asset-GUASPIKN.js → asset-OFDEIAGM.js} +2 -2
- package/dist/{assetCataloger-FXEHOUA3.js → assetCataloger-5LCGR5XU.js} +2 -2
- package/dist/{auth-3YMEVUKJ.js → auth-5JDDEX2M.js} +2 -2
- package/dist/{autoUpdate-FYCGHBPC.js → autoUpdate-JXVZVJCV.js} +2 -2
- package/dist/{backgroundChecks-ZLYIRMTS.js → backgroundChecks-BBWGY3V6.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-ZTHFMHZY.js → batchRender-QVJ7NEUH.js} +3 -3
- package/dist/{beats-GXY5ZBPB.js → beats-YEYVQMX6.js} +11 -11
- package/dist/{benchmark-MJFVBVNW.js → benchmark-J2V46VWI.js} +12 -12
- package/dist/{browser-ZDI7IX6H.js → browser-XBWASLD2.js} +11 -11
- package/dist/{bundleWithLocalizedFonts-4Q3ETTHW.js → bundleWithLocalizedFonts-4CVITCYK.js} +2 -2
- package/dist/{capture-4OPH4PMK.js → capture-F2Y7TIHU.js} +41 -43
- package/dist/{capture-OG6532RA.js → capture-GLHK4ST7.js} +3 -3
- package/dist/{captureFile-JOPOCRU7.js → captureFile-LYOJOUIE.js} +3 -1
- package/dist/{catalog-23DP7KCW.js → catalog-3QDMTDK2.js} +15 -15
- package/dist/{check-5X6BJA2P.js → check-O3RR4NWI.js} +52 -40
- package/dist/{checkBrowser-3QHBTMYM.js → checkBrowser-K36DAG4S.js} +32 -31
- package/dist/{chunk-NIGUNLOO.js → chunk-2DBYGR4N.js} +10 -9
- package/dist/{chunk-TIZQC44K.js → chunk-3IUSKIZW.js} +1 -1
- package/dist/{chunk-YLOSZHA2.js → chunk-3XPZJUKM.js} +2 -2
- package/dist/{chunk-32P7FTFC.js → chunk-4KGMIOMY.js} +9 -8
- package/dist/{chunk-N34BYX3E.js → chunk-4PFZPP2N.js} +54 -30
- package/dist/{chunk-JTTAS7N6.js → chunk-7543YIMQ.js} +1 -1
- package/dist/{chunk-AMSBTN6L.js → chunk-7CGIICLA.js} +3 -3
- package/dist/{chunk-LAQEZHOH.js → chunk-BOUDTDBQ.js} +1 -1
- package/dist/chunk-C6AIZOQN.js +3541 -0
- package/dist/{chunk-EE6SV6KW.js → chunk-DDK22K3I.js} +3 -3
- package/dist/{chunk-QXERSWXX.js → chunk-DQBY7FRR.js} +123 -3
- package/dist/{chunk-HQGJLZB6.js → chunk-DR7QW6C5.js} +2 -2
- package/dist/{chunk-E4AYSXMS.js → chunk-E52XEEAA.js} +3 -3
- package/dist/{chunk-J4RPT4QW.js → chunk-E6RPWJVC.js} +1 -1
- package/dist/{chunk-QMAXDSCH.js → chunk-EMZF2TPA.js} +2 -2
- package/dist/{chunk-XYVFPDNU.js → chunk-ENHAGQEP.js} +1 -1
- package/dist/{chunk-B25H4M4V.js → chunk-FCEFKWPM.js} +1 -1
- package/dist/{chunk-BQYGGX3B.js → chunk-FW7K32YT.js} +1 -1
- package/dist/{chunk-6CI65KCP.js → chunk-FXHVADV6.js} +1 -1
- package/dist/{chunk-OF3RKOPU.js → chunk-G2T2X6FZ.js} +189 -111
- package/dist/{chunk-5ON5GH3X.js → chunk-GDJ74GHW.js} +4 -3
- package/dist/{chunk-I5WWEBDG.js → chunk-HTQR7SUZ.js} +1 -1
- package/dist/{chunk-TQKKC4MB.js → chunk-HYXL3VJA.js} +5 -5
- package/dist/{chunk-AWUZ3AUD.js → chunk-IP3XINRB.js} +1 -1
- package/dist/{chunk-HPEHQUJX.js → chunk-IRJBTYJF.js} +1 -1
- package/dist/chunk-K4WKGXRC.js +18 -0
- package/dist/{chunk-CQRF7VU3.js → chunk-L5QASNBN.js} +1 -1
- package/dist/{chunk-ITBEN3QD.js → chunk-L5SYYW2P.js} +2 -2
- package/dist/{chunk-MGFVNTIB.js → chunk-LMC46FK5.js} +2 -2
- package/dist/chunk-MRF4AMKD.js +104 -0
- package/dist/{chunk-U4TDAJZE.js → chunk-OCNCK5FQ.js} +2 -2
- package/dist/{chunk-JWPSBANO.js → chunk-OEA2J2TF.js} +3 -3
- package/dist/{chunk-N32ITJ7L.js → chunk-P3FGUSFK.js} +15 -12
- package/dist/{chunk-2JXJ5SGK.js → chunk-QPR4N2D4.js} +6 -6
- package/dist/{chunk-LFUXJBYA.js → chunk-R4NWAW35.js} +7 -7
- package/dist/{chunk-C4TZBEHY.js → chunk-SIN32SJB.js} +2 -2
- package/dist/{chunk-M224DAMG.js → chunk-T3NMEYGM.js} +1 -1
- package/dist/{chunk-Q2QNAFQV.js → chunk-U4VSY56O.js} +1 -1
- package/dist/{chunk-NH75EKOP.js → chunk-VFCKXTBB.js} +6 -3
- package/dist/{chunk-V4HKT2LV.js → chunk-VIJ35BJ6.js} +10 -10
- package/dist/{chunk-5ER3PYYP.js → chunk-VLC7JS4K.js} +1 -1
- package/dist/{chunk-MR2LOG32.js → chunk-VTP4VSRP.js} +8 -8
- package/dist/{chunk-ZU54D6MI.js → chunk-XFJXFNJF.js} +3 -3
- package/dist/{chunk-YIXEH4TF.js → chunk-XXKBPGPJ.js} +2 -2
- package/dist/{chunk-JUP65S7D.js → chunk-XZM2I47O.js} +3 -3
- package/dist/{chunk-BAVM2XBR.js → chunk-YJEGT5L6.js} +209 -33
- package/dist/{chunk-CFC3EEDQ.js → chunk-ZMMSMDCA.js} +1 -1
- package/dist/{chunk-PFEKMIN5.js → chunk-ZYSS3JED.js} +1 -1
- package/dist/{chunk-ZXSNGIYS.js → chunk-ZZIXIOK2.js} +4 -4
- package/dist/{clean-ATMEGSGP.js → clean-RPB34TT6.js} +16 -16
- package/dist/cli.js +122 -54
- package/dist/{cloud-ZFGUHACY.js → cloud-QECFFPKC.js} +4 -4
- package/dist/{cloudrun-LVZ4OPPC.js → cloudrun-BML6ZG7K.js} +3 -3
- package/dist/commands/layout-audit.browser.js +178 -202
- package/dist/commands/motion-sample.browser.js +24 -71
- package/dist/commands/motion-signature.browser.js +374 -0
- package/dist/{compare-55LEUY7M.js → compare-PF6WHQ4T.js} +26 -26
- package/dist/{compiler-C32VXLE2.js → compiler-ZHVIEP26.js} +3 -3
- package/dist/{component-3EDFANIC.js → component-4ENCNLED.js} +3 -3
- package/dist/{compositions-OPU6U6GM.js → compositions-5UA33RSG.js} +11 -11
- package/dist/{contactSheet-54AJDSR5.js → contactSheet-27SRU7A4.js} +2 -2
- package/dist/{delete-PJE4P3HH.js → delete-SARS5LIK.js} +2 -2
- package/dist/{deploy-4T3RMA5G.js → deploy-MX76RZ36.js} +1 -1
- package/dist/{destroy-EYDBVHGF.js → destroy-H2TZBYHH.js} +1 -1
- package/dist/{dist-FMHQMEMX.js → dist-HRBNHR4M.js} +1 -1
- package/dist/{dist-YUIPB7OX.js → dist-OKRUIHYU.js} +2 -2
- package/dist/docker/Dockerfile.render +1 -1
- package/dist/{doctor-EIVBJJAF.js → doctor-TSAQGYP4.js} +11 -11
- package/dist/{events-NP666TF4.js → events-3HUO73ZE.js} +9 -9
- package/dist/{events-ISMT4RDW.js → events-SZ5NWYWD.js} +8 -8
- package/dist/{feedback-4OSLMKBW.js → feedback-42OTOFC6.js} +10 -10
- package/dist/{figma-Y7ZHFCOU.js → figma-RYNFCYXB.js} +3 -3
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{get-E4GBRHQK.js → get-IRHLG5OQ.js} +2 -2
- package/dist/{gpuPolicy-CA6KRFQQ.js → gpuPolicy-LRMOZXFU.js} +6 -6
- package/dist/{grade-compare-B2EHEOLR.js → grade-compare-KGJP5HV7.js} +24 -24
- package/dist/{help-ISGUWGOR.js → help-C5HS56RZ.js} +1 -1
- package/dist/{history-FNRU3TL4.js → history-DFJNDM2T.js} +16 -17
- package/dist/hyperframe-runtime.js +54 -54
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +54 -54
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-FO7VR5NC.js → info-26GTDTKN.js} +11 -11
- package/dist/{init-IGW4DTVC.js → init-RXA6NI73.js} +25 -24
- package/dist/{inspect-D4GUGDW7.js → inspect-2S5GAZYC.js} +25 -25
- package/dist/{installer-NBEN3ZIP.js → installer-DGYYDGWJ.js} +4 -4
- package/dist/{keyframes-CXZLEC3R.js → keyframes-WBMAX7XZ.js} +12 -12
- package/dist/{lambda-BFHJMMCG.js → lambda-OQBFCEFA.js} +6 -6
- package/dist/{layout-XEDEOLAH.js → layout-ZRU7PXBG.js} +25 -25
- package/dist/{lint-LLGMCVZ5.js → lint-ATVNZ6FG.js} +12 -12
- package/dist/{lintProject-X7L7EZWZ.js → lintProject-TOLC6HDS.js} +1 -1
- package/dist/{list-LUCWSLK6.js → list-E2GHYPCQ.js} +2 -2
- package/dist/{login-SMWYXJWJ.js → login-LOC4KA7H.js} +4 -4
- package/dist/{manager-NEVLEZK3.js → manager-CT3D67CG.js} +1 -1
- package/dist/{media-treatment-OYTNU6PX.js → media-treatment-L43MVH2V.js} +15 -14
- package/dist/{models-RILNQV3Z.js → models-JF5OOZ5A.js} +7 -7
- package/dist/{motionShot-5F4DCMWC.js → motionShot-BJ5CLYMN.js} +12 -12
- package/dist/{normalize-audio-4LHYKFON.js → normalize-audio-K33FKGAF.js} +11 -11
- package/dist/{pipeline-5UY45ELH.js → pipeline-IWPF5ZMK.js} +6 -6
- package/dist/{play-D4AHRZQD.js → play-PHHXYCQI.js} +20 -20
- package/dist/{preflight-3V5IHGWQ.js → preflight-2GH2Z4GZ.js} +8 -8
- package/dist/{present-VUH7PLOO.js → present-KBFK2YVB.js} +16 -16
- package/dist/{preview-NCFC65VR.js → preview-T3E5TFDC.js} +159 -87
- package/dist/{producer-7JGAPEAF.js → producer-SL66UNEP.js} +1 -1
- package/dist/{projectConfig-JHEWPAA5.js → projectConfig-7AKXZNNR.js} +6 -6
- package/dist/{publication-7XA2H7UB.js → publication-B2OERUY7.js} +2 -2
- package/dist/{publish-257VZMWI.js → publish-ZGKT7KED.js} +8 -8
- package/dist/{remove-background-EV6XVADN.js → remove-background-4LRTT6YL.js} +7 -7
- package/dist/{render-DHCMWKFV.js → render-H6RSJF2V.js} +12 -12
- package/dist/{render-DKXGFQVW.js → render-OKNPNMFS.js} +23 -23
- package/dist/{render-4C3YKVZI.js → render-TGCDBKMP.js} +3 -3
- package/dist/{render-batch-AFDBPDMM.js → render-batch-WRQFW4UC.js} +3 -3
- package/dist/{renderCancellation-VIZELWDD.js → renderCancellation-BFCQYGVV.js} +6 -6
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-S72XBTEQ.js → resolver-37UOGAMT.js} +4 -4
- package/dist/{screenshotCapture-FA5HPN7Q.js → screenshotCapture-ECBTLCU6.js} +3 -3
- package/dist/{sherpa-BAADWCHB.js → sherpa-SDVKYXCX.js} +7 -7
- package/dist/skills/hyperframes/references/frame-worker-core.md +2 -2
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +2 -2
- package/dist/skills/media-use/audio/references/bgm.md +1 -1
- package/dist/skills/media-use/audio/references/tts.md +1 -1
- package/dist/skills/media-use/audio/scripts/lib/python.mjs +19 -5
- package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +69 -1
- package/dist/{skills-2BGFBUR6.js → skills-O25ZTFTO.js} +40 -14
- package/dist/{skillsUpdateCheck-5LYFYHUF.js → skillsUpdateCheck-Y2V4OMMT.js} +3 -3
- package/dist/{snapshot-Z37DZL4T.js → snapshot-KGM2HZIC.js} +52 -31
- package/dist/{src-GD7RGV5U.js → src-PJJ6NISA.js} +5 -5
- package/dist/{src-GRC63B6L.js → src-PLWCT745.js} +7 -7
- package/dist/{staticProjectServer-SFINO3DE.js → staticProjectServer-OCE7GU5S.js} +14 -14
- package/dist/{status-LXQL3L3H.js → status-LENRPQS5.js} +6 -6
- package/dist/studio/assets/{hyperframes-player-DvJeHBHi.js → hyperframes-player-DzJbtQVO.js} +1 -1
- package/dist/studio/assets/{index-SFktf7O1.js → index-DRhF3v4Z.js} +194 -194
- package/dist/studio/assets/{index-C7apTvpr.css → index-DbfKVTId.css} +1 -1
- package/dist/studio/assets/{index--G6c4Q_x.js → index-DgwDQK5G.js} +1 -1
- package/dist/studio/assets/{index-Bt4vDkfw.js → index-n5FUn1xv.js} +1 -1
- package/dist/studio/{chunk-PQFEBX32.js → chunk-BIUXP3PG.js} +2 -2
- package/dist/studio/{chunk-6LUNLTHR.js → chunk-K47E2ZJA.js} +13 -8
- package/dist/studio/chunk-K47E2ZJA.js.map +1 -0
- package/dist/studio/{chunk-QUXZVHOJ.js → chunk-VWT7STY3.js} +2 -2
- package/dist/studio/{domEditingLayers-JQPQGGT7.js → domEditingLayers-V67MS4WP.js} +3 -3
- package/dist/studio/index.d.ts +80 -46
- package/dist/studio/index.html +2 -2
- package/dist/studio/index.js +7294 -6844
- package/dist/studio/index.js.map +1 -1
- package/dist/studio/player.js +2 -2
- package/dist/studio/styles.css +1 -1
- package/dist/{studio-api-WRSCXPWS.js → studio-api-IEQ5BIHT.js} +8 -8
- package/dist/{studioSelectionClient-A6JCWRRW.js → studioSelectionClient-IUUPKUHZ.js} +1 -2
- package/dist/{studioServer-HTLRGC5G.js → studioServer-LXJ34MGN.js} +43 -43
- package/dist/{system-EEWYEHYX.js → system-4KRSV2B7.js} +6 -6
- package/dist/{telemetry-NLEEMXO2.js → telemetry-R3BPD6VK.js} +9 -9
- package/dist/{timeline-7C4KM3KD.js → timeline-N5UKVS2S.js} +15 -15
- package/dist/{tokens-QQLJXW4G.js → tokens-774UBF2R.js} +2 -2
- package/dist/{transcribe-GCKJF5A6.js → transcribe-3UXXEDXX.js} +7 -7
- package/dist/{transcribe-TGR5CTA7.js → transcribe-IP74EZLM.js} +12 -12
- package/dist/{tts-DO2W6NLB.js → tts-P3LIPIL5.js} +13 -6
- package/dist/{updateCheck-73JM5QR3.js → updateCheck-EXHNAPKI.js} +2 -2
- package/dist/{upgrade-V6E5P53C.js → upgrade-A4M3O2F2.js} +2 -2
- package/dist/{urlDownloader-NYXPEBUN.js → urlDownloader-4KNER64L.js} +5 -5
- package/dist/{validate-INP7WJAK.js → validate-DV75GM6J.js} +15 -15
- package/dist/{video-KWQ5TSVD.js → video-GINAMW5I.js} +17 -9
- package/package.json +1 -1
- package/dist/chunk-5GQAJ43Q.js +0 -31
- package/dist/chunk-VWA4HODG.js +0 -129
- package/dist/chunk-YLVI7VL5.js +0 -3541
- package/dist/studio/chunk-6LUNLTHR.js.map +0 -1
- /package/dist/studio/{chunk-PQFEBX32.js.map → chunk-BIUXP3PG.js.map} +0 -0
- /package/dist/studio/{chunk-QUXZVHOJ.js.map → chunk-VWT7STY3.js.map} +0 -0
- /package/dist/studio/{domEditingLayers-JQPQGGT7.js.map → domEditingLayers-V67MS4WP.js.map} +0 -0
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
MAX_AUDIO_GAIN_DB,
|
|
9
9
|
formatAudioGain,
|
|
10
10
|
isAudibleVideoElement
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-C6AIZOQN.js";
|
|
12
12
|
import {
|
|
13
13
|
findFfBinary
|
|
14
14
|
} from "./chunk-PJ3HDUCY.js";
|
|
15
15
|
|
|
16
|
-
// ../studio-server/dist/chunk-
|
|
16
|
+
// ../studio-server/dist/chunk-DSVQ2U7J.js
|
|
17
17
|
import { execFile } from "child_process";
|
|
18
18
|
import { isAbsolute, relative, resolve } from "path";
|
|
19
19
|
import { promisify } from "util";
|
|
@@ -315,7 +315,8 @@ async function measureAudio(ffmpegPath, file, tag) {
|
|
|
315
315
|
const result = await execFileAsync(ffmpegPath, loudnessMeasureArgs(file, tag), {
|
|
316
316
|
encoding: "utf8",
|
|
317
317
|
maxBuffer: 16 * 1024 * 1024,
|
|
318
|
-
timeout: FFMPEG_TIMEOUT_MS
|
|
318
|
+
timeout: FFMPEG_TIMEOUT_MS,
|
|
319
|
+
windowsHide: true
|
|
319
320
|
});
|
|
320
321
|
return parseEbur128Summary(result.stderr);
|
|
321
322
|
}
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-E52XEEAA.js";
|
|
20
20
|
import {
|
|
21
21
|
c
|
|
22
22
|
} from "./chunk-ZTZA4UWZ.js";
|
|
@@ -25,24 +25,24 @@ import {
|
|
|
25
25
|
getFreeDiskMb,
|
|
26
26
|
getShmSizeMb,
|
|
27
27
|
getSystemMeta
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-L5QASNBN.js";
|
|
29
29
|
import {
|
|
30
30
|
defineCommand
|
|
31
31
|
} from "./chunk-S3S4TGEH.js";
|
|
32
32
|
import {
|
|
33
33
|
resolveExtractCacheDir
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-G2T2X6FZ.js";
|
|
35
35
|
import {
|
|
36
36
|
getUpdateMeta,
|
|
37
37
|
withMeta
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-U4VSY56O.js";
|
|
39
39
|
import {
|
|
40
40
|
CONFIG_PATH,
|
|
41
41
|
withFileLock
|
|
42
42
|
} from "./chunk-XUXGIA7H.js";
|
|
43
43
|
import {
|
|
44
44
|
VERSION
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-3XPZJUKM.js";
|
|
46
46
|
import {
|
|
47
47
|
normalizeErrorMessage
|
|
48
48
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
|
|
8
|
+
// src/utils/textFile.ts
|
|
9
|
+
import { existsSync } from "fs";
|
|
10
|
+
import { extname, resolve } from "path";
|
|
11
|
+
function isTextFile(input) {
|
|
12
|
+
const path = resolve(input);
|
|
13
|
+
return existsSync(path) && extname(path).toLowerCase() === ".txt";
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
isTextFile
|
|
18
|
+
};
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getMimeType
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VTP4VSRP.js";
|
|
10
10
|
import {
|
|
11
11
|
injectTagsAtHeadStart
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-C6AIZOQN.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/compositionServer.ts
|
|
15
15
|
import { createHash } from "crypto";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
firstFrameColourArgs,
|
|
9
9
|
hdrToSdrToneMapFilter,
|
|
10
10
|
parseFirstFrameColour
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FCEFKWPM.js";
|
|
12
12
|
import {
|
|
13
13
|
mkdirWithinProject,
|
|
14
14
|
realProjectRoot,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
isUnresolvedAssetPlaceholder,
|
|
22
22
|
maskNonScannableRanges,
|
|
23
23
|
resolveLocalAssetCandidates
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YJEGT5L6.js";
|
|
25
25
|
import {
|
|
26
26
|
findFfBinary
|
|
27
27
|
} from "./chunk-PJ3HDUCY.js";
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
|
|
8
|
+
// src/capture/captureFile.ts
|
|
9
|
+
import {
|
|
10
|
+
mkdirSync,
|
|
11
|
+
mkdtempSync,
|
|
12
|
+
realpathSync,
|
|
13
|
+
renameSync,
|
|
14
|
+
rmSync,
|
|
15
|
+
statSync,
|
|
16
|
+
writeFileSync
|
|
17
|
+
} from "fs";
|
|
18
|
+
import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "path";
|
|
19
|
+
|
|
20
|
+
// src/capture/captureErrors.ts
|
|
21
|
+
var NavigationDeadlineError = class extends Error {
|
|
22
|
+
constructor(cause, webglObserved) {
|
|
23
|
+
super("capture navigation timed out");
|
|
24
|
+
this.cause = cause;
|
|
25
|
+
this.webglObserved = webglObserved;
|
|
26
|
+
this.name = "NavigationDeadlineError";
|
|
27
|
+
}
|
|
28
|
+
cause;
|
|
29
|
+
webglObserved;
|
|
30
|
+
};
|
|
31
|
+
var CaptureDirRefusedError = class extends Error {
|
|
32
|
+
constructor(message) {
|
|
33
|
+
super(message);
|
|
34
|
+
this.name = "CaptureDirRefusedError";
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
// src/capture/captureFile.ts
|
|
39
|
+
function publishCaptureFileSync(path, data, options) {
|
|
40
|
+
const stagingDir = mkdtempSync(join(dirname(path), ".capture-"));
|
|
41
|
+
try {
|
|
42
|
+
const staged = join(stagingDir, basename(path));
|
|
43
|
+
writeCaptureFileSync(staged, data, { ...options, flag: "wx" });
|
|
44
|
+
renameSync(staged, path);
|
|
45
|
+
} finally {
|
|
46
|
+
rmSync(stagingDir, { recursive: true, force: true });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function writeCaptureFileSync(path, data, options) {
|
|
50
|
+
const normalized = typeof options === "string" ? { encoding: options } : options;
|
|
51
|
+
if (normalized?.flag === void 0 || normalized.flag === "w") {
|
|
52
|
+
return publishCaptureFileSync(path, data, normalized);
|
|
53
|
+
}
|
|
54
|
+
writeFileSync(path, data, { ...normalized, mode: 384 });
|
|
55
|
+
}
|
|
56
|
+
function hasCode(error, ...codes) {
|
|
57
|
+
return error instanceof Error && "code" in error && typeof error.code === "string" && codes.includes(error.code);
|
|
58
|
+
}
|
|
59
|
+
function resolvedPath(path) {
|
|
60
|
+
try {
|
|
61
|
+
return realpathSync(path);
|
|
62
|
+
} catch (error) {
|
|
63
|
+
if (hasCode(error, "ENOENT", "ELOOP")) return void 0;
|
|
64
|
+
throw error;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function ensureCaptureDirSync(root, dir) {
|
|
68
|
+
const rootPath = resolve(root);
|
|
69
|
+
const target = resolve(dir);
|
|
70
|
+
const rel = relative(rootPath, target);
|
|
71
|
+
if (rel === ".." || rel.startsWith(`..${sep}`) || isAbsolute(rel)) {
|
|
72
|
+
throw new CaptureDirRefusedError(
|
|
73
|
+
`Refusing to create ${target}: it is outside the capture directory ${rootPath}`
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
mkdirSync(rootPath, { recursive: true });
|
|
77
|
+
let current = rootPath;
|
|
78
|
+
let expected = realpathSync(rootPath);
|
|
79
|
+
for (const segment of rel.split(sep).filter(Boolean)) {
|
|
80
|
+
current = join(current, segment);
|
|
81
|
+
expected = join(expected, segment);
|
|
82
|
+
try {
|
|
83
|
+
mkdirSync(current);
|
|
84
|
+
} catch (error) {
|
|
85
|
+
if (!hasCode(error, "EEXIST")) throw error;
|
|
86
|
+
}
|
|
87
|
+
if (resolvedPath(current) !== expected) {
|
|
88
|
+
throw new CaptureDirRefusedError(
|
|
89
|
+
`Refusing to write into ${current}: it resolves outside the capture directory ${rootPath}`
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
if (!statSync(current).isDirectory()) {
|
|
93
|
+
throw new CaptureDirRefusedError(`Refusing to write into ${current}: it is not a directory`);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return target;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export {
|
|
100
|
+
NavigationDeadlineError,
|
|
101
|
+
CaptureDirRefusedError,
|
|
102
|
+
writeCaptureFileSync,
|
|
103
|
+
ensureCaptureDirSync
|
|
104
|
+
};
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
shouldClampResolvedMediaDuration,
|
|
22
22
|
stripEmbeddedRuntimeScripts,
|
|
23
23
|
warnUnknownEnumValues
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-C6AIZOQN.js";
|
|
25
25
|
import {
|
|
26
26
|
cssVariableName
|
|
27
27
|
} from "./chunk-VC76R6W2.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-OFQWTKPW.js";
|
|
32
32
|
import {
|
|
33
33
|
lintHyperframeHtml
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-YJEGT5L6.js";
|
|
35
35
|
import {
|
|
36
36
|
CSS_URL_RE,
|
|
37
37
|
checkSubCompositionUsability,
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VTP4VSRP.js";
|
|
11
11
|
import {
|
|
12
12
|
PROXY_VARIANT_CONFIG,
|
|
13
13
|
ProxyCapacityError,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
recordProxyRequest,
|
|
19
19
|
resolveProxy,
|
|
20
20
|
resolveProxyVariantRequest
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LMC46FK5.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveAutoProxy
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-BOUDTDBQ.js";
|
|
25
25
|
|
|
26
26
|
// src/utils/staticProjectServer.ts
|
|
27
27
|
import { createServer } from "http";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
EncoderInterruptedError,
|
|
18
18
|
encoderFailureError,
|
|
19
19
|
prepareAnimatedGifInputs
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XXKBPGPJ.js";
|
|
21
21
|
import {
|
|
22
22
|
createStudioPositionSeekReapplyScript
|
|
23
23
|
} from "./chunk-KC5XXX3X.js";
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
validateEngineConfigSnapshot,
|
|
146
146
|
verifyDiskDrawElementSamples,
|
|
147
147
|
writeCapturedFrame
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-G2T2X6FZ.js";
|
|
149
149
|
import {
|
|
150
150
|
HF_VFX_ATTR,
|
|
151
151
|
MEDIA_START_BASIS_ATTR,
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
resolveAbsoluteMediaStartSeconds,
|
|
163
163
|
resolveAuthoredTimingWindow,
|
|
164
164
|
toFps
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-FCEFKWPM.js";
|
|
166
166
|
import {
|
|
167
167
|
CANVAS_DIMENSIONS,
|
|
168
168
|
HTML_BODY_CSS_HEIGHT_FIRST_RE,
|
|
@@ -186,7 +186,7 @@ import {
|
|
|
186
186
|
inlineSubCompositions,
|
|
187
187
|
prepareFlattenedInnerRoot,
|
|
188
188
|
styleElementsFor
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-OCNCK5FQ.js";
|
|
190
190
|
import {
|
|
191
191
|
HF_COLOR_GRADING_ATTR,
|
|
192
192
|
MAX_AUDIO_GAIN,
|
|
@@ -207,7 +207,7 @@ import {
|
|
|
207
207
|
resolveNaturalMediaTimelineDurationFromValues,
|
|
208
208
|
shouldClampResolvedMediaDuration,
|
|
209
209
|
sourceTimeAt
|
|
210
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-C6AIZOQN.js";
|
|
211
211
|
import {
|
|
212
212
|
chromeMajorCeiling
|
|
213
213
|
} from "./chunk-TWWSYAKJ.js";
|
|
@@ -216,7 +216,7 @@ import {
|
|
|
216
216
|
lintHyperframeHtml,
|
|
217
217
|
readProjectFile,
|
|
218
218
|
resolveProjectRelativeSrc
|
|
219
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-YJEGT5L6.js";
|
|
220
220
|
import {
|
|
221
221
|
CSS_URL_RE,
|
|
222
222
|
checkSubCompositionUsability,
|
|
@@ -7997,7 +7997,7 @@ async function runExtractVideosStage(input) {
|
|
|
7997
7997
|
collectProbeFailures: extractionPolicy.failureMode === "enforce"
|
|
7998
7998
|
},
|
|
7999
7999
|
abortSignal,
|
|
8000
|
-
|
|
8000
|
+
cfg,
|
|
8001
8001
|
compiledDir
|
|
8002
8002
|
);
|
|
8003
8003
|
extractionResult.phaseBreakdown.transientRetries = (extractionResult.phaseBreakdown.transientRetries ?? 0) + hdrProbeTransientRetries;
|
|
@@ -8945,7 +8945,7 @@ async function runHybridLayeredFrameLoop(input) {
|
|
|
8945
8945
|
cfg
|
|
8946
8946
|
);
|
|
8947
8947
|
await initializeSession(s);
|
|
8948
|
-
await initTransparentBackground(s.page);
|
|
8948
|
+
await initTransparentBackground(s.page, { clearCompositionRoot: true });
|
|
8949
8949
|
workerSessions.push(s);
|
|
8950
8950
|
}
|
|
8951
8951
|
const sessions = [domSession, ...workerSessions];
|
|
@@ -9191,7 +9191,7 @@ async function runCaptureHdrStage(input) {
|
|
|
9191
9191
|
await initializeSession(domSession);
|
|
9192
9192
|
assertNotAborted();
|
|
9193
9193
|
lastBrowserConsole = domSession.browserConsoleBuffer;
|
|
9194
|
-
await initTransparentBackground(domSession.page);
|
|
9194
|
+
await initTransparentBackground(domSession.page, { clearCompositionRoot: true });
|
|
9195
9195
|
const transitionMeta = await domSession.page.evaluate(() => {
|
|
9196
9196
|
return window.__hf?.transitions ?? [];
|
|
9197
9197
|
});
|
|
@@ -10043,7 +10043,10 @@ async function runFfprobeJson(args, signal) {
|
|
|
10043
10043
|
if (!args.includes("--")) {
|
|
10044
10044
|
throw new Error('[audioPadTrim] ffprobe args must terminate options with "--".');
|
|
10045
10045
|
}
|
|
10046
|
-
const proc = spawn(getFfprobeBinary(), args, {
|
|
10046
|
+
const proc = spawn(getFfprobeBinary(), args, {
|
|
10047
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
10048
|
+
windowsHide: true
|
|
10049
|
+
});
|
|
10047
10050
|
trackChildProcess(proc);
|
|
10048
10051
|
let stdout = "";
|
|
10049
10052
|
proc.stdout.on("data", (data) => {
|
|
@@ -14144,7 +14147,7 @@ function startServer(options = {}) {
|
|
|
14144
14147
|
});
|
|
14145
14148
|
async function shutdown(signal) {
|
|
14146
14149
|
log.info(`Received ${signal}, shutting down`);
|
|
14147
|
-
const { drainBrowserPool } = await import("./src-
|
|
14150
|
+
const { drainBrowserPool } = await import("./src-PJJ6NISA.js");
|
|
14148
14151
|
await drainBrowserPool().catch(() => {
|
|
14149
14152
|
});
|
|
14150
14153
|
const handle = await Promise.race([
|
|
@@ -15267,7 +15270,7 @@ async function buildLocalExecutionPlan(projectDir, config, executionPlanDir, opt
|
|
|
15267
15270
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
15268
15271
|
if (probeResult.probeSession) {
|
|
15269
15272
|
try {
|
|
15270
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
15273
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-PJJ6NISA.js");
|
|
15271
15274
|
await closeCaptureSession2(probeResult.probeSession);
|
|
15272
15275
|
} catch (err) {
|
|
15273
15276
|
log.warn("[plan] probe session close failed", {
|
|
@@ -5,15 +5,16 @@ 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
|
+
ensureCaptureDirSync,
|
|
8
9
|
writeCaptureFileSync
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MRF4AMKD.js";
|
|
10
11
|
import {
|
|
11
12
|
createCaptureDownloadBudget,
|
|
12
13
|
readBoundedResponse
|
|
13
14
|
} from "./chunk-AWDFDFI3.js";
|
|
14
15
|
import {
|
|
15
16
|
isBlockedNetworkHost
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-G2T2X6FZ.js";
|
|
17
18
|
import {
|
|
18
19
|
DOMParser,
|
|
19
20
|
parseHTML
|
|
@@ -23,7 +24,6 @@ import {
|
|
|
23
24
|
var CAPTURE_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36";
|
|
24
25
|
|
|
25
26
|
// src/capture/assetDownloader.ts
|
|
26
|
-
import { mkdirSync } from "fs";
|
|
27
27
|
import { join, extname } from "path";
|
|
28
28
|
import { createHash as createHash2 } from "crypto";
|
|
29
29
|
|
|
@@ -515,12 +515,12 @@ async function downloadDeclaredIcons(faviconLinks, outputDir, drops, options) {
|
|
|
515
515
|
async function downloadAssets(tokens, outputDir, catalogedAssets, faviconLinks, options = {}) {
|
|
516
516
|
options = { ...options, byteBudget: options.byteBudget ?? createCaptureDownloadBudget() };
|
|
517
517
|
const assetsDir = join(outputDir, "assets");
|
|
518
|
-
|
|
518
|
+
ensureCaptureDirSync(outputDir, assetsDir);
|
|
519
519
|
const assets = [];
|
|
520
520
|
const drops = noDrops();
|
|
521
521
|
const downloadedUrls = /* @__PURE__ */ new Set();
|
|
522
522
|
let icons = emptyIconManifest();
|
|
523
|
-
|
|
523
|
+
ensureCaptureDirSync(outputDir, join(outputDir, "assets", "svgs"));
|
|
524
524
|
const usedSvgNames = /* @__PURE__ */ new Set();
|
|
525
525
|
const MAX_INLINE_SVGS = 30;
|
|
526
526
|
drops["cap-reached"] += Math.max(0, tokens.svgs.length - MAX_INLINE_SVGS);
|
|
@@ -686,7 +686,7 @@ function normalizeUrl(u) {
|
|
|
686
686
|
async function downloadAndRewriteFonts(css, outputDir, options = {}) {
|
|
687
687
|
options = { ...options, byteBudget: options.byteBudget ?? createCaptureDownloadBudget() };
|
|
688
688
|
const assetsDir = join(outputDir, "assets", "fonts");
|
|
689
|
-
|
|
689
|
+
ensureCaptureDirSync(outputDir, assetsDir);
|
|
690
690
|
const drops = noDrops();
|
|
691
691
|
const fontUrlRegex = /url\(['"]?(https?:\/\/[^'")\s]+\.(?:woff2?|ttf|otf)[^'")\s]*?)['"]?\)/g;
|
|
692
692
|
const fontUrls = /* @__PURE__ */ new Set();
|
|
@@ -7,29 +7,29 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZYSS3JED.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-BOUDTDBQ.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveItemWithDependencies,
|
|
20
20
|
resolveItemsByTag
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ENHAGQEP.js";
|
|
22
22
|
import {
|
|
23
23
|
InvalidVariableValuesError,
|
|
24
24
|
prepareItem,
|
|
25
25
|
publishItem
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DR7QW6C5.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_REGISTRY_URL
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-IP3XINRB.js";
|
|
30
30
|
import {
|
|
31
31
|
trackRegistryItemAdded
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-7CGIICLA.js";
|
|
33
33
|
import {
|
|
34
34
|
c
|
|
35
35
|
} from "./chunk-ZTZA4UWZ.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-PBN6GBJE.js";
|
|
42
42
|
import {
|
|
43
43
|
ITEM_TYPE_DIRS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-FCEFKWPM.js";
|
|
45
45
|
import {
|
|
46
46
|
isProjectRootMissing,
|
|
47
47
|
realpath
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_VP9_CPU_USED,
|
|
18
18
|
renderProvenanceArgs
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-G2T2X6FZ.js";
|
|
20
20
|
import {
|
|
21
21
|
loadOptionalPackage
|
|
22
22
|
} from "./chunk-XT5P4QMO.js";
|
|
@@ -202,7 +202,7 @@ function inferInputKind(inputPath) {
|
|
|
202
202
|
}
|
|
203
203
|
async function probeMedia(inputPath) {
|
|
204
204
|
const isImage = inferInputKind(inputPath) === "image";
|
|
205
|
-
const engine = await import("./src-
|
|
205
|
+
const engine = await import("./src-PJJ6NISA.js");
|
|
206
206
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
207
207
|
if (isImage) {
|
|
208
208
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -13,7 +13,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
|
|
|
13
13
|
return "auto";
|
|
14
14
|
}
|
|
15
15
|
async function resolveCaptureBrowserGpuMode(requestedMode, chromePath) {
|
|
16
|
-
const { resolveBrowserGpuMode } = await import("./src-
|
|
16
|
+
const { resolveBrowserGpuMode } = await import("./src-PJJ6NISA.js");
|
|
17
17
|
return resolveBrowserGpuMode(requestedMode, { chromePath });
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -31,7 +31,7 @@ function locateSamTemplate(repoRoot2) {
|
|
|
31
31
|
const candidate = join(repoRoot2, "examples", "aws-lambda", "template.yaml");
|
|
32
32
|
if (!existsSync(candidate)) {
|
|
33
33
|
throw new Error(
|
|
34
|
-
`[lambda] SAM template not found at ${candidate}.
|
|
34
|
+
`[lambda] SAM template not found at ${candidate}. \`hyperframes lambda deploy\` needs a HyperFrames repo checkout: run it from one, or set HYPERFRAMES_REPO_ROOT to point at one.`
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
37
|
return candidate;
|
|
@@ -130,8 +130,11 @@ import { dirname, resolve } from "path";
|
|
|
130
130
|
import { fileURLToPath } from "url";
|
|
131
131
|
function repoRoot() {
|
|
132
132
|
const override = process.env.HYPERFRAMES_REPO_ROOT;
|
|
133
|
-
if (override
|
|
134
|
-
return override;
|
|
133
|
+
if (override) {
|
|
134
|
+
if (existsSync2(resolve(override, "packages", "aws-lambda", "package.json"))) return override;
|
|
135
|
+
throw new Error(
|
|
136
|
+
"[hyperframes lambda] HYPERFRAMES_REPO_ROOT is not a hyperframes checkout (no packages/aws-lambda/package.json there). Point it at the repo root, or unset it."
|
|
137
|
+
);
|
|
135
138
|
}
|
|
136
139
|
let dir = dirname(fileURLToPath(import.meta.url));
|
|
137
140
|
for (let depth = 0; depth < 12; depth++) {
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
installPageFunctionGuard,
|
|
9
9
|
resolveCliChromeGpuMode,
|
|
10
10
|
seekCompositionTimeline
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4KGMIOMY.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveCompositionViewportFromHtml
|
|
14
14
|
} from "./chunk-5Z63TBTX.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveProject
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IRJBTYJF.js";
|
|
18
18
|
import {
|
|
19
19
|
c
|
|
20
20
|
} from "./chunk-ZTZA4UWZ.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
printDeprecationNotice,
|
|
30
30
|
withMeta
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-U4VSY56O.js";
|
|
32
32
|
import {
|
|
33
33
|
normalizeErrorMessage
|
|
34
34
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -217,7 +217,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
217
217
|
async function localizeRemoteAssets(html) {
|
|
218
218
|
let dir;
|
|
219
219
|
try {
|
|
220
|
-
const { loadProducer } = await import("./producer-
|
|
220
|
+
const { loadProducer } = await import("./producer-SL66UNEP.js");
|
|
221
221
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
222
222
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
223
223
|
const assetDir = dir;
|
|
@@ -238,10 +238,10 @@ async function localizeRemoteAssets(html) {
|
|
|
238
238
|
}
|
|
239
239
|
async function validateInBrowser(project, opts) {
|
|
240
240
|
const projectDir = project.dir;
|
|
241
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
242
|
-
const { ensureBrowser } = await import("./manager-
|
|
243
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
244
|
-
const { lintProject } = await import("./lintProject-
|
|
241
|
+
const { bundleToSingleHtml } = await import("./compiler-ZHVIEP26.js");
|
|
242
|
+
const { ensureBrowser } = await import("./manager-CT3D67CG.js");
|
|
243
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-OCE7GU5S.js");
|
|
244
|
+
const { lintProject } = await import("./lintProject-TOLC6HDS.js");
|
|
245
245
|
const lintResult = await lintProject(projectDir);
|
|
246
246
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
247
247
|
const html = await bundleToSingleHtml(projectDir);
|
|
@@ -262,13 +262,13 @@ async function validateInBrowser(project, opts) {
|
|
|
262
262
|
try {
|
|
263
263
|
const browser = await ensureBrowser();
|
|
264
264
|
const puppeteer = await import("puppeteer-core");
|
|
265
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
265
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-PJJ6NISA.js");
|
|
266
266
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
267
267
|
const {
|
|
268
268
|
assertWebGpuAdapterAvailable,
|
|
269
269
|
compositionRequiresWebGpu,
|
|
270
270
|
resolveCaptureBrowserGpuMode
|
|
271
|
-
} = await import("./gpuPolicy-
|
|
271
|
+
} = await import("./gpuPolicy-LRMOZXFU.js");
|
|
272
272
|
const resolvedGpuMode = await resolveCaptureBrowserGpuMode(
|
|
273
273
|
requestedGpuMode,
|
|
274
274
|
browser.executablePath
|