nexakit 0.3.0 → 0.5.0

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 (68) hide show
  1. package/.claude-plugin/marketplace.json +10 -5
  2. package/README.md +12 -4
  3. package/assets/runtime/package-lock.json +12 -12
  4. package/package.json +11 -10
  5. package/plugins/huellas.json +22 -0
  6. package/plugins/nexakit-ahorro/.claude-plugin/plugin.json +1 -0
  7. package/plugins/nexakit-ahorro/README.md +24 -0
  8. package/plugins/nexakit-ahorro/hooks/compactar.js +39 -0
  9. package/plugins/nexakit-ahorro/hooks/hooks.json +1 -0
  10. package/plugins/nexakit-ahorro/hooks/register.js +75 -0
  11. package/plugins/nexakit-lecciones/.claude-plugin/plugin.json +1 -0
  12. package/plugins/nexakit-lecciones/README.md +30 -0
  13. package/plugins/nexakit-lecciones/hooks/hooks.json +1 -0
  14. package/plugins/nexakit-lecciones/hooks/lecciones.js +115 -0
  15. package/plugins/nexakit-lecciones/hooks/register.js +120 -0
  16. package/plugins/nexakit-lecciones/tests/register.test.ts +16 -0
  17. package/plugins/nexakit-modelo/.claude-plugin/plugin.json +1 -1
  18. package/plugins/nexakit-modelo/hooks/barra.js +92 -0
  19. package/plugins/nexakit-modelo/hooks/decidir.js +50 -0
  20. package/plugins/nexakit-modelo/hooks/recomendar.js +66 -0
  21. package/plugins/nexakit-modelo/hooks/register.js +145 -18
  22. package/plugins/nexakit-modelo/hooks/umbrales.js +3 -0
  23. package/plugins/nexakit-modelo/tests/register.test.ts +1 -1
  24. package/plugins/nexakit-sesion/.claude-plugin/plugin.json +1 -1
  25. package/plugins/nexakit-sesion/README.md +3 -3
  26. package/plugins/nexakit-sesion/hooks/aviso.js +28 -11
  27. package/plugins/nexakit-sesion/hooks/register.js +30 -2
  28. package/plugins/nexakit-sesion/tests/register.test.ts +3 -16
  29. package/plugins/niveles/.claude-plugin/plugin.json +1 -1
  30. package/plugins/niveles/agents/nivel-alto.md +3 -3
  31. package/plugins/niveles/agents/nivel-exigente.md +3 -3
  32. package/plugins/niveles/agents/nivel-ligero.md +3 -3
  33. package/plugins/niveles/agents/nivel-normal.md +3 -3
  34. package/scripts/prepare-package.js +0 -3
  35. package/skills/cerrar-memoria/SKILL.md +5 -1
  36. package/skills/elegir-modelo/SKILL.md +30 -2
  37. package/skills/project-handoff/SKILL.md +1 -1
  38. package/skills/quality-gate/SKILL.md +1 -1
  39. package/skills/revisar/SKILL.md +46 -6
  40. package/src/agent-models.js +14 -7
  41. package/src/ahorro-command.js +64 -0
  42. package/src/cli.js +96 -0
  43. package/src/connect.js +4 -4
  44. package/src/lecciones-command.js +82 -0
  45. package/src/level-agents.js +4 -3
  46. package/src/memory-allow-dir.js +152 -0
  47. package/src/review-instructions.js +18 -29
  48. package/src/revision-adapters.js +1 -0
  49. package/src/setup-apply.js +5 -0
  50. package/src/setup-plan.js +10 -0
  51. package/src/setup-state.js +18 -0
  52. package/src/toolkit-cli.js +8 -4
  53. package/src/toolkit-commands-guide.js +9 -1
  54. package/src/toolkit-setup.js +2 -2
  55. package/plugins/nexakit-modelo/hooks/status.js +0 -8
  56. package/plugins/nexakit-panel/.claude-plugin/plugin.json +0 -1
  57. package/plugins/nexakit-panel/README.md +0 -20
  58. package/plugins/nexakit-panel/hooks/hooks.json +0 -1
  59. package/plugins/nexakit-panel/hooks/lienzo.js +0 -382
  60. package/plugins/nexakit-panel/hooks/panel.js +0 -273
  61. package/plugins/nexakit-panel/hooks/redact.js +0 -9
  62. package/plugins/nexakit-panel/hooks/register.tsx +0 -248
  63. package/plugins/nexakit-panel/tests/lienzo.test.ts +0 -142
  64. package/plugins/nexakit-panel/tests/panel.test.ts +0 -240
  65. package/plugins/nexakit-panel/tests/register.test.ts +0 -167
  66. package/plugins/nexakit-panel/types/index.d.ts +0 -41
  67. package/skills/revision-cruzada/SKILL.md +0 -59
  68. package/src/panel-cli.js +0 -182
