nexakit 0.1.0 → 0.3.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 (124) hide show
  1. package/.claude-plugin/marketplace.json +18 -1
  2. package/README.md +51 -30
  3. package/assets/brand/README.md +0 -2
  4. package/assets/runtime/package-lock.json +2 -2
  5. package/bin/agent-task.js +12 -10
  6. package/bin/agent-toolkit-gemini.js +11 -9
  7. package/bin/agent-toolkit-inbox.js +12 -10
  8. package/bin/agent-toolkit-mcp.js +14 -8
  9. package/bin/agent-toolkit.js +12 -9
  10. package/bin/nexakit.js +12 -9
  11. package/bin/project-memory-mcp.js +12 -9
  12. package/bin/project-memory.js +5 -3
  13. package/catalogs/generadores.json +936 -0
  14. package/{skills/depurar → catalogs/skills/vercel-composition-patterns}/LICENSE.txt +6 -6
  15. package/catalogs/skills/vercel-react-best-practices/LICENSE.txt +27 -0
  16. package/catalogs/skills.json +70 -35
  17. package/docs/skills/evidencias/2026-10-28-recomendador-preparacion.md +1 -1
  18. package/package.json +5 -3
  19. package/plugins/nexakit-modelo/.claude-plugin/plugin.json +1 -0
  20. package/plugins/nexakit-modelo/hooks/hooks.json +1 -0
  21. package/plugins/nexakit-modelo/hooks/register.js +48 -0
  22. package/plugins/nexakit-modelo/hooks/status.js +8 -0
  23. package/plugins/nexakit-modelo/tests/register.test.ts +21 -0
  24. package/plugins/nexakit-panel/.claude-plugin/plugin.json +1 -0
  25. package/plugins/nexakit-panel/README.md +20 -0
  26. package/plugins/nexakit-panel/hooks/hooks.json +1 -0
  27. package/plugins/nexakit-panel/hooks/lienzo.js +382 -0
  28. package/plugins/nexakit-panel/hooks/panel.js +273 -0
  29. package/plugins/nexakit-panel/hooks/redact.js +9 -0
  30. package/plugins/nexakit-panel/hooks/register.tsx +248 -0
  31. package/plugins/nexakit-panel/tests/lienzo.test.ts +142 -0
  32. package/plugins/nexakit-panel/tests/panel.test.ts +240 -0
  33. package/plugins/nexakit-panel/tests/register.test.ts +167 -0
  34. package/plugins/nexakit-panel/types/index.d.ts +41 -0
  35. package/plugins/nexakit-sesion/.claude-plugin/plugin.json +1 -0
  36. package/plugins/nexakit-sesion/README.md +12 -0
  37. package/plugins/nexakit-sesion/hooks/aviso.js +38 -0
  38. package/plugins/nexakit-sesion/hooks/hooks.json +1 -0
  39. package/plugins/nexakit-sesion/hooks/register.js +28 -0
  40. package/plugins/nexakit-sesion/tests/register.test.ts +96 -0
  41. package/schemas/generators.schema.json +299 -0
  42. package/schemas/skill-catalog.schema.json +9 -2
  43. package/scripts/prepare-package.js +3 -0
  44. package/skills/cerrar-memoria/SKILL.md +6 -2
  45. package/skills/cerrar-memoria/references/cierre.md +5 -1
  46. package/skills/elegir-modelo/SKILL.md +68 -0
  47. package/skills/elegir-modelo/modelos.mjs +108 -0
  48. package/skills/gemini/SKILL.md +1 -1
  49. package/skills/project-handoff/SKILL.md +39 -12
  50. package/skills/project-handoff/references/handoff-template.md +24 -17
  51. package/skills/quality-gate/SKILL.md +6 -12
  52. package/skills/revisar/SKILL.md +6 -16
  53. package/skills/{desarrollo-con-pruebas/LICENSE.txt → revisar-skill/LICENSE-find-skills.txt} +5 -5
  54. package/skills/revisar-skill/SKILL.md +94 -0
  55. package/skills/revision-cruzada/SKILL.md +53 -475
  56. package/skills/web-design-guidelines/AGENTS.md +156 -0
  57. package/skills/{spec-driven-development → web-design-guidelines}/LICENSE.txt +1 -6
  58. package/skills/web-design-guidelines/SKILL.md +20 -30
  59. package/src/agent-models.js +53 -13
  60. package/src/brand.js +117 -0
  61. package/src/clean-command.js +29 -0
  62. package/src/clean-project-flow.js +105 -0
  63. package/src/clean-project.js +431 -0
  64. package/src/cli-executable.js +6 -4
  65. package/src/cli.js +16 -9
  66. package/src/connect.js +56 -4
  67. package/src/gemini-files.js +3 -3
  68. package/src/gemini-tools.js +23 -8
  69. package/src/generators-catalog.js +63 -0
  70. package/src/init.js +9 -1
  71. package/src/install-lock.js +127 -0
  72. package/src/install-registry.js +61 -0
  73. package/src/legacy-repair.js +71 -0
  74. package/src/link-states.js +172 -0
  75. package/src/memory-locator.js +118 -0
  76. package/src/missing-dependencies.js +21 -0
  77. package/src/model-command.js +147 -0
  78. package/src/panel-cli.js +182 -0
  79. package/src/project-root.js +60 -0
  80. package/src/project-signals.js +345 -0
  81. package/src/recommend-report.js +77 -0
  82. package/src/redact.js +9 -0
  83. package/src/review-instructions.js +211 -0
  84. package/src/review-policy.js +35 -0
  85. package/src/revision-adapters.js +157 -0
  86. package/src/revision-context.js +86 -0
  87. package/src/revision-isolation.js +222 -0
  88. package/src/revision-process.js +103 -0
  89. package/src/revision-provenance.js +89 -0
  90. package/src/revision-snapshot.js +120 -0
  91. package/src/revision.js +242 -0
  92. package/src/setup-apply.js +231 -0
  93. package/src/setup-plan.js +231 -0
  94. package/src/setup-state.js +284 -0
  95. package/src/setup-tui.js +647 -0
  96. package/src/skill-catalog-add.js +91 -0
  97. package/src/skill-catalog-audit.js +26 -27
  98. package/src/skill-files.js +39 -0
  99. package/src/skill-recommendations.js +344 -208
  100. package/src/skill-scan-report.js +14 -0
  101. package/src/skill-scan.js +178 -0
  102. package/src/stable-command.js +53 -0
  103. package/src/stable-install.js +222 -0
  104. package/src/superpowers.js +133 -0
  105. package/src/sync-apply.js +8 -5
  106. package/src/sync-files.js +2 -1
  107. package/src/terminal-text.js +68 -0
  108. package/src/toolkit-cli.js +397 -70
  109. package/src/toolkit-commands-guide.js +53 -39
  110. package/src/toolkit-setup.js +507 -110
  111. package/assets/brand/agent-toolkit-mark-v1.png +0 -0
  112. package/skills/depurar/SKILL.md +0 -69
  113. package/skills/depurar/agents/openai.yaml +0 -7
  114. package/skills/depurar/references/tecnicas-de-diagnostico.md +0 -37
  115. package/skills/desarrollo-con-pruebas/SKILL.md +0 -55
  116. package/skills/desarrollo-con-pruebas/agents/openai.yaml +0 -7
  117. package/skills/desarrollo-con-pruebas/references/buenas-pruebas.md +0 -33
  118. package/skills/estado/SKILL.md +0 -41
  119. package/skills/programar/SKILL.md +0 -19
  120. package/skills/spec-driven-development/SKILL.md +0 -48
  121. package/skills/spec-driven-development/agents/openai.yaml +0 -7
  122. package/skills/spec-driven-development/references/spec-template.md +0 -55
  123. package/skills/spec-driven-development/references/workflow.md +0 -70
  124. package/src/toolkit-tui.js +0 -961
