fleetbo-cockpit-cli 1.0.171 → 1.0.173

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 +10 -12
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -490,15 +490,11 @@ if (command === 'alex') {
490
490
  process.stdout.write(` \x1b[31mFAILED\x1b[0m\n`);
491
491
  console.error(` ⚠️ OS sync failed: ${err.message}`);
492
492
  }
493
- // 🟢 LE FUEL EST DÉPLACÉ ICI (TOUTE FIN DU TRY)
494
- if (aiData.remainingConsultations !== undefined) {
495
- const remaining = aiData.remainingConsultations;
496
- const limit = aiData.consultationLimit || 7;
497
- const tierLabel = aiData.tier.toUpperCase();
498
- const percent = Math.round((remaining / limit) * 100);
499
- const energyColor = percent > 20 ? '\x1b[32m' : '\x1b[31m';
500
- console.log(`\n\x1b[36m⚡ Architect Fuel:\x1b[0m ${energyColor}${percent}%\x1b[0m (${remaining}/${limit} instructions left) [${tierLabel}]\n`);
501
- }
493
+
494
+ // 💡 NOUVEAU : ASTUCE CONTEXTUELLE DYNAMIQUE
495
+ console.log(`\x1b[90m💡 To eradicate this module later, open a new terminal and type:\x1b[0m`);
496
+ console.log(`\x1b[31mnpm run fleetbo rm\x1b[0m \x1b[36m${moduleName}\x1b[0m`);
497
+
502
498
  } else if (aiData.status === 'success' && !aiData.moduleData) {
503
499
  // SAFETY: If formatting is broken
504
500
  console.log(`\n\x1b[31m⚠️ Error: Alex replied, but source code could not be extracted. Try the command again.\x1b[0m\n`);
@@ -619,6 +615,11 @@ if (command === 'alex') {
619
615
  console.log('');
620
616
  console.log('\x1b[90mWithout this exact structure, Alex answers but does not generate code.\x1b[0m');
621
617
 
618
+
619
+ console.log('');
620
+ console.log('\x1b[90mTo completely eradicate a module:\x1b[0m');
621
+ console.log('\x1b[33m›\x1b[0m \x1b[31mnpm run fleetbo rm\x1b[0m \x1b[36m<ModuleName>\x1b[0m');
622
+
622
623
  // EXAMPLES
623
624
  console.log('');
624
625
  console.log('\x1b[36mEXAMPLES\x1b[0m');
@@ -627,9 +628,6 @@ if (command === 'alex') {
627
628
  console.log('\x1b[33m›\x1b[0m \x1b[90m"\x1b[33mcreate\x1b[90m a form module to add products with photos to my catalog"\x1b[0m');
628
629
  console.log('\x1b[33m›\x1b[0m \x1b[90m"\x1b[33mupdate\x1b[90m the CloudCamera module to save in the collection orders"\x1b[0m');
629
630
 
630
- console.log('');
631
- console.log('\x1b[90mTo completely eradicate a module:\x1b[0m');
632
- console.log('\x1b[33m›\x1b[0m \x1b[31mnpm run fleetbo rm\x1b[0m \x1b[36m<ModuleName>\x1b[0m');
633
631
 
634
632
  // READY
635
633
  console.log('');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbo-cockpit-cli",
3
- "version": "1.0.171",
3
+ "version": "1.0.173",
4
4
  "description": "Fleetbo CLI - Build native mobile apps with React",
5
5
  "author": "Fleetbo",
6
6
  "license": "MIT",