hyperframes 0.8.177 → 0.8.179
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-YVP5YBNV.js → add-2CCBND75.js} +12 -12
- package/dist/{animatedGifPrep-6SPYXSHE.js → animatedGifPrep-S6XXOOXK.js} +7 -7
- package/dist/api.js +16 -16
- package/dist/{asset-CZHAZMDR.js → asset-7HOLVSD5.js} +2 -2
- package/dist/{assetCataloger-5GGNQC3Y.js → assetCataloger-MSAMR77T.js} +7 -7
- package/dist/{audio-F37HJPGZ.js → audio-356GVOLJ.js} +13 -13
- package/dist/{auth-CADZEUXD.js → auth-YHI5VR4X.js} +1 -1
- package/dist/{autoUpdate-46XNDX2V.js → autoUpdate-OP345EBV.js} +2 -2
- package/dist/{backgroundChecks-UWDSDJHJ.js → backgroundChecks-6NVELE25.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-KXXTVNPB.js → batchRender-OOQYGH5A.js} +4 -4
- package/dist/{beats-COVC2QGG.js → beats-DQH5SOHM.js} +5 -5
- package/dist/{benchmark-HDPPG2FE.js → benchmark-2W2NPNLJ.js} +9 -9
- package/dist/{browser-JEIXZKJN.js → browser-SCM75524.js} +9 -8
- package/dist/{bundleWithLocalizedFonts-PMRGOQWD.js → bundleWithLocalizedFonts-4F6HKLMZ.js} +2 -2
- package/dist/{capture-QVW6JPTF.js → capture-YRS6SZ6B.js} +11 -11
- package/dist/{capture-YMF7J55W.js → capture-ZBGAJYVH.js} +2 -2
- package/dist/{captureCompositionFrame-QUYL3DEX.js → captureCompositionFrame-Z33NWUED.js} +11 -11
- package/dist/{catalog-DTB6S66P.js → catalog-MOSGL65T.js} +13 -13
- package/dist/{catch-up-Y4KO7XHK.js → catch-up-TCAZFTMO.js} +5 -5
- package/dist/{check-3YLTRK6W.js → check-QVXSTHZB.js} +39 -39
- package/dist/{checkBrowser-LEUOWFNZ.js → checkBrowser-NF2CMWYR.js} +35 -35
- package/dist/chunk-2R5ZKWSV.js +26 -0
- package/dist/{chunk-HIP62XAW.js → chunk-2X4PQEYM.js} +1 -3
- package/dist/{chunk-42T7OP4O.js → chunk-32GKQ73S.js} +1 -1
- package/dist/{chunk-PIH4P2G6.js → chunk-3EJYUZHW.js} +16 -14
- package/dist/{chunk-L6XT6GSV.js → chunk-52L2L46Q.js} +1 -1
- package/dist/chunk-537IYAEE.js +80 -0
- package/dist/{chunk-7L4JOVV7.js → chunk-5HZAIPHY.js} +1 -1
- package/dist/{chunk-GVIH4ZQY.js → chunk-5RS2FIZU.js} +1 -1
- package/dist/{chunk-T76PLPD6.js → chunk-634HSJ3J.js} +2 -1
- package/dist/{chunk-L3LJVYXS.js → chunk-A2BB2XQU.js} +2 -2
- package/dist/{chunk-DQY6WTF7.js → chunk-A3RUVTGB.js} +1 -1
- package/dist/{chunk-P3MMF2JQ.js → chunk-AEWZDKFS.js} +1 -1
- package/dist/{chunk-OYEDHVSI.js → chunk-AFKVI7FJ.js} +1 -1
- package/dist/{chunk-DNZMBQTH.js → chunk-AHPGAESX.js} +1 -1
- package/dist/{chunk-VEQ7DKPG.js → chunk-AHS5QYKF.js} +1 -1
- package/dist/{chunk-FFDC5OWV.js → chunk-ALVXFXUG.js} +5 -3
- package/dist/{chunk-TNDNFZOK.js → chunk-BGKZ37BC.js} +2 -2
- package/dist/{chunk-LY2GLSOS.js → chunk-BJJ3QF7T.js} +1 -1
- package/dist/{chunk-GZG3ZZOO.js → chunk-BNGRVR3Y.js} +4 -4
- package/dist/{chunk-AFSBPASX.js → chunk-BW2UQR4A.js} +5 -5
- package/dist/{chunk-2PNLYDGZ.js → chunk-C5XU53VP.js} +10 -10
- package/dist/{chunk-NL5F3AD4.js → chunk-CML25PAF.js} +2 -4
- package/dist/{chunk-S3T3TDAB.js → chunk-COK5OUBX.js} +2 -2
- package/dist/{chunk-MG66UO4N.js → chunk-CW3VIQMZ.js} +1 -1
- package/dist/{chunk-6GMZRHYD.js → chunk-DHKYJYOY.js} +3 -3
- package/dist/{chunk-MPNVXG3J.js → chunk-DLF5KIBL.js} +2 -2
- package/dist/{chunk-XRKMITSS.js → chunk-E24HSMZV.js} +12 -51
- package/dist/{chunk-FE2XTCTM.js → chunk-EEP5Y5IE.js} +1 -18
- package/dist/{chunk-EOOEC32M.js → chunk-EVMY7IPL.js} +22 -0
- package/dist/{chunk-KRKSY2AE.js → chunk-F3GML67X.js} +1 -1
- package/dist/{chunk-PL4WM5XE.js → chunk-FIAQ4J45.js} +2 -2
- package/dist/{chunk-6OV3YGZF.js → chunk-FTWOVWHR.js} +2 -2
- package/dist/{chunk-457OAAL2.js → chunk-HU4PBQGJ.js} +1 -1
- package/dist/{chunk-GMJ3ILLW.js → chunk-ICMXC3MI.js} +7 -24
- package/dist/{chunk-LZT3NUTE.js → chunk-IE6O2VXV.js} +1 -1
- package/dist/{chunk-B7DJQFAC.js → chunk-IHWI3KZY.js} +4 -4
- package/dist/{chunk-WNQUXBDU.js → chunk-ILLFG4RN.js} +3 -3
- package/dist/{chunk-LEILKM2N.js → chunk-JRIXYXG3.js} +1361 -1151
- package/dist/{chunk-MNEC244Z.js → chunk-LBRJKTVY.js} +2 -2
- package/dist/{chunk-X4PK5ZXP.js → chunk-LO4DHZLH.js} +3 -3
- package/dist/{chunk-SJFA4CZ3.js → chunk-M2DZX2DP.js} +2 -2
- package/dist/{chunk-2CEIKEFU.js → chunk-M5CJQ6EH.js} +1 -1
- package/dist/{chunk-JWUKHXM6.js → chunk-MK6D6HVT.js} +1 -1
- package/dist/{chunk-BQTCQ6VN.js → chunk-MXNKK7HY.js} +3 -3
- package/dist/{chunk-BHFIITTD.js → chunk-N3U7WHQK.js} +5 -5
- package/dist/{chunk-SSYUONVH.js → chunk-NTMCSIQB.js} +2 -2
- package/dist/{chunk-BEX7K4WO.js → chunk-OINJILMB.js} +2 -2
- package/dist/{chunk-UEGULMAH.js → chunk-ORM7SJ7K.js} +7 -7
- package/dist/{chunk-2YT3SCXL.js → chunk-OXP77SHD.js} +2 -2
- package/dist/chunk-PLNQW2C6.js +3805 -0
- package/dist/{chunk-JNL3RMDG.js → chunk-PU33GPG4.js} +1 -1
- package/dist/{chunk-XXHHPB6E.js → chunk-Q73AGCTV.js} +11 -11
- package/dist/{chunk-W47D3KOB.js → chunk-RHWJKSGH.js} +1 -1
- package/dist/{chunk-M3MXTYDE.js → chunk-RJIJWETG.js} +1 -1
- package/dist/{chunk-K535ASAM.js → chunk-TINAVSGR.js} +1 -1
- package/dist/{chunk-C6TPGUWD.js → chunk-TTVHYD5R.js} +2 -2
- package/dist/{chunk-QWCXGTOH.js → chunk-UOHQV6AV.js} +24 -12
- package/dist/{chunk-5ZSLJXQX.js → chunk-UWPUEI5U.js} +2 -2
- package/dist/{chunk-4YBNQDZM.js → chunk-VCDWVVDV.js} +11 -7
- package/dist/{chunk-MXFCQCKE.js → chunk-VI7IQ2QF.js} +7 -7
- package/dist/{chunk-YWSXFFO3.js → chunk-VU4JLRNH.js} +156 -76
- package/dist/{chunk-YCRX5APY.js → chunk-WOXRCPJU.js} +1 -1
- package/dist/{chunk-PO2SDVQA.js → chunk-WQ6ZXHFQ.js} +3 -1
- package/dist/{chunk-X6HYBA4A.js → chunk-XSQWXUK2.js} +1 -1
- package/dist/{chunk-HLBAQBHT.js → chunk-XX4ZYQR6.js} +1 -1
- package/dist/{chunk-NWEER3QY.js → chunk-YH7VQAKX.js} +2 -2
- package/dist/{chunk-DZMWNCHM.js → chunk-ZAJO3YCQ.js} +2 -2
- package/dist/{clean-BDXOJ4PW.js → clean-SJ2UIDKG.js} +20 -20
- package/dist/cli.js +54 -54
- package/dist/{cloud-HVG2LUBO.js → cloud-DH7QGNPZ.js} +4 -4
- package/dist/{cloudrun-P35BPQCO.js → cloudrun-ZA2ZH2VZ.js} +10 -8
- package/dist/{compare-ZXORZDGQ.js → compare-5JNN5BHX.js} +29 -29
- package/dist/{compiler-5TFPJPQQ.js → compiler-CQ6OKYT5.js} +2 -2
- package/dist/{component-AZHVBBVP.js → component-LJQWLOXZ.js} +3 -3
- package/dist/{compositions-WFILUFC4.js → compositions-UILNO2RF.js} +11 -11
- package/dist/{delete-I34NH2Q4.js → delete-WIO2MDPB.js} +2 -2
- package/dist/deploy-BUEYC7MP.js +196 -0
- package/dist/{destroy-BEL232I5.js → destroy-QBLMYDBF.js} +6 -3
- package/dist/{dist-U2HCECNB.js → dist-MHJYD5IZ.js} +6 -4
- package/dist/{doctor-6YID47TF.js → doctor-5G2RXBQX.js} +12 -12
- package/dist/{events-G76VOIBQ.js → events-2LHNVY2F.js} +4 -4
- package/dist/{events-OKT2KO6S.js → events-BXODXMJ6.js} +2 -2
- package/dist/{feedback-EGU7SSXF.js → feedback-57END2CW.js} +7 -7
- package/dist/{ffmpeg-CSJLJAQ3.js → ffmpeg-64E4VH6W.js} +7 -7
- package/dist/{figma-SUJPNBQQ.js → figma-O5MO4GF5.js} +3 -3
- package/dist/fontLocalizeCli.js +10 -10
- package/dist/{get-7MYYFGO7.js → get-OEWPJ4HH.js} +2 -2
- package/dist/{gpuPolicy-C6JWEX7F.js → gpuPolicy-IGZOHHMX.js} +7 -7
- package/dist/{grade-compare-P22VRQLA.js → grade-compare-PG2UOMHO.js} +30 -30
- package/dist/{help-HL6QBZMC.js → help-44J4SQTE.js} +1 -1
- package/dist/{history-OG2IXOQA.js → history-CUA53AOE.js} +10 -10
- package/dist/hyperframe-runtime.js +57 -55
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +57 -55
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-7P77JIWI.js → info-UDXYDQVK.js} +8 -8
- package/dist/{init-JI7QDJV4.js → init-CVT6HLW2.js} +28 -28
- package/dist/{inspect-7GSF776P.js → inspect-6F72RJQG.js} +30 -30
- package/dist/{installer-NY5E5HCO.js → installer-ADKWK4I4.js} +5 -5
- package/dist/{keyframes-6NM477BA.js → keyframes-GJ7EEWW2.js} +7 -7
- package/dist/{lambda-4DNBHUPF.js → lambda-WFSBYU6U.js} +16 -21
- package/dist/{layout-IBDEMDYP.js → layout-SASENZOG.js} +30 -30
- package/dist/{lint-BGAON4GT.js → lint-JX57B52X.js} +7 -7
- package/dist/{list-PGWNFSLX.js → list-WG7NTE63.js} +2 -2
- package/dist/{login-IAGLU3R3.js → login-3NFLD65G.js} +4 -4
- package/dist/{manager-VOGZQSK4.js → manager-BKHRATMY.js} +9 -9
- package/dist/{manager-HEUPD2YB.js → manager-V2QCCPOJ.js} +4 -3
- package/dist/{media-treatment-Z4N3JEDB.js → media-treatment-QI5F2SMU.js} +13 -13
- package/dist/{models-QUOIJVQI.js → models-TXURF3J6.js} +11 -11
- package/dist/{motionShot-GPNESXTN.js → motionShot-HRM6NMT4.js} +15 -15
- package/dist/{normalize-audio-C264N2QE.js → normalize-audio-IEKL43N4.js} +8 -8
- package/dist/{open-HB5F4HSD.js → open-GU3I75TB.js} +12 -12
- package/dist/{parakeetRunner-2ZQOINZQ.js → parakeetRunner-S2QI3PCA.js} +13 -13
- package/dist/{pipeline-JWGTH2BJ.js → pipeline-OO2MYYIV.js} +9 -9
- package/dist/{play-VQ4HA4CC.js → play-VL2WQCT3.js} +21 -21
- package/dist/{preflight-4WTT4D5X.js → preflight-GBPRLIM6.js} +9 -9
- package/dist/{present-HU46P43M.js → present-YWSFX5CH.js} +17 -17
- package/dist/{preview-LNTJ62DX.js → preview-SMG6GXLY.js} +18 -18
- package/dist/{producer-UZZQX6IJ.js → producer-67RIQCWZ.js} +1 -1
- package/dist/{projectConfig-HDALEM6S.js → projectConfig-NQQDEDAK.js} +7 -7
- package/dist/{publication-NX4VC7UU.js → publication-7DW4IJPC.js} +3 -3
- package/dist/{publish-AZRRQUXM.js → publish-FJKJ74IF.js} +10 -10
- package/dist/{remove-background-OX5WZTXY.js → remove-background-HO2NBZCJ.js} +10 -10
- package/dist/{render-HGT3EGIK.js → render-5TTZDI5N.js} +7 -14
- package/dist/{render-DV76TO7S.js → render-DH4CGGLO.js} +9 -9
- package/dist/{render-TPE44TOW.js → render-MB7PW2YQ.js} +32 -32
- package/dist/{render-batch-MUCDZ2WF.js → render-batch-4RPH66OX.js} +11 -17
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-FLQ42X2Y.js → resolver-UW6NYBJA.js} +5 -5
- package/dist/{sam-IKPEJRRO.js → sam-MC24SZHC.js} +1 -1
- package/dist/{sherpa-IBMU4WV6.js → sherpa-LVXRZGE3.js} +12 -12
- package/dist/{sites-HZMADOA3.js → sites-3ZBYB5X4.js} +2 -1
- package/dist/{skills-M2ANTFD6.js → skills-NDWQPEUD.js} +6 -6
- package/dist/{skillsUpdateCheck-4WNEKKDW.js → skillsUpdateCheck-HZVZ3IUU.js} +3 -3
- package/dist/{snapshot-5AKBT5IQ.js → snapshot-MCHWMAPH.js} +33 -33
- package/dist/{src-SGPA7DM7.js → src-E34ZBMAS.js} +9 -9
- package/dist/{src-JGPFLYBL.js → src-XRFOS5LP.js} +6 -6
- package/dist/{staticProjectServer-UVFPQEUZ.js → staticProjectServer-COEAKTGH.js} +17 -17
- package/dist/studio/assets/{hyperframes-player-BulZP0_1.js → hyperframes-player-C0SyMC21.js} +1 -1
- package/dist/studio/assets/{index-CGncBUsJ.js → index-DHUassFP.js} +1 -1
- package/dist/studio/assets/{index-B1Gypobp.js → index-ueMRyAJ2.js} +173 -172
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-RVIU7JP2.js → studio-api-455XWQPD.js} +11 -11
- package/dist/{studioServer-K22MWDLW.js → studioServer-XK5N6PIB.js} +52 -67
- package/dist/{synthesize-W2M7QGDV.js → synthesize-I2C24XJ5.js} +2 -2
- package/dist/{telemetry-SUAMGBFK.js → telemetry-DD5ZIBOK.js} +4 -4
- package/dist/{timeline-SGVBFT36.js → timeline-MJJEX5CU.js} +20 -20
- package/dist/{tokens-IFHWY5WC.js → tokens-AKUZMYRE.js} +2 -2
- package/dist/{transcribe-KAOCI5CW.js → transcribe-ER7GGF4L.js} +11 -11
- package/dist/{transcribe-GY4JHB7V.js → transcribe-ZQI5P2LH.js} +17 -17
- package/dist/{tts-RE227GFP.js → tts-EDK3QS7M.js} +3 -3
- package/dist/{updateCheck-YUNDJDLW.js → updateCheck-GYFCXFWR.js} +2 -2
- package/dist/{upgrade-PL2BFWTO.js → upgrade-UNWHMZP5.js} +2 -2
- package/dist/{urlDownloader-FZ5ISJES.js → urlDownloader-QF7EBQC2.js} +6 -6
- package/dist/{validate-2NALRIFW.js → validate-32CQZFNZ.js} +24 -24
- package/dist/{video-7CDAIWYC.js → video-2KGC3RIQ.js} +7 -7
- package/package.json +1 -2
- package/dist/chunk-EEXE43II.js +0 -3805
- package/dist/chunk-TWWSYAKJ.js +0 -24
- package/dist/deploy-3TTQZGTF.js +0 -116
|
@@ -6,23 +6,23 @@ 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-XX4ZYQR6.js";
|
|
10
10
|
import {
|
|
11
11
|
installPageFunctionGuard,
|
|
12
12
|
resolveCliChromeGpuMode,
|
|
13
13
|
seekCompositionTimeline,
|
|
14
14
|
waitForRuntimeReady
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ORM7SJ7K.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveCompositionViewportFromHtml
|
|
18
18
|
} from "./chunk-FH7WODJH.js";
|
|
19
19
|
import {
|
|
20
20
|
launchManagedBrowser,
|
|
21
21
|
resolveManagedGpuMode
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-52L2L46Q.js";
|
|
23
23
|
import {
|
|
24
24
|
pageNavigationTimeoutMs
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-LO4DHZLH.js";
|
|
26
26
|
import {
|
|
27
27
|
defineCommand
|
|
28
28
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
printDeprecationNotice,
|
|
38
38
|
withMeta
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-HU4PBQGJ.js";
|
|
40
40
|
import {
|
|
41
41
|
decodeWellFormedEscapes
|
|
42
42
|
} from "./chunk-BSQ7XANM.js";
|
|
@@ -227,7 +227,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
227
227
|
async function localizeRemoteAssets(html) {
|
|
228
228
|
let dir;
|
|
229
229
|
try {
|
|
230
|
-
const { loadProducer } = await import("./producer-
|
|
230
|
+
const { loadProducer } = await import("./producer-67RIQCWZ.js");
|
|
231
231
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
232
232
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
233
233
|
const assetDir = dir;
|
|
@@ -248,9 +248,9 @@ async function localizeRemoteAssets(html) {
|
|
|
248
248
|
}
|
|
249
249
|
async function validateInBrowser(project, opts) {
|
|
250
250
|
const projectDir = project.dir;
|
|
251
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
252
|
-
const { ensureBrowser } = await import("./manager-
|
|
253
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
251
|
+
const { bundleToSingleHtml } = await import("./compiler-CQ6OKYT5.js");
|
|
252
|
+
const { ensureBrowser } = await import("./manager-V2QCCPOJ.js");
|
|
253
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-COEAKTGH.js");
|
|
254
254
|
const { lintProject } = await import("./lintProject-ARKJXDQF.js");
|
|
255
255
|
const lintResult = await lintProject(projectDir);
|
|
256
256
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
@@ -272,9 +272,9 @@ async function validateInBrowser(project, opts) {
|
|
|
272
272
|
try {
|
|
273
273
|
const browser = await ensureBrowser();
|
|
274
274
|
const puppeteer = await import("puppeteer-core");
|
|
275
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
275
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-XRFOS5LP.js");
|
|
276
276
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
277
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-
|
|
277
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-IGZOHHMX.js");
|
|
278
278
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
279
279
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
280
280
|
const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveWithinProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ALVXFXUG.js";
|
|
10
10
|
import {
|
|
11
11
|
MAX_AUDIO_GAIN_DB,
|
|
12
12
|
formatAudioGain,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
readMediaOffsetSeconds
|
|
22
22
|
} from "./chunk-BSQ7XANM.js";
|
|
23
23
|
|
|
24
|
-
// ../studio-server/dist/chunk-
|
|
24
|
+
// ../studio-server/dist/chunk-ERQWOZ7E.js
|
|
25
25
|
import { execFile } from "child_process";
|
|
26
26
|
import { isAbsolute, relative, resolve } from "path";
|
|
27
27
|
import { promisify } from "util";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
formatPreviewProxyBox,
|
|
10
10
|
hdrToSdrToneMapFilter,
|
|
11
11
|
parseFirstFrameColour
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AHS5QYKF.js";
|
|
13
13
|
import {
|
|
14
14
|
decodeAuthoredAttribute,
|
|
15
15
|
scanHtmlOpeningTags
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
rewriteAssetPath
|
|
33
33
|
} from "./chunk-BSQ7XANM.js";
|
|
34
34
|
|
|
35
|
-
// ../studio-server/dist/chunk-
|
|
35
|
+
// ../studio-server/dist/chunk-E3VGIAMJ.js
|
|
36
36
|
import { statSync } from "fs";
|
|
37
37
|
import { sep } from "path";
|
|
38
38
|
import { execFile } from "child_process";
|
|
@@ -337,7 +337,7 @@ async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
|
|
|
337
337
|
return map;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
// ../studio-server/dist/chunk-
|
|
340
|
+
// ../studio-server/dist/chunk-QFJR3NIL.js
|
|
341
341
|
import { spawn } from "child_process";
|
|
342
342
|
import { createHash, randomUUID } from "crypto";
|
|
343
343
|
import { existsSync as existsSync2, renameSync, statSync as statSync2, unlinkSync as unlinkSync2, utimesSync } from "fs";
|
|
@@ -551,7 +551,7 @@ function getCanonicalProxyCachePath(source, variant, box) {
|
|
|
551
551
|
}
|
|
552
552
|
var ProxyDroppedError = class extends ProxyTranscodeError {
|
|
553
553
|
constructor() {
|
|
554
|
-
super("media proxy copy dropped: every caller left
|
|
554
|
+
super("media proxy copy dropped: every caller left", null, "");
|
|
555
555
|
this.name = "ProxyDroppedError";
|
|
556
556
|
}
|
|
557
557
|
};
|
|
@@ -604,7 +604,13 @@ function prioritize(job) {
|
|
|
604
604
|
}
|
|
605
605
|
function leave(job) {
|
|
606
606
|
job.callers--;
|
|
607
|
-
if (job.callers
|
|
607
|
+
if (job.callers > 0) return;
|
|
608
|
+
if (job.queued) {
|
|
609
|
+
job.queued.drop();
|
|
610
|
+
return;
|
|
611
|
+
}
|
|
612
|
+
forget(job);
|
|
613
|
+
job.abandoned.abort();
|
|
608
614
|
}
|
|
609
615
|
var inFlight = /* @__PURE__ */ new Map();
|
|
610
616
|
function forget(job) {
|
|
@@ -674,7 +680,7 @@ function stderrReason(stderrTail) {
|
|
|
674
680
|
const line = errorLines.at(-1) ?? lines.at(-1);
|
|
675
681
|
return line ? `: ${line.replace(/[.!]+$/, "")}` : "";
|
|
676
682
|
}
|
|
677
|
-
async function runFfmpeg(sourcePath, outputPath, variant, box) {
|
|
683
|
+
async function runFfmpeg(sourcePath, outputPath, variant, box, signal) {
|
|
678
684
|
const metadata = await probeMediaMetadata(sourcePath);
|
|
679
685
|
const ffmpegPath = findFfBinary("ffmpeg", { configuredMustExist: true });
|
|
680
686
|
if (!ffmpegPath) {
|
|
@@ -745,10 +751,12 @@ async function runFfmpeg(sourcePath, outputPath, variant, box) {
|
|
|
745
751
|
"libopus"
|
|
746
752
|
];
|
|
747
753
|
const args = [...commonArgs, ...variant === "vp8" ? vp8Args : h264Args, outputPath];
|
|
754
|
+
signal.throwIfAborted();
|
|
748
755
|
const proc = spawn(ffmpegPath, args, {
|
|
749
756
|
stdio: ["ignore", "ignore", "pipe"],
|
|
750
757
|
timeout: TRANSCODE_TIMEOUT_MS,
|
|
751
758
|
killSignal: "SIGKILL",
|
|
759
|
+
signal,
|
|
752
760
|
windowsHide: true
|
|
753
761
|
});
|
|
754
762
|
let stderrTail = "";
|
|
@@ -756,15 +764,16 @@ async function runFfmpeg(sourcePath, outputPath, variant, box) {
|
|
|
756
764
|
stderrTail = (stderrTail + chunk.toString()).slice(-STDERR_TAIL_MAX_CHARS);
|
|
757
765
|
});
|
|
758
766
|
proc.on("error", (err) => {
|
|
767
|
+
if (signal.aborted) return;
|
|
759
768
|
reject(new FfmpegUnavailableError(`failed to spawn ffmpeg: ${err.message}`, stderrTail));
|
|
760
769
|
});
|
|
761
|
-
proc.on("close", (code,
|
|
770
|
+
proc.on("close", (code, signal2) => {
|
|
762
771
|
if (code === 0) {
|
|
763
772
|
resolvePromise();
|
|
764
|
-
} else if (
|
|
773
|
+
} else if (signal2) {
|
|
765
774
|
reject(
|
|
766
775
|
new ProxyTranscodeError(
|
|
767
|
-
`ffmpeg killed by ${
|
|
776
|
+
`ffmpeg killed by ${signal2} (timeout ${TRANSCODE_TIMEOUT_MS}ms or external kill)`,
|
|
768
777
|
null,
|
|
769
778
|
stderrTail
|
|
770
779
|
)
|
|
@@ -789,7 +798,7 @@ async function transcodeToCache(job, projectDir, absoluteSourcePath, cachePath,
|
|
|
789
798
|
mkdirWithinProject(projectDir, cacheDir);
|
|
790
799
|
const tempPath = join2(cacheDir, `.tmp-${randomUUID()}-${basename(cachePath)}`);
|
|
791
800
|
try {
|
|
792
|
-
await runFfmpeg(absoluteSourcePath, tempPath, variant, box);
|
|
801
|
+
await runFfmpeg(absoluteSourcePath, tempPath, variant, box, job.abandoned.signal);
|
|
793
802
|
renameSync(tempPath, cachePath);
|
|
794
803
|
maintainProxyCache(cacheDir);
|
|
795
804
|
return cachePath;
|
|
@@ -830,7 +839,8 @@ async function resolveProxy(projectDir, absoluteSourcePath, variant = "h264", bo
|
|
|
830
839
|
const job = {
|
|
831
840
|
cachePath,
|
|
832
841
|
priority: options.priority === true,
|
|
833
|
-
callers: 0
|
|
842
|
+
callers: 0,
|
|
843
|
+
abandoned: new AbortController()
|
|
834
844
|
};
|
|
835
845
|
const promise = transcodeToCache(
|
|
836
846
|
job,
|
|
@@ -840,7 +850,9 @@ async function resolveProxy(projectDir, absoluteSourcePath, variant = "h264", bo
|
|
|
840
850
|
variant,
|
|
841
851
|
box
|
|
842
852
|
).catch((err) => {
|
|
843
|
-
if (!(err instanceof ProxyDroppedError)
|
|
853
|
+
if (!(err instanceof ProxyDroppedError) && !job.abandoned.signal.aborted) {
|
|
854
|
+
rememberFailure(cachePath, err);
|
|
855
|
+
}
|
|
844
856
|
throw err;
|
|
845
857
|
}).finally(() => {
|
|
846
858
|
forget(job);
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
ensureBrowser,
|
|
12
12
|
findBrowser
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-E24HSMZV.js";
|
|
14
14
|
import {
|
|
15
15
|
FIRST_LAUNCH_TIMEOUT_MS,
|
|
16
16
|
chromeDepsInstallCommand,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
distroLabel,
|
|
19
19
|
getFFmpegInstallHint,
|
|
20
20
|
parseLddMissingLibs
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5RS2FIZU.js";
|
|
22
22
|
import {
|
|
23
23
|
runCancellableProcess
|
|
24
24
|
} from "./chunk-D3ZWBHZP.js";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3EJYUZHW.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-UOHQV6AV.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveAutoProxy
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-IE6O2VXV.js";
|
|
25
25
|
import {
|
|
26
26
|
decodeWellFormedEscapes
|
|
27
27
|
} from "./chunk-BSQ7XANM.js";
|
|
@@ -141,7 +141,7 @@ function writeProxyError(err, res) {
|
|
|
141
141
|
res.writeHead(500);
|
|
142
142
|
res.end();
|
|
143
143
|
}
|
|
144
|
-
async function serveProxyRequest(projectDir, filePath, request, autoProxy, rangeHeader, res) {
|
|
144
|
+
async function serveProxyRequest(projectDir, filePath, request, autoProxy, rangeHeader, res, signal) {
|
|
145
145
|
const contentType = getMimeType(filePath);
|
|
146
146
|
if (!autoProxy || !contentType.startsWith("video/")) {
|
|
147
147
|
res.writeHead(404);
|
|
@@ -168,7 +168,7 @@ async function serveProxyRequest(projectDir, filePath, request, autoProxy, range
|
|
|
168
168
|
return;
|
|
169
169
|
}
|
|
170
170
|
recordProxyRequest();
|
|
171
|
-
const proxyPath = await resolveProxy(projectDir, filePath, variant);
|
|
171
|
+
const proxyPath = await resolveProxy(projectDir, filePath, variant, void 0, { signal });
|
|
172
172
|
if (res.writableEnded || res.destroyed) return;
|
|
173
173
|
serveFileWithRange(proxyPath, rangeHeader, res, PROXY_VARIANT_CONFIG[variant].contentType);
|
|
174
174
|
} catch (err) {
|
|
@@ -178,7 +178,8 @@ async function serveProxyRequest(projectDir, filePath, request, autoProxy, range
|
|
|
178
178
|
async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Failed to bind local HTTP server", assetRoots = [], autoProxyOverride) {
|
|
179
179
|
const roots = [projectDir, ...assetRoots];
|
|
180
180
|
const autoProxy = resolveAutoProxy(projectDir, autoProxyOverride);
|
|
181
|
-
const
|
|
181
|
+
const copies = new AbortController();
|
|
182
|
+
const servedHtml = autoProxy ? await injectMediaCodecMapIntoHtml(html, projectDir, [{ html }], void 0, true, copies.signal) : html;
|
|
182
183
|
const server = createServer((req, res) => {
|
|
183
184
|
const url = req.url ?? "/";
|
|
184
185
|
if (url === "/" || url === "/index.html") {
|
|
@@ -203,7 +204,8 @@ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Fail
|
|
|
203
204
|
proxyRequest,
|
|
204
205
|
autoProxy,
|
|
205
206
|
req.headers.range,
|
|
206
|
-
res
|
|
207
|
+
res,
|
|
208
|
+
copies.signal
|
|
207
209
|
);
|
|
208
210
|
} else {
|
|
209
211
|
serveFileWithRange(filePath, req.headers.range, res);
|
|
@@ -235,6 +237,7 @@ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Fail
|
|
|
235
237
|
url,
|
|
236
238
|
port: 0,
|
|
237
239
|
close: async () => {
|
|
240
|
+
copies.abort();
|
|
238
241
|
inProcessAnswers.delete(new URL(url).origin);
|
|
239
242
|
},
|
|
240
243
|
answer
|
|
@@ -244,6 +247,7 @@ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Fail
|
|
|
244
247
|
url: `http://127.0.0.1:${port}/`,
|
|
245
248
|
port,
|
|
246
249
|
close: () => new Promise((resolveClose) => {
|
|
250
|
+
copies.abort();
|
|
247
251
|
server.close(() => resolveClose());
|
|
248
252
|
})
|
|
249
253
|
};
|
|
@@ -7,29 +7,29 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AEWZDKFS.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-IE6O2VXV.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveItemWithDependencies,
|
|
20
20
|
resolveItemsByTag
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-32GKQ73S.js";
|
|
22
22
|
import {
|
|
23
23
|
InvalidVariableValuesError,
|
|
24
24
|
prepareItem,
|
|
25
25
|
publishItem
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YH7VQAKX.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_REGISTRY_URL
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-AFKVI7FJ.js";
|
|
30
30
|
import {
|
|
31
31
|
trackRegistryItemAdded
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-COK5OUBX.js";
|
|
33
33
|
import {
|
|
34
34
|
defineCommand
|
|
35
35
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-ZTZA4UWZ.js";
|
|
42
42
|
import {
|
|
43
43
|
ITEM_TYPE_DIRS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-AHS5QYKF.js";
|
|
45
45
|
import {
|
|
46
46
|
isProjectRootMissing,
|
|
47
47
|
realpath
|