fleetbo-cockpit-cli 1.0.59 → 1.0.61

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 -2
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -330,9 +330,17 @@ if (command === 'alex') {
330
330
 
331
331
  // --- C'EST ICI QUE LES FICHIERS SONT CRÉÉS ---
332
332
  if (aiData.status === 'success' && aiData.moduleData) {
333
- const { fileName, code, mockFileName, mockCode, moduleName, instructions, config_offload } = aiData.moduleData;
333
+ let { fileName, code, mockFileName, mockCode, moduleName, instructions, config_offload } = aiData.moduleData;
334
+
335
+ // 🛡️ BOUCLIER ANTI-DUMP (Empêche l'explosion du terminal)
336
+ if (moduleName) {
337
+ // Si l'IA met des sauts de ligne ou un texte trop long dans le nom, on coupe.
338
+ moduleName = moduleName.split('\n')[0].replace(/["'{}]/g, '').trim();
339
+ if (moduleName.length > 40) moduleName = moduleName.substring(0, 40) + "...";
340
+ }
341
+
334
342
  console.log(` \x1b[90m Architecting: ${moduleName}\x1b[0m`);
335
-
343
+
336
344
  const writeFile = (dir, name, content) => {
337
345
  const fullPath = path.join(process.cwd(), dir);
338
346
  const filePath = path.join(fullPath, name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbo-cockpit-cli",
3
- "version": "1.0.59",
3
+ "version": "1.0.61",
4
4
  "description": "Fleetbo CLI - Build native mobile apps with React",
5
5
  "author": "Fleetbo",
6
6
  "license": "MIT",