create-fleetbo-project 1.2.49 ā 1.2.51
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.
|
@@ -110,7 +110,7 @@ if (command === 'alex') {
|
|
|
110
110
|
const limit = aiData.limit || 2500;
|
|
111
111
|
const percent = Math.round((remaining / limit) * 100);
|
|
112
112
|
const energyColor = percent > 30 ? '\\x1b[32m' : '\\x1b[31m';
|
|
113
|
-
console.log(\`\\x1b[36m
|
|
113
|
+
console.log(\`\\x1b[36m Energy:\\x1b[0m \${energyColor}\${percent}%\\x1b[0m (\${remaining}/\${limit} tokens left)\`);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
if (aiData.status === 'success' && aiData.moduleData) {
|
|
@@ -121,7 +121,7 @@ if (command === 'alex') {
|
|
|
121
121
|
const filePath = path.join(fullPath, name);
|
|
122
122
|
if (!fs.existsSync(fullPath)) fs.mkdirSync(fullPath, { recursive: true });
|
|
123
123
|
fs.writeFileSync(filePath, content);
|
|
124
|
-
console.log(\`
|
|
124
|
+
console.log(\` \\x1b[32m[Written]\\x1b[0m \${dir}\${name}\`);
|
|
125
125
|
};
|
|
126
126
|
if (code && fileName) {
|
|
127
127
|
const folder = fileName.endsWith('.kt') ? 'public/native/android/' : 'src/pages/';
|
|
@@ -135,7 +135,7 @@ if (command === 'alex') {
|
|
|
135
135
|
}
|
|
136
136
|
} catch (error) {
|
|
137
137
|
process.stdout.write('\\r' + ' '.repeat(50) + '\\r');
|
|
138
|
-
console.error('\\n\\x1b[31m
|
|
138
|
+
console.error('\\n\\x1b[31m Alex Error:\\x1b[0m ' + (error.response?.data?.message || error.message));
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
141
|
const startAlexSession = async () => {
|
|
@@ -172,6 +172,7 @@ if (command === 'alex') {
|
|
|
172
172
|
output: process.stdout,
|
|
173
173
|
prompt: \`\\x1b[34m\${dynamicUsername} ⯠\\x1b[0m\`
|
|
174
174
|
});
|
|
175
|
+
process.stdout.write('\n\x1b[F');
|
|
175
176
|
rl.prompt();
|
|
176
177
|
rl.on('line', async (line) => {
|
|
177
178
|
if (['exit', 'quit'].includes(line.trim().toLowerCase())) {
|
|
@@ -183,6 +184,7 @@ if (command === 'alex') {
|
|
|
183
184
|
await processAlexRequest(line.trim());
|
|
184
185
|
console.log('');
|
|
185
186
|
}
|
|
187
|
+
process.stdout.write('\n\x1b[F');
|
|
186
188
|
rl.prompt();
|
|
187
189
|
}).on('close', () => {
|
|
188
190
|
process.exit(0);
|
|
@@ -210,7 +212,7 @@ if (command === 'deploy') {
|
|
|
210
212
|
console.log('\\nš¦ \\x1b[33mPreparing Neural Logic for Uplink...\\x1b[0m');
|
|
211
213
|
await showEnergyTransfer();
|
|
212
214
|
await axios.post(CLOUD_ENGINE_URL, zipBuffer, { headers: { 'Content-Type': 'application/zip', 'x-project-id': projectId } });
|
|
213
|
-
console.log('\\n
|
|
215
|
+
console.log('\\n \\x1b[1mDEPLOYMENT SUCCESSFUL\\x1b[0m | \\x1b[32mAlex āÆ\\x1b[0m Runtime updated.');
|
|
214
216
|
} catch (error) { process.exit(1); }
|
|
215
217
|
})();
|
|
216
218
|
return;
|