fleetbo-cockpit-cli 1.0.204 → 1.0.206

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 +3 -33
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -74,34 +74,6 @@ if (!projectId) {
74
74
  // ============================================
75
75
  // HELPERS
76
76
  // ============================================
77
- const wrapText = (text, maxWidth) => {
78
- if (!text) return "";
79
- const rawLines = text.split('\n');
80
- let formattedLines = [];
81
- rawLines.forEach(line => {
82
- if (line.trim().length === 0) {
83
- formattedLines.push("");
84
- return;
85
- }
86
- const isSpecialFormat = /^[\s]*[-*•\d]/.test(line) || line.startsWith(" ");
87
- if (isSpecialFormat) {
88
- formattedLines.push(line);
89
- } else {
90
- const words = line.split(" ");
91
- let currentLine = words[0];
92
- for (let i = 1; i < words.length; i++) {
93
- if (currentLine.length + 1 + words[i].length <= maxWidth) {
94
- currentLine += " " + words[i];
95
- } else {
96
- formattedLines.push(currentLine);
97
- currentLine = words[i];
98
- }
99
- }
100
- formattedLines.push(currentLine);
101
- }
102
- });
103
- return formattedLines.join('\n ');
104
- };
105
77
 
106
78
  const checkGitSecurity = () => {
107
79
  const gitDir = path.join(process.cwd(), '.git');
@@ -520,14 +492,13 @@ if (command === 'alex') {
520
492
  console.log('');
521
493
  let rawMsg = aiData.message || "I'm ready.";
522
494
 
523
- // Final safety: if rawMsg is still an object
524
495
  if (typeof rawMsg === 'object') {
525
496
  rawMsg = rawMsg.message || rawMsg.text || "Module generated.";
526
497
  }
527
498
 
528
- const formattedMsg = wrapText(rawMsg, 85);
529
- console.log('\x1b[32mAlex ❯\x1b[0m ' + formattedMsg);
530
-
499
+ // On supprime le wrapText(85)
500
+ // On laisse Xterm.js et le FitAddon utiliser 100% de la largeur du panneau !
501
+ console.log('\x1b[32mAlex ❯\x1b[0m' + rawMsg);
531
502
  }
532
503
 
533
504
  // --- FILE CREATION LOGIC ---
@@ -749,7 +720,6 @@ if (command === 'alex') {
749
720
  // READY
750
721
  console.log('');
751
722
  console.log('\x1b[32mAlex ❯\x1b[0m Describe your feature using the Compose panel...');
752
- console.log('');
753
723
 
754
724
  // 1. ON SUPPRIME LE PROMPT VISUEL (Plus de "Pilot ❯")
755
725
  const rl = readline.createInterface({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbo-cockpit-cli",
3
- "version": "1.0.204",
3
+ "version": "1.0.206",
4
4
  "description": "Fleetbo CLI - Build native mobile apps with React",
5
5
  "author": "Fleetbo",
6
6
  "license": "MIT",