fleetbo-cockpit-cli 1.0.225 → 1.0.226
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 +3 -6
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -411,8 +411,6 @@ if (command === 'alex') {
|
|
|
411
411
|
process.stdout.write(`\x1b[2K\r${prefix} ${text}`);
|
|
412
412
|
};
|
|
413
413
|
|
|
414
|
-
console.log('');
|
|
415
|
-
|
|
416
414
|
let totalOutputTokens = 0;
|
|
417
415
|
|
|
418
416
|
logStep('[1/3]', '\x1b[33mAlex is forging native foundations...\x1b[0m');
|
|
@@ -467,7 +465,7 @@ if (command === 'alex') {
|
|
|
467
465
|
if (typeof rawMsg === 'object') {
|
|
468
466
|
rawMsg = rawMsg.message || rawMsg.text || "Module generated.";
|
|
469
467
|
}
|
|
470
|
-
console.log(
|
|
468
|
+
console.log(`[ALEX_START]${rawMsg}[ALEX_END]`);
|
|
471
469
|
}
|
|
472
470
|
|
|
473
471
|
if (aiData.status === 'success' && mergedModuleData && Object.keys(mergedModuleData).length > 0) {
|
|
@@ -529,11 +527,11 @@ if (command === 'alex') {
|
|
|
529
527
|
console.log(`\x1b[31mnpm run fleetbo rm\x1b[0m \x1b[36m${moduleName}\x1b[0m`);
|
|
530
528
|
|
|
531
529
|
if (totalOutputTokens > 0) {
|
|
532
|
-
console.log(`\x1b[90m[Telemetry] Output tokens generated: ${totalOutputTokens} (Limit: 8192/step)\x1b[0m
|
|
530
|
+
console.log(`\x1b[90m[Telemetry] Output tokens generated: ${totalOutputTokens} (Limit: 8192/step)\x1b[0m`);
|
|
533
531
|
}
|
|
534
532
|
|
|
535
533
|
} 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
|
|
534
|
+
console.log('\x1b[31m[Error] Alex replied, but source code could not be extracted.\x1b[0m');
|
|
537
535
|
}
|
|
538
536
|
} catch (error) {
|
|
539
537
|
process.stdout.write('\x1b[2K\r');
|
|
@@ -652,7 +650,6 @@ if (command === 'alex') {
|
|
|
652
650
|
isProcessing = true;
|
|
653
651
|
await processAlexRequest(text);
|
|
654
652
|
isProcessing = false;
|
|
655
|
-
console.log('');
|
|
656
653
|
}
|
|
657
654
|
};
|
|
658
655
|
|