@xaidenlabs/uso 1.1.55 → 1.1.57

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.55",
3
+ "version": "1.1.57",
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"
@@ -221,8 +221,15 @@ const validator = async (args = []) => {
221
221
  // --- STEALTH WSL MODE ---
222
222
  if (stealth.enabled) {
223
223
  const flags = Array.isArray(args) ? args : [];
224
+
225
+ // Unix sockets (admin.rpc) don't work on NTFS-mounted paths (/mnt/c/).
226
+ // Force ledger onto native Linux filesystem.
227
+ if (!flags.some(f => f.startsWith('--ledger'))) {
228
+ flags.push('--ledger', '/tmp/test-ledger');
229
+ }
230
+
224
231
  const cmdArgs = flags.join(' ');
225
- const fullCmd = cmdArgs ? `solana-test-validator ${cmdArgs}` : 'solana-test-validator';
232
+ const fullCmd = `solana-test-validator ${cmdArgs}`;
226
233
 
227
234
  log.header(`🚀 Starting Validator via Uso Engine...`);
228
235
  log.info(`🐧 Running: ${fullCmd}`);
@@ -231,7 +238,6 @@ const validator = async (args = []) => {
231
238
  const envSetup = 'source $HOME/.cargo/env 2>/dev/null; export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"';
232
239
  runWsl(`${envSetup} && ${fullCmd}`, {
233
240
  distro: stealth.distro,
234
- cwd: process.cwd(),
235
241
  execOpts: { async: false }
236
242
  });
237
243
  return;
@@ -12,7 +12,8 @@ const isStealthMode = () => {
12
12
  const configPath = path.join(os.homedir(), '.uso-config.json');
13
13
  if (!fs.existsSync(configPath)) return { enabled: false, distro: 'Ubuntu' };
14
14
 
15
- const config = JSON.parse(fs.readFileSync(configPath, 'utf8'));
15
+ const raw = fs.readFileSync(configPath, 'utf8').replace(/^\uFEFF/, '');
16
+ const config = JSON.parse(raw);
16
17
  return {
17
18
  enabled: config.mode === 'wsl',
18
19
  distro: config.distro || 'Ubuntu'