@xaidenlabs/uso 1.1.57 → 1.1.59

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.
@@ -9,4 +9,4 @@ cluster = "Localnet"
9
9
  wallet = "~/.config/solana/id.json"
10
10
 
11
11
  [scripts]
12
- test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
12
+ test = "npx ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaidenlabs/uso",
3
- "version": "1.1.57",
3
+ "version": "1.1.59",
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...`);
@@ -18,4 +18,4 @@ wallet = "~/.config/solana/id.json"
18
18
  startup_wait = 180000
19
19
 
20
20
  [scripts]
21
- test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
21
+ test = "npx ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"