fleetbo-cockpit-cli 1.0.91 → 1.0.93
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 +26 -12
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -158,12 +158,26 @@ const extractPotentialModules = (text) => {
|
|
|
158
158
|
// Sert uniquement à définir le TON du contexte envoyé à Alex
|
|
159
159
|
const getContextIntent = (text) => {
|
|
160
160
|
const modifierKeywords = [
|
|
161
|
-
|
|
162
|
-
'
|
|
161
|
+
// 🇫🇷 FRANÇAIS
|
|
162
|
+
'modifier', 'modifie', 'corrige', 'ajoute', 'erreur', 'plante', 'problème', 'bug', 'change',
|
|
163
|
+
'met a jour', 'mets à jour', 'mise à jour',
|
|
164
|
+
|
|
165
|
+
// 🇬🇧 ANGLAIS
|
|
166
|
+
'update', 'fix', 'edit', 'error', 'fail', 'crash', 'issue', 'add', 'modify', 'upgrade',
|
|
167
|
+
|
|
168
|
+
// 🇪🇸 ESPAGNOL
|
|
169
|
+
'modifica', 'edita', 'actualiza', 'añade', 'agrega', 'mejora', 'problema', 'fallo'
|
|
163
170
|
];
|
|
171
|
+
|
|
164
172
|
const inspireKeywords = [
|
|
165
|
-
|
|
166
|
-
'inspire', '
|
|
173
|
+
// 🇫🇷 FRANÇAIS
|
|
174
|
+
'inspire', 'base', 'comme', 'modèle', 'reference', 'reprends', 'copie', 'imite', 'basé sur',
|
|
175
|
+
|
|
176
|
+
// 🇬🇧 ANGLAIS
|
|
177
|
+
'based on', 'model', 'like', 'copy', 'similar', 'imitate', 'replicate',
|
|
178
|
+
|
|
179
|
+
// 🇪🇸 ESPAGNOL
|
|
180
|
+
'inspira', 'basado', 'como', 'modelo', 'referencia', 'copia', 'imita', 'básate'
|
|
167
181
|
];
|
|
168
182
|
|
|
169
183
|
const lower = text.toLowerCase();
|
|
@@ -224,8 +238,8 @@ if (command === 'alex') {
|
|
|
224
238
|
return;
|
|
225
239
|
}
|
|
226
240
|
|
|
227
|
-
// 📋 INTERCEPTION: LIST MODULES
|
|
228
|
-
const isListingRequest = /^(liste|list|quels modules|montre les modules|show modules)/i.test(prompt);
|
|
241
|
+
// 📋 INTERCEPTION: LIST MODULES (Multilingue)
|
|
242
|
+
const isListingRequest = /^(liste|list|listar|lista|quels modules|montre les modules|affiche les modules|show modules|what modules|display modules|qu[eé] m[oó]dulos|muestra los m[oó]dulos|ver m[oó]dulos)/i.test(prompt);
|
|
229
243
|
if (isListingRequest) {
|
|
230
244
|
process.stdout.write(` \x1b[90m🔍 Scanning OS Cache...\x1b[0m\n`);
|
|
231
245
|
const cacheRes = await getModuleCache({ projectId, moduleName: null });
|
|
@@ -516,7 +530,7 @@ if (command === 'alex') {
|
|
|
516
530
|
// ═══════════════════════════════════════════════
|
|
517
531
|
if (!hasAiKey) {
|
|
518
532
|
console.log('');
|
|
519
|
-
console.log('\x1b[1m\x1b[33m
|
|
533
|
+
console.log('\x1b[1m\x1b[33m AI Configuration Required\x1b[0m');
|
|
520
534
|
console.log('');
|
|
521
535
|
console.log('Alex needs a powerful AI model to forge native code.');
|
|
522
536
|
console.log('Connect your own AI key to continue.');
|
|
@@ -528,7 +542,7 @@ if (command === 'alex') {
|
|
|
528
542
|
console.log('\x1b[33m●\x1b[0m Anthropic \x1b[90m(Claude Sonnet / Opus)\x1b[0m');
|
|
529
543
|
console.log('\x1b[36mhttps://console.anthropic.com/settings/keys\x1b[0m');
|
|
530
544
|
console.log('');
|
|
531
|
-
console.log('\x1b[90m
|
|
545
|
+
console.log('\x1b[90m Click the \x1b[32m[+]\x1b[90m button in the Terminal top-right bar\x1b[0m');
|
|
532
546
|
console.log('');
|
|
533
547
|
process.exit(0);
|
|
534
548
|
}
|
|
@@ -556,10 +570,10 @@ if (command === 'alex') {
|
|
|
556
570
|
console.log('');
|
|
557
571
|
console.log(' \x1b[36m CAPABILITIES\x1b[0m');
|
|
558
572
|
console.log(' \x1b[90m ─────────────────────────────────────────────────────\x1b[0m');
|
|
559
|
-
console.log(' \x1b[1m
|
|
560
|
-
console.log(' \x1b[1m
|
|
561
|
-
console.log(' \x1b[1m
|
|
562
|
-
console.log(' \x1b[1m
|
|
573
|
+
console.log(' \x1b[1m Hardware\x1b[0m\x1b[90m Camera · Scanner · GPS · Biometrics\x1b[0m');
|
|
574
|
+
console.log(' \x1b[1m High-Perf\x1b[0m\x1b[90m Video Feed · Swipe Deck · Audio\x1b[0m');
|
|
575
|
+
console.log(' \x1b[1m Sovereign\x1b[0m\x1b[90m Form + Photo + Save-to-Cloud\x1b[0m');
|
|
576
|
+
console.log(' \x1b[1m Fleetbo View\x1b[0m\x1b[90m Full native tab (120 FPS)\x1b[0m');
|
|
563
577
|
console.log(' \x1b[90m ─────────────────────────────────────────────────────\x1b[0m');
|
|
564
578
|
|
|
565
579
|
// TRIGGER WORDS
|