@@ -0,0 +1,152 @@
1
+ import { spawnSync } from "node:child_process";
2
+ import fs from "node:fs";
3
+ import path from "node:path";
4
+
5
+ import { IS_WINDOWS } from "./platform.js";
6
+ import {
7
+ ConnectionError,
8
+ readJson,
9
+ resolveConfiguredPath,
10
+ resolveManifestPath,
11
+ writeTextAtomic
12
+ } from "./connect.js";
13
+
14
+ // Claude Code solo lee y escribe fuera de la carpeta del proyecto si esa carpeta está declarada. Esta orden
15
+ // añade la bóveda de memoria a `permissions.additionalDirectories` del archivo LOCAL del proyecto
16
+ // (.claude/settings.local.json), que es personal: la ruta de tu equipo no debe llegar a un commit.
17
+ //
18
+ // Lo que concede: las lecturas de esa carpeta dejan de pedir permiso. Las ediciones siguen el modo de permisos
19
+ // de la sesión, así que en modo manual cada escritura sigue pidiéndolo. No toca los ajustes del usuario ni quita
20
+ // `blockReadsOutsideWorkingDirectories`: abre una sola carpeta, no desactiva la protección.
21
+
22
+ const SETTINGS_RELATIVE = [".claude", "settings.local.json"];
23
+ const SETTINGS_GIT_PATH = ".claude/settings.local.json";
24
+
25
+ const same = (left, right) =>
26
+ IS_WINDOWS ? path.resolve(left).toLowerCase() === path.resolve(right).toLowerCase() : path.resolve(left) === path.resolve(right);
27
+
28
+ function git(repository, args) {
29
+ const result = spawnSync("git", ["-C", repository, ...args], { encoding: "utf8", shell: false });
30
+ return { status: result.status, stdout: (result.stdout ?? "").trim() };
31
+ }
32
+
33
+ function lstatOrNull(target) {
34
+ try {
35
+ return fs.lstatSync(target);
36
+ } catch {
37
+ return null;
38
+ }
39
+ }
40
+
41
+ function isDirectory(target) {
42
+ try {
43
+ return fs.statSync(target).isDirectory();
44
+ } catch {
45
+ return false;
46
+ }
47
+ }
48
+
49
+ function conflict(report, reason) {
50
+ report.status = "conflict";
51
+ report.reasons.push(reason);
52
+ return report;
53
+ }
54
+
55
+ function readSettings(settingsPath) {
56
+ const info = lstatOrNull(settingsPath);
57
+ if (!info) return { settings: {}, exists: false };
58
+ if (info.isSymbolicLink() || !info.isFile()) {
59
+ throw new ConnectionError([`${settingsPath} no es un archivo normal (enlace simbólico o carpeta).`]);
60
+ }
61
+ const settings = readJson(settingsPath, "los ajustes locales de Claude Code");
62
+ if (settings === null || typeof settings !== "object" || Array.isArray(settings)) {
63
+ throw new ConnectionError([`${settingsPath} debe contener un objeto JSON.`]);
64
+ }
65
+ return { settings, exists: true };
66
+ }
67
+
68
+ export async function allowMemoryDirectory(options = {}) {
69
+ const target = path.resolve(options.targetPath ?? process.cwd());
70
+ const manifestPath = resolveManifestPath(target, options.manifestPath);
71
+ if (!manifestPath) throw new ConnectionError(["No se encontró project-memory.json."]);
72
+
73
+ const manifest = readJson(manifestPath, "manifiesto");
74
+ const manifestDirectory = path.dirname(manifestPath);
75
+ if (typeof manifest?.memory?.vaultPath !== "string" || typeof manifest?.source?.repositoryPath !== "string") {
76
+ throw new ConnectionError(["El manifiesto no declara memory.vaultPath y source.repositoryPath."]);
77
+ }
78
+ const vaultPath = resolveConfiguredPath(manifestDirectory, manifest.memory.vaultPath);
79
+ const repository = resolveConfiguredPath(manifestDirectory, manifest.source.repositoryPath);
80
+ const settingsPath = path.join(repository, ...SETTINGS_RELATIVE);
81
+
82
+ const report = {
83
+ command: "project-memory allow-dir",
84
+ status: "preview",
85
+ agent: "claude",
86
+ vaultPath,
87
+ repositoryPath: repository,
88
+ settingsPath,
89
+ changes: [],
90
+ reasons: []
91
+ };
92
+
93
+ if (!isDirectory(vaultPath)) return conflict(report, `La bóveda no existe: ${vaultPath}`);
94
+ if (!isDirectory(repository)) return conflict(report, `El repositorio fuente no existe: ${repository}`);
95
+
96
+ const claudeDirectory = path.join(repository, SETTINGS_RELATIVE[0]);
97
+ if (lstatOrNull(claudeDirectory)?.isSymbolicLink()) {
98
+ return conflict(report, `${claudeDirectory} es un enlace simbólico: Claude Code trataría estos ajustes como del repositorio.`);
99
+ }
100
+
101
+ let current;
102
+ try {
103
+ current = readSettings(settingsPath);
104
+ } catch (error) {
105
+ if (!(error instanceof ConnectionError)) throw error;
106
+ return conflict(report, error.details.join(" "));
107
+ }
108
+
109
+ const isRepository = git(repository, ["rev-parse", "--git-dir"]).status === 0;
110
+ if (isRepository && git(repository, ["ls-files", "--error-unmatch", "--", SETTINGS_GIT_PATH]).status === 0) {
111
+ return conflict(report, `git ya sigue ${SETTINGS_GIT_PATH}: la ruta de tu equipo acabaría en el repositorio. Deja de seguirlo antes (git rm --cached).`);
112
+ }
113
+
114
+ const directories = Array.isArray(current.settings.permissions?.additionalDirectories)
115
+ ? current.settings.permissions.additionalDirectories
116
+ : [];
117
+ if (current.settings.permissions !== undefined &&
118
+ (current.settings.permissions === null || typeof current.settings.permissions !== "object" || Array.isArray(current.settings.permissions))) {
119
+ return conflict(report, `${settingsPath}: «permissions» no es un objeto.`);
120
+ }
121
+ const alreadyAllowed = directories.some((entry) => typeof entry === "string" && same(entry, vaultPath));
122
+ if (!alreadyAllowed) report.changes.push({ id: "additionalDirectories", action: current.exists ? "update" : "create" });
123
+
124
+ let excludePath = null;
125
+ if (isRepository && git(repository, ["check-ignore", "-q", "--", SETTINGS_GIT_PATH]).status !== 0) {
126
+ const resolved = git(repository, ["rev-parse", "--git-path", "info/exclude"]).stdout;
127
+ excludePath = path.resolve(repository, resolved);
128
+ report.changes.push({ id: "gitExclude", action: "update" });
129
+ }
130
+
131
+ if (report.changes.length === 0) {
132
+ report.status = "unchanged";
133
+ return report;
134
+ }
135
+ if (!options.apply) return report;
136
+
137
+ if (!alreadyAllowed) {
138
+ const next = {
139
+ ...current.settings,
140
+ permissions: { ...(current.settings.permissions ?? {}), additionalDirectories: [...directories, vaultPath] }
141
+ };
142
+ writeTextAtomic(settingsPath, `${JSON.stringify(next, null, 2)}\n`);
143
+ }
144
+ if (excludePath) {
145
+ fs.mkdirSync(path.dirname(excludePath), { recursive: true });
146
+ const previous = fs.existsSync(excludePath) ? fs.readFileSync(excludePath, "utf8") : "";
147
+ const separator = previous === "" || previous.endsWith("\n") ? "" : "\n";
148
+ fs.writeFileSync(excludePath, `${previous}${separator}${SETTINGS_GIT_PATH}\n`);
149
+ }
150
+ report.status = "applied";
151
+ return report;
152
+ }
@@ -1,4 +1,3 @@
1
- import { RECOMMENDED_REVIEWERS } from './review-policy.js';
2
1
  import fs from 'node:fs/promises';
