@saulwade/swl-ses 2.3.1 → 2.4.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.
Files changed (123) hide show
  1. package/CLAUDE.md +242 -240
  2. package/README.md +597 -597
  3. package/agentes/_intent-spec.md +73 -73
  4. package/agentes/_propose-step.md +90 -90
  5. package/agentes/accesibilidad-wcag-swl.md +690 -690
  6. package/agentes/arquitecto-swl.md +267 -267
  7. package/agentes/auto-evolucion-swl.md +908 -908
  8. package/agentes/backend-api-swl.md +472 -472
  9. package/agentes/backend-csharp-swl.md +420 -420
  10. package/agentes/backend-go-swl.md +390 -390
  11. package/agentes/backend-java-swl.md +281 -281
  12. package/agentes/backend-node-swl.md +479 -479
  13. package/agentes/backend-python-swl.md +605 -605
  14. package/agentes/backend-rust-swl.md +364 -364
  15. package/agentes/backend-workers-swl.md +482 -482
  16. package/agentes/cloud-infra-swl.md +509 -509
  17. package/agentes/consolidador-swl.md +541 -541
  18. package/agentes/datos-swl.md +605 -605
  19. package/agentes/depurador-swl.md +352 -352
  20. package/agentes/devops-ci-swl.md +400 -400
  21. package/agentes/disenador-ui-swl.md +569 -569
  22. package/agentes/documentador-swl.md +345 -345
  23. package/agentes/frontend-angular-swl.md +621 -621
  24. package/agentes/frontend-css-swl.md +716 -716
  25. package/agentes/frontend-react-swl.md +692 -692
  26. package/agentes/frontend-swl.md +496 -496
  27. package/agentes/frontend-tailwind-swl.md +826 -826
  28. package/agentes/gh-fix-ci-swl.md +275 -275
  29. package/agentes/implementador-swl.md +328 -328
  30. package/agentes/investigador-swl.md +432 -432
  31. package/agentes/investigador-ux-swl.md +505 -505
  32. package/agentes/llm-apps-swl.md +278 -278
  33. package/agentes/migrador-swl.md +442 -442
  34. package/agentes/mobile-android-swl.md +511 -511
  35. package/agentes/mobile-cross-swl.md +541 -541
  36. package/agentes/mobile-ios-swl.md +502 -502
  37. package/agentes/mobile-testing-swl.md +302 -302
  38. package/agentes/nemesis-auditor-swl.md +285 -285
  39. package/agentes/notificador-swl.md +918 -918
  40. package/agentes/observabilidad-swl.md +438 -438
  41. package/agentes/orquestador-swl.md +1053 -1026
  42. package/agentes/pagos-swl.md +310 -310
  43. package/agentes/perfilador-usuario-swl.md +321 -321
  44. package/agentes/planificador-swl.md +399 -399
  45. package/agentes/producto-prd-swl.md +589 -589
  46. package/agentes/red-team-swl.md +218 -218
  47. package/agentes/release-manager-swl.md +590 -590
  48. package/agentes/rendimiento-swl.md +713 -713
  49. package/agentes/resolutor-build-swl.md +245 -245
  50. package/agentes/revisor-angular-swl.md +278 -278
  51. package/agentes/revisor-codigo-swl.md +538 -505
  52. package/agentes/revisor-csharp-swl.md +264 -264
  53. package/agentes/revisor-go-swl.md +259 -259
  54. package/agentes/revisor-java-swl.md +257 -257
  55. package/agentes/revisor-kotlin-swl.md +273 -273
  56. package/agentes/revisor-nextjs-swl.md +281 -281
  57. package/agentes/revisor-php-swl.md +271 -271
  58. package/agentes/revisor-react-swl.md +278 -278
  59. package/agentes/revisor-rust-swl.md +346 -346
  60. package/agentes/revisor-seguridad-swl.md +399 -399
  61. package/agentes/revisor-swift-swl.md +268 -268
  62. package/agentes/revisor-typescript-swl.md +346 -346
  63. package/agentes/sre-swl.md +291 -291
  64. package/agentes/tdd-qa-swl.md +393 -393
  65. package/comandos/swl/contexto.md +0 -2
  66. package/comandos/swl/deuda-codigo.md +97 -0
  67. package/habilidades/angular-moderno/SKILL.md +5 -1
  68. package/habilidades/contenedores-docker/SKILL.md +3 -1
  69. package/habilidades/ejecutar-task-iterativo/SKILL.md +278 -278
  70. package/habilidades/harness-claude-code/SKILL.md +5 -4
  71. package/habilidades/harness-claude-code/recursos/disciplina-harness-regla.md +6 -5
  72. package/habilidades/legacy-code-rescue/SKILL.md +2 -1
  73. package/habilidades/meta-skills-estandar/SKILL.md +1 -1
  74. package/habilidades/meta-skills-estandar/recursos/skills-as-agents.md +2 -2
  75. package/habilidades/postgresql-experto/SKILL.md +3 -1
  76. package/habilidades/prevencion-sobreingenieria/SKILL.md +70 -92
  77. package/habilidades/prevencion-sobreingenieria/recursos/soluciones-nativas.md +166 -0
  78. package/habilidades/prevencion-sobreingenieria/recursos/variables-residuales-post-refactor.md +85 -0
  79. package/habilidades/tdd-workflow/SKILL.md +3 -1
  80. package/hooks/audit-trail.js +4 -4
  81. package/hooks/calidad-pre-commit.js +15 -11
  82. package/hooks/captura-acciones-post.js +3 -2
  83. package/hooks/captura-acciones-session.js +3 -2
  84. package/hooks/contexto-iteracion.js +2 -1
  85. package/hooks/contexto-subagente.js +68 -0
  86. package/hooks/guardrail-modelo.js +13 -3
  87. package/hooks/inyeccion-contexto.js +12 -12
  88. package/hooks/registro-turnos.js +5 -4
  89. package/hooks/spec-gate.js +2 -1
  90. package/hooks/sugerir-contribuir.js +2 -1
  91. package/hooks/sugerir-regenerar-inventario.js +3 -2
  92. package/hooks/tdd-gate.js +2 -1
  93. package/llms.txt +3 -3
  94. package/manifiestos/canonical-hashes.json +995 -10
  95. package/manifiestos/hook-profiles.json +0 -2
  96. package/manifiestos/hooks-config.json +469 -477
  97. package/manifiestos/invariantes-criticos.json +30 -0
  98. package/manifiestos/modulos.json +1390 -1390
  99. package/manifiestos/skills-lock.json +24 -24
  100. package/package.json +93 -93
  101. package/plugin.json +369 -371
  102. package/reglas/arreglar-al-detectar.md +16 -0
  103. package/reglas/pruebas.md +7 -3
  104. package/schemas/agent-frontmatter.schema.json +3 -1
  105. package/scripts/actualizar.js +253 -254
  106. package/scripts/doctor.js +25 -17
  107. package/scripts/instalador.js +4 -1
  108. package/scripts/lib/detectar-runtime.js +58 -0
  109. package/scripts/lib/expandir-targets.js +71 -71
  110. package/scripts/lib/hooks-settings.js +40 -3
  111. package/scripts/lib/preservar-usuario.js +39 -5
  112. package/scripts/lib/toml-merge.js +204 -204
  113. package/scripts/mcp-server/auth.js +105 -105
  114. package/scripts/mcp-server/cache.js +106 -106
  115. package/scripts/tui/pantallas/inspect.js +175 -173
  116. package/scripts/tui/pantallas/uninstall-wizard.js +210 -208
  117. package/scripts/tui/pantallas/update-wizard.js +234 -232
  118. package/scripts/tui/pantallas/welcome.js +189 -187
  119. package/scripts/validar.js +1 -1
  120. package/scripts/verificar-release.js +51 -0
  121. package/hooks/lib/context-compressor.js +0 -657
  122. package/hooks/linea-estado.js +0 -328
  123. package/hooks/monitor-contexto.js +0 -373
