fleetbo-cockpit-cli 1.0.225 → 1.0.227
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 +5 -6
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -408,10 +408,8 @@ if (command === 'alex') {
|
|
|
408
408
|
};
|
|
409
409
|
|
|
410
410
|
const logStep = (prefix, text) => {
|
|
411
|
-
process.stdout.write(`\x1b[2K
|
|
411
|
+
process.stdout.write(`\r\x1b[2K${prefix} ${text}`);
|
|
412
412
|
};
|
|
413
|
-
|
|
414
|
-
console.log('');
|
|
415
413
|
|
|
416
414
|
let totalOutputTokens = 0;
|
|
417
415
|
|
|
@@ -467,7 +465,8 @@ if (command === 'alex') {
|
|
|
467
465
|
if (typeof rawMsg === 'object') {
|
|
468
466
|
rawMsg = rawMsg.message || rawMsg.text || "Module generated.";
|
|
469
467
|
}
|
|
470
|
-
|
|
468
|
+
// Plus aucun saut de ligne imposé, Xterm.jsx le gère seul
|
|
469
|
+
process.stdout.write(`[ALEX_START]${rawMsg}[ALEX_END]`);
|
|
471
470
|
}
|
|
472
471
|
|
|
473
472
|
if (aiData.status === 'success' && mergedModuleData && Object.keys(mergedModuleData).length > 0) {
|
|
@@ -529,11 +528,11 @@ if (command === 'alex') {
|
|
|
529
528
|
console.log(`\x1b[31mnpm run fleetbo rm\x1b[0m \x1b[36m${moduleName}\x1b[0m`);
|
|
530
529
|
|
|
531
530
|
if (totalOutputTokens > 0) {
|
|
532
|
-
console.log(`\x1b[90m[Telemetry] Output tokens generated: ${totalOutputTokens} (Limit: 8192/step)\x1b[0m
|
|
531
|
+
console.log(`\x1b[90m[Telemetry] Output tokens generated: ${totalOutputTokens} (Limit: 8192/step)\x1b[0m`);
|
|
533
532
|
}
|
|
534
533
|
|
|
535
534
|
} else if (aiData.status === 'success' && (!mergedModuleData || Object.keys(mergedModuleData).length === 0)) {
|
|
536
|
-
console.log('\x1b[31m[Error] Alex replied, but source code could not be extracted.\x1b[0m
|
|
535
|
+
console.log('\x1b[31m[Error] Alex replied, but source code could not be extracted.\x1b[0m');
|
|
537
536
|
}
|
|
538
537
|
} catch (error) {
|
|
539
538
|
process.stdout.write('\x1b[2K\r');
|