fleetbo-cockpit-cli 1.0.124 → 1.0.126
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 +8 -10
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -691,16 +691,14 @@ if (command === 'alex') {
|
|
|
691
691
|
// Hint déjà visible → 2ème Entrée → soumet
|
|
692
692
|
doSubmit();
|
|
693
693
|
} else {
|
|
694
|
-
// 1ère ligne vide :
|
|
695
|
-
//
|
|
696
|
-
// Si
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
rl.prompt();
|
|
703
|
-
}, 400);
|
|
694
|
+
// 1ère ligne vide : affiche le hint immédiatement
|
|
695
|
+
// mais arme un timer de 400ms au cas où d'autres lignes arrivent (paste)
|
|
696
|
+
// Si une ligne non-vide arrive → timer annulé, hint effacé, accumulation continue
|
|
697
|
+
hintShown = true;
|
|
698
|
+
rl.setPrompt("\x1b[90m ↵ again to send\x1b[0m");
|
|
699
|
+
rl.prompt();
|
|
700
|
+
// Sécurité anti-paste : si une ligne non-vide arrive dans les 400ms,
|
|
701
|
+
// hintShown repasse à false dans le bloc trimmedLine !== ""
|
|
704
702
|
}
|
|
705
703
|
} else {
|
|
706
704
|
rl.setPrompt(`\x1b[34m${dynamicUsername} ❯ \x1b[0m`);
|