hyperframes 0.8.147 → 0.8.149
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-5CNUY3EW.js → add-MG53577L.js} +18 -18
- package/dist/{animatedGifPrep-ZID2XJRQ.js → animatedGifPrep-HV4ZFVPV.js} +5 -5
- package/dist/api.d.ts +209 -0
- package/dist/api.js +75 -0
- package/dist/{asset-TFEENZ7K.js → asset-3GIBXLLL.js} +3 -3
- package/dist/{assetCataloger-GX4B55VB.js → assetCataloger-JJQ4JW2P.js} +2 -2
- package/dist/{auth-EJVZW6C3.js → auth-XQMT727H.js} +4 -4
- package/dist/{autoUpdate-MBNEZ2U4.js → autoUpdate-CREZJGMU.js} +2 -2
- package/dist/{backgroundChecks-DNW5NPTY.js → backgroundChecks-K3S5QKR3.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-T7S2CGJE.js → batchRender-42AKNX73.js} +6 -6
- package/dist/{beats-STXBGN6Z.js → beats-Y7IKETUS.js} +21 -21
- package/dist/{benchmark-AC6IGEQP.js → benchmark-22SAXSO5.js} +18 -18
- package/dist/{browser-FB5AK32T.js → browser-ABNISCC3.js} +14 -13
- package/dist/{bundleWithLocalizedFonts-HSCWGCFO.js → bundleWithLocalizedFonts-OE5ZI4JE.js} +5 -5
- package/dist/{capture-VEIVUHWB.js → capture-DBNHO4WJ.js} +2 -2
- package/dist/{capture-I24MXH3Y.js → capture-HQG5W42I.js} +19 -19
- package/dist/{catalog-JRC4VTTI.js → catalog-KICZFIDX.js} +34 -34
- package/dist/{catch-up-NTCK7Z3G.js → catch-up-ZCQUCI45.js} +13 -13
- package/dist/{check-7M7W4LPN.js → check-TGXIICEF.js} +48 -48
- package/dist/{checkBrowser-2YRVCAYB.js → checkBrowser-3N23I56J.js} +36 -36
- package/dist/{chunk-A72OAGNB.js → chunk-2HWB4TCI.js} +1 -1
- package/dist/chunk-3WD4JNMU.js +3795 -0
- package/dist/{chunk-XOJDBRNF.js → chunk-4S4VUXW3.js} +1 -1
- package/dist/{chunk-JBQJKC23.js → chunk-62RUQJ5J.js} +1 -1
- package/dist/{chunk-A6S35NYA.js → chunk-7IEGPJ4P.js} +1 -1
- package/dist/{chunk-BAKPN2D2.js → chunk-AHBYQRGI.js} +1 -1
- package/dist/{chunk-H7B6JSHI.js → chunk-AY2BONTF.js} +1 -1
- package/dist/{chunk-A4Q7W4LV.js → chunk-B3XLIBFL.js} +4 -2
- package/dist/{chunk-ZVZSFDW3.js → chunk-BNYRD7PQ.js} +2 -2
- package/dist/{chunk-DYWSCPCR.js → chunk-CNPJHUOX.js} +17 -17
- package/dist/{chunk-B45OFFOQ.js → chunk-CT6ZQRLD.js} +6 -8
- package/dist/chunk-CYFFYK2F.js +56 -0
- package/dist/{chunk-KVGDFUVO.js → chunk-CZQLCBWY.js} +26 -13
- package/dist/{chunk-6IIGT7BX.js → chunk-DNZMBQTH.js} +1 -1
- package/dist/{chunk-SYUGVPYH.js → chunk-DUUFDLC4.js} +1 -1
- package/dist/{chunk-3YUFN37G.js → chunk-GESJSXFH.js} +1 -1
- package/dist/chunk-HU2SPFNG.js +103 -0
- package/dist/{chunk-4OA4LDTU.js → chunk-IYLHJV34.js} +1 -1
- package/dist/{chunk-KBB4RG6F.js → chunk-JZIEZCQM.js} +9 -2
- package/dist/{chunk-XVIYZU3D.js → chunk-K35E45SI.js} +1 -1
- package/dist/{chunk-EGO6Z24R.js → chunk-K44HCHZN.js} +3 -3
- package/dist/{chunk-4YVMMRHR.js → chunk-K4RIT6PX.js} +2 -2
- package/dist/chunk-KGPLIH7B.js +127 -0
- package/dist/{chunk-B4P5VDFQ.js → chunk-KMAAOHLO.js} +1 -1
- package/dist/{chunk-MOL32UKR.js → chunk-KMJLHHBF.js} +1 -1
- package/dist/{chunk-3HSWLZ6S.js → chunk-KQHJKJ3V.js} +1 -1
- package/dist/{chunk-2IDHEEAN.js → chunk-KUTT3JXL.js} +88 -28
- package/dist/{chunk-3BETQ4XI.js → chunk-L274XRWA.js} +81 -8
- package/dist/{chunk-3PPO64IB.js → chunk-LACFOFWX.js} +10 -10
- package/dist/chunk-LCILS4AF.js +329 -0
- package/dist/{chunk-6BSIQJPW.js → chunk-LTJDUBSQ.js} +1 -1
- package/dist/{chunk-66SAATRI.js → chunk-M5B42RL5.js} +9 -9
- package/dist/{chunk-6WD636E5.js → chunk-MI6U3OIN.js} +2 -2
- package/dist/{chunk-YCGU3UNU.js → chunk-MXB6CWVH.js} +1 -1
- package/dist/{chunk-Z5C4LEAD.js → chunk-NKM53WMI.js} +11 -11
- package/dist/{chunk-QTTDKWSM.js → chunk-OMBSUO4T.js} +2 -2
- package/dist/{chunk-AL2YEVOT.js → chunk-P7NTODQE.js} +3 -3
- package/dist/{chunk-BHVFTYSI.js → chunk-PO2SDVQA.js} +4 -1
- package/dist/{chunk-DDNS2674.js → chunk-PR7QQBSC.js} +1 -1
- package/dist/{chunk-FDL4HV44.js → chunk-Q2Y5OZCY.js} +2 -2
- package/dist/{chunk-P6HELLPU.js → chunk-QIJLIULK.js} +2 -2
- package/dist/{chunk-5OKZLMQK.js → chunk-RMIFSBRV.js} +1 -1
- package/dist/{chunk-AFIATIKS.js → chunk-SFUBSJFP.js} +1 -1
- package/dist/{chunk-LE7T4ML7.js → chunk-SP6XL3NP.js} +1 -1
- package/dist/{chunk-SEABQTBP.js → chunk-TPIG7ZBX.js} +9 -9
- package/dist/{chunk-POKK6XXU.js → chunk-U7SASZC5.js} +15 -15
- package/dist/{chunk-JF5L5SQ6.js → chunk-VC7JBNPS.js} +72 -107
- package/dist/{chunk-N53FLAMZ.js → chunk-VGCEMOQA.js} +10 -10
- package/dist/{normalize-U3SL5VG3.js → chunk-VHZ6DL3M.js} +3 -3
- package/dist/chunk-VX4AL2FQ.js +26 -0
- package/dist/{chunk-3BYMCR4O.js → chunk-VXM4BH23.js} +23 -12
- package/dist/{chunk-ZLL72U3I.js → chunk-WX7VCRM7.js} +2 -2
- package/dist/{chunk-KPJMBC4K.js → chunk-XHBX7QN6.js} +4 -4
- package/dist/{chunk-BYSBRF24.js → chunk-XPQSL5VS.js} +5 -120
- package/dist/{chunk-55RZG5SQ.js → chunk-Y475GD4L.js} +4 -4
- package/dist/{chunk-ZQXNL5DL.js → chunk-YDRX42P3.js} +6 -6
- package/dist/{chunk-4SFGME7K.js → chunk-YJDB4FLT.js} +1 -1
- package/dist/{chunk-QATWIE4K.js → chunk-YU2QRNWN.js} +2 -2
- package/dist/{chunk-BPUFVVSH.js → chunk-ZK3BQXHC.js} +1 -1
- package/dist/{chunk-QHRPB2JQ.js → chunk-ZKDKFJCK.js} +13 -13
- package/dist/{clean-3RY3Y2GX.js → clean-6QP7VAV4.js} +32 -31
- package/dist/cli.js +55 -55
- package/dist/{cloud-MLPBFCVE.js → cloud-5TME5ROM.js} +4 -4
- package/dist/{cloudrun-NQF5KFQI.js → cloudrun-F5VVCVF5.js} +6 -6
- package/dist/{compare-6EZX2754.js → compare-XPY2EXX6.js} +35 -35
- package/dist/{compiler-ACCPOZMQ.js → compiler-NPD3MYMO.js} +2 -2
- package/dist/{component-F5PQHP6A.js → component-OPVL3PUX.js} +4 -4
- package/dist/{compositions-AUHWSI2H.js → compositions-WSEOI454.js} +19 -19
- package/dist/{delete-VUF4SHHJ.js → delete-SLMH57VH.js} +11 -11
- package/dist/{dist-GPDOV3IQ.js → dist-CUIR3GFX.js} +2 -2
- package/dist/{doctor-3XHCA5JM.js → doctor-QZW3EKIH.js} +20 -19
- package/dist/{events-FKOIB3R3.js → events-6C3ZG7LS.js} +8 -8
- package/dist/{events-TIU72LZM.js → events-FIFWFRGC.js} +6 -6
- package/dist/{feedback-V6VATYBE.js → feedback-VKXM7YJ5.js} +24 -24
- package/dist/{ffmpeg-5V4FP3R6.js → ffmpeg-TZB5WAYE.js} +3 -2
- package/dist/{figma-YBJM2VGE.js → figma-3UYNADNA.js} +3 -3
- package/dist/fontLocalizeCli.js +10 -10
- package/dist/{get-3YVCGZBX.js → get-VH7VMRVX.js} +11 -11
- package/dist/{gpuPolicy-ZOUG66M7.js → gpuPolicy-M2JZGGVW.js} +5 -5
- package/dist/{grade-compare-MYXIRKQI.js → grade-compare-OSC2YQWN.js} +40 -39
- package/dist/{help-WFZ2SUUR.js → help-DCBFEZPT.js} +3 -3
- package/dist/{history-HWPRJFR5.js → history-XYJMQE26.js} +15 -15
- package/dist/hyperframe-runtime.js +62 -62
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +62 -62
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-WJDTQ4OZ.js → info-YEHGENAH.js} +17 -17
- package/dist/{init-EXHDN7RO.js → init-64SML7PY.js} +52 -51
- package/dist/{inspect-EAOLZOMQ.js → inspect-GFOQKRJI.js} +32 -32
- package/dist/{installer-LZ4X5TZZ.js → installer-Q4MMZKLA.js} +4 -4
- package/dist/{keyframes-FSZYNEDN.js → keyframes-ORYFWKBZ.js} +16 -16
- package/dist/{lambda-3GAKHMC3.js → lambda-DRMOJGTC.js} +8 -8
- package/dist/{layout-M2TQ2CIX.js → layout-ZEQBE6UQ.js} +32 -32
- package/dist/{lint-7C5UPTNQ.js → lint-67KGFY63.js} +19 -19
- package/dist/{list-GU5KBZ73.js → list-T6OU5ARJ.js} +11 -11
- package/dist/{login-ZL2NYBIZ.js → login-2PXIGDP7.js} +9 -9
- package/dist/{logout-B4KS4A7S.js → logout-DKJANASY.js} +3 -3
- package/dist/{manager-5ORDVWJB.js → manager-ES2UFT4X.js} +6 -4
- package/dist/{manager-BPSR6D3V.js → manager-GWU5J6RJ.js} +3 -2
- package/dist/{media-treatment-QC3TAHVU.js → media-treatment-NAAHID6M.js} +27 -26
- package/dist/{models-A54I4QR5.js → models-P6XB6RWK.js} +19 -17
- package/dist/{motionShot-ZXPK562F.js → motionShot-7MHRIV6V.js} +13 -13
- package/dist/normalize-4UDISLPL.js +24 -0
- package/dist/{normalize-audio-CAP3DAE6.js → normalize-audio-LWNFYR2F.js} +15 -15
- package/dist/{open-GUSBNMDB.js → open-DAP5C7UD.js} +13 -13
- package/dist/{parakeetRunner-GCCH72CO.js → parakeetRunner-3ZVFPOD4.js} +17 -27
- package/dist/{pipeline-SCJ2MWYH.js → pipeline-V4YJCPUX.js} +9 -9
- package/dist/{play-FP2QLMGM.js → play-UDCESJO3.js} +35 -35
- package/dist/{preflight-ONF5AJNO.js → preflight-JOD4OXGC.js} +5 -4
- package/dist/{present-H5SA4APW.js → present-DXTHBH3F.js} +26 -26
- package/dist/{preview-ATPVKA6K.js → preview-YHXKRXKB.js} +39 -37
- package/dist/{producer-VBYUC27R.js → producer-343ENLAM.js} +1 -1
- package/dist/{projectConfig-SBRMQZGG.js → projectConfig-YXKU3CTB.js} +6 -6
- package/dist/{publication-5BQICRZO.js → publication-ODXP3JI7.js} +2 -2
- package/dist/{publish-XDUZA3E3.js → publish-UEFBFGV3.js} +22 -22
- package/dist/{refresh-PVHBEABE.js → refresh-MGCVWX56.js} +3 -3
- package/dist/{remove-background-GA6F7JZW.js → remove-background-FMV6IDOH.js} +38 -34
- package/dist/{render-XCYXFZTL.js → render-N7QGX6RJ.js} +30 -30
- package/dist/{render-PCFO45RK.js → render-SYC4RPGT.js} +6 -6
- package/dist/{render-KUVZFNQD.js → render-ZTXNPRGF.js} +61 -60
- package/dist/{render-batch-7R2NRNVJ.js → render-batch-SZRPCRUJ.js} +6 -6
- package/dist/renderSetupWorker.js +4 -3
- package/dist/{resolver-C4FPX72I.js → resolver-7MYXNEAX.js} +4 -4
- package/dist/{sherpa-IQY52XU6.js → sherpa-M4Z2Q5Y2.js} +15 -14
- package/dist/sherpaWorker.js +3 -1
- package/dist/{skills-JSSAEKUW.js → skills-NEHNSHZK.js} +15 -15
- package/dist/{skillsUpdateCheck-XE5E2K2F.js → skillsUpdateCheck-O77QR72A.js} +3 -3
- package/dist/{snapshot-QMQOE2DD.js → snapshot-GDVXFBVY.js} +54 -53
- package/dist/{src-R55QLGWI.js → src-PTIV7IVV.js} +6 -6
- package/dist/{src-2GMPFYHL.js → src-VMTHSARJ.js} +6 -4
- package/dist/{staticProjectServer-YH2RHYKW.js → staticProjectServer-3D2NXQ6W.js} +14 -14
- package/dist/{status-PTKNQD2E.js → status-NBRMGL7D.js} +5 -5
- package/dist/studio/assets/{hyperframes-player-_eMxRXF_.js → hyperframes-player-C-2YwYre.js} +1 -1
- package/dist/studio/assets/{index-bXzd7tvF.js → index-ByJU5J6n.js} +115 -115
- package/dist/studio/assets/{index-CEq9KmY2.js → index-BybGk67U.js} +1 -1
- package/dist/studio/assets/{index-6okhHdnH.js → index-Cfs2r3fz.js} +1 -1
- package/dist/studio/assets/{index-CVd4O6eH.css → index-DkQKsFxx.css} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-T2TS2CHL.js → studio-api-XIBDLRHB.js} +7 -7
- package/dist/{studioServer-Q4MT44LT.js → studioServer-QIQK47UN.js} +70 -69
- package/dist/{synthesize-UCI4X5O7.js → synthesize-22B7L5GX.js} +6 -6
- package/dist/{telemetry-V5JYZDS4.js → telemetry-565KDZUW.js} +8 -8
- package/dist/{timeline-KTCTOKF5.js → timeline-E6XB7I6W.js} +24 -24
- package/dist/{tokens-ZHREZPK6.js → tokens-3ZAJENSE.js} +3 -3
- package/dist/transcribe-WODP3T77.js +332 -0
- package/dist/{transcribe-CRAV4FU3.js → transcribe-XWQQCCBG.js} +13 -12
- package/dist/{tts-B6AHFQEO.js → tts-QSAQZVEZ.js} +3 -3
- package/dist/{updateCheck-E7RMSK3E.js → updateCheck-QPYU4GRL.js} +2 -2
- package/dist/{upgrade-27PFTDCV.js → upgrade-2FJ5ZEN6.js} +5 -5
- package/dist/{urlDownloader-EAF6PLUP.js → urlDownloader-352AY25I.js} +4 -4
- package/dist/{validate-OKNFDBMG.js → validate-SP2VGNEI.js} +25 -25
- package/dist/{video-IEVS4FIH.js → video-RVNPFEA6.js} +8 -8
- package/package.json +8 -1
- package/dist/chunk-6IHWCZ3W.js +0 -54
- package/dist/chunk-SQLK7SJL.js +0 -88
- package/dist/chunk-Z6FLHIDV.js +0 -3795
- package/dist/manager-RFZNG5YT.js +0 -30
- package/dist/renderCancellation-NIXEWRAO.js +0 -43
- package/dist/transcribe-4QDEWCE6.js +0 -466
- package/dist/{chunk-DKSDVDXG.js → chunk-NAMGMP3R.js} +3 -3
- package/dist/{policies-4FEXMXPK.js → policies-DCSIM4AB.js} +3 -3
- package/dist/{screenshotCapture-3JXXUZND.js → screenshotCapture-TEUIWXWN.js} +3 -3
- package/dist/{telemetry-W5AKPI4R.js → telemetry-CQYHCCPL.js} +3 -3
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveCaptureBrowserGpuMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QIJLIULK.js";
|
|
10
10
|
import {
|
|
11
11
|
requestCliExit
|
|
12
12
|
} from "./chunk-PBN6GBJE.js";
|
|
@@ -5,9 +5,11 @@ 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
|
-
runRenderSetupWorker
|
|
8
|
+
runRenderSetupWorker
|
|
9
|
+
} from "./chunk-XPQSL5VS.js";
|
|
10
|
+
import {
|
|
9
11
|
terminateProcessTree
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KGPLIH7B.js";
|
|
11
13
|
|
|
12
14
|
// src/utils/orphanCleanup.ts
|
|
13
15
|
import { execFileSync } from "child_process";
|
|
@@ -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-NKM53WMI.js";
|
|
10
10
|
import {
|
|
11
11
|
injectTagsAtHeadStart
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3WD4JNMU.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/compositionServer.ts
|
|
15
15
|
import { createHash } from "crypto";
|
|
@@ -4,22 +4,22 @@ 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-AFIATIKS.js";
|
|
10
7
|
import {
|
|
11
8
|
installPageFunctionGuard,
|
|
12
9
|
resolveCliChromeGpuMode,
|
|
13
10
|
seekCompositionTimeline,
|
|
14
11
|
waitForRuntimeReady
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TPIG7ZBX.js";
|
|
16
13
|
import {
|
|
17
14
|
resolveCompositionViewportFromHtml
|
|
18
15
|
} from "./chunk-FH7WODJH.js";
|
|
19
16
|
import {
|
|
20
17
|
launchManagedBrowser,
|
|
21
18
|
resolveManagedGpuMode
|
|
22
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4S4VUXW3.js";
|
|
20
|
+
import {
|
|
21
|
+
resolveProject
|
|
22
|
+
} from "./chunk-SFUBSJFP.js";
|
|
23
23
|
import {
|
|
24
24
|
defineCommand
|
|
25
25
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -28,18 +28,18 @@ import {
|
|
|
28
28
|
setCommandExitCode
|
|
29
29
|
} from "./chunk-PBN6GBJE.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
32
|
-
} from "./chunk-
|
|
31
|
+
c
|
|
32
|
+
} from "./chunk-ZTZA4UWZ.js";
|
|
33
33
|
import {
|
|
34
34
|
printDeprecationNotice,
|
|
35
35
|
withMeta
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GESJSXFH.js";
|
|
37
|
+
import {
|
|
38
|
+
decodeWellFormedEscapes
|
|
39
|
+
} from "./chunk-BSQ7XANM.js";
|
|
37
40
|
import {
|
|
38
41
|
normalizeErrorMessage
|
|
39
42
|
} from "./chunk-KNU5COPB.js";
|
|
40
|
-
import {
|
|
41
|
-
c
|
|
42
|
-
} from "./chunk-ZTZA4UWZ.js";
|
|
43
43
|
|
|
44
44
|
// src/commands/validate.ts
|
|
45
45
|
import { existsSync, mkdtempSync, readFileSync, rmSync } from "fs";
|
|
@@ -228,7 +228,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
228
228
|
async function localizeRemoteAssets(html) {
|
|
229
229
|
let dir;
|
|
230
230
|
try {
|
|
231
|
-
const { loadProducer } = await import("./producer-
|
|
231
|
+
const { loadProducer } = await import("./producer-343ENLAM.js");
|
|
232
232
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
233
233
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
234
234
|
const assetDir = dir;
|
|
@@ -249,9 +249,9 @@ async function localizeRemoteAssets(html) {
|
|
|
249
249
|
}
|
|
250
250
|
async function validateInBrowser(project, opts) {
|
|
251
251
|
const projectDir = project.dir;
|
|
252
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
253
|
-
const { ensureBrowser } = await import("./manager-
|
|
254
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
252
|
+
const { bundleToSingleHtml } = await import("./compiler-NPD3MYMO.js");
|
|
253
|
+
const { ensureBrowser } = await import("./manager-GWU5J6RJ.js");
|
|
254
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-3D2NXQ6W.js");
|
|
255
255
|
const { lintProject } = await import("./lintProject-SSEXWCH6.js");
|
|
256
256
|
const lintResult = await lintProject(projectDir);
|
|
257
257
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
@@ -273,9 +273,9 @@ async function validateInBrowser(project, opts) {
|
|
|
273
273
|
try {
|
|
274
274
|
const browser = await ensureBrowser();
|
|
275
275
|
const puppeteer = await import("puppeteer-core");
|
|
276
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
276
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-VMTHSARJ.js");
|
|
277
277
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
278
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-
|
|
278
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-M2JZGGVW.js");
|
|
279
279
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
280
280
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
281
281
|
const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|
|
@@ -18,15 +18,13 @@ import {
|
|
|
18
18
|
sweepStaleStaging
|
|
19
19
|
} from "./chunk-3DKN5WKL.js";
|
|
20
20
|
import {
|
|
21
|
+
emitWords,
|
|
21
22
|
getPreparedWavDurationSeconds,
|
|
22
23
|
prepareWav
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
emitWords
|
|
26
|
-
} from "./chunk-6IHWCZ3W.js";
|
|
24
|
+
} from "./chunk-KUTT3JXL.js";
|
|
27
25
|
import {
|
|
28
26
|
stoppedByCancelSignal
|
|
29
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-P7NTODQE.js";
|
|
30
28
|
import {
|
|
31
29
|
PARAKEET_MODEL_LABEL,
|
|
32
30
|
SHERPA_ERROR_PREFIX,
|
|
@@ -34,7 +32,7 @@ import {
|
|
|
34
32
|
SHERPA_WINDOW_PREFIX,
|
|
35
33
|
mergeWindowsToWords,
|
|
36
34
|
writeParakeetTranscript
|
|
37
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-JZIEZCQM.js";
|
|
38
36
|
|
|
39
37
|
// src/whisper/sherpa.ts
|
|
40
38
|
import { execFile, spawn } from "child_process";
|
|
@@ -332,9 +330,9 @@ function decode(wavPath, runtimePath, signal, onWindow) {
|
|
|
332
330
|
}
|
|
333
331
|
});
|
|
334
332
|
}
|
|
335
|
-
function prepareSherpaWav(inputPath, onProgress) {
|
|
333
|
+
async function prepareSherpaWav(inputPath, onProgress, signal) {
|
|
336
334
|
try {
|
|
337
|
-
return prepareWav(inputPath, onProgress);
|
|
335
|
+
return await prepareWav(inputPath, onProgress, signal);
|
|
338
336
|
} catch (err) {
|
|
339
337
|
if (err.cancelled) {
|
|
340
338
|
throw new DecodeCancelled("Transcription cancelled");
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
import {
|
|
8
|
+
DEVICES,
|
|
9
|
+
QUALITIES,
|
|
10
|
+
isDevice,
|
|
11
|
+
isQuality,
|
|
12
|
+
render
|
|
13
|
+
} from "./chunk-L274XRWA.js";
|
|
14
|
+
|
|
15
|
+
// src/api/removeBackground.ts
|
|
16
|
+
import { resolve } from "path";
|
|
17
|
+
var RemoveBackgroundError = class extends Error {
|
|
18
|
+
code;
|
|
19
|
+
constructor(code, message, options = {}) {
|
|
20
|
+
super(message, options.cause === void 0 ? void 0 : { cause: options.cause });
|
|
21
|
+
this.name = "RemoveBackgroundError";
|
|
22
|
+
this.code = code;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
async function removeBackground(options) {
|
|
26
|
+
const { device, quality } = options;
|
|
27
|
+
if (device !== void 0 && !isDevice(device)) {
|
|
28
|
+
const valid = DEVICES.join(", ");
|
|
29
|
+
throw new RemoveBackgroundError("invalid_option", `Invalid device '${device}'. Use: ${valid}.`);
|
|
30
|
+
}
|
|
31
|
+
if (quality !== void 0 && !isQuality(quality)) {
|
|
32
|
+
const valid = QUALITIES.join(", ");
|
|
33
|
+
throw new RemoveBackgroundError(
|
|
34
|
+
"invalid_option",
|
|
35
|
+
`Invalid quality '${quality}'. Use: ${valid}.`
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
return await render({
|
|
40
|
+
inputPath: resolve(options.input),
|
|
41
|
+
outputPath: resolve(options.output),
|
|
42
|
+
backgroundOutputPath: options.backgroundOutput ? resolve(options.backgroundOutput) : void 0,
|
|
43
|
+
device,
|
|
44
|
+
quality,
|
|
45
|
+
onProgress: options.onProgress
|
|
46
|
+
});
|
|
47
|
+
} catch (err) {
|
|
48
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
49
|
+
throw new RemoveBackgroundError("failed", message, { cause: err });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export {
|
|
54
|
+
RemoveBackgroundError,
|
|
55
|
+
removeBackground
|
|
56
|
+
};
|
|
@@ -6,10 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
downloadFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PO2SDVQA.js";
|
|
10
10
|
import {
|
|
11
11
|
findFFmpeg
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DUUFDLC4.js";
|
|
13
|
+
import {
|
|
14
|
+
stoppableExecFile
|
|
15
|
+
} from "./chunk-HU2SPFNG.js";
|
|
13
16
|
|
|
14
17
|
// src/whisper/manager.ts
|
|
15
18
|
import { execFileSync } from "child_process";
|
|
@@ -74,7 +77,7 @@ function findBuiltBinary() {
|
|
|
74
77
|
}
|
|
75
78
|
return void 0;
|
|
76
79
|
}
|
|
77
|
-
function buildFromSource(onProgress) {
|
|
80
|
+
async function buildFromSource(onProgress, signal) {
|
|
78
81
|
if (existsSync(BUILD_DIR) && !findBuiltBinary()) {
|
|
79
82
|
rmSync(BUILD_DIR, { recursive: true, force: true });
|
|
80
83
|
}
|
|
@@ -83,23 +86,26 @@ function buildFromSource(onProgress) {
|
|
|
83
86
|
mkdirSync(join(homedir(), ".cache", "hyperframes", "whisper"), {
|
|
84
87
|
recursive: true
|
|
85
88
|
});
|
|
86
|
-
|
|
89
|
+
await stoppableExecFile("git", ["clone", "--depth", "1", WHISPER_REPO, BUILD_DIR], {
|
|
87
90
|
stdio: "ignore",
|
|
88
91
|
timeout: 6e4,
|
|
89
|
-
env: { ...process.env, GIT_TERMINAL_PROMPT: "0" }
|
|
92
|
+
env: { ...process.env, GIT_TERMINAL_PROMPT: "0" },
|
|
93
|
+
signal
|
|
90
94
|
});
|
|
91
95
|
}
|
|
92
96
|
onProgress?.("Building whisper.cpp (this may take a minute)...");
|
|
93
97
|
try {
|
|
94
|
-
|
|
98
|
+
await stoppableExecFile("cmake", ["-B", "build"], {
|
|
95
99
|
cwd: BUILD_DIR,
|
|
96
100
|
stdio: ["pipe", "pipe", "pipe"],
|
|
97
|
-
timeout: 12e4
|
|
101
|
+
timeout: 12e4,
|
|
102
|
+
signal
|
|
98
103
|
});
|
|
99
|
-
|
|
104
|
+
await stoppableExecFile("cmake", ["--build", "build", "--config", "Release", "-j"], {
|
|
100
105
|
cwd: BUILD_DIR,
|
|
101
106
|
stdio: ["pipe", "pipe", "pipe"],
|
|
102
|
-
timeout: 3e5
|
|
107
|
+
timeout: 3e5,
|
|
108
|
+
signal
|
|
103
109
|
});
|
|
104
110
|
} catch (err) {
|
|
105
111
|
let detail = "";
|
|
@@ -150,6 +156,7 @@ function hasCmake() {
|
|
|
150
156
|
return whichBinary("cmake") !== void 0;
|
|
151
157
|
}
|
|
152
158
|
async function ensureWhisper(options) {
|
|
159
|
+
const signal = options?.signal;
|
|
153
160
|
const existing = findWhisper();
|
|
154
161
|
if (existing) return existing;
|
|
155
162
|
if (options?.installRuntime === false) {
|
|
@@ -160,20 +167,23 @@ async function ensureWhisper(options) {
|
|
|
160
167
|
if (platform() === "darwin" && hasBrew()) {
|
|
161
168
|
options?.onProgress?.("Installing whisper-cpp via Homebrew...");
|
|
162
169
|
try {
|
|
163
|
-
|
|
170
|
+
await stoppableExecFile("brew", ["install", "whisper-cpp"], {
|
|
164
171
|
stdio: "ignore",
|
|
165
|
-
timeout: 3e5
|
|
172
|
+
timeout: 3e5,
|
|
173
|
+
signal
|
|
166
174
|
});
|
|
167
175
|
const installed = findFromSystem();
|
|
168
176
|
if (installed) return { ...installed, source: "brew" };
|
|
169
177
|
} catch {
|
|
170
178
|
}
|
|
179
|
+
signal?.throwIfAborted();
|
|
171
180
|
}
|
|
172
181
|
if (hasGit() && hasCmake()) {
|
|
173
182
|
try {
|
|
174
|
-
return buildFromSource(options?.onProgress);
|
|
183
|
+
return await buildFromSource(options?.onProgress, signal);
|
|
175
184
|
} catch {
|
|
176
185
|
}
|
|
186
|
+
signal?.throwIfAborted();
|
|
177
187
|
}
|
|
178
188
|
throw new WhisperUnavailableError(`whisper-cpp not found. Install: ${getInstallInstructions()}`);
|
|
179
189
|
}
|
|
@@ -182,7 +192,10 @@ async function ensureModel(model = DEFAULT_MODEL, options) {
|
|
|
182
192
|
if (existsSync(modelPath)) return modelPath;
|
|
183
193
|
mkdirSync(MODELS_DIR, { recursive: true });
|
|
184
194
|
options?.onProgress?.(`Downloading model ${model}...`);
|
|
185
|
-
await downloadFile(getModelUrl(model), modelPath, {
|
|
195
|
+
await downloadFile(getModelUrl(model), modelPath, {
|
|
196
|
+
signal: options?.signal,
|
|
197
|
+
onProgress: options?.onDownloadProgress
|
|
198
|
+
});
|
|
186
199
|
if (!existsSync(modelPath)) {
|
|
187
200
|
throw new Error(`Model download failed: ${model}`);
|
|
188
201
|
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
import {
|
|
8
|
+
terminateProcessTree
|
|
9
|
+
} from "./chunk-KGPLIH7B.js";
|
|
10
|
+
|
|
11
|
+
// src/utils/stoppableExecFile.ts
|
|
12
|
+
import { execFileSync, spawn } from "child_process";
|
|
13
|
+
import * as util from "util";
|
|
14
|
+
function syscallError(code, file, args) {
|
|
15
|
+
const known = util.getSystemErrorMap?.() ?? /* @__PURE__ */ new Map();
|
|
16
|
+
const errno = [...known].find(([, [name]]) => name === code)?.[0];
|
|
17
|
+
return Object.assign(new Error(`spawnSync ${file} ${code}`), {
|
|
18
|
+
errno,
|
|
19
|
+
code,
|
|
20
|
+
syscall: `spawnSync ${file}`,
|
|
21
|
+
path: file,
|
|
22
|
+
spawnargs: args
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
async function stoppableExecFile(file, args, options) {
|
|
26
|
+
const { signal, ...syncOptions } = options;
|
|
27
|
+
if (!signal) {
|
|
28
|
+
execFileSync(file, args, syncOptions);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
signal.throwIfAborted();
|
|
32
|
+
const maxBuffer = options.maxBuffer ?? 1024 * 1024;
|
|
33
|
+
await new Promise((resolve, reject) => {
|
|
34
|
+
const child = spawn(file, args, { cwd: options.cwd, env: options.env, stdio: options.stdio });
|
|
35
|
+
let failure;
|
|
36
|
+
const stopWith = (code) => {
|
|
37
|
+
failure ??= code;
|
|
38
|
+
child.kill("SIGTERM");
|
|
39
|
+
};
|
|
40
|
+
const collect = (stream) => {
|
|
41
|
+
if (!stream) return null;
|
|
42
|
+
const chunks = [];
|
|
43
|
+
let size = 0;
|
|
44
|
+
stream.on("data", (chunk) => {
|
|
45
|
+
chunks.push(chunk);
|
|
46
|
+
size += chunk.length;
|
|
47
|
+
if (size > maxBuffer) stopWith("ENOBUFS");
|
|
48
|
+
});
|
|
49
|
+
return chunks;
|
|
50
|
+
};
|
|
51
|
+
const stdout = collect(child.stdout);
|
|
52
|
+
const stderr = collect(child.stderr);
|
|
53
|
+
child.stdin?.end();
|
|
54
|
+
const timer = setTimeout(() => stopWith("ETIMEDOUT"), options.timeout);
|
|
55
|
+
let stopping;
|
|
56
|
+
const onAbort = () => {
|
|
57
|
+
if (child.pid === void 0) return;
|
|
58
|
+
stopping ??= terminateProcessTree(child.pid, { child }).catch(() => void 0);
|
|
59
|
+
};
|
|
60
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
61
|
+
const settle = () => {
|
|
62
|
+
clearTimeout(timer);
|
|
63
|
+
signal.removeEventListener("abort", onAbort);
|
|
64
|
+
};
|
|
65
|
+
child.on("error", (err) => {
|
|
66
|
+
if (child.pid !== void 0) return;
|
|
67
|
+
settle();
|
|
68
|
+
const spawnError = syscallError(err.code ?? "UNKNOWN", file, args);
|
|
69
|
+
const result = { status: null, signal: null, output: null, pid: 0 };
|
|
70
|
+
reject(Object.assign(spawnError, { error: spawnError }, result));
|
|
71
|
+
});
|
|
72
|
+
child.on("close", (status, exitSignal) => {
|
|
73
|
+
settle();
|
|
74
|
+
if (signal.aborted) {
|
|
75
|
+
void Promise.resolve(stopping).then(() => reject(signal.reason));
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const out = stdout && Buffer.concat(stdout);
|
|
79
|
+
const errText = stderr && Buffer.concat(stderr);
|
|
80
|
+
const result = {
|
|
81
|
+
status,
|
|
82
|
+
signal: exitSignal,
|
|
83
|
+
output: [null, out, errText],
|
|
84
|
+
pid: child.pid,
|
|
85
|
+
stdout: out,
|
|
86
|
+
stderr: errText
|
|
87
|
+
};
|
|
88
|
+
if (failure) {
|
|
89
|
+
const err = syscallError(failure, file, args);
|
|
90
|
+
return reject(Object.assign(err, { error: err }, result));
|
|
91
|
+
}
|
|
92
|
+
if (status === 0) return resolve();
|
|
93
|
+
const command = `Command failed: ${[file, ...args].join(" ")}`;
|
|
94
|
+
const message = errText?.length ? `${command}
|
|
95
|
+
${errText.toString()}` : command;
|
|
96
|
+
reject(Object.assign(new Error(message), result));
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export {
|
|
102
|
+
stoppableExecFile
|
|
103
|
+
};
|
|
@@ -7,6 +7,9 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
TRANSCRIPT_FILE
|
|
9
9
|
} from "./chunk-IR35BCLK.js";
|
|
10
|
+
import {
|
|
11
|
+
stoppableExecFile
|
|
12
|
+
} from "./chunk-HU2SPFNG.js";
|
|
10
13
|
|
|
11
14
|
// src/whisper/parakeet.ts
|
|
12
15
|
import { execFileSync } from "child_process";
|
|
@@ -163,7 +166,7 @@ function silenceCuts(samples, sampleRate, windowSeconds = 60) {
|
|
|
163
166
|
if (samples.length > 0) cuts.push(samples.length);
|
|
164
167
|
return cuts;
|
|
165
168
|
}
|
|
166
|
-
function transcribeWithParakeet(inputPath, dir, options) {
|
|
169
|
+
async function transcribeWithParakeet(inputPath, dir, options) {
|
|
167
170
|
const runner = findParakeet();
|
|
168
171
|
if (!runner) {
|
|
169
172
|
throw new Error(
|
|
@@ -188,7 +191,11 @@ function transcribeWithParakeet(inputPath, dir, options) {
|
|
|
188
191
|
model: PARAKEET_MODEL_LABEL,
|
|
189
192
|
status: "started"
|
|
190
193
|
});
|
|
191
|
-
|
|
194
|
+
await stoppableExecFile(runner, argv, {
|
|
195
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
196
|
+
timeout: 18e5,
|
|
197
|
+
signal: options?.signal
|
|
198
|
+
});
|
|
192
199
|
const produced = join(workDir, `${basename(inputPath, extname(inputPath))}.json`);
|
|
193
200
|
if (!existsSync(produced)) throw new Error("Parakeet did not produce output.");
|
|
194
201
|
const result = writeParakeetTranscript(
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NKM53WMI.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-KMJLHHBF.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveAutoProxy
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SP6XL3NP.js";
|
|
25
25
|
import {
|
|
26
26
|
decodeWellFormedEscapes
|
|
27
27
|
} from "./chunk-BSQ7XANM.js";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
DEFAULT_VP9_CPU_USED,
|
|
9
9
|
isHttpUrl,
|
|
10
10
|
runFfmpeg
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VC7JBNPS.js";
|
|
12
12
|
import {
|
|
13
13
|
parseAnimatedGifMetadata
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AHBYQRGI.js";
|
|
15
15
|
import {
|
|
16
16
|
parseHTML
|
|
17
17
|
} from "./chunk-SDYDNHEE.js";
|