fleetbo-cockpit-cli 1.0.64 → 1.0.65

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 -10
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -334,15 +334,7 @@ if (command === 'alex') {
334
334
 
335
335
  const formattedMsg = wrapText(rawMsg, 85);
336
336
  console.log('\x1b[32mAlex ❯\x1b[0m ' + formattedMsg);
337
-
338
- if (aiData.remainingConsultations !== undefined) {
339
- const remaining = aiData.remainingConsultations;
340
- const limit = aiData.consultationLimit || 7;
341
- const tierLabel = aiData.tier === 'senior' ? 'SENIOR' : aiData.tier === 'expert' ? 'EXPERT' : 'JUNIOR';
342
- const percent = Math.round((remaining / limit) * 100);
343
- const energyColor = percent > 20 ? '\x1b[32m' : '\x1b[31m';
344
- console.log(`\n\x1b[36m⚡ Architect Fuel:\x1b[0m ${energyColor}${percent}%\x1b[0m (${remaining}/${limit} instructions left) [${tierLabel}]\n`);
345
- }
337
+
346
338
  }
347
339
 
348
340
  // --- FILE CREATION LOGIC ---
@@ -363,7 +355,6 @@ if (command === 'alex') {
363
355
  const filePath = path.join(fullPath, name);
364
356
  if (!fs.existsSync(fullPath)) fs.mkdirSync(fullPath, { recursive: true });
365
357
  fs.writeFileSync(filePath, content);
366
- console.log('');
367
358
  console.log(` \x1b[32m[Written]\x1b[0m ${dir}${name}`);
368
359
  };
369
360
 
@@ -414,6 +405,15 @@ if (command === 'alex') {
414
405
  process.stdout.write(` \x1b[31mFAILED\x1b[0m\n`);
415
406
  console.error(` ⚠️ OS sync failed: ${err.message}`);
416
407
  }
408
+ // 🟢 LE FUEL EST DÉPLACÉ ICI (TOUTE FIN DU TRY)
409
+ if (aiData.remainingConsultations !== undefined) {
410
+ const remaining = aiData.remainingConsultations;
411
+ const limit = aiData.consultationLimit || 7;
412
+ const tierLabel = aiData.tier.toUpperCase();
413
+ const percent = Math.round((remaining / limit) * 100);
414
+ const energyColor = percent > 20 ? '\x1b[32m' : '\x1b[31m';
415
+ console.log(`\n\x1b[36m⚡ Architect Fuel:\x1b[0m ${energyColor}${percent}%\x1b[0m (${remaining}/${limit} instructions left) [${tierLabel}]\n`);
416
+ }
417
417
  } else if (aiData.status === 'success' && !aiData.moduleData) {
418
418
  // SAFETY: If formatting is broken
419
419
  console.log(`\n\x1b[31m⚠️ Error: Alex replied, but source code could not be extracted. Try the command again.\x1b[0m\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbo-cockpit-cli",
3
- "version": "1.0.64",
3
+ "version": "1.0.65",
4
4
  "description": "Fleetbo CLI - Build native mobile apps with React",
5
5
  "author": "Fleetbo",
6
6
  "license": "MIT",