fleetbo-cockpit-cli 1.0.188 → 1.0.190

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.
Files changed (2) hide show
  1. package/cli.js +14 -6
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -301,8 +301,8 @@ if (command === 'alex') {
301
301
 
302
302
  if (partialPatchMatch && !patchMatch) {
303
303
  console.log(`\n\x1b[31m⛔ REJECTED: Ambiguous command.\x1b[0m The platform is mandatory to avoid any Metal corruption.`);
304
- console.log(`\x1b[36m👉 Type:\x1b[0m patch module ${partialPatchMatch[1]} android`);
305
- console.log(`\x1b[36m Or:\x1b[0m patch module ${partialPatchMatch[1]} ios`);
304
+ console.log(`\x1b[36m Type:\x1b[0m patch module ${partialPatchMatch[1]} android`);
305
+ console.log(`\x1b[36m Or:\x1b[0m patch module ${partialPatchMatch[1]} ios`);
306
306
  return;
307
307
  }
308
308
 
@@ -338,7 +338,7 @@ if (command === 'alex') {
338
338
  const localMockCode = fs.existsSync(mockPath) ? fs.readFileSync(mockPath, 'utf8') : null;
339
339
 
340
340
  // Pushing to Cloud
341
- process.stdout.write(` \x1b[33m[Patch Sync]\x1b[0m Pushing ${targetPlatform.toUpperCase()} modifications to Cloud OS...`);
341
+ process.stdout.write(` \x1b[33m[Patch Sync]\x1b[0m Pushing ${targetPlatform.toUpperCase()} modifications to Cloud OS...`);
342
342
  try {
343
343
  await axios.post(INJECT_DEPS_URL, {
344
344
  projectId: projectId,
@@ -353,7 +353,7 @@ if (command === 'alex') {
353
353
  }
354
354
  });
355
355
  process.stdout.write(` \x1b[32mOK\x1b[0m\n`);
356
- console.log(`\x1b[32m SUCCESS:\x1b[0m The local version of ${nativeFileName} is now the official reference in the Cloud.`);
356
+ console.log(`\x1b[32m SUCCESS:\x1b[0m The local version of ${nativeFileName} is now the official reference in the Cloud.`);
357
357
  } catch (err) {
358
358
  process.stdout.write(` \x1b[31mFAILED\x1b[0m\n`);
359
359
  console.error(` ⚠️ OS sync failed: ${err.message}`);
@@ -598,9 +598,17 @@ if (command === 'alex') {
598
598
  console.error(` ⚠️ OS sync failed: ${err.message}`);
599
599
  }
600
600
 
601
- // 💡 NOUVEAU : ASTUCE CONTEXTUELLE DYNAMIQUE
601
+ // 💡 NOUVEAU : LES ASTUCES CONTEXTUELLES DYNAMIQUES
602
+ console.log('');
603
+
604
+ // Astuce 1 : Le Patch manuel
605
+ console.log(`\x1b[90m💡 If you manually edit the native code, sync it to the Cloud OS:\x1b[0m`);
606
+ console.log(` \x1b[33mpatch module\x1b[0m \x1b[36m${moduleName}\x1b[0m \x1b[33mandroid\x1b[0m \x1b[90m(or ios)\x1b[0m`);
607
+
608
+ // Astuce 2 : L'éradication
602
609
  console.log(`\x1b[90m💡 To eradicate this module later, open a new terminal and type:\x1b[0m`);
603
- console.log(`\x1b[31mnpm run fleetbo rm\x1b[0m \x1b[36m${moduleName}\x1b[0m`);
610
+ console.log(` \x1b[31mnpm run fleetbo rm\x1b[0m \x1b[36m${moduleName}\x1b[0m`);
611
+
604
612
 
605
613
  } else if (aiData.status === 'success' && !aiData.moduleData) {
606
614
  // SAFETY: If formatting is broken
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetbo-cockpit-cli",
3
- "version": "1.0.188",
3
+ "version": "1.0.190",
4
4
  "description": "Fleetbo CLI - Build native mobile apps with React",
5
5
  "author": "Fleetbo",
6
6
  "license": "MIT",