@@ -1,12 +1,12 @@
1
- Adaptación en español para Agent Toolkit a partir de prácticas de
2
- Superpowers 7.0.1 (https://github.com/obra/superpowers, skill
3
- `systematic-debugging` y sus técnicas de apoyo `root-cause-tracing`,
4
- `defense-in-depth` y `condition-based-waiting`). Se conserva íntegro el aviso
5
- de copyright y licencia MIT del origen:
1
+ Esta skill procede de https://github.com/vercel-labs/agent-skills (commit
2
+ 1a2c79d4e6c4a2283dc2c614b6538cbe1ed5ca62), cuyo SKILL.md declara "license: MIT" y
3
+ "author: vercel". El repositorio de origen no incluye un archivo de licencia; nexakit
4
+ reproduce aquí el texto de la licencia MIT declarada para cumplir su condición de
5
+ incluir el aviso con las copias.
6
6
 
7
7
  MIT License
8
8
 
9
- Copyright (c) 2025 Jesse Vincent
9
+ Copyright (c) Vercel
10
10
 
11
11
  Permission is hereby granted, free of charge, to any person obtaining a copy
12
12
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,27 @@
1
+ Esta skill procede de https://github.com/vercel-labs/agent-skills (commit
2
+ 1a2c79d4e6c4a2283dc2c614b6538cbe1ed5ca62), cuyo SKILL.md declara "license: MIT" y
3
+ "author: vercel". El repositorio de origen no incluye un archivo de licencia; nexakit
4
+ reproduce aquí el texto de la licencia MIT declarada para cumplir su condición de
5
+ incluir el aviso con las copias.
6
+
7
+ MIT License
8
+
9
+ Copyright (c) Vercel
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "updatedAt": "2026-10-31",
3
+ "updatedAt": "2026-11-05",
4
4
  "skills": [
5
5
  {
6
6
  "name": "frontend-design",
@@ -56,16 +56,24 @@
56
56
  {
57
57
  "name": "web-design-guidelines",
58
58
  "bundled": true,
59
- "summary": "Auditoría de accesibilidad, UX y cumplimiento de Web Interface Guidelines sobre código de interfaz.",
60
- "repository": "https://github.com/vercel-labs/agent-skills",
61
- "sourcePath": "skills/web-design-guidelines",
59
+ "summary": "Revisa código de interfaz contra las Web Interface Guidelines de Vercel Labs: accesibilidad, foco, formularios, animación, tipografía y rendimiento.",
60
+ "repository": "https://github.com/vercel-labs/web-interface-guidelines",
61
+ "sourcePath": "AGENTS.md",
62
62
  "installedPath": "skills/web-design-guidelines",
63
- "revision": "ba46938889d4e58635362fb8f618e1178ac3ec46",
63
+ "revision": "434b7f91364665f2f733b310ec54809bf8f37937",
64
64
  "license": "MIT",
65
65
  "files": [
66
+ {
67
+ "path": "AGENTS.md",
68
+ "sha256": "35411b4a2dcfa651fd33706a92cc860947364b521643107fbf3116abe3826d44"
69
+ },
70
+ {
71
+ "path": "LICENSE.txt",
72
+ "sha256": "6cd1609c9c12233507cdd2ce0d32e9a721e3c27494951be06b90090deeeb7af2"
73
+ },
66
74
  {
67
75
  "path": "SKILL.md",
68
- "sha256": "f4647ca866a3accf763777f83e7682954f0187cd6bea7eea0399796652414e8f"
76
+ "sha256": "139ea99fb40ce66992b58a93d68d741eea4fb56b78a743701bd80fe209a3c451"
69
77
  }
70
78
  ],
71
79
  "matching": {
@@ -88,13 +96,13 @@
88
96
  "frontend-design"
89
97
  ],
90
98
  "review": {
91
- "status": "reviewed-with-observations",
92
- "reviewedAt": "2026-10-28",
93
- "notes": "Sus instrucciones piden consultar por internet las reglas vigentes de Vercel antes de revisar; ese recurso externo puede cambiar.",
99
+ "status": "reviewed",
100
+ "reviewedAt": "2026-11-05",
101
+ "notes": "Reglas de Vercel Labs (MIT, LICENSE.txt incluido) fijadas en AGENTS.md; instrucciones propias de nexakit. Ya no descarga reglas en cada revisión.",
94
102
  "capabilities": {
95
103
  "filesystem": "read-only",
96
104
  "processes": "none",
97
- "network": "optional",
105
+ "network": "none",
98
106
  "paidApi": "none"
99
107
  }
100
108
  },
@@ -260,17 +268,17 @@
260
268
  "sha256": "fc93e7421177bbf869cce892bc60a6c83a4517d974bc3bf65c4e2c1e58a6ccf6"
261
269
  },
262
270
  {
263
- "path": "README.md",
264
- "sha256": "9eafb2123d3b8b2aef41fba0db2648a3f4f49996f8c7c8bb2c86263befd8b48a"
265
- },
266
- {
267
- "path": "SKILL.md",
268
- "sha256": "71ed7794962fa6e803ee83030517b5b93a9f70fbfeb431ec4535c5480a8d8355"
271
+ "path": "LICENSE.txt",
272
+ "sha256": "2701bedfb108e232b3d0c90976dd0ab3b0a9e2b97bdb9afb417435d510d02bf1"
269
273
  },
270
274
  {
271
275
  "path": "metadata.json",
272
276
  "sha256": "c4e18bac3290fbe1b471a605867d4df68b03144ea26b8befdbe8f9d8fd124354"
273
277
  },
278
+ {
279
+ "path": "README.md",
280
+ "sha256": "9eafb2123d3b8b2aef41fba0db2648a3f4f49996f8c7c8bb2c86263befd8b48a"
281
+ },
274
282
  {
275
283
  "path": "rules/_sections.md",
276
284
  "sha256": "01c59969e4e867f0708c8f8ef9c6d87fab9a07d0586244f429ff84013db8a115"
@@ -558,6 +566,10 @@
558
566
  {
559
567
  "path": "rules/server-serialization.md",
560
568
  "sha256": "f4c7d68b29c82381baad059c4a7f09e868e71ec9c3115a26ad3ae7d24c0dfe1f"
569
+ },
570
+ {
571
+ "path": "SKILL.md",
572
+ "sha256": "71ed7794962fa6e803ee83030517b5b93a9f70fbfeb431ec4535c5480a8d8355"
561
573
  }
562
574
  ],
563
575
  "matching": {
@@ -578,7 +590,7 @@
578
590
  "review": {
579
591
  "status": "reviewed",
580
592
  "reviewedAt": "2026-10-31",
581
- "notes": "Reglas estáticas Markdown y metadata.json sin scripts ejecutables ni llamadas externas.",
593
+ "notes": "Reglas estáticas Markdown y metadata.json sin scripts ejecutables ni llamadas externas. LICENSE.txt añadido con el texto MIT que declara su SKILL.md.",
582
594
  "capabilities": {
583
595
  "filesystem": "none",
584
596
  "processes": "none",
@@ -603,17 +615,17 @@
603
615
  "sha256": "89e3ddd58fcf99a53a50e25dfd21b8cde1be5f10b7df6bacd3dfa6796932f516"
604
616
  },
605
617
  {
606
- "path": "README.md",
607
- "sha256": "85915a43a6f0b4efe525e3cf6398dd866166da2025837c4460468a24a940da94"
608
- },
609
- {
610
- "path": "SKILL.md",
611
- "sha256": "e38e0eaa609316b10423a9a138ed95e35099accd3f735585295c8a8f165c28a3"
618
+ "path": "LICENSE.txt",
619
+ "sha256": "2701bedfb108e232b3d0c90976dd0ab3b0a9e2b97bdb9afb417435d510d02bf1"
612
620
  },
613
621
  {
614
622
  "path": "metadata.json",
615
623
  "sha256": "49262ed5cb4186f31ee980cf8d990be0170c51efed4908d0464a1cff9905bd05"
616
624
  },
625
+ {
626
+ "path": "README.md",
627
+ "sha256": "85915a43a6f0b4efe525e3cf6398dd866166da2025837c4460468a24a940da94"
628
+ },
617
629
  {
618
630
  "path": "rules/_sections.md",
619
631
  "sha256": "a174213b87e6911e2b766995a2cbaf8d1534057076e82fb79fe3f0ecb38047df"
@@ -653,6 +665,10 @@
653
665
  {
654
666
  "path": "rules/state-lift-state.md",
655
667
  "sha256": "74c54038a6c554c748fe31cec673b80861b5d920b7553cf78cdf10d18b4b759b"
668
+ },
669
+ {
670
+ "path": "SKILL.md",
671
+ "sha256": "e38e0eaa609316b10423a9a138ed95e35099accd3f735585295c8a8f165c28a3"
656
672
  }
657
673
  ],
658
674
  "matching": {
@@ -673,7 +689,7 @@
673
689
  "review": {
674
690
  "status": "reviewed",
675
691
  "reviewedAt": "2026-10-31",
676
- "notes": "Guías Markdown y metadata.json sin scripts ni procesos.",
692
+ "notes": "Guías Markdown y metadata.json sin scripts ni procesos. LICENSE.txt añadido con el texto MIT que declara su SKILL.md.",
677
693
  "capabilities": {
678
694
  "filesystem": "none",
679
695
  "processes": "none",
@@ -967,7 +983,11 @@
967
983
  "anySignals": [
968
984
  "express",
969
985
  "fastify",
970
- "hono"
986
+ "hono",
987
+ "django",
988
+ "fastapi",
989
+ "flask",
990
+ "rest-api"
971
991
  ],
972
992
  "profiles": [
973
993
  "backend"
@@ -1053,27 +1073,42 @@
1053
1073
  "scenarios": []
1054
1074
  }
1055
1075
  ],
1056
- "externalReferences": [],
1076
+ "externalReferences": [
1077
+ {
1078
+ "name": "ui-ux-pro-max",
1079
+ "summary": "Guía de diseño UI/UX con datos locales: estilos, paletas, tipografías, reglas de UX y patrones por stack.",
1080
+ "sourceUrl": "https://github.com/nextlevelbuilder/ui-ux-pro-max-skill",
1081
+ "anySignals": [
1082
+ "react",
1083
+ "nextjs",
1084
+ "tailwindcss",
1085
+ "astro",
1086
+ "vue",
1087
+ "svelte"
1088
+ ],
1089
+ "profiles": [
1090
+ "frontend"
1091
+ ],
1092
+ "statusNote": "Se instala como plugin de Claude (necesita Python 3). Revisada el 2026-11-02 en 713eef51: sin bloqueos del escáner; no funciona como skill copiada ni en Codex."
1093
+ }
1094
+ ],
1057
1095
  "addons": [
1058
1096
  {
1059
1097
  "id": "superpowers",
1060
1098
  "name": "obra/superpowers",
1061
1099
  "versionReviewed": "7.0.1",
1062
1100
  "license": "MIT",
1063
- "optional": true,
1064
- "autoInstall": false,
1101
+ "optional": false,
1102
+ "autoInstall": true,
1065
1103
  "repository": "https://github.com/obra/superpowers",
1066
- "summary": "Plugin externo opcional. Sus prácticas principales ya están adaptadas en spec-driven-development, depurar, desarrollo-con-pruebas y quality-gate.",
1104
+ "summary": "Obligatorio: lleva el proceso de trabajo (diseño, planes, depuración, TDD y verificación). npx nexakit lo instala o activa en cada IA; quality-gate añade la puerta propia de nexakit.",
1067
1105
  "adaptedSkills": [
1068
- "spec-driven-development",
1069
- "depurar",
1070
- "desarrollo-con-pruebas",
1071
1106
  "quality-gate"
1072
1107
  ],
1073
1108
  "installHints": {
1074
- "claude": "/plugin marketplace add obra/superpowers-marketplace && /plugin install superpowers@superpowers-marketplace",
1075
- "codex": "Instalar desde el catálogo de plugins de Codex (obra/superpowers)",
1076
- "antigravity": "Añadir desde Agent Marketplace: antigravity-plugins-partners/plugin/superpowers"
1109
+ "claude": "claude plugin install superpowers@claude-plugins-official",
1110
+ "codex": "codex plugin add superpowers@openai-curated-remote",
1111
+ "antigravity": "agy plugin install superpowers@antigravity-plugins-partners"
1077
1112
  }
1078
1113
  }
1079
1114
  ]
@@ -20,7 +20,7 @@ El usuario aprobó en el chat la planificación en lectura y preparar el worktre
20
20
  run_codex_plan devolvió «La ejecución fue cancelada; no se llamó al modelo».
21
21
  No se reintentó ni se avanzaron manualmente las etapas del almacén de tareas.
22
22
 
23
- El [plan preparado por la sesión actual](../../planes/2026-10-28-recomendador-skills-plan.md)
23
+ El plan preparado por la sesión actual (en la memoria de Obsidian de NexaKit (`03-IMPLEMENTACION/Planes/2026-10-28-recomendador-skills-plan.md`)
24
24
  permite revisar el encargo. Ejecutar el runner nativo requiere una vista previa
25
25
  vigente y completar la confirmación interactiva del MCP.
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexakit",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Asistente por pasos de skills verificadas por SHA-256, coordinación entre agentes y memoria por proyecto para Claude Code y Codex.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,10 +14,12 @@
14
14
  "agent-toolkit-gemini": "./bin/agent-toolkit-gemini.js"
15
15
  },
16
16
  "scripts": {
17
- "test": "node --test",
17
+ "test": "node --test --import ./test-support/git-quiet.js \"test/*.test.js\"",
18
18
  "catalog:validate": "node scripts/validate-skill-catalog.js",
19
19
  "catalog:files": "node scripts/validate-skill-catalog.js --files",
20
- "prepack": "node scripts/prepare-package.js"
20
+ "catalog:add": "node scripts/add-catalog-skill.js",
21
+ "prepack": "node scripts/prepare-package.js",
22
+ "test:mod": "claude plugin test plugins/nexakit-modelo"
21
23
  },
22
24
  "engines": {
23
25
  "node": ">=24"
@@ -0,0 +1 @@
1
+ {"name":"nexakit-modelo","version":"0.1.0","description":"Muestra modelo y esfuerzo observados frente a una recomendación, sin cambiarlos."}
@@ -0,0 +1 @@
1
+ {"modules":["./register.js"]}
@@ -0,0 +1,48 @@
1
+ import { modelStatus } from './status.js';
2
+ async function redraw($, observed, recommendation) {
3
+ const model = await $.session.model();
4
+ $.ui.status(modelStatus(model, observed?.model === model ? observed.effort : null, recommendation));
5
+ }
6
+
7
+ export function register(on) {
8
+ let recommendation = null;
9
+ let observed = null;
10
+ on('session.start', async ($, e, next) => {
11
+ await $.tool.register({
12
+ name: 'nexakit_recomendacion',
13
+ description: 'Registra una recomendación de modelo y esfuerzo para mostrarla, sin cambiar la sesión.',
14
+ inputSchema: {
15
+ type: 'object',
16
+ properties: { model: { type: 'string' }, effort: { type: 'string' }, reason: { type: 'string' } },
17
+ required: ['model', 'effort', 'reason'],
18
+ additionalProperties: false,
19
+ },
20
+ });
21
+ await redraw($, observed, recommendation);
22
+ return next(e);
23
+ });
24
+ on('tool.call', { tool: 'mcp__nexakit-modelo__nexakit_recomendacion' }, async ($, e) => {
25
+ recommendation = { model: e.model, effort: e.effort, reason: e.reason };
26
+ await redraw($, observed, recommendation);
27
+ return { result: 'Recomendación mostrada; no se cambió el modelo ni el esfuerzo.' };
28
+ });
29
+ on('turn.step', async function* ($, e, next) {
30
+ if (!e.agentId) {
31
+ observed = { model: e.model, effort: e.effort ?? null };
32
+ await redraw($, observed, recommendation);
33
+ }
34
+ yield* next(e);
35
+ });
36
+ on('turn.complete', async ($, e, next) => {
37
+ // Effort can change between turns; never present the previous request as current.
38
+ observed = null;
39
+ await redraw($, observed, recommendation);
40
+ return next(e);
41
+ });
42
+ on('session.end', async ($, e, next) => {
43
+ recommendation = null;
44
+ observed = null;
45
+ $.ui.status(undefined);
46
+ return next(e);
47
+ });
48
+ }
@@ -0,0 +1,8 @@
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
+ }
@@ -0,0 +1,21 @@
1
+ import { describe, expect, test } from 'claude-code/testing';
2
+
3
+ describe('nexakit-modelo API', () => {
4
+ test('registers the recommendation tool and reads the session model without a model call', async ($, on) => {
5
+ const tools: string[] = [];
6
+ const statuses: string[] = [];
7
+ on('session.start', ($, e) => ({ cwd: e.cwd }));
8
+ on('session.model', () => ({ value: 'haiku' }));
9
+ on('tool.register', ($, e) => {
10
+ tools.push(e.name);
11
+ return { value: { tool: e.name } };
12
+ });
13
+ on('ui.status', ($, e) => {
14
+ statuses.push(e.text ?? '');
15
+ return { value: undefined };
16
+ });
17
+ await $.session.start({ surface: 'terminal', isInteractive: true, cwd: '/test' });
18
+ expect(tools).toContain('nexakit_recomendacion');
19
+ expect(statuses.some((text) => text.includes('esfuerzo no informado'))).toBe(true);
20
+ });
21
+ });
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,20 @@
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`
@@ -0,0 +1 @@
1
+ {"modules":["./register.tsx"]}