fleetbo-cockpit-cli 1.0.15 → 1.0.17
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 +6 -9
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -166,11 +166,7 @@ if (command === 'alex') {
|
|
|
166
166
|
if (typeof aiData === 'string') {
|
|
167
167
|
try { aiData = JSON.parse(aiData); } catch (_) {}
|
|
168
168
|
}
|
|
169
|
-
|
|
170
|
-
console.log('[DEBUG] typeof aiData:', typeof aiData);
|
|
171
|
-
console.log('[DEBUG] typeof message:', typeof aiData?.message);
|
|
172
|
-
console.log('[DEBUG] message preview:', String(aiData?.message || aiData).substring(0, 100));
|
|
173
|
-
// --- FIN DEBUG ---
|
|
169
|
+
|
|
174
170
|
process.stdout.write('\r' + ' '.repeat(50) + '\r');
|
|
175
171
|
|
|
176
172
|
if (aiData.status === 'quota_exceeded') {
|
|
@@ -204,6 +200,7 @@ console.log('[DEBUG] message preview:', String(aiData?.message || aiData).substr
|
|
|
204
200
|
const tierLabel = aiData.tier === 'senior' ? 'SENIOR' : aiData.tier === 'expert' ? 'EXPERT' : 'JUNIOR';
|
|
205
201
|
const percent = Math.round((remaining / limit) * 100);
|
|
206
202
|
const energyColor = percent > 20 ? '\x1b[32m' : '\x1b[31m';
|
|
203
|
+
console.log('');
|
|
207
204
|
console.log(`\x1b[36m⚡ Architect Fuel:\x1b[0m ${energyColor}${percent}%\x1b[0m (${remaining}/${limit} instructions left) [${tierLabel}]`);
|
|
208
205
|
console.log('');
|
|
209
206
|
}
|
|
@@ -242,12 +239,12 @@ console.log('[DEBUG] message preview:', String(aiData?.message || aiData).substr
|
|
|
242
239
|
writeFile('src/app/mocks/', mockFileName, mockCode);
|
|
243
240
|
const injected = injectRouteIntoAppJs(pageName, 'mocks');
|
|
244
241
|
if (injected) {
|
|
245
|
-
console.log(`
|
|
242
|
+
console.log(` \x1b[32m[Routed]\x1b[0m App.js -> /mocks/${pageName.toLowerCase()}`);
|
|
246
243
|
}
|
|
247
244
|
}
|
|
248
245
|
|
|
249
246
|
if (config_offload && (config_offload.dependencies?.length > 0 || config_offload.permissions?.length > 0)) {
|
|
250
|
-
process.stdout.write(`
|
|
247
|
+
process.stdout.write(` \x1b[33m[Cloud Inject]\x1b[0m Syncing ${config_offload.dependencies?.length || 0} libs to Factory...`);
|
|
251
248
|
try {
|
|
252
249
|
await axios.post(INJECT_DEPS_URL, {
|
|
253
250
|
projectId: projectId,
|
|
@@ -256,10 +253,10 @@ console.log('[DEBUG] message preview:', String(aiData?.message || aiData).substr
|
|
|
256
253
|
config_offload: config_offload
|
|
257
254
|
}
|
|
258
255
|
});
|
|
259
|
-
process.stdout.write(`
|
|
256
|
+
process.stdout.write(` \x1b[32mOK\x1b[0m\n`);
|
|
260
257
|
} catch (err) {
|
|
261
258
|
process.stdout.write(` \x1b[31mFAILED\x1b[0m\n`);
|
|
262
|
-
console.error(`
|
|
259
|
+
console.error(` ⚠️ Config sync failed: ${err.message}`);
|
|
263
260
|
}
|
|
264
261
|
}
|
|
265
262
|
}
|