()
| 88 | const WHISPER_REPO = "https://github.com/ggml-org/whisper.cpp.git"; |
| 89 | |
| 90 | function 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 | |
| 100 | function buildFromSource(onProgress?: (msg: string) => void): WhisperResult { |
| 101 | // Clean stale builds — if BUILD_DIR exists but has no binary, nuke and re-clone |
no outgoing calls
no test coverage detected