Repository navigation
feat(ai): agrega catálogo de componentes para agentes - #811
Merged
Merged
Conversation
- Agrega ai/ (skill ui-kit: SKILL.md, índice README.md y fichas por familia)
y la publica en el paquete npm
- Agrega src/ai-catalog.test.ts: falla si un export de src/index.ts no está
en el índice o si falta una ficha
- Agrega .claude/rules/ai-catalog.md y la exigencia de ficha en .claude/CLAUDE.md
- Corrige el build de la librería con Vite 8: los require('react') de
dependencias CommonJS quedaban como require dinámico ("Cannot find module
'react'" en webpack 4) y process.env.NODE_ENV ya no se reemplazaba
("process is not defined")
github-actions Bot
pushed a commit
that referenced
this pull request
Nov 23, 2026
# [1.66.0](v1.65.1...v1.66.0) (2026-11-23) ### Features * **ai:** agrega catálogo de componentes para agentes ([#811](#811)) ([4c557b6](4c557b6))
|
🎉 This PR is included in version 1.66.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Descripción
ai/): nueva carpeta que se publica en el paquete npm ("files": ["dist", "ai"]) y funciona como skill de Claude Code (name: ui-kit).ai/SKILL.md: pasos y reglas para usar los componentes de ui-kit antes de armarlos con Chakra.ai/README.md: reglas rápidas e índice con una fila por cada export desrc/index.ts.ai/components/*.md: 17 fichas por familia (modales, botones, alertas, tema, calendario, etc.). Cada una trae exports, tipos endist/, cuál usar, un ejemplo, las props clave y la sección "Cómo se ve", para reconocer el componente en un diseño.src/ai-catalog.test.ts): falla si un export desrc/index.tsno está en el índice, si una ficha enlazada no existe o si la skill no tiene frontmatter válido..claude/rules/ai-catalog.md, y.claude/CLAUDE.mdexige actualizar la ficha enai/junto con cada componente nuevo o modificado.vite.config.ts), solo al compilar la librería:esmExternalRequirePluginconvierte enimportlosrequire('react')de las dependencias CommonJS empaquetadas (runtime de JSX,html-react-parser).definereemplazaprocess.env.NODE_ENVpor'production'.Motivación y contexto
.claude/skills/ui-kit -> ../../node_modules/@eclass/ui-kit/ai) y siempre tiene el catálogo de la versión que instaló.Cannot find module 'react'yprocess is not defined. Vite 8 dejaba losrequirecomo dinámicos y ya no reemplazabaprocess.env.NODE_ENVen modo librería.Tipos de cambios