fleetbo-cockpit-cli 1.0.49 → 1.0.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.
- package/cli.js +6 -6
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -222,11 +222,11 @@ if (command === 'alex') {
|
|
|
222
222
|
// 📋 INTERCEPTION : LISTER LES MODULES
|
|
223
223
|
const isListingRequest = /^(liste|list|quels modules|montre les modules)/i.test(prompt);
|
|
224
224
|
if (isListingRequest) {
|
|
225
|
-
process.stdout.write(` \x1b[90m🔍 Scanning
|
|
225
|
+
process.stdout.write(` \x1b[90m🔍 Scanning OS Cache...\x1b[0m\n`);
|
|
226
226
|
const cacheRes = await getModuleCache({ projectId, moduleName: null });
|
|
227
227
|
|
|
228
228
|
if (cacheRes.found !== false && cacheRes.modules && cacheRes.modules.length > 0) {
|
|
229
|
-
console.log(`\n\x1b[36m⚡ FLEETBO
|
|
229
|
+
console.log(`\n\x1b[36m⚡ FLEETBO OS MODULES (${cacheRes.modules.length}):\x1b[0m`);
|
|
230
230
|
cacheRes.modules.forEach(m => {
|
|
231
231
|
const metalColor = m.platform === 'android' ? '\x1b[32m' : '\x1b[34m';
|
|
232
232
|
console.log(` ${metalColor}■\x1b[0m \x1b[1m${m.moduleName}\x1b[0m \x1b[90m(${m.platform})\x1b[0m`);
|
|
@@ -245,7 +245,7 @@ if (command === 'alex') {
|
|
|
245
245
|
const potentialModules = extractPotentialModules(prompt);
|
|
246
246
|
|
|
247
247
|
for (const modName of potentialModules) {
|
|
248
|
-
process.stdout.write(` \x1b[90m🔍 Checking
|
|
248
|
+
process.stdout.write(` \x1b[90m🔍 Checking os cache for ${modName}...\x1b[0m`);
|
|
249
249
|
const cache = await getModuleCache({ projectId, moduleName: modName });
|
|
250
250
|
|
|
251
251
|
if (cache.found) {
|
|
@@ -362,7 +362,7 @@ if (command === 'alex') {
|
|
|
362
362
|
|
|
363
363
|
// --- SYNCHRONISATION DU KERNEL ---
|
|
364
364
|
const depsCount = config_offload?.dependencies?.length || 0;
|
|
365
|
-
process.stdout.write(` \x1b[33m[Cloud Inject]\x1b[0m Archiving ${moduleName} to
|
|
365
|
+
process.stdout.write(` \x1b[33m[Cloud Inject]\x1b[0m Archiving ${moduleName} to OS (${depsCount} libs)...`);
|
|
366
366
|
|
|
367
367
|
try {
|
|
368
368
|
await axios.post(INJECT_DEPS_URL, {
|
|
@@ -380,7 +380,7 @@ if (command === 'alex') {
|
|
|
380
380
|
process.stdout.write(` \x1b[32mOK\x1b[0m\n`);
|
|
381
381
|
} catch (err) {
|
|
382
382
|
process.stdout.write(` \x1b[31mFAILED\x1b[0m\n`);
|
|
383
|
-
console.error(` ⚠️
|
|
383
|
+
console.error(` ⚠️ OS sync failed: ${err.message}`);
|
|
384
384
|
}
|
|
385
385
|
} else if (aiData.status === 'success' && !aiData.moduleData) {
|
|
386
386
|
// SÉCURITÉ : Si Alex s'emmêle les pinceaux et renvoie un mauvais format JSON
|
|
@@ -548,7 +548,7 @@ else if (command === 'rm') {
|
|
|
548
548
|
if (actionsDone === 0) {
|
|
549
549
|
console.log(`\n\x1b[31m⚠️ No trace of module "${moduleName}" found in the OS.\x1b[0m\n`);
|
|
550
550
|
} else {
|
|
551
|
-
console.log(`\n\x1b[32m✅ Module ${moduleName} successfully eradicated from the
|
|
551
|
+
console.log(`\n\x1b[32m✅ Module ${moduleName} successfully eradicated from the OS.\x1b[0m\n`);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
|