@@ -1,208 +1,210 @@
1
- 'use strict';
2
-
3
- /**
4
- * Wizard de desinstalación TUI.
5
- * Operación destructiva — requiere doble confirmación:
6
- * 1. Multi-select de instalaciones a desinstalar (default: ninguna preseleccionada)
7
- * 2. Vista previa de qué se eliminará (rutas, conteo de archivos)
8
- * 3. Confirmación con escritura explícita del nombre del runtime (anti-clicaccidental)
9
- * 4. Confirmación final
10
- *
11
- * NUNCA toca _userland/ ni APRENDIZAJES.md por diseño del desinstalador.
12
- */
13
-
14
- const fs = require('fs');
15
- const path = require('path');
16
-
17
- const { selectorUnico } = require('../componentes/selector-unico');
18
- const { selectorMulti } = require('../componentes/selector-multi');
19
- const render = require('../lib/render');
20
- const teclas = require('../lib/teclas');
21
- const { colores, semantico, iconos } = require('../lib/colores');
22
-
23
- function _cargarInstalaciones() {
24
- let detectarRuntimes, cargarEstado;
25
- try {
26
- ({ detectarRuntimes } = require('../../lib/detectar-runtime'));
27
- ({ cargarEstado } = require('../../lib/estado'));
28
- } catch (_) {
29
- return [];
30
- }
31
-
32
- const runtimes = detectarRuntimes();
33
- const filas = [];
34
- for (const runtime of runtimes) {
35
- const candidatos = [
36
- { ruta: runtime.global, scope: 'global', esGlobal: true },
37
- { ruta: path.resolve(runtime.local), scope: 'proyecto', esGlobal: false },
38
- ];
39
- for (const { ruta, scope, esGlobal } of candidatos) {
40
- if (!fs.existsSync(ruta)) continue;
41
- const estado = cargarEstado(ruta);
42
- if (!estado) continue;
43
- filas.push({
44
- id: `${runtime.id}:${scope}`,
45
- runtimeId: runtime.id,
46
- runtimeNombre: runtime.nombre,
47
- scope,
48
- esGlobal,
49
- ruta,
50
- version: estado.versionSistema || 'desconocida',
51
- perfil: estado.perfil || '-',
52
- archivos: estado.archivosInstalados?.length || 0,
53
- });
54
- }
55
- }
56
- return filas;
57
- }
58
-
59
- // ---------------------------------------------------------------------------
60
- // Pantalla de vista previa de eliminación
61
- // ---------------------------------------------------------------------------
62
-
63
- function _pantallaPreview(seleccionadas) {
64
- return new Promise((resolve) => {
65
- if (!render.ES_TTY || !process.stdin.isTTY) {
66
- resolve(true);
67
- return;
68
- }
69
-
70
- function _renderizar() {
71
- render.limpiarPantalla();
72
- const { cols, rows } = render.obtenerDimensiones();
73
-
74
- render.escribirEn(2, 3, semantico.titulo('Vista previa de desinstalación'));
75
- render.escribirEn(3, 3, semantico.warn(
76
- `${iconos.warn} Esta operación es destructiva. Se eliminarán archivos del sistema.`));
77
-
78
- render.escribirEn(5, 3, semantico.enfasis('Instalaciones a eliminar:'));
79
- seleccionadas.forEach((i, idx) => {
80
- const linea =
81
- `${semantico.error(iconos.cross)} ` +
82
- render.rellenarDer(colores.negrita(i.runtimeNombre), 18) +
83
- render.rellenarDer(`(${i.scope})`, 12) +
84
- render.rellenarDer(`v${i.version}`, 12) +
85
- render.rellenarDer(i.perfil, 16) +
86
- colores.dim(`${i.archivos} archivos`);
87
- render.escribirEn(6 + idx, 5, linea);
88
- });
89
-
90
- const filaRutas = 7 + seleccionadas.length;
91
- render.escribirEn(filaRutas, 3, semantico.enfasis('Rutas afectadas:'));
92
- seleccionadas.forEach((i, idx) => {
93
- if (filaRutas + 1 + idx >= rows - 8) return;
94
- render.escribirEn(filaRutas + 1 + idx, 5,
95
- render.recortar(`${iconos.arrow} ${colores.dim(i.ruta)}`, cols - 7));
96
- });
97
-
98
- // Garantías preservadas
99
- const filaPres = filaRutas + seleccionadas.length + 2;
100
- if (filaPres < rows - 4) {
101
- render.escribirEn(filaPres, 3, semantico.exito('Lo que NO se toca:'));
102
- const preservados = [
103
- '_userland/ tu código y configuración personal',
104
- '.planning/APRENDIZAJES.md aprendizajes del proyecto',
105
- '.planning/ — sesiones y contexto del proyecto',
106
- 'Hooks externos no-SWL en settings.json',
107
- ];
108
- preservados.forEach((p, idx) => {
109
- if (filaPres + 1 + idx >= rows - 3) return;
110
- render.escribirEn(filaPres + 1 + idx, 5,
111
- `${semantico.exito(iconos.check)} ${colores.dim(p)}`);
112
- });
113
- }
114
-
115
- render.dibujarPiePagina([
116
- ['Enter', 'continuar a confirmación'],
117
- ['Esc', 'cancelar'],
118
- ]);
119
- }
120
-
121
- render.iniciarModoTui();
122
- _renderizar();
123
- const onResize = () => _renderizar();
124
- process.stdout.on('resize', onResize);
125
-
126
- const teclado = teclas.crearTeclado();
127
- function _finalizar(v) {
128
- teclado.desactivar();
129
- process.stdout.removeListener('resize', onResize);
130
- render.salirModoTui();
131
- resolve(v);
132
- }
133
- teclado.on('return', () => _finalizar(true));
134
- teclado.on('escape', () => _finalizar(false));
135
- teclado.activar();
136
- });
137
- }
138
-
139
- // ---------------------------------------------------------------------------
140
- // Wizard principal
141
- // ---------------------------------------------------------------------------
142
-
143
- async function ejecutarWizardUninstall() {
144
- const instalaciones = _cargarInstalaciones();
145
-
146
- if (instalaciones.length === 0) {
147
- return {
148
- exito: false,
149
- error: 'No se detectaron instalaciones SWL para desinstalar.',
150
- sugerencia: 'Ejecuta swl-ses doctor para diagnosticar.',
151
- };
152
- }
153
-
154
- // 1. Multi-select (NADA preseleccionado por seguridad)
155
- const itemsRuntimes = instalaciones.map(i => ({
156
- valor: i.id,
157
- etiqueta: `${i.runtimeNombre} (${i.scope}) v${i.version} · perfil ${i.perfil}`,
158
- descripcion: `${i.archivos} archivos en ${i.ruta}`,
159
- preseleccionado: false,
160
- }));
161
-
162
- const idsElegidos = await selectorMulti({
163
- titulo: 'Paso 1/3 — ¿Qué instalaciones desinstalar? (espacio para marcar)',
164
- items: itemsRuntimes,
165
- });
166
- if (idsElegidos === null) return { exito: false, cancelado: true };
167
- if (idsElegidos.length === 0) {
168
- return { exito: false, vacio: true, error: 'No seleccionaste nada.' };
169
- }
170
-
171
- const seleccionadas = instalaciones.filter(i => idsElegidos.includes(i.id));
172
-
173
- // 2. Vista previa
174
- const proceder = await _pantallaPreview(seleccionadas);
175
- if (!proceder) return { exito: false, cancelado: true };
176
-
177
- // 3. Doble confirmación
178
- const confirmacion = await selectorUnico({
179
- titulo: `Paso 3/3 ¿Confirmar desinstalación de ${seleccionadas.length} instalación(es)?`,
180
- items: [
181
- {
182
- valor: 'no',
183
- etiqueta: 'No, cancelar y volver al menú',
184
- descripcion: 'Vuelve sin tocar nada.',
185
- },
186
- {
187
- valor: 'si',
188
- etiqueta: `Sí, eliminar ${seleccionadas.length} instalación(es) ahora`,
189
- descripcion:
190
- 'Acción irreversible. Si tienes dudas, escoge "No" y haz backup primero. ' +
191
- 'Recuerda que _userland/ y APRENDIZAJES.md se preservan.',
192
- badge: 'destructivo',
193
- },
194
- ],
195
- indiceDefault: 0, // default seguro: cancelar
196
- });
197
- if (confirmacion !== 'si') return { exito: false, cancelado: true };
198
-
199
- return {
200
- exito: true,
201
- plan: { seleccionadas },
202
- };
203
- }
204
-
205
- module.exports = {
206
- ejecutarWizardUninstall,
207
- _cargarInstalaciones,
208
- };
1
+ 'use strict';
2
+
3
+ /**
4
+ * Wizard de desinstalación TUI.
5
+ * Operación destructiva — requiere doble confirmación:
6
+ * 1. Multi-select de instalaciones a desinstalar (default: ninguna preseleccionada)
7
+ * 2. Vista previa de qué se eliminará (rutas, conteo de archivos)
8
+ * 3. Confirmación con escritura explícita del nombre del runtime (anti-clicaccidental)
9
+ * 4. Confirmación final
10
+ *
11
+ * NUNCA toca _userland/ ni APRENDIZAJES.md por diseño del desinstalador.
12
+ */
13
+
14
+ const fs = require('fs');
15
+ const path = require('path');
16
+
17
+ const { selectorUnico } = require('../componentes/selector-unico');
18
+ const { selectorMulti } = require('../componentes/selector-multi');
19
+ const render = require('../lib/render');
20
+ const teclas = require('../lib/teclas');
21
+ const { colores, semantico, iconos } = require('../lib/colores');
22
+
23
+ function _cargarInstalaciones() {
24
+ let detectarRuntimes, cargarEstado;
25
+ try {
26
+ ({ detectarRuntimes, scopesReales } = require('../../lib/detectar-runtime'));
27
+ ({ cargarEstado } = require('../../lib/estado'));
28
+ } catch (_) {
29
+ return [];
30
+ }
31
+
32
+ const runtimes = detectarRuntimes();
33
+ const filas = [];
34
+ for (const runtime of runtimes) {
35
+ // Dedup + guard anti-fantasma: desde HOME, el local relativo resuelve al
36
+ // global propio (duplicado) o al de OTRO runtime (p.ej. .claude de
37
+ // OpenClaude = global de Claude Code) — ver scopesReales().
38
+ const candidatos = scopesReales(runtime).map(({ dir, esGlobal }) => (
39
+ { ruta: dir, scope: esGlobal ? 'global' : 'proyecto', esGlobal }
40
+ ));
41
+ for (const { ruta, scope, esGlobal } of candidatos) {
42
+ if (!fs.existsSync(ruta)) continue;
43
+ const estado = cargarEstado(ruta);
44
+ if (!estado) continue;
45
+ filas.push({
46
+ id: `${runtime.id}:${scope}`,
47
+ runtimeId: runtime.id,
48
+ runtimeNombre: runtime.nombre,
49
+ scope,
50
+ esGlobal,
51
+ ruta,
52
+ version: estado.versionSistema || 'desconocida',
53
+ perfil: estado.perfil || '-',
54
+ archivos: estado.archivosInstalados?.length || 0,
55
+ });
56
+ }
57
+ }
58
+ return filas;
59
+ }
60
+
61
+ // ---------------------------------------------------------------------------
62
+ // Pantalla de vista previa de eliminación
63
+ // ---------------------------------------------------------------------------
64
+
65
+ function _pantallaPreview(seleccionadas) {
66
+ return new Promise((resolve) => {
67
+ if (!render.ES_TTY || !process.stdin.isTTY) {
68
+ resolve(true);
69
+ return;
70
+ }
71
+
72
+ function _renderizar() {
73
+ render.limpiarPantalla();
74
+ const { cols, rows } = render.obtenerDimensiones();
75
+
76
+ render.escribirEn(2, 3, semantico.titulo('Vista previa de desinstalación'));
77
+ render.escribirEn(3, 3, semantico.warn(
78
+ `${iconos.warn} Esta operación es destructiva. Se eliminarán archivos del sistema.`));
79
+
80
+ render.escribirEn(5, 3, semantico.enfasis('Instalaciones a eliminar:'));
81
+ seleccionadas.forEach((i, idx) => {
82
+ const linea =
83
+ `${semantico.error(iconos.cross)} ` +
84
+ render.rellenarDer(colores.negrita(i.runtimeNombre), 18) +
85
+ render.rellenarDer(`(${i.scope})`, 12) +
86
+ render.rellenarDer(`v${i.version}`, 12) +
87
+ render.rellenarDer(i.perfil, 16) +
88
+ colores.dim(`${i.archivos} archivos`);
89
+ render.escribirEn(6 + idx, 5, linea);
90
+ });
91
+
92
+ const filaRutas = 7 + seleccionadas.length;
93
+ render.escribirEn(filaRutas, 3, semantico.enfasis('Rutas afectadas:'));
94
+ seleccionadas.forEach((i, idx) => {
95
+ if (filaRutas + 1 + idx >= rows - 8) return;
96
+ render.escribirEn(filaRutas + 1 + idx, 5,
97
+ render.recortar(`${iconos.arrow} ${colores.dim(i.ruta)}`, cols - 7));
98
+ });
99
+
100
+ // Garantías preservadas
101
+ const filaPres = filaRutas + seleccionadas.length + 2;
102
+ if (filaPres < rows - 4) {
103
+ render.escribirEn(filaPres, 3, semantico.exito('Lo que NO se toca:'));
104
+ const preservados = [
105
+ '_userland/ — tu código y configuración personal',
106
+ '.planning/APRENDIZAJES.md aprendizajes del proyecto',
107
+ '.planning/ — sesiones y contexto del proyecto',
108
+ 'Hooks externos no-SWL en settings.json',
109
+ ];
110
+ preservados.forEach((p, idx) => {
111
+ if (filaPres + 1 + idx >= rows - 3) return;
112
+ render.escribirEn(filaPres + 1 + idx, 5,
113
+ `${semantico.exito(iconos.check)} ${colores.dim(p)}`);
114
+ });
115
+ }
116
+
117
+ render.dibujarPiePagina([
118
+ ['Enter', 'continuar a confirmación'],
119
+ ['Esc', 'cancelar'],
120
+ ]);
121
+ }
122
+
123
+ render.iniciarModoTui();
124
+ _renderizar();
125
+ const onResize = () => _renderizar();
126
+ process.stdout.on('resize', onResize);
127
+
128
+ const teclado = teclas.crearTeclado();
129
+ function _finalizar(v) {
130
+ teclado.desactivar();
131
+ process.stdout.removeListener('resize', onResize);
132
+ render.salirModoTui();
133
+ resolve(v);
134
+ }
135
+ teclado.on('return', () => _finalizar(true));
136
+ teclado.on('escape', () => _finalizar(false));
137
+ teclado.activar();
138
+ });
139
+ }
140
+
141
+ // ---------------------------------------------------------------------------
142
+ // Wizard principal
143
+ // ---------------------------------------------------------------------------
144
+
145
+ async function ejecutarWizardUninstall() {
146
+ const instalaciones = _cargarInstalaciones();
147
+
148
+ if (instalaciones.length === 0) {
149
+ return {
150
+ exito: false,
151
+ error: 'No se detectaron instalaciones SWL para desinstalar.',
152
+ sugerencia: 'Ejecuta swl-ses doctor para diagnosticar.',
153
+ };
154
+ }
155
+
156
+ // 1. Multi-select (NADA preseleccionado por seguridad)
157
+ const itemsRuntimes = instalaciones.map(i => ({
158
+ valor: i.id,
159
+ etiqueta: `${i.runtimeNombre} (${i.scope}) — v${i.version} · perfil ${i.perfil}`,
160
+ descripcion: `${i.archivos} archivos en ${i.ruta}`,
161
+ preseleccionado: false,
162
+ }));
163
+
164
+ const idsElegidos = await selectorMulti({
165
+ titulo: 'Paso 1/3 — ¿Qué instalaciones desinstalar? (espacio para marcar)',
166
+ items: itemsRuntimes,
167
+ });
168
+ if (idsElegidos === null) return { exito: false, cancelado: true };
169
+ if (idsElegidos.length === 0) {
170
+ return { exito: false, vacio: true, error: 'No seleccionaste nada.' };
171
+ }
172
+
173
+ const seleccionadas = instalaciones.filter(i => idsElegidos.includes(i.id));
174
+
175
+ // 2. Vista previa
176
+ const proceder = await _pantallaPreview(seleccionadas);
177
+ if (!proceder) return { exito: false, cancelado: true };
178
+
179
+ // 3. Doble confirmación
180
+ const confirmacion = await selectorUnico({
181
+ titulo: `Paso 3/3 — ¿Confirmar desinstalación de ${seleccionadas.length} instalación(es)?`,
182
+ items: [
183
+ {
184
+ valor: 'no',
185
+ etiqueta: 'No, cancelar y volver al menú',
186
+ descripcion: 'Vuelve sin tocar nada.',
187
+ },
188
+ {
189
+ valor: 'si',
190
+ etiqueta: `Sí, eliminar ${seleccionadas.length} instalación(es) ahora`,
191
+ descripcion:
192
+ 'Acción irreversible. Si tienes dudas, escoge "No" y haz backup primero. ' +
193
+ 'Recuerda que _userland/ y APRENDIZAJES.md se preservan.',
194
+ badge: 'destructivo',
195
+ },
196
+ ],
197
+ indiceDefault: 0, // default seguro: cancelar
198
+ });
199
+ if (confirmacion !== 'si') return { exito: false, cancelado: true };
200
+
201
+ return {
202
+ exito: true,
203
+ plan: { seleccionadas },
204
+ };
205
+ }
206
+
207
+ module.exports = {
208
+ ejecutarWizardUninstall,
209
+ _cargarInstalaciones,
210
+ };