yaver-cli 1.99.463 → 1.99.464

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/postinstall.js +17 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yaver-cli",
3
- "version": "1.99.463",
3
+ "version": "1.99.464",
4
4
  "mcpName": "io.github.yaver-io/yaver",
5
5
  "description": "Unified npm bootstrap for the Yaver agent, SDK injection, and local-first developer runtime",
6
6
  "bin": {
@@ -544,7 +544,11 @@ async function main() {
544
544
  log(`Skipping mobile bootstrap: ${error.message}`);
545
545
  }
546
546
 
547
- if (!envEnabled("YAVER_SKIP_POSTINSTALL_REMOTE_RUNTIME")) {
547
+ // Keep the default install focused on the complete React Native / Expo
548
+ // bundle-push path above. Native mirroring is a separate, multi-gigabyte
549
+ // capability (Android SDK + system image, Flutter, WebRTC helpers) and must
550
+ // follow explicit user intent instead of blocking a routine CLI update.
551
+ if (envEnabled("YAVER_POSTINSTALL_REMOTE_RUNTIME") && !envEnabled("YAVER_SKIP_POSTINSTALL_REMOTE_RUNTIME")) {
548
552
  try {
549
553
  await runAgentCommand(["install", "remote-runtime"], { quiet: true });
550
554
  log("Provisioned native remote-runtime host tools (Android everywhere; macOS host helpers where supported).");
@@ -557,7 +561,7 @@ async function main() {
557
561
  // the Go agent so remote lip reading has an invocable backend after npm
558
562
  // install. Checkpoints are deliberately not downloaded: their dataset/model
559
563
  // terms require the user to provide a licensed Auto-AVSR model explicitly.
560
- if (!envEnabled("YAVER_SKIP_POSTINSTALL_VSR")) {
564
+ if (envEnabled("YAVER_POSTINSTALL_VSR") && !envEnabled("YAVER_SKIP_POSTINSTALL_VSR")) {
561
565
  try {
562
566
  await runAgentCommand(["install", "vsr"], { quiet: true });
563
567
  log("Provisioned private remote lip-reading adapter and mouth-video libraries.");
@@ -577,11 +581,11 @@ async function main() {
577
581
 
578
582
  await installDesktopCompanion();
579
583
 
580
- // Vibe Preview tool stack best-effort provisioning so a fresh
581
- // global npm install gives the user a working chromium-based frame
582
- // capture + maestro-driven clip exercises out of the box. Opt out
583
- // with YAVER_SKIP_POSTINSTALL_VIBE_PREVIEW=1.
584
- if (!envEnabled("YAVER_SKIP_POSTINSTALL_VIBE_PREVIEW")) {
584
+ // Vibe Preview is an explicit native/browser lab choice. It includes an
585
+ // Android system image, Appium and Maestro; silently running it during
586
+ // `yaver update` exhausted disk and kept an already-downloaded agent stale
587
+ // under launchd on macOS (2026-09-10).
588
+ if (envEnabled("YAVER_POSTINSTALL_VIBE_PREVIEW") && !envEnabled("YAVER_SKIP_POSTINSTALL_VIBE_PREVIEW")) {
585
589
  try {
586
590
  await runAgentCommand(["install", "vibe-preview"], { quiet: true });
587
591
  log("Provisioned Vibe Preview tool stack (chromium + ffmpeg + maestro + appium + adb).");
@@ -590,9 +594,9 @@ async function main() {
590
594
  }
591
595
  }
592
596
 
593
- // Test runner stack Playwright web driver (chromium + ffmpeg come from
594
- // vibe-preview above). Opt out with YAVER_SKIP_POSTINSTALL_TESTKIT=1.
595
- if (!envEnabled("YAVER_SKIP_POSTINSTALL_TESTKIT")) {
597
+ // Optional browser test lab, also positive opt-in because it downloads a
598
+ // browser. `yaver test` can offer this route when the user chooses it.
599
+ if (envEnabled("YAVER_POSTINSTALL_TESTKIT") && !envEnabled("YAVER_SKIP_POSTINSTALL_TESTKIT")) {
596
600
  installTestRunnerTools();
597
601
  }
598
602
 
@@ -601,7 +605,7 @@ async function main() {
601
605
  // of the box with no API key and no cost. Best-effort; cloud STT
602
606
  // (Deepgram/OpenAI) needs none of this. Opt out with
603
607
  // YAVER_SKIP_POSTINSTALL_VOICE=1.
604
- if (!envEnabled("YAVER_SKIP_POSTINSTALL_VOICE")) {
608
+ if (envEnabled("YAVER_POSTINSTALL_VOICE") && !envEnabled("YAVER_SKIP_POSTINSTALL_VOICE")) {
605
609
  try {
606
610
  await runAgentCommand(["voice", "deps", "--install", "--quiet"], { quiet: true });
607
611
  log("Provisioned free voice stack (ffmpeg + whisper.cpp + model).");
@@ -609,6 +613,8 @@ async function main() {
609
613
  log(`Skipping voice deps bootstrap: ${error.message}`);
610
614
  }
611
615
  }
616
+
617
+ log("React Native / Expo core is ready. Native runtime, Vibe Preview, browser-test, voice, and VSR labs install on demand when selected.");
612
618
  }
613
619
 
614
620
  main()