fleetbo-cockpit-cli 1.0.42 → 1.0.43
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 +6 -8
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -478,18 +478,16 @@ if (command === 'alex') {
|
|
|
478
478
|
// 2. ACCUMULATION NATURELLE ET SILENCIEUSE
|
|
479
479
|
if (trimmedLine !== "") {
|
|
480
480
|
inputBuffer += (inputBuffer ? "\n" : "") + line;
|
|
481
|
-
|
|
482
|
-
//
|
|
483
|
-
// On ne change pas le prompt, on ne met pas de timer.
|
|
484
|
-
// On laisse le terminal macOS/Windows afficher le texte naturellement.
|
|
481
|
+
// 🛡️ MAGIE ICI : Zéro code visuel. Zéro setPrompt. Zéro prompt().
|
|
482
|
+
// On laisse ton Mac afficher le texte collé naturellement.
|
|
485
483
|
}
|
|
486
484
|
// 3. VALIDATION (Touche Entrée sur une ligne vide)
|
|
487
485
|
else {
|
|
488
486
|
if (inputBuffer.trim() !== "") {
|
|
489
487
|
const finalPrompt = inputBuffer.trim();
|
|
490
|
-
inputBuffer = "";
|
|
488
|
+
inputBuffer = "";
|
|
491
489
|
|
|
492
|
-
// 🛑 COUPE-CIRCUIT STRICT
|
|
490
|
+
// 🛑 COUPE-CIRCUIT STRICT
|
|
493
491
|
if (finalPrompt.length > 1000) {
|
|
494
492
|
console.log(`\n\x1b[31m⛔ [Alex Safety] Mission rejetée : Taille excessive (${finalPrompt.length}/1000 caractères).\x1b[0m`);
|
|
495
493
|
console.log(`\x1b[90m Veuillez être plus concis et vous concentrer sur l'essentiel.\x1b[0m\n`);
|
|
@@ -503,9 +501,9 @@ if (command === 'alex') {
|
|
|
503
501
|
isProcessing = false;
|
|
504
502
|
|
|
505
503
|
console.log('');
|
|
506
|
-
rl.prompt(); // On remet le prompt
|
|
504
|
+
rl.prompt(); // On remet le prompt "jojo ❯" pour la suite
|
|
507
505
|
} else {
|
|
508
|
-
rl.prompt(); // Si
|
|
506
|
+
rl.prompt(); // Si appui sur Entrée dans le vide
|
|
509
507
|
}
|
|
510
508
|
}
|
|
511
509
|
});
|