MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / findBuiltBinary

Function findBuiltBinary

packages/cli/src/whisper/manager.ts:90–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88const WHISPER_REPO = "https://github.com/ggml-org/whisper.cpp.git";
89
90function findBuiltBinary(): WhisperResult | undefined {
91 for (const p of [
92 join(BUILD_DIR, "build", "bin", "whisper-cli"),
93 join(BUILD_DIR, "build", "whisper-cli"),
94 ]) {
95 if (existsSync(p)) return { executablePath: p, source: "build" };
96 }
97 return undefined;
98}
99
100function buildFromSource(onProgress?: (msg: string) => void): WhisperResult {
101 // Clean stale builds — if BUILD_DIR exists but has no binary, nuke and re-clone

Callers 2

buildFromSourceFunction · 0.85
findWhisperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected