@qubiit/lmagent 3.0.0 → 3.0.1

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/install.js +27 -6
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -342,7 +342,7 @@ const IDE_CONFIGS = [
342
342
  program
343
343
  .name('lmagent')
344
344
  .description('CLI para instalar skills y reglas de LMAgent')
345
- .version('3.0.0');
345
+ .version('3.0.1');
346
346
 
347
347
  program.command('install')
348
348
  .description('Instalar skills, rules y workflows en el IDE del proyecto')
@@ -801,6 +801,17 @@ Use estos comandos para activar su rol. Para detalles, consulte \`AGENTS.md\`.
801
801
  try {
802
802
  if (!fs.existsSync(targetDir)) fs.mkdirSync(targetDir, { recursive: true });
803
803
 
804
+
805
+ // CLEANUP: Remove legacy rules (V2)
806
+ const legacyRules = ['_bootstrap.md', '_bootstrap.mdc', '00-bootstrap.md'];
807
+ for (const legacy of legacyRules) {
808
+ const legacyPath = path.join(targetDir, legacy);
809
+ if (fs.existsSync(legacyPath)) {
810
+ fs.unlinkSync(legacyPath);
811
+ console.log(` ${chalk.yellow('🗑 Eliminado regla obsoleta:')} ${legacy}`);
812
+ }
813
+ }
814
+
804
815
  for (const rule of selectedRules) {
805
816
  const srcVal = path.join(SOURCE_RULES, rule);
806
817
  const destVal = path.join(targetDir, rule);
@@ -1064,11 +1075,10 @@ async function runInit(options) {
1064
1075
  // Crear directorio root si no existe
1065
1076
  if (!fs.existsSync(agentRootDir)) fs.mkdirSync(agentRootDir, { recursive: true });
1066
1077
 
1067
- // Copiar Archivos (AGENTS.md, etc - EXCEPTO CLAUDE.md que suele ir en root)
1078
+ // Copiar Archivos (AGENTS.md, CLAUDE.md van a root)
1068
1079
  for (const file of filesToCopy) {
1069
- if (file.src === 'CLAUDE.md') {
1070
- // CLAUDE.md se queda en projectRoot para visibilidad inmediata si se usa Claude
1071
- // Opcional: Podríamos moverlo también, pero por ahora lo dejamos en root para compatibilidad
1080
+ if (file.src === 'CLAUDE.md' || file.src === 'AGENTS.md') {
1081
+ // Se copian a projectRoot para visibilidad inmediata
1072
1082
  const dest = path.join(projectRoot, file.src);
1073
1083
  if (fs.existsSync(path.join(__dirname, file.src))) {
1074
1084
  fs.copyFileSync(path.join(__dirname, file.src), dest);
@@ -1092,6 +1102,17 @@ async function runInit(options) {
1092
1102
  if (fs.existsSync(src)) {
1093
1103
  copyRecursiveSync(src, dest, true); // Force overwrite
1094
1104
  console.log(` ${chalk.green('✔')} ${dir.src}/ -> ${path.dirname(ide.skillsDir)}/${dir.src}/`);
1105
+
1106
+ // CLEANUP: If docs, remove assets (legacy logo, etc.)
1107
+ if (dir.src === 'docs') {
1108
+ const assetsDir = path.join(dest, 'assets');
1109
+ if (fs.existsSync(assetsDir)) {
1110
+ try {
1111
+ fs.rmSync(assetsDir, { recursive: true, force: true });
1112
+ console.log(` ${chalk.yellow('🗑 Eliminado assets heredados (logo, etc.)')}`);
1113
+ } catch (e) { }
1114
+ }
1115
+ }
1095
1116
  }
1096
1117
  }
1097
1118
  }
@@ -1132,7 +1153,7 @@ DEBUG=true
1132
1153
  }
1133
1154
 
1134
1155
  // Resumen
1135
- console.log(gradient.pastel.multiline('\n✨ Proyecto inicializado con LMAgent v3.0.0 ✨'));
1156
+ console.log(gradient.pastel.multiline('\n✨ Proyecto inicializado con LMAgent v3.0.1 ✨'));
1136
1157
  console.log('');
1137
1158
  console.log(chalk.cyan('Próximos pasos:'));
1138
1159
  console.log(` 1. ${chalk.bold('lmagent install')} - Instalar skills/rules/workflows en tu IDE`);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.0.0",
6
+ "version": "3.0.1",
7
7
  "files": [
8
8
  "install.js",
9
9
  "README.md",