hyperframes 0.8.175 → 0.8.177
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/bin/hyperframes.mjs +3 -0
- package/dist/{add-S4AOKSNH.js → add-YVP5YBNV.js} +5 -5
- package/dist/{animatedGifPrep-QRDM2NMV.js → animatedGifPrep-6SPYXSHE.js} +2 -2
- package/dist/api.d.ts +2 -0
- package/dist/api.js +10 -10
- package/dist/{asset-DQ45BUBL.js → asset-CZHAZMDR.js} +2 -2
- package/dist/{assetCataloger-NPDCMAYE.js → assetCataloger-5GGNQC3Y.js} +2 -2
- package/dist/{audio-OOAXEELO.js → audio-F37HJPGZ.js} +9 -9
- package/dist/{auth-33IY64LT.js → auth-CADZEUXD.js} +1 -1
- package/dist/{autoUpdate-KGLJUGNZ.js → autoUpdate-46XNDX2V.js} +2 -2
- package/dist/{backgroundChecks-DQPHYLVN.js → backgroundChecks-UWDSDJHJ.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{beats-WDYSCACS.js → beats-COVC2QGG.js} +4 -4
- package/dist/{benchmark-WOAULMYW.js → benchmark-HDPPG2FE.js} +6 -6
- package/dist/{browser-2HX46R74.js → browser-JEIXZKJN.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-32N7TVM6.js → bundleWithLocalizedFonts-PMRGOQWD.js} +1 -1
- package/dist/{capture-5ASPHTMF.js → capture-QVW6JPTF.js} +5 -5
- package/dist/{capture-7LR5UVM2.js → capture-YMF7J55W.js} +2 -2
- package/dist/captureCompositionFrame-QUYL3DEX.js +88 -0
- package/dist/{catalog-LVW3RT4U.js → catalog-DTB6S66P.js} +18 -10
- package/dist/{catch-up-W6Z73GXL.js → catch-up-Y4KO7XHK.js} +4 -4
- package/dist/{check-C23ZWACZ.js → check-3YLTRK6W.js} +44 -33
- package/dist/{checkBrowser-WS6FSLBJ.js → checkBrowser-LEUOWFNZ.js} +67 -47
- package/dist/{chunk-W5USVP6Z.js → chunk-2CEIKEFU.js} +1 -1
- package/dist/{chunk-XDK2FUAC.js → chunk-2PNLYDGZ.js} +12 -12
- package/dist/{chunk-IUOPF3DL.js → chunk-2YT3SCXL.js} +1 -1
- package/dist/{chunk-YMU42UU2.js → chunk-457OAAL2.js} +1 -1
- package/dist/{chunk-OUMYTLPP.js → chunk-4YBNQDZM.js} +1 -1
- package/dist/{chunk-ZGSLXWH2.js → chunk-5ZSLJXQX.js} +1 -1
- package/dist/{chunk-CEYY3SOX.js → chunk-6GMZRHYD.js} +52 -16
- package/dist/{chunk-J53AJK3Q.js → chunk-6OV3YGZF.js} +1 -1
- package/dist/{chunk-G7I3WZK4.js → chunk-7L4JOVV7.js} +1 -1
- package/dist/{chunk-QMQZXNGU.js → chunk-AFSBPASX.js} +29 -10
- package/dist/{chunk-7GUAZGSW.js → chunk-B7DJQFAC.js} +3 -3
- package/dist/{chunk-Z2R7CFWH.js → chunk-BEX7K4WO.js} +1 -1
- package/dist/{chunk-YCSCDQDS.js → chunk-BHFIITTD.js} +5 -5
- package/dist/{chunk-JT7PV3GL.js → chunk-BQTCQ6VN.js} +7 -13
- package/dist/{chunk-S354WIFQ.js → chunk-GVIH4ZQY.js} +1 -1
- package/dist/{chunk-WDFLYDKN.js → chunk-GZG3ZZOO.js} +4 -4
- package/dist/{chunk-7E4YFL4U.js → chunk-HLBAQBHT.js} +1 -1
- package/dist/{chunk-3X3CELOP.js → chunk-JWUKHXM6.js} +1 -1
- package/dist/{chunk-O6FWDZYJ.js → chunk-K535ASAM.js} +1 -1
- package/dist/{chunk-BHMWVRNS.js → chunk-KRKSY2AE.js} +1 -1
- package/dist/{chunk-V7T7WA2K.js → chunk-L3LJVYXS.js} +2 -2
- package/dist/{chunk-XRRDVRCY.js → chunk-L6XT6GSV.js} +1 -1
- package/dist/{chunk-KZQGUXG5.js → chunk-LEILKM2N.js} +903 -813
- package/dist/{chunk-MJZQ44NV.js → chunk-M3MXTYDE.js} +1 -1
- package/dist/{chunk-EKDTCSCL.js → chunk-MG66UO4N.js} +1 -1
- package/dist/{chunk-3SWMUZ4Y.js → chunk-MNEC244Z.js} +2 -2
- package/dist/{chunk-NELZN7SV.js → chunk-MPNVXG3J.js} +2 -2
- package/dist/{chunk-4XM6VXLN.js → chunk-MXFCQCKE.js} +2 -2
- package/dist/{chunk-NZRAS3FB.js → chunk-P3MMF2JQ.js} +1 -1
- package/dist/{chunk-UWUKJDTA.js → chunk-PL4WM5XE.js} +1 -1
- package/dist/{chunk-PBKOURSI.js → chunk-S3T3TDAB.js} +1 -1
- package/dist/{chunk-NSWIF4VH.js → chunk-SJFA4CZ3.js} +96 -11
- package/dist/{chunk-ZD7QKZSS.js → chunk-SSYUONVH.js} +2 -2
- package/dist/{chunk-KHR4IJAW.js → chunk-UEGULMAH.js} +84 -42
- package/dist/{chunk-KZHYAGC3.js → chunk-WNQUXBDU.js} +3 -3
- package/dist/{chunk-RAZVWSU5.js → chunk-X4PK5ZXP.js} +1 -1
- package/dist/{chunk-FRNKM4MG.js → chunk-X6HYBA4A.js} +1 -1
- package/dist/{chunk-ZDOWJ3NS.js → chunk-XXHHPB6E.js} +11 -11
- package/dist/{chunk-ZXHEOTYW.js → chunk-YCRX5APY.js} +1 -1
- package/dist/{chunk-RERXOG54.js → chunk-YWSXFFO3.js} +3 -1
- package/dist/{clean-KBNXV6DP.js → clean-BDXOJ4PW.js} +12 -12
- package/dist/cli.js +51 -51
- package/dist/{cloud-BWWKDRR6.js → cloud-HVG2LUBO.js} +4 -4
- package/dist/commands/contrast-audit.browser.js +166 -22
- package/dist/{compare-UWJRKF5K.js → compare-ZXORZDGQ.js} +20 -20
- package/dist/{component-SWOGSIO2.js → component-AZHVBBVP.js} +3 -3
- package/dist/{compositions-PIPVEXE3.js → compositions-WFILUFC4.js} +6 -6
- package/dist/{delete-OXIDK7N3.js → delete-I34NH2Q4.js} +2 -2
- package/dist/{doctor-KLQLFPCF.js → doctor-6YID47TF.js} +6 -6
- package/dist/{events-EGCYD45B.js → events-G76VOIBQ.js} +3 -3
- package/dist/{events-EVTTGISX.js → events-OKT2KO6S.js} +2 -2
- package/dist/{feedback-G4WZLOVD.js → feedback-EGU7SSXF.js} +4 -4
- package/dist/{ffmpeg-QIYSAPHO.js → ffmpeg-CSJLJAQ3.js} +2 -2
- package/dist/{figma-Q4CKDE7M.js → figma-SUJPNBQQ.js} +3 -3
- package/dist/fontLocalizeCli.js +4 -4
- package/dist/{get-NPRQH64W.js → get-7MYYFGO7.js} +2 -2
- package/dist/{gpuPolicy-L72BQRFR.js → gpuPolicy-C6JWEX7F.js} +2 -2
- package/dist/{grade-compare-H4NJEL4P.js → grade-compare-P22VRQLA.js} +21 -21
- package/dist/{help-2S3XXDEA.js → help-HL6QBZMC.js} +1 -1
- package/dist/{history-X4CGCVEQ.js → history-OG2IXOQA.js} +7 -7
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-YYUISGL7.js → info-7P77JIWI.js} +5 -5
- package/dist/{init-BAAI4ZMR.js → init-JI7QDJV4.js} +18 -18
- package/dist/{inspect-LXJ3XJUZ.js → inspect-7GSF776P.js} +19 -19
- package/dist/{keyframes-NXXJSQWG.js → keyframes-6NM477BA.js} +6 -6
- package/dist/{lambda-PG3JKNWS.js → lambda-4DNBHUPF.js} +2 -2
- package/dist/{layout-CBFO36IE.js → layout-IBDEMDYP.js} +19 -19
- package/dist/{lint-Y6NWQTKF.js → lint-BGAON4GT.js} +6 -6
- package/dist/{list-VY6KIYTX.js → list-PGWNFSLX.js} +2 -2
- package/dist/{login-426Q3H3P.js → login-IAGLU3R3.js} +4 -4
- package/dist/{manager-3RRUFZ4H.js → manager-VOGZQSK4.js} +7 -5
- package/dist/{media-treatment-ZVIXMJZJ.js → media-treatment-Z4N3JEDB.js} +8 -8
- package/dist/{models-KC2QBPVK.js → models-QUOIJVQI.js} +6 -6
- package/dist/{motionShot-3ZSLQJ4D.js → motionShot-GPNESXTN.js} +7 -7
- package/dist/{normalize-audio-DRU5LFYU.js → normalize-audio-C264N2QE.js} +5 -5
- package/dist/{open-LPBZQ4DC.js → open-HB5F4HSD.js} +4 -4
- package/dist/{parakeetRunner-IFY6NK5G.js → parakeetRunner-2ZQOINZQ.js} +7 -7
- package/dist/{pipeline-AGMCDT5A.js → pipeline-JWGTH2BJ.js} +3 -3
- package/dist/{play-WVWXNQED.js → play-VQ4HA4CC.js} +10 -10
- package/dist/{preflight-I5JGCCKM.js → preflight-4WTT4D5X.js} +3 -3
- package/dist/{present-IPTWJUKY.js → present-HU46P43M.js} +9 -9
- package/dist/{preview-JVLRQVD7.js → preview-LNTJ62DX.js} +8 -8
- package/dist/{producer-HKGHSAON.js → producer-UZZQX6IJ.js} +1 -1
- package/dist/{remove-background-WY7KA77M.js → remove-background-OX5WZTXY.js} +4 -4
- package/dist/{render-BEDATKWV.js → render-DV76TO7S.js} +5 -5
- package/dist/{render-P3PFNCBA.js → render-TPE44TOW.js} +27 -27
- package/dist/{sherpa-SQGEFX3S.js → sherpa-IBMU4WV6.js} +6 -6
- package/dist/skills/media-use/references/operations.md +3 -1
- package/dist/{skills-D2FIQ2JN.js → skills-M2ANTFD6.js} +5 -5
- package/dist/{skillsUpdateCheck-2OLTHCBX.js → skillsUpdateCheck-4WNEKKDW.js} +3 -3
- package/dist/{snapshot-R7U73M3N.js → snapshot-5AKBT5IQ.js} +36 -32
- package/dist/{src-4COYCAFY.js → src-JGPFLYBL.js} +1 -1
- package/dist/{src-WOD4AEI3.js → src-SGPA7DM7.js} +3 -3
- package/dist/{staticProjectServer-DG4VZO4G.js → staticProjectServer-UVFPQEUZ.js} +4 -4
- package/dist/studio/assets/{hyperframes-player-BByRREAU.js → hyperframes-player-BulZP0_1.js} +1 -1
- package/dist/studio/assets/{index-Wz-WEqHg.js → index-B1Gypobp.js} +4 -4
- package/dist/studio/assets/{index-CULLUqJo.js → index-CGncBUsJ.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-RGNBVLLL.js → studio-api-RVIU7JP2.js} +2 -2
- package/dist/{studioServer-LC5T4OXQ.js → studioServer-K22MWDLW.js} +30 -30
- package/dist/{telemetry-BLOE3TWY.js → telemetry-SUAMGBFK.js} +3 -3
- package/dist/{timeline-QQPPMADL.js → timeline-SGVBFT36.js} +13 -13
- package/dist/{tokens-E3SHBFDU.js → tokens-IFHWY5WC.js} +2 -2
- package/dist/{transcribe-D5N7SBDO.js → transcribe-GY4JHB7V.js} +12 -11
- package/dist/{transcribe-O2AQ5E2L.js → transcribe-KAOCI5CW.js} +7 -7
- package/dist/{updateCheck-ELOZ2CID.js → updateCheck-YUNDJDLW.js} +2 -2
- package/dist/{upgrade-JDFZEPZY.js → upgrade-PL2BFWTO.js} +2 -2
- package/dist/{urlDownloader-32OGC3EW.js → urlDownloader-FZ5ISJES.js} +1 -1
- package/dist/{validate-LQQEABER.js → validate-2NALRIFW.js} +17 -17
- package/dist/{video-HXIM27TO.js → video-7CDAIWYC.js} +2 -2
- package/package.json +1 -1
- package/dist/{chunk-3Q4Y33FT.js → chunk-PIH4P2G6.js} +4 -4
- package/dist/{deploy-NKWMPAMH.js → deploy-3TTQZGTF.js} +4 -4
- package/dist/{destroy-UKP522AE.js → destroy-BEL232I5.js} +3 -3
|
@@ -6,25 +6,26 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
parakeetRunner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YCRX5APY.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BQTCQ6VN.js";
|
|
16
16
|
import {
|
|
17
17
|
initialModelForLanguage,
|
|
18
18
|
transcribe
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6GMZRHYD.js";
|
|
20
20
|
import {
|
|
21
21
|
createRenderCancellationScope,
|
|
22
22
|
stoppedByCancelSignal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-X6HYBA4A.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_MODEL,
|
|
26
|
+
findWhisper,
|
|
26
27
|
isWhisperUnavailable
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-SJFA4CZ3.js";
|
|
28
29
|
import {
|
|
29
30
|
formatSrt,
|
|
30
31
|
formatVtt,
|
|
@@ -174,10 +175,15 @@ function writeCaptionSidecar(words, { to, outPath, preserveCues, keep }, phraseL
|
|
|
174
175
|
const content = to === "srt" ? formatSrt(words, { preGrouped }) : formatVtt(words, { preGrouped });
|
|
175
176
|
writeFileSync(outPath, content);
|
|
176
177
|
}
|
|
177
|
-
function pickRunner(engine, parakeet, language) {
|
|
178
|
-
if (engine === "whisper" || !parakeetSpeaks(language)) return "whisper";
|
|
178
|
+
function pickRunner(engine, parakeet, language, whisperForLanguage = false) {
|
|
179
|
+
if (engine === "whisper" || whisperForLanguage || !parakeetSpeaks(language)) return "whisper";
|
|
179
180
|
return parakeet() ?? "whisper";
|
|
180
181
|
}
|
|
182
|
+
function needsWhisperForLanguage(engine, language) {
|
|
183
|
+
const base = language?.trim().toLowerCase().split(/[-_]/, 1)[0];
|
|
184
|
+
if (engine === "whisper" || !base || base === "en" || !parakeetSpeaks(language)) return false;
|
|
185
|
+
return findWhisper() !== void 0;
|
|
186
|
+
}
|
|
181
187
|
var parakeetFallsBack = (engine) => engine === "auto";
|
|
182
188
|
function withoutTrailingDots(text) {
|
|
183
189
|
let end = text.length;
|
|
@@ -200,8 +206,14 @@ async function transcribeAudio(inputPath, dir, sidecar, options) {
|
|
|
200
206
|
);
|
|
201
207
|
}
|
|
202
208
|
const unsupported = sherpaUnsupportedReason();
|
|
203
|
-
|
|
204
|
-
|
|
209
|
+
const whisperForLanguage = needsWhisperForLanguage(engine, options.language);
|
|
210
|
+
let runner = pickRunner(
|
|
211
|
+
engine,
|
|
212
|
+
() => parakeetRunner({ unsupported }),
|
|
213
|
+
options.language,
|
|
214
|
+
whisperForLanguage
|
|
215
|
+
);
|
|
216
|
+
if (engine === "parakeet" && runner === "whisper" && !whisperForLanguage) {
|
|
205
217
|
throw new TranscribeError(
|
|
206
218
|
"parakeet_unavailable",
|
|
207
219
|
!parakeetSpeaks(options.language) ? `Parakeet does not transcribe --language ${options.language}; it covers ${PARAKEET_LANGUAGES.split(" ").join(", ")}. Use --engine whisper.` : unsupported ?? `Parakeet is not installed. Install it with: ${PARAKEET_INSTALL_COMMAND} (or use --engine whisper)`
|
|
@@ -209,7 +221,14 @@ async function transcribeAudio(inputPath, dir, sidecar, options) {
|
|
|
209
221
|
}
|
|
210
222
|
const model = options.model ?? DEFAULT_MODEL;
|
|
211
223
|
const whisperModel = initialModelForLanguage(model, options.language);
|
|
212
|
-
options.onEngine?.({
|
|
224
|
+
options.onEngine?.({
|
|
225
|
+
runner,
|
|
226
|
+
engine: engineOf(runner),
|
|
227
|
+
model: whisperModel,
|
|
228
|
+
...whisperForLanguage && {
|
|
229
|
+
notice: `Parakeet chooses its own language, so whisper transcribes --language ${options.language}.`
|
|
230
|
+
}
|
|
231
|
+
});
|
|
213
232
|
const { onStatus, onProgress } = options;
|
|
214
233
|
const startScope = () => options.stopOnProcessSignals ? createRenderCancellationScope() : { signal: options.signal ?? new AbortController().signal, dispose: () => {
|
|
215
234
|
} };
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
findFFmpeg,
|
|
15
15
|
findFFprobe,
|
|
16
16
|
getFFmpegInstallHint
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GVIH4ZQY.js";
|
|
18
18
|
import {
|
|
19
19
|
DEFAULT_VP9_CPU_USED,
|
|
20
20
|
SDR_RGB_TO_BT709_FILTER,
|
|
21
21
|
SDR_RGB_TO_TAGGED_BT709_FILTER,
|
|
22
22
|
renderProvenanceArgs
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YWSXFFO3.js";
|
|
24
24
|
|
|
25
25
|
// src/background-removal/pipeline.ts
|
|
26
26
|
import { spawn } from "child_process";
|
|
@@ -270,7 +270,7 @@ function inferInputKind(inputPath) {
|
|
|
270
270
|
}
|
|
271
271
|
async function probeMedia(inputPath) {
|
|
272
272
|
const isImage = inferInputKind(inputPath) === "image";
|
|
273
|
-
const engine = await import("./src-
|
|
273
|
+
const engine = await import("./src-JGPFLYBL.js");
|
|
274
274
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
275
275
|
if (isImage) {
|
|
276
276
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5ZSLJXQX.js";
|
|
20
20
|
import {
|
|
21
21
|
getAvailableMemoryMb,
|
|
22
22
|
getFreeDiskMb,
|
|
@@ -32,21 +32,21 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
getUpdateMeta,
|
|
34
34
|
withMeta
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-457OAAL2.js";
|
|
36
36
|
import {
|
|
37
37
|
CONFIG_PATH,
|
|
38
38
|
withFileLock
|
|
39
39
|
} from "./chunk-XUXGIA7H.js";
|
|
40
40
|
import {
|
|
41
41
|
VERSION
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-MPNVXG3J.js";
|
|
43
43
|
import {
|
|
44
44
|
OPTIONAL_PACKAGES,
|
|
45
45
|
installedOptionalPackageVersion
|
|
46
46
|
} from "./chunk-3DKN5WKL.js";
|
|
47
47
|
import {
|
|
48
48
|
resolveExtractCacheDir
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-YWSXFFO3.js";
|
|
50
50
|
import {
|
|
51
51
|
normalizeErrorMessage
|
|
52
52
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -232,7 +232,7 @@ function checkEnvironment() {
|
|
|
232
232
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
233
233
|
}
|
|
234
234
|
async function checkWhisper() {
|
|
235
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
235
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-VOGZQSK4.js");
|
|
236
236
|
const result = findWhisper();
|
|
237
237
|
if (result) {
|
|
238
238
|
return { ok: true, detail: result.executablePath };
|
|
@@ -21,10 +21,13 @@ import {
|
|
|
21
21
|
emitWords,
|
|
22
22
|
getPreparedWavDurationSeconds,
|
|
23
23
|
prepareWav
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6GMZRHYD.js";
|
|
25
25
|
import {
|
|
26
26
|
stoppedByCancelSignal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-X6HYBA4A.js";
|
|
28
|
+
import {
|
|
29
|
+
verifies
|
|
30
|
+
} from "./chunk-SJFA4CZ3.js";
|
|
28
31
|
import {
|
|
29
32
|
PARAKEET_MODEL_LABEL,
|
|
30
33
|
SHERPA_ERROR_PREFIX,
|
|
@@ -36,8 +39,8 @@ import {
|
|
|
36
39
|
|
|
37
40
|
// src/whisper/sherpa.ts
|
|
38
41
|
import { execFile, spawn } from "child_process";
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
42
|
+
import { randomUUID } from "crypto";
|
|
43
|
+
import { mkdirSync, renameSync, rmSync, statSync } from "fs";
|
|
41
44
|
import { homedir } from "os";
|
|
42
45
|
import { join } from "path";
|
|
43
46
|
import { createInterface } from "readline";
|
|
@@ -209,15 +212,6 @@ function sherpaParakeetInstalled(cliUrl = import.meta.url) {
|
|
|
209
212
|
(f) => statSync(join(PARAKEET_MODEL_DIR, f.name), { throwIfNoEntry: false })?.size === f.bytes
|
|
210
213
|
);
|
|
211
214
|
}
|
|
212
|
-
async function sha256File(path) {
|
|
213
|
-
const hash = createHash("sha256");
|
|
214
|
-
for await (const chunk of createReadStream(path)) hash.update(chunk);
|
|
215
|
-
return hash.digest("hex");
|
|
216
|
-
}
|
|
217
|
-
async function verifies(path, file) {
|
|
218
|
-
if (statSync(path, { throwIfNoEntry: false })?.size !== file.bytes) return false;
|
|
219
|
-
return await sha256File(path) === file.sha256;
|
|
220
|
-
}
|
|
221
215
|
async function ensureParakeetModel({
|
|
222
216
|
dir = PARAKEET_MODEL_DIR,
|
|
223
217
|
files = PARAKEET_MODEL_FILES,
|
|
@@ -4,21 +4,21 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
-
import {
|
|
8
|
-
readCompositionFps
|
|
9
|
-
} from "./chunk-DQY6WTF7.js";
|
|
10
7
|
import {
|
|
11
8
|
findSyncPartner,
|
|
12
9
|
readLinkTiming,
|
|
13
10
|
syncOffsetFrames
|
|
14
11
|
} from "./chunk-6JR2XUEE.js";
|
|
12
|
+
import {
|
|
13
|
+
readCompositionFps
|
|
14
|
+
} from "./chunk-DQY6WTF7.js";
|
|
15
15
|
import {
|
|
16
16
|
HF_AUDIO_GROUP_ATTR,
|
|
17
17
|
extractAudioMetadata,
|
|
18
18
|
extractMediaMetadata,
|
|
19
19
|
resolveReferencedDuration,
|
|
20
20
|
resolveReferencedStart
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YWSXFFO3.js";
|
|
22
22
|
import {
|
|
23
23
|
byStart,
|
|
24
24
|
compositionOriginSeconds,
|
|
@@ -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-2CEIKEFU.js";
|
|
10
10
|
|
|
11
11
|
// src/telemetry/renderObservability.ts
|
|
12
12
|
function renderObservabilityTelemetryPayload(observability) {
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YWSXFFO3.js";
|
|
11
11
|
|
|
12
12
|
// src/browser/gpuPolicy.ts
|
|
13
13
|
function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
|
|
|
17
17
|
return "auto";
|
|
18
18
|
}
|
|
19
19
|
async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
|
|
20
|
-
const { resolveBrowserGpuMode } = await import("./src-
|
|
20
|
+
const { resolveBrowserGpuMode } = await import("./src-JGPFLYBL.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|