3
2
  import path from 'node:path';
4
3
  import { randomUUID, createHash } from 'node:crypto';
@@ -10,36 +9,26 @@ const BODY = `${START}
10
9
  Para programar sigue el proceso de Superpowers (obligatorio): contexto y
11
10
  memoria, diseño y plan proporcionales, rama, pruebas, implementación,
12
11
  verificación y cierre con memoria. No hace falta un comando para empezar.
13
- Sobre sus skills mandan: modo tutor (la persona escribe el código, un paso
14
- verificable cada vez); no borrar código existente sin acuerdo aunque el TDD lo
15
- pida; commit, push, PR y memoria solo con autorización. Reutiliza un diseño o
16
- plan ya aprobado. Antes de un PR o de la revisión cruzada, quality-gate.
12
+ Sobre sus skills mandan: no borrar código existente sin acuerdo aunque el TDD
13
+ lo pida; commit, push, PR y memoria solo con autorización. Reutiliza un diseño
14
+ o plan ya aprobado. Antes de un PR, quality-gate. Modo tutor (la persona
15
+ escribe el código, un paso verificable cada vez) solo si lo pide.
17
16
 
18
- Al terminar una tarea con cambios de código, pide automáticamente UNA revisión
19
- a otra IA, corrige los hallazgos verificables y resume el resultado. Máximo dos
20
- rondas por tarea; si queda algo grave, avisa. Solo documentos no dispara revisión.
21
- Si el usuario dice «sin revisión», omítela. /revisar pide una revisión adicional.
22
- No uses hooks ni subagentes para automatizarlo.
17
+ Orquesta: tú entiendes, planificas, decides e integras; delega la ejecución en
18
+ subagentes de nivel (Claude: niveles:nivel-<nivel>; Codex: nivel_<nivel>):
19
+ ligero para comandos, búsquedas y cambios mecánicos; normal para implementar
20
+ con diseño claro; exigente para pruebas, casos borde o un fallo acotado; alto
21
+ para un fallo sutil, seguridad o lo que exigente no resolvió. Trabaja tú solo
22
+ lo que se hace en uno o dos pasos y la conversación con la persona. Da a cada
23
+ subagente un encargo autocontenido (objetivo, archivos, criterio de hecho),
24
+ lanza en paralelo los independientes y comprueba su informe antes de darlo
25
+ por bueno. Si el encargo necesita el mismo contexto que ya llevas, bifurca la
26
+ sesión (fork) en vez de crear un subagente nuevo. Usa elegir-modelo para nombres reales; nunca cambies el modelo de
27
+ la sesión por tu cuenta. Sin subagentes de nivel, trabaja tú.
23
28
 
24
- Lee la skill revision-cruzada para el encargo y la ejecución de solo lectura.
25
- Usa elegir-modelo para nombres reales y esfuerzos. Nunca cambies solo el modelo.
26
- Usa la orden estable ~/.nexakit/nexakit (Windows: nexakit.cmd en esa carpeta).
27
- Un fallo del comando o informe vacío no significa «sin hallazgos».
28
-
29
- La IA revisora se elige en la terminal durante la sesión, nunca en el arranque
30
- ni en answers. Excluye siempre a la IA que programa. Antes de cada revisión ejecuta
31
- \`nexakit revision --disponibles --principal <IA que programa>\` (claude,
32
- codex o antigravity), sin llamadas a modelos. Ofrece las otras IA instaladas
33
- con certificación «sí» o «pendiente» (avisa si la primera vez se certifican);
34
- nunca las «no». Recomendadas: Claude→${RECOMMENDED_REVIEWERS.claude},
35
- Codex→${RECOMMENDED_REVIEWERS.codex} y Antigravity→${RECOMMENDED_REVIEWERS.antigravity}.
36
- Primera revisión con varias opciones: «¿A dónde mando la revisión?» marcando
37
- la recomendada (Claude: selector; Codex/Antigravity: pregunta normal). Una
38
- opción: úsala sin preguntar; ninguna: avisa que no hay revisión; si falta
39
- certificar un perfil, infórmalo. Después conserva la elección en la sesión y
40
- anuncia «Revisando con <IA>…». «que lo revise <IA>» cambia la elección. Si
41
- desaparece, usa la única alternativa o pregunta entre las restantes. No persistas
42
- la elección.
29
+ La revisión por otra IA es opcional: solo con /revisar o si la persona lo pide
30
+ («que lo revise <IA>»); sigue la skill revisar. Usa la orden estable
31
+ ~/.nexakit/nexakit (Windows: nexakit.cmd en esa carpeta).
43
32
 
44
33
  Si una tarea larga queda a medias —pausa, cambio de IA, bloqueo o cierre— escribe o actualiza la nota de seguimiento con project-handoff; recomienda sesión nueva en los casos de project-handoff, y cierra el seguimiento al integrar con cerrar-memoria.
45
34
  ${END}`;
