fleetbo-cockpit-cli 1.0.70 → 1.0.71

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 +10 -6
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -266,13 +266,16 @@ if (command === 'alex') {
266
266
  if (cache.found) {
267
267
  process.stdout.write(` \x1b[32mFOUND METAL\x1b[0m\n`);
268
268
 
269
- let memoryScript = cache.module.dataSchema
270
- ? `\n[SCRIPT MÉMOIRE DU MODULE ${modName}]\n${cache.module.dataSchema}\n`
271
- : `\n[SCRIPT MÉMOIRE DU MODULE ${modName}]\nAucun schéma enregistré pour ce module.\n`;
269
+ // NOUVEAU BLOC : INJECTION DE LA DOUBLE MÉMOIRE
270
+ let memoryScript = "";
271
+ if (cache.module.dataSchema) memoryScript += `\n[SCRIPT MÉMOIRE DONNÉES]\n${cache.module.dataSchema}\n`;
272
+ if (cache.module.uiSchema) memoryScript += `\n[SCRIPT MÉMOIRE UI NATIF]\n${cache.module.uiSchema}\n`;
273
+
274
+ if (!memoryScript) memoryScript = `\n[SCRIPT MÉMOIRE DU MODULE ${modName}]\nAucun schéma enregistré pour ce module.\n`;
272
275
 
273
276
  if (isReferenceOnly) {
274
277
  // 🚨 CAS A : INSPIRATION (Lecture seule)
275
- referenceContexts += `\n--- CONTEXTE : RÉFÉRENCE DE DONNÉES (${modName}) ---\nDOGME : Ne modifie pas ce module. Aligne-toi uniquement sur le code Natif ci-dessous pour extraire les clés de données.\n${memoryScript}\n[CODE NATIF DE RÉFÉRENCE]\n${cache.module.code}\n`;
278
+ referenceContexts += `\n--- CONTEXTE : MODULE DE RÉFÉRENCE (${modName}) ---\nDOGME : Ne modifie pas ce module (Lecture seule). Tu dois l'utiliser comme modèle. Aligne-toi sur ses Scripts Mémoires (Données et/ou UI) et sur son Code Natif en fonction de ce que le Pilote te demande d'imiter.\n${memoryScript}\n[CODE NATIF DE RÉFÉRENCE]\n${cache.module.code}\n`;
276
279
  } else if (!targetModuleContext) {
277
280
  // 🚨 CAS B : CIBLE PRINCIPALE (Modification)
278
281
  // LE MOCK EST BANI ! Le Métal est la seule source de vérité.
@@ -357,7 +360,7 @@ if (command === 'alex') {
357
360
 
358
361
  // --- FILE CREATION LOGIC ---
359
362
  if (aiData.status === 'success' && aiData.moduleData) {
360
- let { fileName, code, mockFileName, mockCode, moduleName, instructions, config_offload, dataSchema } = aiData.moduleData;
363
+ let { fileName, code, mockFileName, mockCode, moduleName, instructions, config_offload, dataSchema, uiSchema } = aiData.moduleData;
361
364
 
362
365
  // 🛡️ ANTI-DUMP SHIELD (Prevents terminal flooding)
363
366
  if (moduleName) {
@@ -416,7 +419,8 @@ if (command === 'alex') {
416
419
  mockFileName: mockFileName,
417
420
  mockCode: mockCode,
418
421
  config_offload: config_offload || { dependencies: [], permissions: [] },
419
- dataSchema: dataSchema || null // 👈 LA LIGNE MAGIQUE
422
+ dataSchema: dataSchema || null, // 👈 LA LIGNE MAGIQUE
423
+ uiSchema: uiSchema || null
420
424
  }
421
425
  });
422
426
  process.stdout.write(` \x1b[32mOK\x1b[0m\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbo-cockpit-cli",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
4
4
  "description": "Fleetbo CLI - Build native mobile apps with React",
5
5
  "author": "Fleetbo",
6
6
  "license": "MIT",