fleetbo-cockpit-cli 1.0.103 → 1.0.104
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/cli.js +7 -4
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -28,7 +28,7 @@ class FleetboSpinner {
|
|
|
28
28
|
process.stdout.write('\x1b[?25l'); // Cache le curseur natif
|
|
29
29
|
this.timer = setInterval(() => {
|
|
30
30
|
// \r revient au début, \x1b[2K efface la ligne
|
|
31
|
-
process.stdout.write(`\r\x1b[2K \x1b[
|
|
31
|
+
process.stdout.write(`\r\x1b[2K \x1b[32m${this.frames[this.idx]}\x1b[0m ${message}`);
|
|
32
32
|
this.idx = (this.idx + 1) % this.frames.length;
|
|
33
33
|
}, 80);
|
|
34
34
|
}
|
|
@@ -299,7 +299,7 @@ if (command === 'alex') {
|
|
|
299
299
|
return;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
osSpinner.start("\x1b[
|
|
302
|
+
osSpinner.start("\x1b[32m🧠 Alex is processing your request...\x1b[0m");
|
|
303
303
|
|
|
304
304
|
try {
|
|
305
305
|
// --- MEMORY SYSTEM (SMART CACHE SCANNER V3 - SOUVERAINETÉ DU MÉTAL) ---
|
|
@@ -382,7 +382,7 @@ if (command === 'alex') {
|
|
|
382
382
|
const promptWithTime = prompt + `\n\n[SYSTEM INFO: The exact current timestamp is ${exactTime}. Use it STRICTLY for your signature '// ⚡ Forged by Alex on...' at the bottom of your files.]`;
|
|
383
383
|
|
|
384
384
|
// On met à jour le texte du spinner existant
|
|
385
|
-
osSpinner.start("
|
|
385
|
+
osSpinner.start("\x1b[32m Alex is forging...\x1b[0m");
|
|
386
386
|
|
|
387
387
|
const result = await axios.post(ALEX_ENGINE_URL, { prompt: promptWithTime, projectType: 'android' }, {
|
|
388
388
|
headers: { 'x-project-id': projectId }
|
|
@@ -554,7 +554,7 @@ if (command === 'alex') {
|
|
|
554
554
|
// ============================================================
|
|
555
555
|
|
|
556
556
|
const startAlexSession = async () => {
|
|
557
|
-
|
|
557
|
+
osSpinner.start("\x1b[32m🛡️ Alex is checking runtime state...\x1b[0m");
|
|
558
558
|
let attempts = 0;
|
|
559
559
|
const maxAttempts = 5;
|
|
560
560
|
let isReady = false;
|
|
@@ -584,6 +584,9 @@ if (command === 'alex') {
|
|
|
584
584
|
await new Promise(r => setTimeout(r, 2000));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
+
|
|
588
|
+
// 🛑 ON ARRÊTE L'ANIMATION DE DÉMARRAGE ICI
|
|
589
|
+
osSpinner.stop();
|
|
587
590
|
|
|
588
591
|
if (!isReady) {
|
|
589
592
|
console.error('\n\x1b[31m⚠️ ENGINE OFFLINE:\x1b[0m Start Fleetbo runtime first: "npm run fleetbo" ');
|