hyperframes 0.8.176 → 0.8.178
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-YZGUHLDP.js → add-C4GN5ZDP.js} +12 -12
- package/dist/{animatedGifPrep-6SPYXSHE.js → animatedGifPrep-S6XXOOXK.js} +7 -7
- package/dist/api.d.ts +2 -0
- package/dist/api.js +15 -15
- package/dist/{asset-YPC34MTV.js → asset-WTZ44Q7G.js} +2 -2
- package/dist/{assetCataloger-5GGNQC3Y.js → assetCataloger-MSAMR77T.js} +7 -7
- package/dist/{audio-33JHU37L.js → audio-ZSWOKO3D.js} +14 -14
- package/dist/{auth-UUIHOS2D.js → auth-EUSWPXME.js} +1 -1
- package/dist/{autoUpdate-F747BE3R.js → autoUpdate-WWXRJ2W7.js} +2 -2
- package/dist/{backgroundChecks-3YLO2CSC.js → backgroundChecks-B2IJHAP6.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-KXXTVNPB.js → batchRender-OOQYGH5A.js} +4 -4
- package/dist/{beats-DQDV2ZFS.js → beats-OJT75KQY.js} +5 -5
- package/dist/{benchmark-ZPPZEIHZ.js → benchmark-EZTB4ITW.js} +9 -9
- package/dist/{browser-ZFLEP3E6.js → browser-DNHBS5C7.js} +9 -8
- package/dist/{bundleWithLocalizedFonts-PMRGOQWD.js → bundleWithLocalizedFonts-GJAML42J.js} +2 -2
- package/dist/{capture-6XCCIPT4.js → capture-YRS6SZ6B.js} +11 -11
- package/dist/{capture-5OW6VNXU.js → capture-ZBGAJYVH.js} +2 -2
- package/dist/captureCompositionFrame-Z33NWUED.js +88 -0
- package/dist/{catalog-3A6KKCWF.js → catalog-YF23PXV2.js} +25 -17
- package/dist/{catch-up-KPGCLN4C.js → catch-up-YZZDUDRQ.js} +5 -5
- package/dist/{check-I3XLXS77.js → check-NVGQ5PMF.js} +60 -49
- package/dist/{checkBrowser-KX7LNAFA.js → checkBrowser-JX22QQDH.js} +79 -59
- package/dist/{chunk-42T7OP4O.js → chunk-32GKQ73S.js} +1 -1
- package/dist/{chunk-3Q4Y33FT.js → chunk-3EJYUZHW.js} +20 -18
- package/dist/{chunk-L6XT6GSV.js → chunk-52L2L46Q.js} +1 -1
- package/dist/chunk-537IYAEE.js +80 -0
- package/dist/{chunk-USEUH5VV.js → chunk-5PK3RLSB.js} +2 -2
- package/dist/{chunk-GVIH4ZQY.js → chunk-5RS2FIZU.js} +1 -1
- package/dist/{chunk-VER46LXI.js → chunk-62OXHKLS.js} +2 -2
- package/dist/{chunk-T76PLPD6.js → chunk-634HSJ3J.js} +2 -1
- package/dist/{chunk-HVMHVW5G.js → chunk-74Z2T3YM.js} +1 -1
- package/dist/{chunk-5TGVURKQ.js → chunk-7IAVKLNC.js} +1 -1
- package/dist/{chunk-L3LJVYXS.js → chunk-A2BB2XQU.js} +2 -2
- package/dist/{chunk-DQY6WTF7.js → chunk-A3RUVTGB.js} +1 -1
- package/dist/{chunk-OYEDHVSI.js → chunk-AFKVI7FJ.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-OMUKSCWE.js → chunk-AR5MS234.js} +13 -13
- package/dist/{chunk-R2TVJ4DW.js → chunk-AYEWZYYC.js} +1 -1
- package/dist/{chunk-TNDNFZOK.js → chunk-BGKZ37BC.js} +2 -2
- package/dist/{chunk-LY2GLSOS.js → chunk-BJJ3QF7T.js} +1 -1
- package/dist/{chunk-5EA4C6RA.js → chunk-BNGRVR3Y.js} +6 -6
- package/dist/{chunk-EEVCXPUA.js → chunk-C4FH67KI.js} +2 -2
- package/dist/{chunk-MG66UO4N.js → chunk-CJRGV2JW.js} +1 -1
- package/dist/{chunk-7LU4ZHYV.js → chunk-DKGZR7QA.js} +1 -1
- package/dist/{chunk-XRKMITSS.js → chunk-E24HSMZV.js} +12 -51
- package/dist/{chunk-44XBAKKT.js → chunk-EBKIF46T.js} +2 -2
- package/dist/{chunk-RBOVQRMR.js → chunk-EINNFZAW.js} +7 -13
- package/dist/{chunk-EOOEC32M.js → chunk-EVMY7IPL.js} +22 -0
- package/dist/{chunk-PL4WM5XE.js → chunk-FIAQ4J45.js} +2 -2
- package/dist/{chunk-J53AJK3Q.js → chunk-FTWOVWHR.js} +2 -2
- package/dist/{chunk-X6ZRZWPZ.js → chunk-G3M4BIFN.js} +1 -1
- package/dist/{chunk-VDUTZXIJ.js → chunk-HFUMZZ4T.js} +5 -5
- package/dist/{chunk-MDTMWUJI.js → chunk-HNMRB77F.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-HTC3VGU3.js → chunk-J4GE3BCG.js} +29 -10
- package/dist/{chunk-X4PK5ZXP.js → chunk-LO4DHZLH.js} +3 -3
- package/dist/{chunk-NGRNAF5X.js → chunk-N66NVE65.js} +1 -1
- package/dist/{chunk-7XX4QGQV.js → chunk-N6S6V2DY.js} +52 -16
- package/dist/{chunk-LEILKM2N.js → chunk-O7PFPCQF.js} +193 -65
- package/dist/{chunk-KUOUUG33.js → chunk-ORM7SJ7K.js} +85 -43
- package/dist/chunk-PLNQW2C6.js +3805 -0
- package/dist/{chunk-JNL3RMDG.js → chunk-PU33GPG4.js} +1 -1
- package/dist/{chunk-W47D3KOB.js → chunk-RHWJKSGH.js} +1 -1
- package/dist/{chunk-B7DJQFAC.js → chunk-RTABHL2G.js} +3 -3
- package/dist/{chunk-K535ASAM.js → chunk-TINAVSGR.js} +1 -1
- package/dist/{chunk-C6TPGUWD.js → chunk-TTVHYD5R.js} +2 -2
- package/dist/{chunk-GOOB64LO.js → chunk-U2AIXPAQ.js} +2 -2
- package/dist/{chunk-BVXZYFAL.js → chunk-UIXHQ4QG.js} +7 -7
- package/dist/{chunk-QWCXGTOH.js → chunk-UOHQV6AV.js} +24 -12
- package/dist/{chunk-SURF34CK.js → chunk-UQEBSY5U.js} +1 -1
- package/dist/{chunk-5ZSLJXQX.js → chunk-UWPUEI5U.js} +2 -2
- package/dist/{chunk-BTCHRQNV.js → chunk-V6WIQWUB.js} +3 -3
- package/dist/{chunk-OUMYTLPP.js → chunk-VCDWVVDV.js} +11 -7
- package/dist/{chunk-YWSXFFO3.js → chunk-VU4JLRNH.js} +156 -76
- package/dist/{chunk-MLRCTTSD.js → chunk-XBZOYP4D.js} +96 -11
- package/dist/{chunk-X6HYBA4A.js → chunk-XSQWXUK2.js} +1 -1
- package/dist/{chunk-SSE6NWZI.js → chunk-Y6JLEN3P.js} +14 -14
- package/dist/{chunk-KRKSY2AE.js → chunk-YAPJOCSH.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/{chunk-T6NA6TR3.js → chunk-ZAO7FTQM.js} +2 -2
- package/dist/{clean-6REGQY3I.js → clean-ODNP4ELD.js} +23 -23
- package/dist/cli.js +53 -53
- package/dist/{cloud-RAQZPMNP.js → cloud-2DACBBEP.js} +4 -4
- package/dist/{cloudrun-P35BPQCO.js → cloudrun-QSVGI2TT.js} +5 -5
- package/dist/commands/contrast-audit.browser.js +166 -22
- package/dist/{compare-XYFSHHMQ.js → compare-HMMGOM4F.js} +34 -34
- package/dist/{compiler-5TFPJPQQ.js → compiler-CQ6OKYT5.js} +2 -2
- package/dist/{component-CRAO6Q2E.js → component-C6OLXSIK.js} +3 -3
- package/dist/{compositions-4SHILZZX.js → compositions-MOGZ4ASK.js} +11 -11
- package/dist/{delete-ZS4AHMTY.js → delete-MDAYHORQ.js} +2 -2
- package/dist/{dist-U2HCECNB.js → dist-MHJYD5IZ.js} +6 -4
- package/dist/{doctor-OL4FYABY.js → doctor-VEKKYMQT.js} +12 -12
- package/dist/{events-Z3XZCRFZ.js → events-CSKJXRJU.js} +4 -4
- package/dist/{events-LIJBGTTX.js → events-SKMTX6HF.js} +2 -2
- package/dist/{feedback-OE6SB2VE.js → feedback-64AKUFHZ.js} +7 -7
- package/dist/{ffmpeg-CSJLJAQ3.js → ffmpeg-64E4VH6W.js} +7 -7
- package/dist/{figma-DMUCMO67.js → figma-YEY76ZPG.js} +3 -3
- package/dist/fontLocalizeCli.js +10 -10
- package/dist/{get-NQOQVUI5.js → get-YJS76PGZ.js} +2 -2
- package/dist/{gpuPolicy-C6JWEX7F.js → gpuPolicy-IGZOHHMX.js} +7 -7
- package/dist/{grade-compare-HLTHHQGH.js → grade-compare-35UEA52Z.js} +35 -35
- package/dist/{help-ZAXWHAYF.js → help-I5TCDUVH.js} +1 -1
- package/dist/{history-CMY7ZEEW.js → history-7BKIWSP2.js} +11 -11
- 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-STR7EYI3.js → info-UEPOM2LV.js} +8 -8
- package/dist/{init-YSMKK5VG.js → init-HIB66K2S.js} +27 -27
- package/dist/{inspect-QV6DC6GO.js → inspect-634XIKDS.js} +33 -33
- package/dist/{installer-NY5E5HCO.js → installer-ADKWK4I4.js} +5 -5
- package/dist/{keyframes-HN3DW5FG.js → keyframes-7BJX3EVE.js} +7 -7
- package/dist/{lambda-PG3JKNWS.js → lambda-Q4TRSMHZ.js} +8 -8
- package/dist/{layout-O4QAR2XY.js → layout-6DUVSHEB.js} +33 -33
- package/dist/{lint-AY55R4UR.js → lint-UPFD4JQZ.js} +7 -7
- package/dist/{list-TH2KCVNN.js → list-M6OMQXJX.js} +2 -2
- package/dist/{login-TRCMRV4B.js → login-QH6JDXDP.js} +4 -4
- package/dist/{manager-2J4XGDZ3.js → manager-B4MSVFMK.js} +12 -10
- package/dist/{manager-HEUPD2YB.js → manager-V2QCCPOJ.js} +4 -3
- package/dist/{media-treatment-ET5QQSWP.js → media-treatment-SHFTIG4K.js} +14 -14
- package/dist/{models-RFUUSCG6.js → models-USEFHJFY.js} +11 -11
- package/dist/{motionShot-2ET565ZV.js → motionShot-HRM6NMT4.js} +15 -15
- package/dist/{normalize-audio-LUOJSD3W.js → normalize-audio-EP3HPQZB.js} +9 -9
- package/dist/{open-MVEOYQRQ.js → open-HXZEXQ4X.js} +12 -12
- package/dist/{parakeetRunner-3TG7EHWA.js → parakeetRunner-D5RSHQB2.js} +12 -12
- package/dist/{pipeline-JWGTH2BJ.js → pipeline-BDG52SPL.js} +8 -8
- package/dist/{play-I3WJPYXK.js → play-LSRQ6R66.js} +24 -24
- package/dist/{preflight-4WTT4D5X.js → preflight-GBPRLIM6.js} +9 -9
- package/dist/{present-DUZBKUYH.js → present-2VKAE63Q.js} +19 -19
- package/dist/{preview-7J5TBTRP.js → preview-MWH5CHTN.js} +18 -18
- package/dist/{producer-UZZQX6IJ.js → producer-W24FRIN7.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-JBOJAUIM.js} +9 -9
- package/dist/{render-HGT3EGIK.js → render-5TTZDI5N.js} +7 -14
- package/dist/{render-IYTGM6DE.js → render-BROS2AIU.js} +9 -9
- package/dist/{render-JUS2ROIN.js → render-JCYFNDWT.js} +42 -42
- package/dist/{render-batch-MUCDZ2WF.js → render-batch-FW56ZFGW.js} +8 -17
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-FLQ42X2Y.js → resolver-UW6NYBJA.js} +5 -5
- package/dist/{sherpa-PRI3JLUP.js → sherpa-GWYCXYEP.js} +11 -11
- package/dist/skills/media-use/references/operations.md +3 -1
- package/dist/{skills-CZ6VW5SZ.js → skills-YNM5SIHQ.js} +6 -6
- package/dist/{skillsUpdateCheck-K4UKUAOC.js → skillsUpdateCheck-FNC6VALY.js} +3 -3
- package/dist/{snapshot-MPE4GIMJ.js → snapshot-6EMEL4O3.js} +44 -44
- package/dist/{src-SGPA7DM7.js → src-VUIKXEFU.js} +9 -9
- package/dist/{src-JGPFLYBL.js → src-XRFOS5LP.js} +6 -6
- package/dist/{staticProjectServer-DG4VZO4G.js → staticProjectServer-COEAKTGH.js} +17 -17
- package/dist/studio/assets/{hyperframes-player-DBHpVw8L.js → hyperframes-player-Dfw61RJK.js} +1 -1
- package/dist/studio/assets/{index-BkDF4Z-5.js → index-Bi6yVTq9.js} +118 -117
- package/dist/studio/assets/{index-DHRXpmtI.js → index-eTRj5rY2.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-RGNBVLLL.js → studio-api-455XWQPD.js} +12 -12
- package/dist/{studioServer-FWACRD3Y.js → studioServer-ZP2LJT7H.js} +57 -72
- package/dist/{telemetry-CHJA5JFQ.js → telemetry-HJQ7IO6R.js} +4 -4
- package/dist/{timeline-TZDMQBSM.js → timeline-CYW3YKMX.js} +23 -23
- package/dist/{tokens-B5KI7FBA.js → tokens-VOARLAAH.js} +2 -2
- package/dist/{transcribe-M7NO6XBP.js → transcribe-F6UOG57Z.js} +12 -12
- package/dist/{transcribe-VHUDXZET.js → transcribe-FJGNOR6R.js} +17 -16
- package/dist/{updateCheck-NMD6AFFG.js → updateCheck-IOLCO3XV.js} +2 -2
- package/dist/{upgrade-WGFMGJ5O.js → upgrade-BVW67SB7.js} +2 -2
- package/dist/{urlDownloader-FZ5ISJES.js → urlDownloader-QF7EBQC2.js} +6 -6
- package/dist/{validate-NM3GLUWX.js → validate-3NHIT4VT.js} +25 -25
- 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-NKWMPAMH.js → deploy-3TTQZGTF.js} +4 -4
- package/dist/{destroy-UKP522AE.js → destroy-BEL232I5.js} +3 -3
|
@@ -4,25 +4,25 @@ 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
|
+
resolveProject
|
|
9
|
+
} from "./chunk-UQEBSY5U.js";
|
|
7
10
|
import {
|
|
8
11
|
installPageFunctionGuard,
|
|
9
12
|
resolveCliChromeGpuMode,
|
|
10
13
|
seekCompositionTimeline,
|
|
11
14
|
waitForRuntimeReady
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ORM7SJ7K.js";
|
|
13
16
|
import {
|
|
14
17
|
resolveCompositionViewportFromHtml
|
|
15
18
|
} from "./chunk-FH7WODJH.js";
|
|
16
19
|
import {
|
|
17
20
|
launchManagedBrowser,
|
|
18
21
|
resolveManagedGpuMode
|
|
19
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-52L2L46Q.js";
|
|
20
23
|
import {
|
|
21
24
|
pageNavigationTimeoutMs
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
resolveProject
|
|
25
|
-
} from "./chunk-SURF34CK.js";
|
|
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-7IAVKLNC.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-W24FRIN7.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);
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
ensureHfIds,
|
|
13
13
|
mintHfId,
|
|
14
14
|
walkCompositionDescendants
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PU33GPG4.js";
|
|
16
16
|
import {
|
|
17
17
|
isAllowedHtmlAttribute,
|
|
18
18
|
isSafeAttributeValue,
|
|
19
19
|
sanitizeRichTextChildren
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AHS5QYKF.js";
|
|
21
21
|
import {
|
|
22
22
|
decodedUrlPath,
|
|
23
23
|
removeElementWithGsapCascade
|
|
@@ -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-A3RUVTGB.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-VU4JLRNH.js";
|
|
22
22
|
import {
|
|
23
23
|
byStart,
|
|
24
24
|
compositionOriginSeconds,
|
|
@@ -27,14 +27,14 @@ import {
|
|
|
27
27
|
hostInPointSeconds,
|
|
28
28
|
parseFpsWithDefault,
|
|
29
29
|
resolveMediaStartSeconds
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-AHS5QYKF.js";
|
|
31
31
|
import {
|
|
32
32
|
HF_AUDIO_AUTOMATION_ATTR,
|
|
33
33
|
HF_AUDIO_FX_ATTR,
|
|
34
34
|
parseAudioFxChain,
|
|
35
35
|
parseAutomation,
|
|
36
36
|
resolveAutomation
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-PLNQW2C6.js";
|
|
38
38
|
import {
|
|
39
39
|
isSubCompositionHost,
|
|
40
40
|
topLevelElements,
|
|
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = true ? "0.8.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.8.
|
|
9
|
+
var VERSION = true ? "0.8.178" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.8.178" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-C4FH67KI.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
runRenderSetupWorker
|
|
9
9
|
} from "./chunk-D3ZWBHZP.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
11
|
+
managedChromeVersion,
|
|
12
|
+
pickSharedShell
|
|
13
|
+
} from "./chunk-537IYAEE.js";
|
|
14
14
|
import {
|
|
15
15
|
normalizeErrorMessage
|
|
16
16
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -43,11 +43,6 @@ Fix: run \`npm install\` or \`bun install\` to restore missing packages, then re
|
|
|
43
43
|
);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
var CHROME_VERSION = "152.0.7977.30";
|
|
47
|
-
var MACOS_12_CHROME_VERSION = "150.0.7871.124";
|
|
48
|
-
function managedChromeVersion() {
|
|
49
|
-
return chromeMajorCeiling() === void 0 ? CHROME_VERSION : MACOS_12_CHROME_VERSION;
|
|
50
|
-
}
|
|
51
46
|
var CACHE_ROOT_DIR = join(homedir(), ".cache", "hyperframes");
|
|
52
47
|
var CACHE_DIR = join(homedir(), ".cache", "hyperframes", "chrome");
|
|
53
48
|
var PUPPETEER_CACHE_DIR = join(homedir(), ".cache", "puppeteer", "chrome-headless-shell");
|
|
@@ -244,39 +239,10 @@ async function findFromHyperframesCache() {
|
|
|
244
239
|
return {};
|
|
245
240
|
}
|
|
246
241
|
async function findFromCache() {
|
|
242
|
+
const ours = await findFromHyperframesCache();
|
|
243
|
+
if (ours.result) return ours;
|
|
247
244
|
const fromPuppeteer = findFromPuppeteerCache();
|
|
248
|
-
|
|
249
|
-
return { result: fromPuppeteer };
|
|
250
|
-
}
|
|
251
|
-
return findFromHyperframesCache();
|
|
252
|
-
}
|
|
253
|
-
function parseVersionSegments(versionDir) {
|
|
254
|
-
const dashIdx = versionDir.indexOf("-");
|
|
255
|
-
const versionPart = dashIdx >= 0 ? versionDir.slice(dashIdx + 1) : versionDir;
|
|
256
|
-
const segments = versionPart.split(".");
|
|
257
|
-
const parsed = [];
|
|
258
|
-
for (const seg of segments) {
|
|
259
|
-
const n = parseInt(seg, 10);
|
|
260
|
-
if (!Number.isFinite(n)) {
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
parsed.push(n);
|
|
264
|
-
}
|
|
265
|
-
return parsed.length > 0 ? parsed : void 0;
|
|
266
|
-
}
|
|
267
|
-
function compareVersionDirsDescending(a, b) {
|
|
268
|
-
const pa = parseVersionSegments(a);
|
|
269
|
-
const pb = parseVersionSegments(b);
|
|
270
|
-
if (!pa && !pb) return 0;
|
|
271
|
-
if (!pa) return 1;
|
|
272
|
-
if (!pb) return -1;
|
|
273
|
-
const len = Math.max(pa.length, pb.length);
|
|
274
|
-
for (let i = 0; i < len; i += 1) {
|
|
275
|
-
const av = pa[i] ?? 0;
|
|
276
|
-
const bv = pb[i] ?? 0;
|
|
277
|
-
if (av !== bv) return bv - av;
|
|
278
|
-
}
|
|
279
|
-
return 0;
|
|
245
|
+
return fromPuppeteer ? { result: fromPuppeteer } : ours;
|
|
280
246
|
}
|
|
281
247
|
var CACHED_HEADLESS_SHELL_EXECUTABLES = {
|
|
282
248
|
"darwin/arm64": ["chrome-headless-shell-mac-arm64", "chrome-headless-shell"],
|
|
@@ -294,19 +260,15 @@ function findFromPuppeteerCache() {
|
|
|
294
260
|
if (!executable) return void 0;
|
|
295
261
|
let versions;
|
|
296
262
|
try {
|
|
297
|
-
versions =
|
|
263
|
+
versions = readdirSync(PUPPETEER_CACHE_DIR);
|
|
298
264
|
} catch {
|
|
299
265
|
return void 0;
|
|
300
266
|
}
|
|
301
|
-
const
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
return { executablePath: binary, source: "cache" };
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
return void 0;
|
|
267
|
+
const binary = pickSharedShell(versions, (version) => {
|
|
268
|
+
const candidate = join(PUPPETEER_CACHE_DIR, version, ...executable);
|
|
269
|
+
return isUsableExecutable(candidate) ? candidate : void 0;
|
|
270
|
+
});
|
|
271
|
+
return binary ? { executablePath: binary, source: "cache" } : void 0;
|
|
310
272
|
}
|
|
311
273
|
function isHeadlessShellBinary(executablePath) {
|
|
312
274
|
const name = basename(executablePath).toLowerCase();
|
|
@@ -610,7 +572,6 @@ function isLinuxArm() {
|
|
|
610
572
|
}
|
|
611
573
|
|
|
612
574
|
export {
|
|
613
|
-
managedChromeVersion,
|
|
614
575
|
CACHE_DIR,
|
|
615
576
|
withInstallLock,
|
|
616
577
|
releaseOwnedBrowserInstallLock,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HNMRB77F.js";
|
|
24
24
|
import {
|
|
25
25
|
defineCommand
|
|
26
26
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -229,7 +229,7 @@ var asset_default = defineCommand({
|
|
|
229
229
|
rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
|
-
const { trackFigmaImport } = await import("./telemetry-
|
|
232
|
+
const { trackFigmaImport } = await import("./telemetry-HJQ7IO6R.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|
|
@@ -21,10 +21,13 @@ import {
|
|
|
21
21
|
emitWords,
|
|
22
22
|
getPreparedWavDurationSeconds,
|
|
23
23
|
prepareWav
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-N6S6V2DY.js";
|
|
25
25
|
import {
|
|
26
26
|
stoppedByCancelSignal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XSQWXUK2.js";
|
|
28
|
+
import {
|
|
29
|
+
verifies
|
|
30
|
+
} from "./chunk-XBZOYP4D.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,
|
|
@@ -583,7 +583,29 @@ function studioManualEditsRenderRuntime(manifestContent, activeCompositionPath)
|
|
|
583
583
|
}, 50);
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
+
// ../core/dist/projectFolders.js
|
|
587
|
+
var PREVIEW_IGNORED_DIRS = /* @__PURE__ */ new Set([
|
|
588
|
+
".cache",
|
|
589
|
+
".git",
|
|
590
|
+
".hyperframes",
|
|
591
|
+
".next",
|
|
592
|
+
".thumbnails",
|
|
593
|
+
".transcode-cache",
|
|
594
|
+
".vite",
|
|
595
|
+
".waveform-cache",
|
|
596
|
+
"build",
|
|
597
|
+
"coverage",
|
|
598
|
+
"dist",
|
|
599
|
+
"node_modules",
|
|
600
|
+
"outputs",
|
|
601
|
+
"renders"
|
|
602
|
+
]);
|
|
603
|
+
var RENDER_TEMP_DIR = /^(work-[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}|hf-render|\..+\.hf-transaction)-[A-Za-z0-9]{6}$/;
|
|
604
|
+
var isProjectIgnoredDir = (name) => PREVIEW_IGNORED_DIRS.has(name) || RENDER_TEMP_DIR.test(name);
|
|
605
|
+
|
|
586
606
|
export {
|
|
607
|
+
RENDER_TEMP_DIR,
|
|
608
|
+
isProjectIgnoredDir,
|
|
587
609
|
STUDIO_MANUAL_EDITS_PATH,
|
|
588
610
|
createStudioManualEditsRenderBodyScript,
|
|
589
611
|
createStudioPositionSeekReapplyScript
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
DEFAULT_VP9_CPU_USED,
|
|
9
9
|
isHttpUrl,
|
|
10
10
|
runFfmpeg
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VU4JLRNH.js";
|
|
12
12
|
import {
|
|
13
13
|
parseAnimatedGifMetadata
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AHS5QYKF.js";
|
|
15
15
|
import {
|
|
16
16
|
parseHTML
|
|
17
17
|
} from "./chunk-SDYDNHEE.js";
|
|
@@ -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-3EJYUZHW.js";
|
|
10
10
|
import {
|
|
11
11
|
injectTagsAtHeadStart
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PLNQW2C6.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/compositionServer.ts
|
|
15
15
|
import { createHash } from "crypto";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UWPUEI5U.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-7IAVKLNC.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-C4FH67KI.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-VU4JLRNH.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-B4MSVFMK.js");
|
|
236
236
|
const result = findWhisper();
|
|
237
237
|
if (result) {
|
|
238
238
|
return { ok: true, detail: result.executablePath };
|
|
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
|
|
|
1278
1278
|
} catch (err) {
|
|
1279
1279
|
if (err instanceof Error) {
|
|
1280
1280
|
try {
|
|
1281
|
-
const { trackCommandFailure } = await import("./events-
|
|
1281
|
+
const { trackCommandFailure } = await import("./events-CSKJXRJU.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -7,7 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
pinProjectRecord,
|
|
9
9
|
realFilePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ALVXFXUG.js";
|
|
11
|
+
import {
|
|
12
|
+
isProjectIgnoredDir
|
|
13
|
+
} from "./chunk-EVMY7IPL.js";
|
|
11
14
|
import {
|
|
12
15
|
atomicTempPath,
|
|
13
16
|
isAtomicTempPath,
|
|
@@ -18,7 +21,7 @@ import {
|
|
|
18
21
|
mkdirWithinProject
|
|
19
22
|
} from "./chunk-OFQWTKPW.js";
|
|
20
23
|
|
|
21
|
-
// ../studio-server/dist/chunk-
|
|
24
|
+
// ../studio-server/dist/chunk-6PE5OD32.js
|
|
22
25
|
import { randomUUID as randomUUID7 } from "crypto";
|
|
23
26
|
import { mkdir as mkdir2, readdir as readdir3, rm as rm3, rmdir, writeFile } from "fs/promises";
|
|
24
27
|
import {
|
|
@@ -42,26 +45,6 @@ import { join } from "path";
|
|
|
42
45
|
import { createHash as createHash2 } from "crypto";
|
|
43
46
|
import { lstatSync, readFileSync as readFileSync3, readdirSync } from "fs";
|
|
44
47
|
import { extname, isAbsolute as isAbsolute2, relative as relative2, resolve as resolve2, sep as sep2 } from "path";
|
|
45
|
-
|
|
46
|
-
// ../core/dist/projectFolders.js
|
|
47
|
-
var PREVIEW_IGNORED_DIRS = /* @__PURE__ */ new Set([
|
|
48
|
-
".cache",
|
|
49
|
-
".git",
|
|
50
|
-
".hyperframes",
|
|
51
|
-
".next",
|
|
52
|
-
".thumbnails",
|
|
53
|
-
".transcode-cache",
|
|
54
|
-
".vite",
|
|
55
|
-
".waveform-cache",
|
|
56
|
-
"build",
|
|
57
|
-
"coverage",
|
|
58
|
-
"dist",
|
|
59
|
-
"node_modules",
|
|
60
|
-
"outputs",
|
|
61
|
-
"renders"
|
|
62
|
-
]);
|
|
63
|
-
|
|
64
|
-
// ../studio-server/dist/chunk-GG4AS4RK.js
|
|
65
48
|
import { createHash as createHash3, randomUUID as randomUUID3 } from "crypto";
|
|
66
49
|
import { constants, createReadStream, createWriteStream, renameSync as renameSync2 } from "fs";
|
|
67
50
|
import { copyFile, mkdir, readdir, readFile, rename, rm, stat } from "fs/promises";
|
|
@@ -347,7 +330,7 @@ function affectsProjectSignature(projectDir, changedPath) {
|
|
|
347
330
|
if (isRenderOutput(projectDir, changedPath, readRenderOutputsOrNone(projectDir))) return false;
|
|
348
331
|
const segments = relativePath.split(sep2);
|
|
349
332
|
if (STUDIO_SIGNATURE_MANIFEST_PATHS.includes(segments.join("/"))) return true;
|
|
350
|
-
return !segments.some(
|
|
333
|
+
return !segments.some(isProjectIgnoredDir);
|
|
351
334
|
}
|
|
352
335
|
var projectSignatureCache = /* @__PURE__ */ new Map();
|
|
353
336
|
var COARSEST_FILE_TIME_TICK_MS = 2e3;
|
|
@@ -358,7 +341,7 @@ function isPathWithin(parentDir, childPath) {
|
|
|
358
341
|
function isTextContentEligible(file, size) {
|
|
359
342
|
return SIGNATURE_TEXT_EXTENSIONS.has(extname(file).toLowerCase()) && size <= MAX_SIGNATURE_TEXT_BYTES;
|
|
360
343
|
}
|
|
361
|
-
var isSkippedEntry = (entry) =>
|
|
344
|
+
var isSkippedEntry = (entry) => isProjectIgnoredDir(entry) || isAtomicTempPath(entry);
|
|
362
345
|
function signatureEntryStat(projectDir, entry, file, outputs) {
|
|
363
346
|
if (isSkippedEntry(entry) || !isPathWithin(projectDir, file)) return null;
|
|
364
347
|
if (isRenderOutput(projectDir, file, outputs)) return null;
|
|
@@ -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-N66NVE65.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EINNFZAW.js";
|
|
16
16
|
import {
|
|
17
17
|
initialModelForLanguage,
|
|
18
18
|
transcribe
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-N6S6V2DY.js";
|
|
20
20
|
import {
|
|
21
21
|
createRenderCancellationScope,
|
|
22
22
|
stoppedByCancelSignal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XSQWXUK2.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_MODEL,
|
|
26
|
+
findWhisper,
|
|
26
27
|
isWhisperUnavailable
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XBZOYP4D.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
|
} };
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
readCompositionFps
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A3RUVTGB.js";
|
|
10
10
|
import {
|
|
11
11
|
errorBox
|
|
12
12
|
} from "./chunk-K2FLNJVB.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_CONFIG,
|
|
18
18
|
resolvePageNavigationTimeout
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VU4JLRNH.js";
|
|
20
20
|
import {
|
|
21
21
|
parseFps
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AHS5QYKF.js";
|
|
23
23
|
|
|
24
24
|
// src/browser/windowsCrash.ts
|
|
25
25
|
var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
|