@xaidenlabs/uso 1.1.56 → 1.1.58

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.56",
3
+ "version": "1.1.58",
4
4
  "description": "Universal Solana Development Toolchain. Native or Stealth WSL Mode. Build, test, and deploy without the friction.",
5
5
  "bin": {
6
6
  "uso": "bin/index.js"
@@ -10,7 +10,10 @@ const runProxyCommand = async (command, args = [], binary = 'anchor') => {
10
10
  const stealth = isStealthMode();
11
11
 
12
12
  // --- STEALTH WSL MODE ---
13
- if (stealth.enabled) {
13
+ // Smart routing: prefer native binary if available (e.g. native Anchor on Windows
14
+ // connecting to WSL validator via localhost). Only WSL-route if native binary is missing.
15
+ const nativeAvailable = shell.which(binary);
16
+ if (stealth.enabled && !nativeAvailable) {
14
17
  const fullCommand = `${binary} ${command} ${args.join(' ')}`;
15
18
  log.header(`🚀 Running: ${fullCommand}`);
16
19
  log.info(`🐧 Routing through Uso Engine...`);
@@ -221,8 +224,15 @@ const validator = async (args = []) => {
221
224
  // --- STEALTH WSL MODE ---
222
225
  if (stealth.enabled) {
223
226
  const flags = Array.isArray(args) ? args : [];
227
+
228
+ // Unix sockets (admin.rpc) don't work on NTFS-mounted paths (/mnt/c/).
229
+ // Force ledger onto native Linux filesystem.
230
+ if (!flags.some(f => f.startsWith('--ledger'))) {
231
+ flags.push('--ledger', '/tmp/test-ledger');
232
+ }
233
+
224
234
  const cmdArgs = flags.join(' ');
225
- const fullCmd = cmdArgs ? `solana-test-validator ${cmdArgs}` : 'solana-test-validator';
235
+ const fullCmd = `solana-test-validator ${cmdArgs}`;
226
236
 
227
237
  log.header(`🚀 Starting Validator via Uso Engine...`);
228
238
  log.info(`🐧 Running: ${fullCmd}`);
@@ -231,7 +241,6 @@ const validator = async (args = []) => {
231
241
  const envSetup = 'source $HOME/.cargo/env 2>/dev/null; export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"';
232
242
  runWsl(`${envSetup} && ${fullCmd}`, {
233
243
  distro: stealth.distro,
234
- cwd: process.cwd(),
235
244
  execOpts: { async: false }
236
245
  });
237
246
  return;