@xaidenlabs/uso 1.1.74 → 1.1.75

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.74",
3
+ "version": "1.1.75",
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"
@@ -7,7 +7,7 @@ const { log, spinner } = require('../utils/logger');
7
7
  const { ensureWalletInteractive, resolveSolanaKeygen } = require('../utils/wallet');
8
8
  const { getCargoBinPath } = require('../utils/paths');
9
9
  const { isStealthMode } = require('../utils/stealth');
10
- const { runWsl } = require('../utils/wsl-bridge');
10
+ const { runWsl, toWslPath } = require('../utils/wsl-bridge');
11
11
 
12
12
  const getSolanaBin = () => {
13
13
  if (shell.which('solana')) return 'solana';
@@ -134,17 +134,11 @@ const verify = async () => {
134
134
  let buildResult;
135
135
 
136
136
  if (stealth.enabled) {
137
- // Build inside WSL
138
- const wslTempDir = `/tmp/uso-verify-${Date.now()}`;
139
- const copyCmd = `mkdir -p ${wslTempDir} && cp -r /mnt/c/Users/*/AppData/Local/Temp/uso-verification-* ${wslTempDir}`;
140
-
141
- // Copy files to WSL
142
- runWsl(`mkdir -p ${wslTempDir} && cp -r "${tempDir.replace(/\\/g, '/')}" ${wslTempDir}/project`, {
143
- distro: stealth.distro
144
- });
137
+ // Convert Windows path to WSL path
138
+ const wslProjectPath = toWslPath(tempDir);
145
139
 
146
140
  // Run anchor build in WSL
147
- const buildCmd = `cd ${wslTempDir}/project && source $HOME/.cargo/env 2>/dev/null && anchor build`;
141
+ const buildCmd = `source $HOME/.cargo/env 2>/dev/null && cd "${wslProjectPath}" && anchor build`;
148
142
  buildResult = runWsl(buildCmd, {
149
143
  distro: stealth.distro,
150
144
  execOpts: { silent: false }