yaver-cli 1.99.236 → 1.99.238
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/package.json +1 -1
- package/src/postinstall.js +14 -0
package/package.json
CHANGED
package/src/postinstall.js
CHANGED
|
@@ -518,6 +518,20 @@ async function main() {
|
|
|
518
518
|
log(`Skipping vibe-preview bootstrap: ${error.message}`);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
+
|
|
522
|
+
// Free/offline voice stack — provision ffmpeg + whisper.cpp + a ggml
|
|
523
|
+
// model so `yaver voice test` / `voice listen` (provider=local) work out
|
|
524
|
+
// of the box with no API key and no cost. Best-effort; cloud STT
|
|
525
|
+
// (Deepgram/OpenAI) needs none of this. Opt out with
|
|
526
|
+
// YAVER_SKIP_POSTINSTALL_VOICE=1.
|
|
527
|
+
if (!envEnabled("YAVER_SKIP_POSTINSTALL_VOICE")) {
|
|
528
|
+
try {
|
|
529
|
+
await runAgentCommand(["voice", "deps", "--install", "--quiet"], { quiet: true });
|
|
530
|
+
log("Provisioned free voice stack (ffmpeg + whisper.cpp + model).");
|
|
531
|
+
} catch (error) {
|
|
532
|
+
log(`Skipping voice deps bootstrap: ${error.message}`);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
521
535
|
}
|
|
522
536
|
|
|
523
537
|
main()
|