fleetbo-cockpit-cli 1.0.224 → 1.0.225

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/cli.js +4 -6
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -411,7 +411,7 @@ if (command === 'alex') {
411
411
  process.stdout.write(`\x1b[2K\r${prefix} ${text}`);
412
412
  };
413
413
 
414
- process.stdout.write('\x1b[A\r' + ' '.repeat(50) + '\r');
414
+ console.log('');
415
415
 
416
416
  let totalOutputTokens = 0;
417
417
 
@@ -456,8 +456,6 @@ if (command === 'alex') {
456
456
  }
457
457
  totalOutputTokens += aiData3.outputTokensUsed || 0;
458
458
  logStep('[3/3]', '\x1b[32mConfiguration completed.\x1b[0m\n');
459
- } else {
460
- process.stdout.write(`\x1b[2K\r`);
461
459
  }
462
460
 
463
461
  if (aiData.thinking_process) {
@@ -469,7 +467,7 @@ if (command === 'alex') {
469
467
  if (typeof rawMsg === 'object') {
470
468
  rawMsg = rawMsg.message || rawMsg.text || "Module generated.";
471
469
  }
472
- console.log(`[ALEX_START]${rawMsg}[ALEX_END]`);
470
+ console.log(`\n[ALEX_START]${rawMsg}[ALEX_END]\n`);
473
471
  }
474
472
 
475
473
  if (aiData.status === 'success' && mergedModuleData && Object.keys(mergedModuleData).length > 0) {
@@ -531,14 +529,14 @@ if (command === 'alex') {
531
529
  console.log(`\x1b[31mnpm run fleetbo rm\x1b[0m \x1b[36m${moduleName}\x1b[0m`);
532
530
 
533
531
  if (totalOutputTokens > 0) {
534
- console.log(`\n\x1b[90m[Telemetry] Output tokens generated: ${totalOutputTokens} (Limit: 8192/step)\x1b[0m\n`);
532
+ console.log(`\x1b[90m[Telemetry] Output tokens generated: ${totalOutputTokens} (Limit: 8192/step)\x1b[0m\n`);
535
533
  }
536
534
 
537
535
  } else if (aiData.status === 'success' && (!mergedModuleData || Object.keys(mergedModuleData).length === 0)) {
538
536
  console.log('\x1b[31m[Error] Alex replied, but source code could not be extracted.\x1b[0m\n');
539
537
  }
540
538
  } catch (error) {
541
- process.stdout.write('\r' + ' '.repeat(50) + '\r');
539
+ process.stdout.write('\x1b[2K\r');
542
540
  console.error('\x1b[31m[Alex Error]\x1b[0m ' + (error.response?.data?.message || error.message));
543
541
  }
544
542
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbo-cockpit-cli",
3
- "version": "1.0.224",
3
+ "version": "1.0.225",
4
4
  "description": "Fleetbo CLI - Build native mobile apps with React",
5
5
  "author": "Fleetbo",
6
6
  "license": "MIT",