@@ -35,6 +35,7 @@ export async function buildRevisionInvocation({
35
35
  'read-only',
36
36
  '--json',
37
37
  '--ignore-user-config',
38
+ '--skip-git-repo-check',
38
39
  '-C',
39
40
  root,
40
41
  '-',
@@ -5,6 +5,7 @@ import { planReviewInstructions, applyReviewInstructions } from './review-instru
5
5
  import fs from 'node:fs/promises';
6
6
  import path from 'node:path';
7
7
  import { connectMemory } from './connect.js';
8
+ import { allowMemoryDirectory } from './memory-allow-dir.js';
8
9
  import { diagnoseMemory } from './doctor.js';
9
10
  import { initializeMemory } from './init.js';
10
11
  import { acquireLock } from './install-lock.js';
@@ -158,6 +159,10 @@ export async function applySetup(
158
159
  if (diagnosis.summary.errors > 0)
159
160
  throw new Error('La memoria se creó, pero su comprobación encontró errores.');
160
161
  },
162
+ 'memory-allow-dir': async () => {
163
+ const report = await allowMemoryDirectory({ targetPath: memoryPath, apply: true });
164
+ if (report.status === 'conflict') throw new Error(report.reasons.join(' '));
165
+ },
161
166
  answers: () =>
162
167
  withLock(homeDirectory, acquire, (lock) => writeSetupAnswers(state.project.root, answers, lock)),
163
168
  'final-check': async () => {
package/src/setup-plan.js CHANGED
@@ -200,6 +200,16 @@ export function buildConfirmation(state, answers) {
200
200
  add('!', `No encontré ${AGENT_NAMES[agent]}; no puedo conectarle la memoria`);
201
201
  }
202
202
  for (const agent of need) block(`memory-connect:${agent}`, `Memoria conectada a ${AGENT_NAMES[agent]}`);
203
+ // Claude Code refuses files outside the project unless the folder is declared; closing the memory needs it.
204
+ if (agents.includes('claude') && state.agentsFound.claude) {
205
+ const allowDir = state.memory.allowDir?.[target];
206
+ if (allowDir === 'create') {
207
+ add('+', 'Permitir a Claude Code abrir la memoria desde este proyecto (solo en tu copia; escribir sigue pidiendo permiso)');
208
+ block('memory-allow-dir', 'Memoria permitida en Claude Code');
209
+ } else if (allowDir === 'conflict') {
210
+ add('!', 'No pude declarar la memoria como carpeta permitida de Claude Code; revisa `nexakit memoria allow-dir`');
211
+ }
212
+ }
203
213
  }
204
214
  }
205
215
 
@@ -10,6 +10,7 @@ import { planReviewInstructions } from './review-instructions.js';
10
10
  import path from 'node:path';
11
11
  import { pathToFileURL } from 'node:url';
12
12
  import { connectMemory } from './connect.js';
13
+ import { allowMemoryDirectory } from './memory-allow-dir.js';
13
14
  import { ACTIONABLE_LINK_STATES } from './link-states.js';
14
15
  import {
15
16
  findKnownMemories,
@@ -121,6 +122,19 @@ export async function memoryConnections(
121
122
  return result;
122
123
  }
123
124
 
125
+ // Read-only preview of `project-memory allow-dir`: create (not declared yet), unchanged or conflict.
126
+ async function allowDirState(vaultPath) {
127
+ try {
128
+ const report = await allowMemoryDirectory({ targetPath: vaultPath });
129
+ if (report.status === 'unchanged') return 'unchanged';
130
+ // Only the git exclusion pending is not worth a setup step: the folder is already allowed.
131
+ if (report.status === 'preview') return report.changes.some((change) => change.id === 'additionalDirectories') ? 'create' : 'unchanged';
132
+ return 'conflict';
133
+ } catch {
134
+ return 'conflict';
135
+ }
136
+ }
137
+
124
138
  export async function gatherSetupState({
125
139
  start = process.cwd(),
126
140
  homeDirectory = os.homedir(),
@@ -219,6 +233,7 @@ export async function gatherSetupState({
219
233
  suggestedPath,
220
234
  kinds: {},
221
235
  connections: {},
236
+ allowDir: {},
222
237
  };
223
238
  // The chosen path is always inspected, also one typed in "otra carpeta…" (memoryPaths).
224
239
  const candidates = [
@@ -241,6 +256,9 @@ export async function gatherSetupState({
241
256
  memory.kinds[candidate] = kind;
242
257
  if (kind === 'memory' || kind === 'new')
243
258
  memory.connections[candidate] = await memoryConnections(candidate, { ...context, kind });
259
+ // Whether Claude Code may open the vault from this project: a memory to create always needs it declared.
260
+ if (kind === 'new') memory.allowDir[candidate] = 'create';
261
+ else if (kind === 'memory') memory.allowDir[candidate] = await allowDirState(candidate);
244
262
  }
245
263
 
246
264
  const reviewInstructions = await planReviewInstructions({ homeDirectory, environment, codexHome });
@@ -1,7 +1,8 @@
1
1
  import os from 'node:os';
2
2
  import { runCli } from './cli.js';
3
3
  import { runModelCommand } from './model-command.js';
4
- import { runPanelCommand } from './panel-cli.js';
4
+ import { runAhorroCommand } from './ahorro-command.js';
5
+ import { runLeccionesCommand } from './lecciones-command.js';
5
6
  import { runRevisionCommand } from './revision.js';
6
7
  import path from 'node:path';
7
8
  import readline from 'node:readline';
@@ -38,7 +39,8 @@ const HELP = `Uso: npx nexakit [--project <ruta>] [--si]
38
39
  nexakit revision --disponibles [--principal claude|codex|antigravity]
39
40
  nexakit revision --con <ia> --modelo <m> --esfuerzo <e> --encargo <archivo> [--base <rama>]
40
41
  nexakit modelo [--nivel <nivel>] [--ia claude|codex|antigravity] [--perfil-codex <nombre>]
41
- nexakit panel [--demo] [--una-vez]
42
+ nexakit ahorro [--json]
43
+ nexakit lecciones [--json | --descartar]
42
44
  npx nexakit recommend [--project <ruta>] [--profile frontend|backend|mcp|security] [--client codex|claude] [--dry-run] [--json]
43
45
  npx nexakit scan <carpeta de skill> [--json]
44
46
  npx nexakit doctor [--agent codex|claude|antigravity|all] [--perfil-codex <nombre>] [--json]
@@ -56,7 +58,8 @@ reparar re-apunta enlaces rotos de una instalación anterior (--desde es la carp
56
58
  que ya no existe); lista lo que encontró y siempre pregunta.
57
59
  memoria ejecuta los subcomandos de project-memory (init, connect, doctor, status, sync).
58
60
  revision y modelo piden una revisión a otra IA o consultan los modelos disponibles.
59
- panel dibuja a pantalla completa la orquesta de tu sesión de Claude Code (ábrelo en otra división).
61
+ ahorro resume cuánta salida de comandos recortó el mod nexakit-ahorro (caracteres y tokens estimados).
62
+ lecciones resume las correcciones y lecciones que registra el mod nexakit-lecciones y las que siguen pendientes.
60
63
  recommend inspecciona el proyecto en solo lectura; setup prepara las skills base globales y respeta las que quitaste
61
64
  (--omitir <skill> declara quitada una que ya no tiene enlace; --reponer <skill> devuelve una; ambos se repiten).
62
65
  (Alias local compatible: agent-toolkit)
@@ -94,8 +97,9 @@ export async function runToolkitCli(
94
97
 
95
98
  const [command, ...rest] = argv;
96
99
  if (command === 'modelo') return runModelCommand(rest, { out, err }, options);
100
+ if (command === 'ahorro') return runAhorroCommand(rest, { out, err }, options);
101
+ if (command === 'lecciones') return runLeccionesCommand(rest, { out, err }, options);
97
102
  if (command === 'revision') return runRevisionCommand(rest, { out, err }, { options });
98
- if (command === 'panel') return runPanelCommand(rest, { out, err, input, output, isTTY, options });
99
103
  if (command === 'memoria') {
100
104
  return runCli(
101
105
  rest,
@@ -50,7 +50,7 @@ export function getToolkitCommandsGuide({ clients = {} } = {}) {
50
50
  codex: '$revisar',
51
51
  antigravity: '/revisar',
52
52
  stage: '4. Revisión par',
53
- description: 'Pide una revisión adicional a otra IA desde esta terminal.',
53
+ description: 'Pide una revisión a otra IA desde esta terminal; solo ocurre cuando tú la pides.',
54
54
  },
55
55
  {
56
56
  id: 'cerrar-memoria',
@@ -95,6 +95,14 @@ export function getToolkitCommandsGuide({ clients = {} } = {}) {
95
95
  command: 'nexakit modelo',
96
96
  description: 'Consulta modelos reales, esfuerzos y valores guardados.',
97
97
  },
98
+ {
99
+ command: 'nexakit ahorro',
100
+ description: 'Resume cuánta salida de comandos recortó el mod nexakit-ahorro.',
101
+ },
102
+ {
103
+ command: 'nexakit lecciones',
104
+ description: 'Resume las correcciones y lecciones que registra el mod nexakit-lecciones y las pendientes.',
105
+ },
98
106
  ];
99
107
 
100
108
  return {
@@ -40,8 +40,8 @@ const SKILL_HOMES = {
40
40
  const MCP_CLIENTS = ['codex', 'claude'];
41
41
  // Skills nexakit no longer ships. Links it created are removed; anything else with the name is reported, never
42
42
  // touched. The last three are now covered by Superpowers (brainstorming/writing-plans, systematic-debugging and
43
- // test-driven-development), which is required.
44
- export const RETIRED_SKILLS = Object.freeze(['programar', 'estado', 'spec-driven-development', 'depurar', 'desarrollo-con-pruebas']);
43
+ // test-driven-development), which is required. revision-cruzada merged into revisar when review became on demand.
44
+ export const RETIRED_SKILLS = Object.freeze(['programar', 'estado', 'spec-driven-development', 'depurar', 'desarrollo-con-pruebas', 'revision-cruzada']);
45
45
  const MCP_SUFFIX = 'bin/agent-toolkit-mcp.js';
46
46
  const COMMANDS = { codex: 'codex', claude: 'claude', antigravity: 'agy' };
47
47
  export const globalSkillTarget = (home, client, name) => path.join(home, ...SKILL_HOMES[client], name);
@@ -1,8 +0,0 @@
1
- const family = (model) => model?.match(/(?:^|claude-)(haiku|sonnet|opus|fable)(?:-|$)/u)?.[1] ?? model;
2
- export function modelStatus(model, effort, recommendation) {
3
- const actual = `${model ?? 'modelo no informado'} · ${effort ?? 'esfuerzo no informado'}`;
4
- if (!recommendation) return actual;
5
- const matches =
6
- effort && family(model) === family(recommendation.model) && effort === recommendation.effort;
7
- return `${actual} ${matches ? '✓' : `→ recomendado: ${recommendation.model} · ${recommendation.effort}`}`;
8
- }
@@ -1 +0,0 @@
1
- {"name": "nexakit-panel", "version": "0.1.0", "description": "Panel en vivo de la orquestación: modelo líder, subagentes, consultas al asesor, registro de la sesión, contexto y límites.", "types": "./types/index.d.ts", "license": "MIT"}
@@ -1,20 +0,0 @@
1
- # nexakit-panel
2
-
3
- Panel de la orquestación de una sesión de Claude Code: el modelo líder y su esfuerzo, las consultas al asesor,
4
- los subagentes con su modelo, estado y parte del uso, un registro de la sesión, el contexto, los límites de
5
- 5 horas y semanal, y el modelo frente al recomendado por `nexakit-modelo`. Todo sale de lo que informa Claude
6
- Code; no muestra datos inventados.
7
-
8
- ## Uso
9
-
10
- - `/panel` abre el panel junto al chat. Con al menos 104 columnas dibuja el diagrama completo; si no, una lista.
11
- - `/panel-demo` alterna datos de ejemplo, marcados como ficticios, para ver el diseño.
12
- - Para verlo siempre completo, abre `nexakit panel` en otra división de la terminal: lee la foto que este mod
13
- guarda en `~/.nexakit/panel/` y la dibuja a pantalla completa.
14
-
15
- La foto se guarda en tu disco con los secretos evidentes tachados (variables `*TOKEN*`, `*KEY*`, `*SECRET*`,
16
- `*PASSWORD*`, cabeceras `Bearer` y opciones `--password`).
17
-
18
- ## Pruebas
19
-
20
- `claude plugin test plugins/nexakit-panel`
@@ -1 +0,0 @@
1
- {"modules":["./register.tsx"]}