@xaidenlabs/uso 1.1.44 → 1.1.45

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaidenlabs/uso",
3
- "version": "1.1.44",
3
+ "version": "1.1.45",
4
4
  "description": "Universal Solana Orchestrator - A one-command setup tool for Solana and Anchor development environments on Windows, macOS, and Linux.",
5
5
  "bin": {
6
6
  "uso": "bin/index.js"
@@ -4,6 +4,7 @@ const { isWslInstalled, runWsl, toWslPath } = require('../utils/wsl-bridge');
4
4
  const path = require('path');
5
5
  const fs = require('fs');
6
6
  const os = require('os');
7
+ const { spawnSync } = require('child_process');
7
8
 
8
9
  const installWsl = async () => {
9
10
  log.header("🐧 Configuring Stealth WSL Environment...");
@@ -20,13 +21,13 @@ const installWsl = async () => {
20
21
  // We target 'Ubuntu' as the standard distro.
21
22
  const checkDistro = shell.exec('wsl -l -v', { silent: true });
22
23
  if (!checkDistro.stdout.includes('Ubuntu')) {
23
- log.info("📦 Installing Ubuntu (This may prompt for Admin access)...");
24
+ log.info("📦 Installing Ubuntu (Please approve UAC prompt if asked)...");
25
+ log.warn("⏳ This may take a few minutes (Downloading ~500MB)...");
24
26
 
25
- // This command usually triggers a UAC prompt and a console window.
26
- // We can't fully hide the install process itself, but we can automate it.
27
- const install = shell.exec('wsl --install -d Ubuntu');
27
+ // Use spawnSync with inherit to let the user see the WSL download progress bar
28
+ const installCursor = spawnSync('wsl', ['--install', '-d', 'Ubuntu'], { stdio: 'inherit', shell: true });
28
29
 
29
- if (install.code !== 0) {
30
+ if (installCursor.status !== 0) {
30
31
  log.error("❌ Failed to install Ubuntu.");
31
32
  log.warn("👉 Try running manually: wsl --install -d Ubuntu");
32
33
  return false;