fleetbo-cockpit-cli 1.0.120 → 1.0.122
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 -5
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -250,8 +250,8 @@ if (command === 'alex') {
|
|
|
250
250
|
const initialPrompt = args.slice(1).join(' ');
|
|
251
251
|
|
|
252
252
|
const processAlexRequest = async (prompt) => {
|
|
253
|
-
if (prompt.length >
|
|
254
|
-
console.log('\n\x1b[31m⛔ [Alex Safety] Request too long (' + prompt.length + '/
|
|
253
|
+
if (prompt.length > 4000) {
|
|
254
|
+
console.log('\n\x1b[31m⛔ [Alex Safety] Request too long (' + prompt.length + '/4000 chars).\x1b[0m');
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
257
|
|
|
@@ -651,7 +651,7 @@ if (command === 'alex') {
|
|
|
651
651
|
rl.setPrompt("\x1b[90m ↵ again to send\x1b[0m");
|
|
652
652
|
rl.prompt();
|
|
653
653
|
}
|
|
654
|
-
},
|
|
654
|
+
}, 1500);
|
|
655
655
|
};
|
|
656
656
|
|
|
657
657
|
const doSubmit = async () => {
|
|
@@ -662,8 +662,8 @@ if (command === 'alex') {
|
|
|
662
662
|
const finalPrompt = inputBuffer.trim();
|
|
663
663
|
inputBuffer = "";
|
|
664
664
|
|
|
665
|
-
if (finalPrompt.length >
|
|
666
|
-
console.log(`\n\x1b[31m⛔ [Alex Safety] Mission rejected: Excessive size (${finalPrompt.length}/
|
|
665
|
+
if (finalPrompt.length > 4000) {
|
|
666
|
+
console.log(`\n\x1b[31m⛔ [Alex Safety] Mission rejected: Excessive size (${finalPrompt.length}/4000 characters).\x1b[0m`);
|
|
667
667
|
rl.setPrompt(`\x1b[34m${dynamicUsername} ❯ \x1b[0m`);
|
|
668
668
|
rl.prompt();
|
|
669
669
|
return;
|