@saulwade/swl-ses 1.7.0 → 1.7.2
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/CLAUDE.md +2 -2
- package/README.md +1 -1
- package/manifiestos/modulos.json +2 -1
- package/package.json +92 -92
- package/plugin.json +371 -371
- package/scripts/auditar-claudemd.js +44 -0
- package/scripts/lib/detector-autoduplicacion-intra-archivo.js +234 -0
- package/scripts/lib/reglas-globales-conocidas.json +73 -5
package/CLAUDE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# CLAUDE.md — @saulwade/swl-ses v1.7.
|
|
1
|
+
# CLAUDE.md — @saulwade/swl-ses v1.7.2
|
|
2
2
|
|
|
3
3
|
## Reglas de máxima prioridad (aplican SIEMPRE, sin excepción)
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Aplican las reglas globales `@~/.claude/rules/brevedad-output.md` (español de México, brevedad, sin AI-isms) y `@~/.claude/rules/git-coauthor.md` (sin co-autores en commits) — cargadas automáticamente en cada sesión. NO duplicar su contenido inline en este archivo (regla `@reglas/sin-duplicacion-reglas-globales.md`).
|
|
7
7
|
|
|
8
8
|
### Uso obligatorio del sistema SWL
|
|
9
|
-
|
|
9
|
+
Aplica la regla global `@~/.claude/rules/usar-sistema-swl.md` — matriz operacional completa (qué agente/skill/comando usar por tipo de tarea, excepciones legítimas, anti-patrones). Cargar skills con `Skill("nombre")` antes de implementar.
|
|
10
10
|
|
|
11
11
|
### Cuatro principios de implementación (Karpathy)
|
|
12
12
|
Antes de implementar, refactorizar o corregir bugs: (1) **pensar antes de codificar** (no asumir en silencio), (2) **simplicidad primero** (sin abstracciones especulativas), (3) **cambios quirúrgicos** (leer archivo completo antes de editar, no refactor de oportunidad), (4) **ejecución orientada a metas** (criterios verificables, test que reproduce bugs antes del fix). Tabla operativa + mapeo a agentes SWL en `@docs/karpathy-principios.md`. Detalle + 9 ejemplos MAL→BIEN: `Skill("prevencion-sobreingenieria")` + `recursos/EXAMPLES.md`.
|
package/README.md
CHANGED
package/manifiestos/modulos.json
CHANGED
|
@@ -1218,11 +1218,12 @@
|
|
|
1218
1218
|
"opt_in": true
|
|
1219
1219
|
},
|
|
1220
1220
|
"claudemd-auditor": {
|
|
1221
|
-
"descripcion": "Auditor de calidad de CLAUDE.md según best practices Anthropic (ADR-0016). Detecta inflación (líneas excesivas, bullets gigantes, secciones canónicas ausentes, sin @references, placeholders). Usado por el comando /swl:claudemd y por el hook claudemd-bloat-detector. Zero-deps. Soporta --json y --strict. Umbrales configurables: SWL_CLAUDEMD_MAX_LINES (default 200), SWL_CLAUDEMD_MAX_BULLET_CHARS (default 1000).",
|
|
1221
|
+
"descripcion": "Auditor de calidad de CLAUDE.md según best practices Anthropic (ADR-0016). Detecta inflación (líneas excesivas, bullets gigantes, secciones canónicas ausentes, sin @references, placeholders). Dimensión 8 (v1.7.0): duplicación inline de reglas globales ~/.claude/rules/ vía catálogo declarativo. Dimensión 9 (v1.7.2): auto-duplicación intra-archivo (2+ secciones H2 citan la misma regla global con prosa). Usado por el comando /swl:claudemd y por el hook claudemd-bloat-detector. Zero-deps. Soporta --json y --strict. Umbrales configurables: SWL_CLAUDEMD_MAX_LINES (default 200), SWL_CLAUDEMD_MAX_BULLET_CHARS (default 1000).",
|
|
1222
1222
|
"tipo": "scripts",
|
|
1223
1223
|
"archivos": [
|
|
1224
1224
|
"scripts/auditar-claudemd.js",
|
|
1225
1225
|
"scripts/lib/detector-reglas-duplicadas.js",
|
|
1226
|
+
"scripts/lib/detector-autoduplicacion-intra-archivo.js",
|
|
1226
1227
|
"scripts/lib/reglas-globales-conocidas.json",
|
|
1227
1228
|
"docs/variables-entorno.md"
|
|
1228
1229
|
],
|
package/package.json
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@saulwade/swl-ses",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"description": "Sistema de ingenieria de software auto-evolutivo multi-runtime polyglot con 61 agentes, 177 habilidades, 44 comandos, 71 reglas y 43 hooks. Soporta 11 lenguajes y 7 runtimes: Claude Code, OpenClaude, OpenCode, Gemini CLI, Cursor, Codex CLI (soporte completo); GitHub Copilot (soporte parcial). 100% en espanol (Mexico). Multi-target install (--target CSV / --all-runtimes), autoconfig MCP en Cursor/Codex con --with-mcp, agentes Codex en TOML, hooks Cursor (17 eventos) y Codex (6 eventos). Gateway bidireccional con relay Telegram y auditoria profunda Nemesis con loop evaluator-optimizer opt-in (ADR-0021) y 8 tools ejecutables. v1.7.
|
|
5
|
-
"bin": {
|
|
6
|
-
"swl-ses": "bin/swl-ses.js",
|
|
7
|
-
"swl-telegram-bot": "bin/swl-telegram-bot.js",
|
|
8
|
-
"swl-mcp-server": "bin/swl-mcp-server.js",
|
|
9
|
-
"swl-webhook-server": "bin/swl-webhook-server.js"
|
|
10
|
-
},
|
|
11
|
-
"files": [
|
|
12
|
-
"bin",
|
|
13
|
-
"scripts",
|
|
14
|
-
"manifiestos",
|
|
15
|
-
"agentes",
|
|
16
|
-
"habilidades",
|
|
17
|
-
"comandos",
|
|
18
|
-
"reglas",
|
|
19
|
-
"hooks",
|
|
20
|
-
"gateway",
|
|
21
|
-
"plantillas",
|
|
22
|
-
"contextos",
|
|
23
|
-
"instintos",
|
|
24
|
-
"schemas",
|
|
25
|
-
"_userland",
|
|
26
|
-
"plugin.json",
|
|
27
|
-
"CLAUDE.md"
|
|
28
|
-
],
|
|
29
|
-
"scripts": {
|
|
30
|
-
"postinstall": "echo '\n swl-software-engineering-system instalado.\n Ejecuta: npx swl-ses init\n'",
|
|
31
|
-
"test": "node --test tests/lib/*.test.js tests/scripts/*.test.js tests/scripts/lib/*.test.js tests/scripts/tui/*.test.js tests/hooks/*.test.js tests/hooks/lib/*.test.js tests/habilidades/*.test.js tests/gateway/*.test.js tests/bin/*.test.js tests/transformadores/*.test.js tests/mcp-server/*.test.js",
|
|
32
|
-
"test:validate": "node scripts/validar.js",
|
|
33
|
-
"test:manifest": "node scripts/validar-manifest.js",
|
|
34
|
-
"test:docs": "node scripts/verificar-docs-vs-codigo.js",
|
|
35
|
-
"test:smoke": "node scripts/smoke-test.js",
|
|
36
|
-
"test:aislamiento": "node scripts/validar-tests-aislamiento.js",
|
|
37
|
-
"test:all": "npm test && node scripts/validar.js && node scripts/validar-manifest.js && node scripts/verificar-docs-vs-codigo.js && node scripts/derivar-feature-list.js --check",
|
|
38
|
-
"test:userland": "node scripts/validar-userland-vacio.js",
|
|
39
|
-
"test:release": "npm run test:all && npm run test:userland && npm run test:smoke",
|
|
40
|
-
"doctor": "node scripts/doctor.js",
|
|
41
|
-
"prepack": "node scripts/limpiar-artefactos-python.js && node scripts/validar-userland-vacio.js",
|
|
42
|
-
"prepublishOnly": "npm run test:release",
|
|
43
|
-
"publish:all": "node scripts/publicar.js",
|
|
44
|
-
"publish:github": "node scripts/publicar.js --solo-github",
|
|
45
|
-
"publish:npmjs": "node scripts/publicar.js --solo-npmjs",
|
|
46
|
-
"publish:dry": "node scripts/publicar.js --dry-run",
|
|
47
|
-
"generate:docs": "node scripts/generar-inventario.js",
|
|
48
|
-
"gen-checklists": "node scripts/generar-checklists-consolidados.js",
|
|
49
|
-
"gen-checklists:check": "node scripts/generar-checklists-consolidados.js --check",
|
|
50
|
-
"gen:feature-list": "node scripts/derivar-feature-list.js",
|
|
51
|
-
"gen:feature-list:check": "node scripts/derivar-feature-list.js --check",
|
|
52
|
-
"field-report": "node scripts/field-report.js",
|
|
53
|
-
"configure:branch-protection": "node scripts/configurar-branch-protection.js"
|
|
54
|
-
},
|
|
55
|
-
"engines": {
|
|
56
|
-
"node": ">=22.0.0"
|
|
57
|
-
},
|
|
58
|
-
"keywords": [
|
|
59
|
-
"claude-code",
|
|
60
|
-
"github-copilot",
|
|
61
|
-
"gemini-cli",
|
|
62
|
-
"opencode",
|
|
63
|
-
"codex-cli",
|
|
64
|
-
"agentes",
|
|
65
|
-
"skills",
|
|
66
|
-
"multi-runtime",
|
|
67
|
-
"spec-driven",
|
|
68
|
-
"orquestacion",
|
|
69
|
-
"ingenieria-software"
|
|
70
|
-
],
|
|
71
|
-
"author": "Saul Wade Leon",
|
|
72
|
-
"license": "MIT",
|
|
73
|
-
"repository": {
|
|
74
|
-
"type": "git",
|
|
75
|
-
"url": "git+https://github.com/saul-wade/swl-ses.git"
|
|
76
|
-
},
|
|
77
|
-
"homepage": "https://github.com/saul-wade/swl-ses#readme",
|
|
78
|
-
"bugs": {
|
|
79
|
-
"url": "https://github.com/saul-wade/swl-ses/issues"
|
|
80
|
-
},
|
|
81
|
-
"publishConfig": {
|
|
82
|
-
"registry": "https://registry.npmjs.org/",
|
|
83
|
-
"access": "public"
|
|
84
|
-
},
|
|
85
|
-
"dependencies": {
|
|
86
|
-
"docx": "^9.6.1"
|
|
87
|
-
},
|
|
88
|
-
"overrides": {
|
|
89
|
-
"pako": "^2.1.0",
|
|
90
|
-
"readable-stream": "^4.7.0"
|
|
91
|
-
}
|
|
92
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@saulwade/swl-ses",
|
|
3
|
+
"version": "1.7.2",
|
|
4
|
+
"description": "Sistema de ingenieria de software auto-evolutivo multi-runtime polyglot con 61 agentes, 177 habilidades, 44 comandos, 71 reglas y 43 hooks. Soporta 11 lenguajes y 7 runtimes: Claude Code, OpenClaude, OpenCode, Gemini CLI, Cursor, Codex CLI (soporte completo); GitHub Copilot (soporte parcial). 100% en espanol (Mexico). Multi-target install (--target CSV / --all-runtimes), autoconfig MCP en Cursor/Codex con --with-mcp, agentes Codex en TOML, hooks Cursor (17 eventos) y Codex (6 eventos). Gateway bidireccional con relay Telegram y auditoria profunda Nemesis con loop evaluator-optimizer opt-in (ADR-0021) y 8 tools ejecutables. v1.7.2 introduce dimension 8 del auditor CLAUDE.md (deteccion de duplicacion de reglas globales) + hook PostToolUse claudemd-duplicacion-detector + regla sin-duplicacion-reglas-globales.md + catalogo declarativo reglas-globales-conocidas.json con 6 reglas (idioma, brevedad, git-coauthor, arreglar-al-detectar, debatir, context7).",
|
|
5
|
+
"bin": {
|
|
6
|
+
"swl-ses": "bin/swl-ses.js",
|
|
7
|
+
"swl-telegram-bot": "bin/swl-telegram-bot.js",
|
|
8
|
+
"swl-mcp-server": "bin/swl-mcp-server.js",
|
|
9
|
+
"swl-webhook-server": "bin/swl-webhook-server.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"bin",
|
|
13
|
+
"scripts",
|
|
14
|
+
"manifiestos",
|
|
15
|
+
"agentes",
|
|
16
|
+
"habilidades",
|
|
17
|
+
"comandos",
|
|
18
|
+
"reglas",
|
|
19
|
+
"hooks",
|
|
20
|
+
"gateway",
|
|
21
|
+
"plantillas",
|
|
22
|
+
"contextos",
|
|
23
|
+
"instintos",
|
|
24
|
+
"schemas",
|
|
25
|
+
"_userland",
|
|
26
|
+
"plugin.json",
|
|
27
|
+
"CLAUDE.md"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"postinstall": "echo '\n swl-software-engineering-system instalado.\n Ejecuta: npx swl-ses init\n'",
|
|
31
|
+
"test": "node --test tests/lib/*.test.js tests/scripts/*.test.js tests/scripts/lib/*.test.js tests/scripts/tui/*.test.js tests/hooks/*.test.js tests/hooks/lib/*.test.js tests/habilidades/*.test.js tests/gateway/*.test.js tests/bin/*.test.js tests/transformadores/*.test.js tests/mcp-server/*.test.js",
|
|
32
|
+
"test:validate": "node scripts/validar.js",
|
|
33
|
+
"test:manifest": "node scripts/validar-manifest.js",
|
|
34
|
+
"test:docs": "node scripts/verificar-docs-vs-codigo.js",
|
|
35
|
+
"test:smoke": "node scripts/smoke-test.js",
|
|
36
|
+
"test:aislamiento": "node scripts/validar-tests-aislamiento.js",
|
|
37
|
+
"test:all": "npm test && node scripts/validar.js && node scripts/validar-manifest.js && node scripts/verificar-docs-vs-codigo.js && node scripts/derivar-feature-list.js --check",
|
|
38
|
+
"test:userland": "node scripts/validar-userland-vacio.js",
|
|
39
|
+
"test:release": "npm run test:all && npm run test:userland && npm run test:smoke",
|
|
40
|
+
"doctor": "node scripts/doctor.js",
|
|
41
|
+
"prepack": "node scripts/limpiar-artefactos-python.js && node scripts/validar-userland-vacio.js",
|
|
42
|
+
"prepublishOnly": "npm run test:release",
|
|
43
|
+
"publish:all": "node scripts/publicar.js",
|
|
44
|
+
"publish:github": "node scripts/publicar.js --solo-github",
|
|
45
|
+
"publish:npmjs": "node scripts/publicar.js --solo-npmjs",
|
|
46
|
+
"publish:dry": "node scripts/publicar.js --dry-run",
|
|
47
|
+
"generate:docs": "node scripts/generar-inventario.js",
|
|
48
|
+
"gen-checklists": "node scripts/generar-checklists-consolidados.js",
|
|
49
|
+
"gen-checklists:check": "node scripts/generar-checklists-consolidados.js --check",
|
|
50
|
+
"gen:feature-list": "node scripts/derivar-feature-list.js",
|
|
51
|
+
"gen:feature-list:check": "node scripts/derivar-feature-list.js --check",
|
|
52
|
+
"field-report": "node scripts/field-report.js",
|
|
53
|
+
"configure:branch-protection": "node scripts/configurar-branch-protection.js"
|
|
54
|
+
},
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=22.0.0"
|
|
57
|
+
},
|
|
58
|
+
"keywords": [
|
|
59
|
+
"claude-code",
|
|
60
|
+
"github-copilot",
|
|
61
|
+
"gemini-cli",
|
|
62
|
+
"opencode",
|
|
63
|
+
"codex-cli",
|
|
64
|
+
"agentes",
|
|
65
|
+
"skills",
|
|
66
|
+
"multi-runtime",
|
|
67
|
+
"spec-driven",
|
|
68
|
+
"orquestacion",
|
|
69
|
+
"ingenieria-software"
|
|
70
|
+
],
|
|
71
|
+
"author": "Saul Wade Leon",
|
|
72
|
+
"license": "MIT",
|
|
73
|
+
"repository": {
|
|
74
|
+
"type": "git",
|
|
75
|
+
"url": "git+https://github.com/saul-wade/swl-ses.git"
|
|
76
|
+
},
|
|
77
|
+
"homepage": "https://github.com/saul-wade/swl-ses#readme",
|
|
78
|
+
"bugs": {
|
|
79
|
+
"url": "https://github.com/saul-wade/swl-ses/issues"
|
|
80
|
+
},
|
|
81
|
+
"publishConfig": {
|
|
82
|
+
"registry": "https://registry.npmjs.org/",
|
|
83
|
+
"access": "public"
|
|
84
|
+
},
|
|
85
|
+
"dependencies": {
|
|
86
|
+
"docx": "^9.6.1"
|
|
87
|
+
},
|
|
88
|
+
"overrides": {
|
|
89
|
+
"pako": "^2.1.0",
|
|
90
|
+
"readable-stream": "^4.7.0"
|
|
91
|
+
}
|
|
92
|
+
}
|