@xaidenlabs/uso 1.1.57 → 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.57",
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...`);