fleetbo-cockpit-cli 1.0.224 → 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 -8
- 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
|
-
process.stdout.write('\x1b[A\r' + ' '.repeat(50) + '\r');
|
|
415
|
-
|
|
416
414
|
let totalOutputTokens = 0;
|
|
417
415
|
|
|
418
416
|
logStep('[1/3]', '\x1b[33mAlex is forging native foundations...\x1b[0m');
|
|
@@ -456,8 +454,6 @@ if (command === 'alex') {
|
|
|
456
454
|
}
|
|
457
455
|
totalOutputTokens += aiData3.outputTokensUsed || 0;
|
|
458
456
|
logStep('[3/3]', '\x1b[32mConfiguration completed.\x1b[0m\n');
|
|
459
|
-
} else {
|
|
460
|
-
process.stdout.write(`\x1b[2K\r`);
|
|
461
457
|
}
|
|
462
458
|
|
|
463
459
|
if (aiData.thinking_process) {
|
|
@@ -531,14 +527,14 @@ if (command === 'alex') {
|
|
|
531
527
|
console.log(`\x1b[31mnpm run fleetbo rm\x1b[0m \x1b[36m${moduleName}\x1b[0m`);
|
|
532
528
|
|
|
533
529
|
if (totalOutputTokens > 0) {
|
|
534
|
-
console.log(`\
|
|
530
|
+
console.log(`\x1b[90m[Telemetry] Output tokens generated: ${totalOutputTokens} (Limit: 8192/step)\x1b[0m`);
|
|
535
531
|
}
|
|
536
532
|
|
|
537
533
|
} else if (aiData.status === 'success' && (!mergedModuleData || Object.keys(mergedModuleData).length === 0)) {
|
|
538
|
-
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');
|
|
539
535
|
}
|
|
540
536
|
} catch (error) {
|
|
541
|
-
process.stdout.write('\
|
|
537
|
+
process.stdout.write('\x1b[2K\r');
|
|
542
538
|
console.error('\x1b[31m[Alex Error]\x1b[0m ' + (error.response?.data?.message || error.message));
|
|
543
539
|
}
|
|
544
540
|
};
|
|
@@ -654,7 +650,6 @@ if (command === 'alex') {
|
|
|
654
650
|
isProcessing = true;
|
|
655
651
|
await processAlexRequest(text);
|
|
656
652
|
isProcessing = false;
|
|
657
|
-
console.log('');
|
|
658
653
|
}
|
|
659
654
|
};
|
|
660
655
|
|