fleetbo-cockpit-cli 1.0.152 → 1.0.154
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 +12 -7
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -609,13 +609,15 @@ if (command === 'alex') {
|
|
|
609
609
|
console.log('\x1b[1mFleetbo View\x1b[0m\x1b[90m Full native tab (120 FPS)\x1b[0m');
|
|
610
610
|
console.log('\x1b[90m─────────────────────────────────────────────────────\x1b[0m');
|
|
611
611
|
|
|
612
|
-
|
|
612
|
+
// TRIGGER SYNTAX
|
|
613
613
|
console.log('');
|
|
614
|
-
console.log('\x1b[
|
|
614
|
+
console.log('\x1b[36mCODE GENERATION SYNTAX\x1b[0m \x1b[90m(strict format required)\x1b[0m');
|
|
615
615
|
console.log('');
|
|
616
|
-
console.log('\x1b[
|
|
616
|
+
console.log('\x1b[90mFormat: \x1b[33m<verb>\x1b[0m module \x1b[36m<ModuleName>\x1b[0m');
|
|
617
|
+
console.log('\x1b[90mVerbs: \x1b[33mforge\x1b[0m \x1b[90m·\x1b[0m \x1b[33mcreate\x1b[0m \x1b[90m·\x1b[0m \x1b[33mupdate\x1b[0m \x1b[90m·\x1b[0m \x1b[33mmodify\x1b[0m \x1b[90m·\x1b[0m \x1b[33mfix\x1b[0m \x1b[90m·\x1b[0m \x1b[33medit\x1b[0m');
|
|
618
|
+
console.log('\x1b[90mExample: \x1b[0m\x1b[33mupdate\x1b[0m module \x1b[36mProfileManager\x1b[0m \x1b[90mwith a red button\x1b[0m');
|
|
617
619
|
console.log('');
|
|
618
|
-
console.log('\x1b[90mWithout
|
|
620
|
+
console.log('\x1b[90mWithout this exact structure, Alex answers but does not generate code.\x1b[0m');
|
|
619
621
|
|
|
620
622
|
// EXAMPLES
|
|
621
623
|
console.log('');
|
|
@@ -644,7 +646,7 @@ if (command === 'alex') {
|
|
|
644
646
|
let isPasteMode = false;
|
|
645
647
|
let pasteBlockerTimer = null;
|
|
646
648
|
|
|
647
|
-
|
|
649
|
+
const executePrompt = async (text) => {
|
|
648
650
|
if (['exit', 'quit'].includes(text.toLowerCase())) {
|
|
649
651
|
console.log('\n\x1b[90m Alex session closed.\x1b[0m');
|
|
650
652
|
rl.close();
|
|
@@ -660,11 +662,14 @@ if (command === 'alex') {
|
|
|
660
662
|
isProcessing = true;
|
|
661
663
|
rl.setPrompt("");
|
|
662
664
|
|
|
663
|
-
// ✨
|
|
664
|
-
console.log('\x1b[
|
|
665
|
+
// ✨ 1. SIGNAL INVISIBLE POUR DÉMARRER LE LOADER REACT ✨
|
|
666
|
+
console.log('\x1b[8m[START_LOAD]\x1b[0m');
|
|
665
667
|
|
|
666
668
|
await processAlexRequest(text);
|
|
667
669
|
|
|
670
|
+
// ✨ 2. SIGNAL INVISIBLE POUR ARRÊTER LE LOADER REACT ✨
|
|
671
|
+
console.log('\x1b[8m[END_LOAD]\x1b[0m');
|
|
672
|
+
|
|
668
673
|
isProcessing = false;
|
|
669
674
|
console.log('');
|
|
670
675
|
rl.setPrompt(`\x1b[34m${dynamicUsername} ❯ \x1b[0m`);
|