@qubiit/lmagent 3.0.4 → 3.0.7
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* LMAgent Skills Validator — v3.0.
|
|
4
|
+
* LMAgent Skills Validator — v3.0.7
|
|
5
5
|
*
|
|
6
6
|
* Valida la integridad de todos los skills del framework.
|
|
7
7
|
* Verifica: frontmatter YAML, campos obligatorios, estructura de directorio.
|
|
@@ -29,7 +29,7 @@ const SKILLS_DIR = join(ROOT, 'skills');
|
|
|
29
29
|
// ─── Configuración ────────────────────────────────────────────
|
|
30
30
|
const REQUIRED_FIELDS = ['name', 'description', 'role', 'type', 'version', 'icon', 'expertise', 'activates_on', 'triggers'];
|
|
31
31
|
const VALID_TYPES = ['agent_persona', 'methodology'];
|
|
32
|
-
const CURRENT_VERSION = '3.0.
|
|
32
|
+
const CURRENT_VERSION = '3.0.7';
|
|
33
33
|
const OPTIONAL_DIRS = ['scripts', 'references', 'assets'];
|
|
34
34
|
|
|
35
35
|
// ─── Colores (sin dependencias) ───────────────────────────────
|
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.0.
|
|
346
|
+
.version('3.0.7');
|
|
347
347
|
|
|
348
348
|
program.command('install')
|
|
349
349
|
.description('Instalar skills, rules y workflows en el IDE del proyecto')
|
|
@@ -441,9 +441,9 @@ async function runInstall(options) {
|
|
|
441
441
|
// console.error(chalk.red(`❌ Error al sincronizar repositorio global: ${e.message}`));
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
-
const SOURCE_SKILLS =
|
|
445
|
-
const SOURCE_RULES =
|
|
446
|
-
const SOURCE_WORKFLOWS =
|
|
444
|
+
const SOURCE_SKILLS = PACKAGE_SKILLS_DIR;
|
|
445
|
+
const SOURCE_RULES = PACKAGE_RULES_DIR;
|
|
446
|
+
const SOURCE_WORKFLOWS = PACKAGE_WORKFLOWS_DIR;
|
|
447
447
|
|
|
448
448
|
let targetIdes = [];
|
|
449
449
|
let selectedSkills = [];
|
|
@@ -572,7 +572,7 @@ async function runInstall(options) {
|
|
|
572
572
|
{
|
|
573
573
|
type: 'checkbox',
|
|
574
574
|
name: 'skills',
|
|
575
|
-
message: 'Selecciona:',
|
|
575
|
+
message: 'Selecciona (Espacio para elegir, Enter para confirmar):',
|
|
576
576
|
choices: availableSkills.map(s => ({ name: s, checked: true })),
|
|
577
577
|
pageSize: 15
|
|
578
578
|
}
|
|
@@ -585,7 +585,7 @@ async function runInstall(options) {
|
|
|
585
585
|
{
|
|
586
586
|
type: 'checkbox',
|
|
587
587
|
name: 'rules',
|
|
588
|
-
message: 'Selecciona:',
|
|
588
|
+
message: 'Selecciona (Espacio para elegir, Enter para confirmar):',
|
|
589
589
|
choices: availableRules.map(r => ({ name: r, checked: true })),
|
|
590
590
|
pageSize: 15
|
|
591
591
|
}
|
|
@@ -808,7 +808,12 @@ Use estos comandos para activar su rol. Para detalles, consulte \`AGENTS.md\`.
|
|
|
808
808
|
|
|
809
809
|
|
|
810
810
|
// CLEANUP: Remove legacy rules (V2)
|
|
811
|
-
|
|
811
|
+
// CLEANUP: Remove legacy rules (V2 & Duplicates)
|
|
812
|
+
const legacyRules = [
|
|
813
|
+
'_bootstrap.md', '_bootstrap.mdc', '00-bootstrap.md',
|
|
814
|
+
'agents-ia.md', 'stack.md', 'testing.md', 'security.md', 'code-style.md', 'documentation.md',
|
|
815
|
+
'workflow.md', 'api-design.md', 'automations-n8n.md', 'frontend.md', 'backend.md'
|
|
816
|
+
];
|
|
812
817
|
for (const legacy of legacyRules) {
|
|
813
818
|
const legacyPath = path.join(targetDir, legacy);
|
|
814
819
|
if (fs.existsSync(legacyPath)) {
|