4runr-os 2.1.41 → 2.1.45

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/setup.js +15 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "4runr-os",
3
- "version": "2.1.41",
3
+ "version": "2.1.45",
4
4
  "type": "module",
5
5
  "description": "4Runr AI Agent OS - Interactive terminal for managing AI agents",
6
6
  "main": "dist/index.js",
package/scripts/setup.js CHANGED
@@ -303,8 +303,8 @@ if (isWindows && rustInstalled && rustNeedsGNU) {
303
303
  }
304
304
 
305
305
  try {
306
- execSync('rustup toolchain install stable-x86_64-pc-windows-gnu', { stdio: 'inherit' });
307
- execSync('rustup default stable-x86_64-pc-windows-gnu', { stdio: 'inherit' });
306
+ execSync('rustup toolchain install stable-x86_64-pc-windows-gnu', { stdio: 'pipe' });
307
+ execSync('rustup default stable-x86_64-pc-windows-gnu', { stdio: 'pipe' });
308
308
  console.log('✅ GNU toolchain installed and set as default');
309
309
  } catch (error) {
310
310
  console.warn('⚠️ Failed to install GNU toolchain automatically');
@@ -315,9 +315,10 @@ if (isWindows && rustInstalled && rustNeedsGNU) {
315
315
  }
316
316
  }
317
317
 
318
- // Check if 4runr-os is installed
319
- try {
320
- execSync('4r --version', { stdio: 'ignore' });
318
+ // Continue with rest of setup (outside Windows-specific block)
319
+ console.log('\n📦 Checking 4runr-os installation...');
320
+ try {
321
+ execSync('4r --version', { stdio: 'ignore' });
321
322
  console.log('✅ 4runr-os is installed');
322
323
  } catch {
323
324
  console.log('⚠️ 4runr-os not found in PATH');
@@ -376,8 +377,13 @@ if (isWindows && rustInstalled && rustNeedsGNU) {
376
377
  }
377
378
 
378
379
  // Run the setup
379
- runSetup().catch((error) => {
380
- console.error('\n❌ Setup failed:', error);
381
- process.exit(1);
382
- });
380
+ runSetup()
381
+ .then(() => {
382
+ // Setup completed successfully
383
+ process.exit(0);
384
+ })
385
+ .catch((error) => {
386
+ console.error('\n❌ Setup failed:', error);
387
+ process.exit(1);
388
+ });
383
389