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.
Files changed (2) hide show
  1. package/cli.js +8 -10
  2. 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 : attend 400ms pour distinguer paste / frappe manuelle
695
- // Si une ligne non-vide arrive avant timer annulé (paste en cours)
696
- // Si rien frappe manuelle confirmée affiche le hint
697
- if (submitTimer) clearTimeout(submitTimer);
698
- submitTimer = setTimeout(() => {
699
- submitTimer = null;
700
- hintShown = true;
701
- rl.setPrompt("\x1b[90m ↵ again to send\x1b[0m");
702
- rl.prompt();
703
- }, 400);
694
+ // 1ère ligne vide : affiche le hint immédiatement
695
+ // mais arme un timer de 400ms au cas d'autres lignes arrivent (paste)
696
+ // Si une ligne non-vide arrivetimer 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`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbo-cockpit-cli",
3
- "version": "1.0.124",
3
+ "version": "1.0.126",
4
4
  "description": "Fleetbo CLI - Build native mobile apps with React",
5
5
  "author": "Fleetbo",
6
6
  "license": "MIT",