@qubiit/lmagent 3.1.0 → 3.1.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.
package/AGENTS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # 🤖 LMAgent V3.0: The Engineering Constitution
2
2
  > **SINGLE SOURCE OF TRUTH**: Este archivo es tu Ley Suprema. Define tu identidad, tus capacidades y tus límites.
3
- > Framework: **LMAgent v3.1.0 (Total Awareness Standard)**
3
+ > Framework: **LMAgent v3.1.1 (Total Awareness Standard)**
4
4
 
5
5
  ---
6
6
 
package/CLAUDE.md CHANGED
@@ -1,4 +1,4 @@
1
- # 🤖 LMAgent Framework v3.1.0
1
+ # 🤖 LMAgent Framework v3.1.1
2
2
 
3
3
  > [!IMPORTANT]
4
4
  > **REDIRECT NOTICE**: La configuración de este framework se ha centralizado.
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  by QuBit
11
11
  ```
12
12
 
13
- ![Version](https://img.shields.io/badge/version-3.1.0-blue.svg) ![License](https://img.shields.io/badge/License-MIT-green?style=for-the-badge) ![Agentic](https://img.shields.io/badge/AI-Agentic_Workflow-cyan?style=for-the-badge)
13
+ ![Version](https://img.shields.io/badge/version-3.1.1-blue.svg) ![License](https://img.shields.io/badge/License-MIT-green?style=for-the-badge) ![Agentic](https://img.shields.io/badge/AI-Agentic_Workflow-cyan?style=for-the-badge)
14
14
 
15
15
  > **"Separate the reasoning from the execution."**
16
16
  > LMAgent is the foundational runtime that empowers your AI Agents with standardized **Skills**, **Rules**, and **Workflows** across any IDE (Cursor, Windsurf, VSCode, Zed, Qodo).
package/install.js CHANGED
@@ -343,7 +343,7 @@ const IDE_CONFIGS = [
343
343
  program
344
344
  .name('lmagent')
345
345
  .description('CLI para instalar skills y reglas de LMAgent')
346
- .version('3.1.0');
346
+ .version('3.1.1');
347
347
 
348
348
  program.command('install')
349
349
  .description('Instalar skills, rules y workflows en el IDE del proyecto')
@@ -414,6 +414,45 @@ function arePathsEqual(p1, p2) {
414
414
  return path.resolve(p1).toLowerCase() === path.resolve(p2).toLowerCase();
415
415
  }
416
416
 
417
+ // Helper to deploy AGENTS.md and CLAUDE.md to project root
418
+ async function deployCorePillars(options, projectRoot) {
419
+ console.log(chalk.bold('\n🚀 Desplegando Pilares de Inteligencia (Contexto Root):'));
420
+ for (const file of INIT_FILES) {
421
+ const srcPath = path.join(__dirname, file.src);
422
+ const destPath = path.join(projectRoot, file.src);
423
+
424
+ if (fs.existsSync(srcPath)) {
425
+ let shouldCopy = false;
426
+ if (!fs.existsSync(destPath)) {
427
+ shouldCopy = true;
428
+ console.log(` ${chalk.green('✔')} ${file.src} (Creado en la raíz)`);
429
+ } else {
430
+ if (options.force) {
431
+ shouldCopy = true;
432
+ console.log(` ${chalk.yellow('✎')} ${file.src} (Sobrescribiendo por --force)`);
433
+ } else if (options.yes) {
434
+ // En modo --yes, si ya existe, NO sobrescribimos para no borrar personalización del usuario
435
+ // PERO informamos.
436
+ console.log(` ${chalk.blue('ℹ')} ${file.src} ya existe (Manteniendo versión local)`);
437
+ } else {
438
+ const answer = await inquirer.prompt([{
439
+ type: 'confirm',
440
+ name: 'overwrite',
441
+ message: `⚠️ ${file.src} ya existe en la raíz. ¿Deseas actualizarlo/sobrescribirlo?`,
442
+ default: false
443
+ }]);
444
+ shouldCopy = answer.overwrite;
445
+ if (shouldCopy) console.log(` ${chalk.yellow('✎')} ${file.src} (Actualizado)`);
446
+ }
447
+ }
448
+
449
+ if (shouldCopy) {
450
+ fs.copyFileSync(srcPath, destPath);
451
+ }
452
+ }
453
+ }
454
+ }
455
+
417
456
  async function runInstall(options) {
418
457
  console.clear();
419
458
  const branding = figlet.textSync('LMAGENT', { font: 'ANSI Shadow' });
@@ -441,6 +480,7 @@ async function runInstall(options) {
441
480
  // console.error(chalk.red(`❌ Error al sincronizar repositorio global: ${e.message}`));
442
481
  }
443
482
 
483
+ await deployCorePillars(options, projectRoot);
444
484
  const SOURCE_SKILLS = PACKAGE_SKILLS_DIR;
445
485
  const SOURCE_RULES = PACKAGE_RULES_DIR;
446
486
  const SOURCE_WORKFLOWS = PACKAGE_WORKFLOWS_DIR;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.1.0",
6
+ "version": "3.1.1",
7
7
  "files": [
8
8
  "install.js",
9
9
  "README.md",