fleetbo-cockpit-cli 1.0.92 → 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.
Files changed (2) hide show
  1. package/cli.js +24 -10
  2. 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
- 'modifier', 'corrige', 'ajoute', 'erreur', 'plante', 'problème', 'bug', 'change',
162
- 'update', 'fix', 'edit', 'error', 'fail', 'crash', 'issue', 'add'
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
- 'inspire', 'base', 'comme', 'modèle', 'reference', 'reprends', 'copie',
166
- 'inspire', 'based on', 'model', 'reference', 'like', 'copy', 'similar'
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 });
@@ -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 Hardware\x1b[0m\x1b[90m Camera · Scanner · GPS · Biometrics\x1b[0m');
560
- console.log(' \x1b[1m High-Perf\x1b[0m\x1b[90m Video Feed · Swipe Deck · Audio\x1b[0m');
561
- console.log(' \x1b[1m Sovereign\x1b[0m\x1b[90m Form + Photo + Save-to-Cloud\x1b[0m');
562
- console.log(' \x1b[1m Fleetbo View\x1b[0m\x1b[90m Full native tab (120 FPS)\x1b[0m');
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbo-cockpit-cli",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
4
4
  "description": "Fleetbo CLI - Build native mobile apps with React",
5
5
  "author": "Fleetbo",
6
6
  "license": "MIT",