create-huenei-template 0.2.7 → 0.2.9

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 (482) hide show
  1. package/dist/config/templates.js +14 -0
  2. package/dist/core/file-operations.js +15 -0
  3. package/dist/core/prompts.js +77 -135
  4. package/dist/index.js +55 -11
  5. package/dist/templates/README.md +7 -1
  6. package/dist/templates/backend/README.md +19 -9
  7. package/dist/templates/backend/nestjs-api-mysql/.cursor/agents/nestjs-code-reviewer.md +54 -0
  8. package/dist/templates/backend/nestjs-api-mysql/.cursor/agents/prisma-guardian.md +67 -0
  9. package/dist/templates/backend/nestjs-api-mysql/.cursor/agents/test-runner.md +57 -0
  10. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks/autoTestOnStop.ts +127 -0
  11. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks/blockDangerous.ts +98 -0
  12. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks/ensureTestsExist.ts +405 -0
  13. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks/formatOnEdit.ts +70 -0
  14. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks/protectSecrets.ts +101 -0
  15. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks/sessionInit.ts +104 -0
  16. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks/validatePrisma.ts +121 -0
  17. package/dist/templates/backend/nestjs-api-mysql/.cursor/hooks.json +46 -0
  18. package/dist/templates/backend/nestjs-api-mysql/README.md +26 -0
  19. package/dist/templates/backend/nestjs-api-mysql/eslint.config.mjs +1 -1
  20. package/dist/templates/backend/nestjs-api-mysql/package.json +7 -7
  21. package/dist/templates/backend/nestjs-api-postgres/.cursor/agents/nestjs-code-reviewer.md +54 -0
  22. package/dist/templates/backend/nestjs-api-postgres/.cursor/agents/prisma-guardian.md +62 -0
  23. package/dist/templates/backend/nestjs-api-postgres/.cursor/agents/security-auditor.md +71 -0
  24. package/dist/templates/backend/nestjs-api-postgres/.cursor/agents/test-runner.md +58 -0
  25. package/dist/templates/backend/nestjs-api-postgres/.cursor/hooks/auto-retry.ts +62 -0
  26. package/dist/templates/backend/nestjs-api-postgres/.cursor/hooks/block-dangerous.ts +202 -0
  27. package/dist/templates/backend/nestjs-api-postgres/.cursor/hooks/format-and-validate.ts +124 -0
  28. package/dist/templates/backend/nestjs-api-postgres/.cursor/hooks/protect-secrets.ts +105 -0
  29. package/dist/templates/backend/nestjs-api-postgres/.cursor/hooks/session-context.ts +130 -0
  30. package/dist/templates/backend/nestjs-api-postgres/.cursor/hooks.json +36 -0
  31. package/dist/templates/backend/nestjs-api-postgres/eslint.config.mjs +1 -1
  32. package/dist/templates/backend/nestjs-api-postgres/package.json +6 -6
  33. package/dist/templates/backend/nestjs-api-sqlite/.cursor/agents/code-reviewer.md +153 -0
  34. package/dist/templates/backend/nestjs-api-sqlite/.cursor/agents/nestjs-architect.md +138 -0
  35. package/dist/templates/backend/nestjs-api-sqlite/.cursor/agents/prisma-analyst.md +164 -0
  36. package/dist/templates/backend/nestjs-api-sqlite/.cursor/agents/security-auditor.md +150 -0
  37. package/dist/templates/backend/nestjs-api-sqlite/.cursor/agents/test-engineer.md +290 -0
  38. package/dist/templates/backend/nestjs-api-sqlite/.cursor/hooks/auto-format.ts +80 -0
  39. package/dist/templates/backend/nestjs-api-sqlite/.cursor/hooks/block-dangerous-commands.ts +144 -0
  40. package/dist/templates/backend/nestjs-api-sqlite/.cursor/hooks/prisma-schema-watcher.ts +64 -0
  41. package/dist/templates/backend/nestjs-api-sqlite/.cursor/hooks/protect-sensitive-files.ts +122 -0
  42. package/dist/templates/backend/nestjs-api-sqlite/.cursor/hooks/session-context.ts +105 -0
  43. package/dist/templates/backend/nestjs-api-sqlite/.cursor/hooks.json +18 -0
  44. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/conventional-commits/SKILL.md +318 -0
  45. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/docker/SKILL.md +82 -0
  46. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/jest/SKILL.md +72 -0
  47. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/logging-best-practices/SKILL.md +127 -0
  48. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/prisma-database-setup/SKILL.md +186 -0
  49. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/quality-gates-enforcer/SKILL.md +301 -0
  50. package/dist/templates/backend/nestjs-api-sqlite/README.md +34 -1
  51. package/dist/templates/backend/nestjs-api-sqlite/eslint.config.mjs +1 -1
  52. package/dist/templates/backend/nestjs-api-sqlite/package.json +6 -6
  53. package/dist/templates/backend/nestjs-api-sqlite/prisma/schema.prisma +1 -0
  54. package/dist/templates/backend/nestjs-api-sqlite/prisma/seed.ts +2 -2
  55. package/dist/templates/backend/nestjs-api-sqlite/src/posts/dto/post-response.dto.ts +5 -1
  56. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/profile-response.dto.ts +1 -1
  57. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/update-profile.dto.ts +1 -1
  58. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/user-response.dto.ts +4 -0
  59. package/dist/templates/backend/nestjs-api-sqlite/src/users/profile.service.ts +24 -8
  60. package/dist/templates/backend/nestjs-api-sqlite/src/users/users.service.ts +1 -0
  61. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/agents/nestjs-code-reviewer.md +54 -0
  62. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/agents/prisma-guardian.md +67 -0
  63. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/agents/test-runner.md +57 -0
  64. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-endpoint.md +209 -0
  65. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-model.md +201 -0
  66. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks/autoTestOnStop.ts +127 -0
  67. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks/blockDangerous.ts +98 -0
  68. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks/ensureTestsExist.ts +405 -0
  69. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks/formatOnEdit.ts +70 -0
  70. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks/protectSecrets.ts +101 -0
  71. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks/sessionInit.ts +104 -0
  72. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks/validatePrisma.ts +121 -0
  73. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/hooks.json +46 -0
  74. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/rules/api-rest.mdc +126 -0
  75. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/rules/authentication-security.mdc +86 -0
  76. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/rules/dto-validation.mdc +93 -0
  77. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/rules/general-rules.mdc +126 -0
  78. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/rules/nestjs-architecture.mdc +83 -0
  79. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/rules/prisma-standards.mdc +111 -0
  80. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/rules/swagger-documentation.mdc +90 -0
  81. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
  82. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/docker-expert/SKILL.md +409 -0
  83. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/nestjs-expert/SKILL.md +552 -0
  84. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
  85. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
  86. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
  87. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/prisma-expert/SKILL.md +355 -0
  88. package/dist/templates/backend/nestjs-api-sqlserver/.cursor/skills/sqlserver-table-design/SKILL.md +125 -0
  89. package/dist/templates/backend/nestjs-api-sqlserver/.dockerignore +50 -0
  90. package/dist/templates/backend/nestjs-api-sqlserver/.env.example +17 -0
  91. package/dist/templates/backend/nestjs-api-sqlserver/.env.test +17 -0
  92. package/dist/templates/backend/nestjs-api-sqlserver/.prettierrc +4 -0
  93. package/dist/templates/backend/nestjs-api-sqlserver/README.md +587 -0
  94. package/dist/templates/backend/nestjs-api-sqlserver/docker-compose.yml +24 -0
  95. package/dist/templates/backend/nestjs-api-sqlserver/eslint.config.mjs +41 -0
  96. package/dist/templates/backend/nestjs-api-sqlserver/nest-cli.json +8 -0
  97. package/dist/templates/backend/nestjs-api-sqlserver/package.json +107 -0
  98. package/dist/templates/backend/nestjs-api-sqlserver/prisma/schema.prisma +70 -0
  99. package/dist/templates/backend/nestjs-api-sqlserver/prisma/seed.ts +215 -0
  100. package/dist/templates/backend/nestjs-api-sqlserver/prisma.config.ts +12 -0
  101. package/dist/templates/backend/nestjs-api-sqlserver/scripts/check-docker.js +64 -0
  102. package/dist/templates/backend/nestjs-api-sqlserver/src/app.module.ts +39 -0
  103. package/dist/templates/backend/nestjs-api-sqlserver/src/app.service.ts +8 -0
  104. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/auth.controller.ts +36 -0
  105. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/auth.module.ts +22 -0
  106. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/auth.service.ts +64 -0
  107. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/decorators/roles.decorator.ts +5 -0
  108. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/dto/login-response.dto.ts +23 -0
  109. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/dto/login.dto.ts +27 -0
  110. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/enums/role.enum.ts +5 -0
  111. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/guards/jwt-auth.guard.ts +20 -0
  112. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/guards/roles.guard.ts +23 -0
  113. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/strategies/jwt.strategy.ts +32 -0
  114. package/dist/templates/backend/nestjs-api-sqlserver/src/auth/types.ts +18 -0
  115. package/dist/templates/backend/nestjs-api-sqlserver/src/common/dto/paginated-response.dto.ts +16 -0
  116. package/dist/templates/backend/nestjs-api-sqlserver/src/common/dto/pagination.dto.ts +31 -0
  117. package/dist/templates/backend/nestjs-api-sqlserver/src/common/filters/http-exception.filter.ts +53 -0
  118. package/dist/templates/backend/nestjs-api-sqlserver/src/config/env.validation.ts +41 -0
  119. package/dist/templates/backend/nestjs-api-sqlserver/src/health/health.controller.ts +35 -0
  120. package/dist/templates/backend/nestjs-api-sqlserver/src/health/health.module.ts +7 -0
  121. package/dist/templates/backend/nestjs-api-sqlserver/src/main.ts +87 -0
  122. package/dist/templates/backend/nestjs-api-sqlserver/src/posts/dto/create-post.dto.ts +32 -0
  123. package/dist/templates/backend/nestjs-api-sqlserver/src/posts/dto/post-response.dto.ts +41 -0
  124. package/dist/templates/backend/nestjs-api-sqlserver/src/posts/dto/update-post.dto.ts +31 -0
  125. package/dist/templates/backend/nestjs-api-sqlserver/src/posts/posts.controller.ts +161 -0
  126. package/dist/templates/backend/nestjs-api-sqlserver/src/posts/posts.module.ts +12 -0
  127. package/dist/templates/backend/nestjs-api-sqlserver/src/posts/posts.service.ts +171 -0
  128. package/dist/templates/backend/nestjs-api-sqlserver/src/prisma/prisma.module.ts +9 -0
  129. package/dist/templates/backend/nestjs-api-sqlserver/src/prisma/prisma.service.ts +62 -0
  130. package/dist/templates/backend/nestjs-api-sqlserver/src/users/constants/settings.constants.ts +9 -0
  131. package/dist/templates/backend/nestjs-api-sqlserver/src/users/dto/profile-response.dto.ts +39 -0
  132. package/dist/templates/backend/nestjs-api-sqlserver/src/users/dto/settings-response.dto.ts +18 -0
  133. package/dist/templates/backend/nestjs-api-sqlserver/src/users/dto/update-profile.dto.ts +48 -0
  134. package/dist/templates/backend/nestjs-api-sqlserver/src/users/dto/update-settings.dto.ts +40 -0
  135. package/dist/templates/backend/nestjs-api-sqlserver/src/users/dto/user-response.dto.ts +18 -0
  136. package/dist/templates/backend/nestjs-api-sqlserver/src/users/profile.service.ts +67 -0
  137. package/dist/templates/backend/nestjs-api-sqlserver/src/users/settings.service.ts +77 -0
  138. package/dist/templates/backend/nestjs-api-sqlserver/src/users/users.controller.ts +102 -0
  139. package/dist/templates/backend/nestjs-api-sqlserver/src/users/users.module.ts +14 -0
  140. package/dist/templates/backend/nestjs-api-sqlserver/src/users/users.service.ts +27 -0
  141. package/dist/templates/backend/nestjs-api-sqlserver/test/README.md +412 -0
  142. package/dist/templates/backend/nestjs-api-sqlserver/test/e2e/auth.e2e-spec.ts +147 -0
  143. package/dist/templates/backend/nestjs-api-sqlserver/test/e2e/health.e2e-spec.ts +62 -0
  144. package/dist/templates/backend/nestjs-api-sqlserver/test/e2e/posts.e2e-spec.ts +407 -0
  145. package/dist/templates/backend/nestjs-api-sqlserver/test/e2e/users.e2e-spec.ts +287 -0
  146. package/dist/templates/backend/nestjs-api-sqlserver/test/fixtures/test-data.ts +109 -0
  147. package/dist/templates/backend/nestjs-api-sqlserver/test/helpers/auth.helper.ts +54 -0
  148. package/dist/templates/backend/nestjs-api-sqlserver/test/helpers/db.helper.ts +68 -0
  149. package/dist/templates/backend/nestjs-api-sqlserver/test/jest-e2e.json +12 -0
  150. package/dist/templates/backend/nestjs-api-sqlserver/test/setup-e2e.ts +8 -0
  151. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/app.service.spec.ts +24 -0
  152. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/auth.controller.spec.ts +91 -0
  153. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/auth.service.spec.ts +161 -0
  154. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/health.controller.spec.ts +78 -0
  155. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/http-exception.filter.spec.ts +150 -0
  156. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/jwt-auth.guard.spec.ts +50 -0
  157. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/jwt.strategy.spec.ts +41 -0
  158. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/posts.controller.spec.ts +249 -0
  159. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/posts.service.spec.ts +328 -0
  160. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/profile.service.spec.ts +146 -0
  161. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/settings.service.spec.ts +242 -0
  162. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/users.controller.spec.ts +178 -0
  163. package/dist/templates/backend/nestjs-api-sqlserver/test/unit/users.service.spec.ts +96 -0
  164. package/dist/templates/backend/nestjs-api-sqlserver/tsconfig.build.json +4 -0
  165. package/dist/templates/backend/nestjs-api-sqlserver/tsconfig.json +28 -0
  166. package/dist/templates/cursor/.cursor/commands/configurar-cursor.md +763 -0
  167. package/dist/templates/cursor/.cursor/skills/create-huenei-subagent/SKILL.md +223 -0
  168. package/dist/templates/cursor/.cursor/skills/create-huenei-subagent/examples.md +236 -0
  169. package/dist/templates/cursor/.cursor/skills/cursor-hooks/SKILL.md +1100 -0
  170. package/dist/templates/cursor/.cursor/skills/find-skills/SKILL.md +133 -0
  171. package/dist/templates/frontend/angular-base/.cursor/agents/accessibility-reviewer.md +67 -0
  172. package/dist/templates/frontend/angular-base/.cursor/agents/angular-code-reviewer.md +60 -0
  173. package/dist/templates/frontend/angular-base/.cursor/agents/qa-test-expert.md +70 -0
  174. package/dist/templates/frontend/angular-base/.cursor/agents/security-auditor.md +58 -0
  175. package/dist/templates/frontend/angular-base/.cursor/hooks/auto-format.ts +70 -0
  176. package/dist/templates/frontend/angular-base/.cursor/hooks/auto-test-on-stop.ts +113 -0
  177. package/dist/templates/frontend/angular-base/.cursor/hooks/block-dangerous-commands.ts +160 -0
  178. package/dist/templates/frontend/angular-base/.cursor/hooks/ensure-tests-exist.ts +363 -0
  179. package/dist/templates/frontend/angular-base/.cursor/hooks/protect-sensitive-files.ts +118 -0
  180. package/dist/templates/frontend/angular-base/.cursor/hooks/session-context.ts +110 -0
  181. package/dist/templates/frontend/angular-base/.cursor/hooks.json +41 -0
  182. package/dist/templates/frontend/angular-nx/.cursor/agents/angular-code-reviewer.md +64 -0
  183. package/dist/templates/frontend/angular-nx/.cursor/agents/nx-architecture-guardian.md +69 -0
  184. package/dist/templates/frontend/angular-nx/.cursor/agents/qa-test-expert.md +75 -0
  185. package/dist/templates/frontend/angular-nx/.cursor/agents/security-auditor.md +61 -0
  186. package/dist/templates/frontend/angular-nx/.cursor/hooks/auto-format.ts +70 -0
  187. package/dist/templates/frontend/angular-nx/.cursor/hooks/auto-test-on-stop.ts +115 -0
  188. package/dist/templates/frontend/angular-nx/.cursor/hooks/block-dangerous-commands.ts +188 -0
  189. package/dist/templates/frontend/angular-nx/.cursor/hooks/ensure-tests-exist.ts +399 -0
  190. package/dist/templates/frontend/angular-nx/.cursor/hooks/protect-sensitive-files.ts +128 -0
  191. package/dist/templates/frontend/angular-nx/.cursor/hooks/session-context.ts +121 -0
  192. package/dist/templates/frontend/angular-nx/.cursor/hooks.json +41 -0
  193. package/dist/templates/frontend/react-vite/.cursor/agents/frontend-senior.agent.md +49 -49
  194. package/dist/templates/frontend/react-vite/.cursor/agents/qa-test-expert.agent.md +126 -49
  195. package/dist/templates/frontend/react-vite/.cursor/agents/security-expert.agent.md +39 -39
  196. package/dist/templates/frontend/react-vite/.cursor/agents/ux-ui-expert.agent.md +45 -45
  197. package/dist/templates/frontend/react-vite/.cursor/hooks/autoTestOnStop.ts +117 -0
  198. package/dist/templates/frontend/react-vite/.cursor/hooks/blockDangerous.ts +75 -0
  199. package/dist/templates/frontend/react-vite/.cursor/hooks/ensureTestsExist.ts +306 -220
  200. package/dist/templates/frontend/react-vite/.cursor/hooks/formatOnEdit.ts +49 -0
  201. package/dist/templates/frontend/react-vite/.cursor/hooks/protectSecrets.ts +88 -0
  202. package/dist/templates/frontend/react-vite/.cursor/hooks/sessionInit.ts +77 -0
  203. package/dist/templates/frontend/react-vite/.cursor/hooks.json +41 -10
  204. package/dist/templates/frontend/react-vite/.cursor/settings.json +13 -13
  205. package/dist/templates/frontend/react-vite/.vscode/settings.json +31 -31
  206. package/dist/templates/frontend/react-vite/README.md +34 -34
  207. package/dist/templates/frontend/react-vite/package.json +82 -82
  208. package/dist/templates/frontend/react-vite/pnpm-lock.yaml +6575 -6575
  209. package/dist/templates/frontend/react-vite/src/__tests__/components/layout/navbar.test.tsx +63 -0
  210. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/avatar.test.tsx +74 -0
  211. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/badge.test.tsx +55 -0
  212. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/breadcrumb.test.tsx +140 -0
  213. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/button.test.tsx +121 -0
  214. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/card.test.tsx +144 -0
  215. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/dialog.test.tsx +121 -0
  216. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/form.test.tsx +165 -0
  217. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/input.test.tsx +52 -0
  218. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/label.test.tsx +40 -0
  219. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/password-input.test.tsx +59 -0
  220. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/separator.test.tsx +40 -0
  221. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/table.test.tsx +254 -0
  222. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/tabs.test.tsx +82 -0
  223. package/dist/templates/frontend/react-vite/src/__tests__/components/ui/textarea.test.tsx +47 -0
  224. package/dist/templates/frontend/react-vite/src/__tests__/helpers/render.tsx +114 -0
  225. package/dist/templates/frontend/react-vite/src/__tests__/hooks/useLocalStorage.test.ts +95 -0
  226. package/dist/templates/frontend/react-vite/src/__tests__/lib/queryClient.test.ts +24 -0
  227. package/dist/templates/frontend/react-vite/src/__tests__/lib/utils.test.ts +43 -0
  228. package/dist/templates/frontend/react-vite/src/__tests__/routes/index.test.tsx +111 -0
  229. package/dist/templates/frontend/react-vite/src/__tests__/routes/otra-ruta.test.tsx +126 -0
  230. package/dist/templates/frontend/react-vite/src/__tests__/routes/root.test.tsx +78 -0
  231. package/dist/templates/frontend/react-vite/src/__tests__/routes/ui-components.test.tsx +286 -0
  232. package/dist/templates/frontend/react-vite/src/components/layout/navbar.tsx +38 -38
  233. package/dist/templates/frontend/react-vite/src/components/ui/avatar.tsx +42 -42
  234. package/dist/templates/frontend/react-vite/src/components/ui/dialog.tsx +122 -122
  235. package/dist/templates/frontend/react-vite/src/components/ui/table.tsx +229 -244
  236. package/dist/templates/frontend/react-vite/src/hooks/useLocalStorage.ts +32 -32
  237. package/dist/templates/frontend/react-vite/src/routes/__root.tsx +48 -48
  238. package/dist/templates/frontend/react-vite/src/routes/ui-components.tsx +359 -85
  239. package/dist/templates/frontend/react-vite/src/test/setup.ts +24 -24
  240. package/dist/templates/frontend/react-vite/vite.config.ts +2 -2
  241. package/dist/templates/frontend/react-vite/vitest.config.ts +13 -2
  242. package/dist/templates/frontend/react-vite-help/.cursor/RECONSTRUCTION-PROMPT.md +738 -0
  243. package/package.json +1 -1
  244. package/templates/README.md +7 -1
  245. package/templates/backend/README.md +19 -9
  246. package/templates/backend/nestjs-api-mysql/.cursor/agents/nestjs-code-reviewer.md +54 -0
  247. package/templates/backend/nestjs-api-mysql/.cursor/agents/prisma-guardian.md +67 -0
  248. package/templates/backend/nestjs-api-mysql/.cursor/agents/test-runner.md +57 -0
  249. package/templates/backend/nestjs-api-mysql/.cursor/hooks/autoTestOnStop.ts +127 -0
  250. package/templates/backend/nestjs-api-mysql/.cursor/hooks/blockDangerous.ts +98 -0
  251. package/templates/backend/nestjs-api-mysql/.cursor/hooks/ensureTestsExist.ts +405 -0
  252. package/templates/backend/nestjs-api-mysql/.cursor/hooks/formatOnEdit.ts +70 -0
  253. package/templates/backend/nestjs-api-mysql/.cursor/hooks/protectSecrets.ts +101 -0
  254. package/templates/backend/nestjs-api-mysql/.cursor/hooks/sessionInit.ts +104 -0
  255. package/templates/backend/nestjs-api-mysql/.cursor/hooks/validatePrisma.ts +121 -0
  256. package/templates/backend/nestjs-api-mysql/.cursor/hooks.json +46 -0
  257. package/templates/backend/nestjs-api-mysql/README.md +26 -0
  258. package/templates/backend/nestjs-api-mysql/dist/tsconfig.build.tsbuildinfo +1 -1
  259. package/templates/backend/nestjs-api-mysql/eslint.config.mjs +1 -1
  260. package/templates/backend/nestjs-api-mysql/package.json +7 -7
  261. package/templates/backend/nestjs-api-postgres/.cursor/agents/nestjs-code-reviewer.md +54 -0
  262. package/templates/backend/nestjs-api-postgres/.cursor/agents/prisma-guardian.md +62 -0
  263. package/templates/backend/nestjs-api-postgres/.cursor/agents/security-auditor.md +71 -0
  264. package/templates/backend/nestjs-api-postgres/.cursor/agents/test-runner.md +58 -0
  265. package/templates/backend/nestjs-api-postgres/.cursor/hooks/auto-retry.ts +62 -0
  266. package/templates/backend/nestjs-api-postgres/.cursor/hooks/block-dangerous.ts +202 -0
  267. package/templates/backend/nestjs-api-postgres/.cursor/hooks/format-and-validate.ts +124 -0
  268. package/templates/backend/nestjs-api-postgres/.cursor/hooks/protect-secrets.ts +105 -0
  269. package/templates/backend/nestjs-api-postgres/.cursor/hooks/session-context.ts +130 -0
  270. package/templates/backend/nestjs-api-postgres/.cursor/hooks.json +36 -0
  271. package/templates/backend/nestjs-api-postgres/eslint.config.mjs +1 -1
  272. package/templates/backend/nestjs-api-postgres/package.json +6 -6
  273. package/templates/backend/nestjs-api-sqlite/.cursor/agents/code-reviewer.md +153 -0
  274. package/templates/backend/nestjs-api-sqlite/.cursor/agents/nestjs-architect.md +138 -0
  275. package/templates/backend/nestjs-api-sqlite/.cursor/agents/prisma-analyst.md +164 -0
  276. package/templates/backend/nestjs-api-sqlite/.cursor/agents/security-auditor.md +150 -0
  277. package/templates/backend/nestjs-api-sqlite/.cursor/agents/test-engineer.md +290 -0
  278. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/auto-format.ts +80 -0
  279. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/block-dangerous-commands.ts +144 -0
  280. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/prisma-schema-watcher.ts +64 -0
  281. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/protect-sensitive-files.ts +122 -0
  282. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/session-context.ts +105 -0
  283. package/templates/backend/nestjs-api-sqlite/.cursor/hooks.json +18 -0
  284. package/templates/backend/nestjs-api-sqlite/.cursor/skills/conventional-commits/SKILL.md +318 -0
  285. package/templates/backend/nestjs-api-sqlite/.cursor/skills/docker/SKILL.md +82 -0
  286. package/templates/backend/nestjs-api-sqlite/.cursor/skills/jest/SKILL.md +72 -0
  287. package/templates/backend/nestjs-api-sqlite/.cursor/skills/logging-best-practices/SKILL.md +127 -0
  288. package/templates/backend/nestjs-api-sqlite/.cursor/skills/prisma-database-setup/SKILL.md +186 -0
  289. package/templates/backend/nestjs-api-sqlite/.cursor/skills/quality-gates-enforcer/SKILL.md +301 -0
  290. package/templates/backend/nestjs-api-sqlite/README.md +34 -1
  291. package/templates/backend/nestjs-api-sqlite/eslint.config.mjs +1 -1
  292. package/templates/backend/nestjs-api-sqlite/package.json +6 -6
  293. package/templates/backend/nestjs-api-sqlite/prisma/schema.prisma +1 -0
  294. package/templates/backend/nestjs-api-sqlite/prisma/seed.ts +2 -2
  295. package/templates/backend/nestjs-api-sqlite/src/posts/dto/post-response.dto.ts +5 -1
  296. package/templates/backend/nestjs-api-sqlite/src/users/dto/profile-response.dto.ts +1 -1
  297. package/templates/backend/nestjs-api-sqlite/src/users/dto/update-profile.dto.ts +1 -1
  298. package/templates/backend/nestjs-api-sqlite/src/users/dto/user-response.dto.ts +4 -0
  299. package/templates/backend/nestjs-api-sqlite/src/users/profile.service.ts +24 -8
  300. package/templates/backend/nestjs-api-sqlite/src/users/users.service.ts +1 -0
  301. package/templates/backend/nestjs-api-sqlserver/.cursor/agents/nestjs-code-reviewer.md +54 -0
  302. package/templates/backend/nestjs-api-sqlserver/.cursor/agents/prisma-guardian.md +67 -0
  303. package/templates/backend/nestjs-api-sqlserver/.cursor/agents/test-runner.md +57 -0
  304. package/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-endpoint.md +209 -0
  305. package/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-model.md +201 -0
  306. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/autoTestOnStop.ts +127 -0
  307. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/blockDangerous.ts +98 -0
  308. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/ensureTestsExist.ts +405 -0
  309. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/formatOnEdit.ts +70 -0
  310. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/protectSecrets.ts +101 -0
  311. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/sessionInit.ts +104 -0
  312. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/validatePrisma.ts +121 -0
  313. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks.json +46 -0
  314. package/templates/backend/nestjs-api-sqlserver/.cursor/rules/api-rest.mdc +126 -0
  315. package/templates/backend/nestjs-api-sqlserver/.cursor/rules/authentication-security.mdc +86 -0
  316. package/templates/backend/nestjs-api-sqlserver/.cursor/rules/dto-validation.mdc +93 -0
  317. package/templates/backend/nestjs-api-sqlserver/.cursor/rules/general-rules.mdc +126 -0
  318. package/templates/backend/nestjs-api-sqlserver/.cursor/rules/nestjs-architecture.mdc +83 -0
  319. package/templates/backend/nestjs-api-sqlserver/.cursor/rules/prisma-standards.mdc +111 -0
  320. package/templates/backend/nestjs-api-sqlserver/.cursor/rules/swagger-documentation.mdc +90 -0
  321. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
  322. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/docker-expert/SKILL.md +409 -0
  323. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/nestjs-expert/SKILL.md +552 -0
  324. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
  325. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
  326. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
  327. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/prisma-expert/SKILL.md +355 -0
  328. package/templates/backend/nestjs-api-sqlserver/.cursor/skills/sqlserver-table-design/SKILL.md +125 -0
  329. package/templates/backend/nestjs-api-sqlserver/.dockerignore +50 -0
  330. package/templates/backend/nestjs-api-sqlserver/.env.example +17 -0
  331. package/templates/backend/nestjs-api-sqlserver/.env.test +17 -0
  332. package/templates/backend/nestjs-api-sqlserver/.prettierrc +4 -0
  333. package/templates/backend/nestjs-api-sqlserver/README.md +587 -0
  334. package/templates/backend/nestjs-api-sqlserver/docker-compose.yml +24 -0
  335. package/templates/backend/nestjs-api-sqlserver/eslint.config.mjs +41 -0
  336. package/templates/backend/nestjs-api-sqlserver/nest-cli.json +8 -0
  337. package/templates/backend/nestjs-api-sqlserver/package.json +107 -0
  338. package/templates/backend/nestjs-api-sqlserver/prisma/schema.prisma +70 -0
  339. package/templates/backend/nestjs-api-sqlserver/prisma/seed.ts +215 -0
  340. package/templates/backend/nestjs-api-sqlserver/prisma.config.ts +12 -0
  341. package/templates/backend/nestjs-api-sqlserver/scripts/check-docker.js +64 -0
  342. package/templates/backend/nestjs-api-sqlserver/src/app.module.ts +39 -0
  343. package/templates/backend/nestjs-api-sqlserver/src/app.service.ts +8 -0
  344. package/templates/backend/nestjs-api-sqlserver/src/auth/auth.controller.ts +36 -0
  345. package/templates/backend/nestjs-api-sqlserver/src/auth/auth.module.ts +22 -0
  346. package/templates/backend/nestjs-api-sqlserver/src/auth/auth.service.ts +64 -0
  347. package/templates/backend/nestjs-api-sqlserver/src/auth/decorators/roles.decorator.ts +5 -0
  348. package/templates/backend/nestjs-api-sqlserver/src/auth/dto/login-response.dto.ts +23 -0
  349. package/templates/backend/nestjs-api-sqlserver/src/auth/dto/login.dto.ts +27 -0
  350. package/templates/backend/nestjs-api-sqlserver/src/auth/enums/role.enum.ts +5 -0
  351. package/templates/backend/nestjs-api-sqlserver/src/auth/guards/jwt-auth.guard.ts +20 -0
  352. package/templates/backend/nestjs-api-sqlserver/src/auth/guards/roles.guard.ts +23 -0
  353. package/templates/backend/nestjs-api-sqlserver/src/auth/strategies/jwt.strategy.ts +32 -0
  354. package/templates/backend/nestjs-api-sqlserver/src/auth/types.ts +18 -0
  355. package/templates/backend/nestjs-api-sqlserver/src/common/dto/paginated-response.dto.ts +16 -0
  356. package/templates/backend/nestjs-api-sqlserver/src/common/dto/pagination.dto.ts +31 -0
  357. package/templates/backend/nestjs-api-sqlserver/src/common/filters/http-exception.filter.ts +53 -0
  358. package/templates/backend/nestjs-api-sqlserver/src/config/env.validation.ts +41 -0
  359. package/templates/backend/nestjs-api-sqlserver/src/health/health.controller.ts +35 -0
  360. package/templates/backend/nestjs-api-sqlserver/src/health/health.module.ts +7 -0
  361. package/templates/backend/nestjs-api-sqlserver/src/main.ts +87 -0
  362. package/templates/backend/nestjs-api-sqlserver/src/posts/dto/create-post.dto.ts +32 -0
  363. package/templates/backend/nestjs-api-sqlserver/src/posts/dto/post-response.dto.ts +41 -0
  364. package/templates/backend/nestjs-api-sqlserver/src/posts/dto/update-post.dto.ts +31 -0
  365. package/templates/backend/nestjs-api-sqlserver/src/posts/posts.controller.ts +161 -0
  366. package/templates/backend/nestjs-api-sqlserver/src/posts/posts.module.ts +12 -0
  367. package/templates/backend/nestjs-api-sqlserver/src/posts/posts.service.ts +171 -0
  368. package/templates/backend/nestjs-api-sqlserver/src/prisma/prisma.module.ts +9 -0
  369. package/templates/backend/nestjs-api-sqlserver/src/prisma/prisma.service.ts +62 -0
  370. package/templates/backend/nestjs-api-sqlserver/src/users/constants/settings.constants.ts +9 -0
  371. package/templates/backend/nestjs-api-sqlserver/src/users/dto/profile-response.dto.ts +39 -0
  372. package/templates/backend/nestjs-api-sqlserver/src/users/dto/settings-response.dto.ts +18 -0
  373. package/templates/backend/nestjs-api-sqlserver/src/users/dto/update-profile.dto.ts +48 -0
  374. package/templates/backend/nestjs-api-sqlserver/src/users/dto/update-settings.dto.ts +40 -0
  375. package/templates/backend/nestjs-api-sqlserver/src/users/dto/user-response.dto.ts +18 -0
  376. package/templates/backend/nestjs-api-sqlserver/src/users/profile.service.ts +67 -0
  377. package/templates/backend/nestjs-api-sqlserver/src/users/settings.service.ts +77 -0
  378. package/templates/backend/nestjs-api-sqlserver/src/users/users.controller.ts +102 -0
  379. package/templates/backend/nestjs-api-sqlserver/src/users/users.module.ts +14 -0
  380. package/templates/backend/nestjs-api-sqlserver/src/users/users.service.ts +27 -0
  381. package/templates/backend/nestjs-api-sqlserver/test/README.md +412 -0
  382. package/templates/backend/nestjs-api-sqlserver/test/e2e/auth.e2e-spec.ts +147 -0
  383. package/templates/backend/nestjs-api-sqlserver/test/e2e/health.e2e-spec.ts +62 -0
  384. package/templates/backend/nestjs-api-sqlserver/test/e2e/posts.e2e-spec.ts +407 -0
  385. package/templates/backend/nestjs-api-sqlserver/test/e2e/users.e2e-spec.ts +287 -0
  386. package/templates/backend/nestjs-api-sqlserver/test/fixtures/test-data.ts +109 -0
  387. package/templates/backend/nestjs-api-sqlserver/test/helpers/auth.helper.ts +54 -0
  388. package/templates/backend/nestjs-api-sqlserver/test/helpers/db.helper.ts +68 -0
  389. package/templates/backend/nestjs-api-sqlserver/test/jest-e2e.json +12 -0
  390. package/templates/backend/nestjs-api-sqlserver/test/setup-e2e.ts +8 -0
  391. package/templates/backend/nestjs-api-sqlserver/test/unit/app.service.spec.ts +24 -0
  392. package/templates/backend/nestjs-api-sqlserver/test/unit/auth.controller.spec.ts +91 -0
  393. package/templates/backend/nestjs-api-sqlserver/test/unit/auth.service.spec.ts +161 -0
  394. package/templates/backend/nestjs-api-sqlserver/test/unit/health.controller.spec.ts +78 -0
  395. package/templates/backend/nestjs-api-sqlserver/test/unit/http-exception.filter.spec.ts +150 -0
  396. package/templates/backend/nestjs-api-sqlserver/test/unit/jwt-auth.guard.spec.ts +50 -0
  397. package/templates/backend/nestjs-api-sqlserver/test/unit/jwt.strategy.spec.ts +41 -0
  398. package/templates/backend/nestjs-api-sqlserver/test/unit/posts.controller.spec.ts +249 -0
  399. package/templates/backend/nestjs-api-sqlserver/test/unit/posts.service.spec.ts +328 -0
  400. package/templates/backend/nestjs-api-sqlserver/test/unit/profile.service.spec.ts +146 -0
  401. package/templates/backend/nestjs-api-sqlserver/test/unit/settings.service.spec.ts +242 -0
  402. package/templates/backend/nestjs-api-sqlserver/test/unit/users.controller.spec.ts +178 -0
  403. package/templates/backend/nestjs-api-sqlserver/test/unit/users.service.spec.ts +96 -0
  404. package/templates/backend/nestjs-api-sqlserver/tsconfig.build.json +4 -0
  405. package/templates/backend/nestjs-api-sqlserver/tsconfig.json +28 -0
  406. package/templates/cursor/.cursor/commands/configurar-cursor.md +763 -0
  407. package/templates/cursor/.cursor/skills/create-huenei-subagent/SKILL.md +223 -0
  408. package/templates/cursor/.cursor/skills/create-huenei-subagent/examples.md +236 -0
  409. package/templates/cursor/.cursor/skills/cursor-hooks/SKILL.md +1100 -0
  410. package/templates/cursor/.cursor/skills/find-skills/SKILL.md +133 -0
  411. package/templates/frontend/angular-base/.cursor/agents/accessibility-reviewer.md +67 -0
  412. package/templates/frontend/angular-base/.cursor/agents/angular-code-reviewer.md +60 -0
  413. package/templates/frontend/angular-base/.cursor/agents/qa-test-expert.md +70 -0
  414. package/templates/frontend/angular-base/.cursor/agents/security-auditor.md +58 -0
  415. package/templates/frontend/angular-base/.cursor/hooks/auto-format.ts +70 -0
  416. package/templates/frontend/angular-base/.cursor/hooks/auto-test-on-stop.ts +113 -0
  417. package/templates/frontend/angular-base/.cursor/hooks/block-dangerous-commands.ts +160 -0
  418. package/templates/frontend/angular-base/.cursor/hooks/ensure-tests-exist.ts +363 -0
  419. package/templates/frontend/angular-base/.cursor/hooks/protect-sensitive-files.ts +118 -0
  420. package/templates/frontend/angular-base/.cursor/hooks/session-context.ts +110 -0
  421. package/templates/frontend/angular-base/.cursor/hooks.json +41 -0
  422. package/templates/frontend/angular-nx/.cursor/agents/angular-code-reviewer.md +64 -0
  423. package/templates/frontend/angular-nx/.cursor/agents/nx-architecture-guardian.md +69 -0
  424. package/templates/frontend/angular-nx/.cursor/agents/qa-test-expert.md +75 -0
  425. package/templates/frontend/angular-nx/.cursor/agents/security-auditor.md +61 -0
  426. package/templates/frontend/angular-nx/.cursor/hooks/auto-format.ts +70 -0
  427. package/templates/frontend/angular-nx/.cursor/hooks/auto-test-on-stop.ts +115 -0
  428. package/templates/frontend/angular-nx/.cursor/hooks/block-dangerous-commands.ts +188 -0
  429. package/templates/frontend/angular-nx/.cursor/hooks/ensure-tests-exist.ts +399 -0
  430. package/templates/frontend/angular-nx/.cursor/hooks/protect-sensitive-files.ts +128 -0
  431. package/templates/frontend/angular-nx/.cursor/hooks/session-context.ts +121 -0
  432. package/templates/frontend/angular-nx/.cursor/hooks.json +41 -0
  433. package/templates/frontend/react-vite/.cursor/agents/frontend-senior.agent.md +49 -49
  434. package/templates/frontend/react-vite/.cursor/agents/qa-test-expert.agent.md +126 -49
  435. package/templates/frontend/react-vite/.cursor/agents/security-expert.agent.md +39 -39
  436. package/templates/frontend/react-vite/.cursor/agents/ux-ui-expert.agent.md +45 -45
  437. package/templates/frontend/react-vite/.cursor/hooks/autoTestOnStop.ts +117 -0
  438. package/templates/frontend/react-vite/.cursor/hooks/blockDangerous.ts +75 -0
  439. package/templates/frontend/react-vite/.cursor/hooks/ensureTestsExist.ts +306 -220
  440. package/templates/frontend/react-vite/.cursor/hooks/formatOnEdit.ts +49 -0
  441. package/templates/frontend/react-vite/.cursor/hooks/protectSecrets.ts +88 -0
  442. package/templates/frontend/react-vite/.cursor/hooks/sessionInit.ts +77 -0
  443. package/templates/frontend/react-vite/.cursor/hooks.json +41 -10
  444. package/templates/frontend/react-vite/.cursor/settings.json +13 -13
  445. package/templates/frontend/react-vite/.vscode/settings.json +31 -31
  446. package/templates/frontend/react-vite/README.md +34 -34
  447. package/templates/frontend/react-vite/package.json +82 -82
  448. package/templates/frontend/react-vite/pnpm-lock.yaml +6575 -6575
  449. package/templates/frontend/react-vite/src/__tests__/components/layout/navbar.test.tsx +63 -0
  450. package/templates/frontend/react-vite/src/__tests__/components/ui/avatar.test.tsx +74 -0
  451. package/templates/frontend/react-vite/src/__tests__/components/ui/badge.test.tsx +55 -0
  452. package/templates/frontend/react-vite/src/__tests__/components/ui/breadcrumb.test.tsx +140 -0
  453. package/templates/frontend/react-vite/src/__tests__/components/ui/button.test.tsx +121 -0
  454. package/templates/frontend/react-vite/src/__tests__/components/ui/card.test.tsx +144 -0
  455. package/templates/frontend/react-vite/src/__tests__/components/ui/dialog.test.tsx +121 -0
  456. package/templates/frontend/react-vite/src/__tests__/components/ui/form.test.tsx +165 -0
  457. package/templates/frontend/react-vite/src/__tests__/components/ui/input.test.tsx +52 -0
  458. package/templates/frontend/react-vite/src/__tests__/components/ui/label.test.tsx +40 -0
  459. package/templates/frontend/react-vite/src/__tests__/components/ui/password-input.test.tsx +59 -0
  460. package/templates/frontend/react-vite/src/__tests__/components/ui/separator.test.tsx +40 -0
  461. package/templates/frontend/react-vite/src/__tests__/components/ui/table.test.tsx +254 -0
  462. package/templates/frontend/react-vite/src/__tests__/components/ui/tabs.test.tsx +82 -0
  463. package/templates/frontend/react-vite/src/__tests__/components/ui/textarea.test.tsx +47 -0
  464. package/templates/frontend/react-vite/src/__tests__/helpers/render.tsx +114 -0
  465. package/templates/frontend/react-vite/src/__tests__/hooks/useLocalStorage.test.ts +95 -0
  466. package/templates/frontend/react-vite/src/__tests__/lib/queryClient.test.ts +24 -0
  467. package/templates/frontend/react-vite/src/__tests__/lib/utils.test.ts +43 -0
  468. package/templates/frontend/react-vite/src/__tests__/routes/index.test.tsx +111 -0
  469. package/templates/frontend/react-vite/src/__tests__/routes/otra-ruta.test.tsx +126 -0
  470. package/templates/frontend/react-vite/src/__tests__/routes/root.test.tsx +78 -0
  471. package/templates/frontend/react-vite/src/__tests__/routes/ui-components.test.tsx +286 -0
  472. package/templates/frontend/react-vite/src/components/layout/navbar.tsx +38 -38
  473. package/templates/frontend/react-vite/src/components/ui/avatar.tsx +42 -42
  474. package/templates/frontend/react-vite/src/components/ui/dialog.tsx +122 -122
  475. package/templates/frontend/react-vite/src/components/ui/table.tsx +229 -244
  476. package/templates/frontend/react-vite/src/hooks/useLocalStorage.ts +32 -32
  477. package/templates/frontend/react-vite/src/routes/__root.tsx +48 -48
  478. package/templates/frontend/react-vite/src/routes/ui-components.tsx +359 -85
  479. package/templates/frontend/react-vite/src/test/setup.ts +24 -24
  480. package/templates/frontend/react-vite/vite.config.ts +2 -2
  481. package/templates/frontend/react-vite/vitest.config.ts +13 -2
  482. package/templates/frontend/react-vite-help/.cursor/RECONSTRUCTION-PROMPT.md +738 -0
@@ -0,0 +1,133 @@
1
+ ---
2
+ name: find-skills
3
+ description: Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
4
+ ---
5
+
6
+ # Find Skills
7
+
8
+ This skill helps you discover and install skills from the open agent skills ecosystem.
9
+
10
+ ## When to Use This Skill
11
+
12
+ Use this skill when the user:
13
+
14
+ - Asks "how do I do X" where X might be a common task with an existing skill
15
+ - Says "find a skill for X" or "is there a skill for X"
16
+ - Asks "can you do X" where X is a specialized capability
17
+ - Expresses interest in extending agent capabilities
18
+ - Wants to search for tools, templates, or workflows
19
+ - Mentions they wish they had help with a specific domain (design, testing, deployment, etc.)
20
+
21
+ ## What is the Skills CLI?
22
+
23
+ The Skills CLI (`npx skills`) is the package manager for the open agent skills ecosystem. Skills are modular packages that extend agent capabilities with specialized knowledge, workflows, and tools.
24
+
25
+ **Key commands:**
26
+
27
+ - `npx skills find [query]` - Search for skills interactively or by keyword
28
+ - `npx skills add <package>` - Install a skill from GitHub or other sources
29
+ - `npx skills check` - Check for skill updates
30
+ - `npx skills update` - Update all installed skills
31
+
32
+ **Browse skills at:** https://skills.sh/
33
+
34
+ ## How to Help Users Find Skills
35
+
36
+ ### Step 1: Understand What They Need
37
+
38
+ When a user asks for help with something, identify:
39
+
40
+ 1. The domain (e.g., React, testing, design, deployment)
41
+ 2. The specific task (e.g., writing tests, creating animations, reviewing PRs)
42
+ 3. Whether this is a common enough task that a skill likely exists
43
+
44
+ ### Step 2: Search for Skills
45
+
46
+ Run the find command with a relevant query:
47
+
48
+ ```bash
49
+ npx skills find [query]
50
+ ```
51
+
52
+ For example:
53
+
54
+ - User asks "how do I make my React app faster?" → `npx skills find react performance`
55
+ - User asks "can you help me with PR reviews?" → `npx skills find pr review`
56
+ - User asks "I need to create a changelog" → `npx skills find changelog`
57
+
58
+ The command will return results like:
59
+
60
+ ```
61
+ Install with npx skills add <owner/repo@skill>
62
+
63
+ vercel-labs/agent-skills@vercel-react-best-practices
64
+ └ https://skills.sh/vercel-labs/agent-skills/vercel-react-best-practices
65
+ ```
66
+
67
+ ### Step 3: Present Options to the User
68
+
69
+ When you find relevant skills, present them to the user with:
70
+
71
+ 1. The skill name and what it does
72
+ 2. The install command they can run
73
+ 3. A link to learn more at skills.sh
74
+
75
+ Example response:
76
+
77
+ ```
78
+ I found a skill that might help! The "vercel-react-best-practices" skill provides
79
+ React and Next.js performance optimization guidelines from Vercel Engineering.
80
+
81
+ To install it:
82
+ npx skills add vercel-labs/agent-skills@vercel-react-best-practices
83
+
84
+ Learn more: https://skills.sh/vercel-labs/agent-skills/vercel-react-best-practices
85
+ ```
86
+
87
+ ### Step 4: Offer to Install
88
+
89
+ If the user wants to proceed, you can install the skill for them:
90
+
91
+ ```bash
92
+ npx skills add <owner/repo@skill> -g -y
93
+ ```
94
+
95
+ The `-g` flag installs globally (user-level) and `-y` skips confirmation prompts.
96
+
97
+ ## Common Skill Categories
98
+
99
+ When searching, consider these common categories:
100
+
101
+ | Category | Example Queries |
102
+ | --------------- | ---------------------------------------- |
103
+ | Web Development | react, nextjs, typescript, css, tailwind |
104
+ | Testing | testing, jest, playwright, e2e |
105
+ | DevOps | deploy, docker, kubernetes, ci-cd |
106
+ | Documentation | docs, readme, changelog, api-docs |
107
+ | Code Quality | review, lint, refactor, best-practices |
108
+ | Design | ui, ux, design-system, accessibility |
109
+ | Productivity | workflow, automation, git |
110
+
111
+ ## Tips for Effective Searches
112
+
113
+ 1. **Use specific keywords**: "react testing" is better than just "testing"
114
+ 2. **Try alternative terms**: If "deploy" doesn't work, try "deployment" or "ci-cd"
115
+ 3. **Check popular sources**: Many skills come from `vercel-labs/agent-skills` or `ComposioHQ/awesome-claude-skills`
116
+
117
+ ## When No Skills Are Found
118
+
119
+ If no relevant skills exist:
120
+
121
+ 1. Acknowledge that no existing skill was found
122
+ 2. Offer to help with the task directly using your general capabilities
123
+ 3. Suggest the user could create their own skill with `npx skills init`
124
+
125
+ Example:
126
+
127
+ ```
128
+ I searched for skills related to "xyz" but didn't find any matches.
129
+ I can still help you with this task directly! Would you like me to proceed?
130
+
131
+ If this is something you do often, you could create your own skill:
132
+ npx skills init my-xyz-skill
133
+ ```
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: accessibility-reviewer
3
+ description: Revisor de accesibilidad WCAG 2.2 para Angular con Tailwind CSS. Usar proactivamente despues de modificar templates HTML, componentes UI o estilos para garantizar accesibilidad.
4
+ readonly: true
5
+ ---
6
+
7
+ # Accessibility Reviewer
8
+
9
+ You are a WCAG 2.2 accessibility specialist for Angular 21 applications using Tailwind CSS v4.
10
+
11
+ ## When Invoked
12
+
13
+ 1. Read the modified component templates (`.html` files) and their TypeScript counterparts
14
+ 2. Validate against WCAG 2.2 AA criteria below
15
+ 3. Check Tailwind CSS classes for accessibility concerns
16
+ 4. Report findings by severity and provide concrete fixes
17
+
18
+ ## Validation Checks
19
+
20
+ ### Semantic HTML
21
+ - Use proper heading hierarchy (`h1` > `h2` > `h3`, no skipped levels)
22
+ - Interactive elements use `<button>` or `<a>`, not `<div>` with click handlers
23
+ - Forms use `<label>` with `for` attribute or wrapping pattern
24
+ - Lists use `<ul>`/`<ol>` with `<li>`, not divs with custom styling
25
+ - Tables use `<table>`, `<thead>`, `<th scope>` for tabular data
26
+
27
+ ### ARIA
28
+ - Interactive custom components have appropriate `role` attributes
29
+ - All form inputs have associated labels or `aria-label`/`aria-labelledby`
30
+ - Dynamic content updates use `aria-live` regions
31
+ - Modal dialogs use `role="dialog"` with `aria-modal="true"` and focus trap
32
+ - Error messages linked with `aria-describedby`
33
+
34
+ ### Images & Media
35
+ - All `<img>` tags have `alt` attributes (empty `alt=""` for decorative images)
36
+ - Use `NgOptimizedImage` directive for performance and accessibility
37
+ - SVG icons have `aria-hidden="true"` or descriptive `aria-label`
38
+
39
+ ### Keyboard Navigation
40
+ - All interactive elements are focusable and operable via keyboard
41
+ - Focus order follows visual layout (no positive `tabindex` values)
42
+ - Skip-to-content link present for main navigation
43
+ - Escape key closes modals and dropdowns
44
+ - Focus management on route changes
45
+
46
+ ### Color & Contrast
47
+ - Text contrast ratio >= 4.5:1 (normal text), >= 3:1 (large text) per WCAG AA
48
+ - Tailwind text/bg color combinations checked for sufficient contrast
49
+ - Information not conveyed by color alone (icons, patterns, or text supplement)
50
+ - Focus indicators visible (Tailwind `focus:ring-*` or equivalent)
51
+
52
+ ### Angular-Specific
53
+ - `@angular-eslint/template/accessibility` rules respected
54
+ - Router links use `routerLink` directive (not `href` for SPA navigation)
55
+ - Loading states announce to screen readers (`aria-busy`, skeleton loaders)
56
+ - Conditional rendering (`@if`/`@for`) preserves focus state
57
+
58
+ ## Output Format
59
+
60
+ ```
61
+ [SEVERITY] file:line - Issue description
62
+ WCAG Criterion: {number and name}
63
+ Current: {problematic code}
64
+ Suggested: {accessible code}
65
+ ```
66
+
67
+ End with a compliance summary: pass/fail per WCAG category and overall AA compliance status.
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: angular-code-reviewer
3
+ description: Revisor de codigo Angular. Usar proactivamente despues de modificar codigo en src/app/ para validar convenciones, patrones standalone, signals, arquitectura y calidad.
4
+ model: fast
5
+ readonly: true
6
+ ---
7
+
8
+ # Angular Code Reviewer
9
+
10
+ You are an expert Angular code reviewer specializing in Angular 21 standalone components, signals, and modern best practices.
11
+
12
+ ## When Invoked
13
+
14
+ 1. Read the modified files and their surrounding context (imports, dependents)
15
+ 2. Validate against the project conventions below
16
+ 3. Report findings organized by severity: CRITICAL, HIGH, MEDIUM, LOW
17
+ 4. Provide concrete code fixes for each finding
18
+
19
+ ## Validation Rules
20
+
21
+ ### Architecture (src/app/)
22
+ - `core/` contains only singleton services, guards, interceptors (provided in root)
23
+ - `features/` contains lazy-loaded feature modules, each self-contained
24
+ - `shared/` contains reusable components, directives, pipes (no business logic)
25
+ - `layout/` contains structural components (navbar, footer, main-layout)
26
+ - No cross-feature imports (features must not import from other features)
27
+
28
+ ### Angular Patterns
29
+ - All components MUST be standalone (`standalone: true` is default in Angular 21)
30
+ - Use `inject()` function instead of constructor injection
31
+ - Use signals (`signal`, `computed`, `effect`) for reactive state, NOT `BehaviorSubject`
32
+ - Use `input()`, `output()`, `model()` signal-based APIs over `@Input`/`@Output` decorators
33
+ - Async pipe for observables in templates, or convert to signals with `toSignal()`
34
+ - Lazy loading with `loadComponent`/`loadChildren` in routes
35
+ - Use `NgOptimizedImage` for all images
36
+
37
+ ### Code Quality
38
+ - No `any` types (strict TypeScript)
39
+ - File naming: kebab-case with Angular suffixes (`.component.ts`, `.service.ts`, etc.)
40
+ - Component selectors: `app-` prefix, kebab-case
41
+ - Directive selectors: `app` prefix, camelCase
42
+ - Import order: Angular core > RxJS > Router/Forms > Core > Shared > Environment > Relative
43
+ - Use Tailwind CSS utilities, avoid custom CSS/SCSS unless justified
44
+ - No `innerHTML` or `bypassSecurityTrust*` without explicit justification
45
+
46
+ ### Testing
47
+ - Every component/service/guard/pipe/directive should have a `.spec.ts` file
48
+ - Tests use Vitest with `TestBed.configureTestingModule`
49
+ - E2E tests in `cypress/e2e/` for critical user flows
50
+
51
+ ## Output Format
52
+
53
+ ```
54
+ [SEVERITY] file:line - Description
55
+ Rule: {rule name}
56
+ Current: {problematic code}
57
+ Suggested: {corrected code}
58
+ ```
59
+
60
+ End with a summary: total findings by severity and an overall quality score (A-F).
@@ -0,0 +1,70 @@
1
+ ---
2
+ name: qa-test-expert
3
+ description: Especialista en testing Angular con Vitest y Cypress. Usar proactivamente despues de modificar codigo para generar tests faltantes, verificar cobertura y corregir tests rotos.
4
+ readonly: false
5
+ ---
6
+
7
+ # QA Test Expert
8
+
9
+ You are an Angular testing specialist for a project using Vitest 4 (unit) and Cypress 15 (E2E).
10
+
11
+ ## When Invoked
12
+
13
+ 1. Identify which files were modified and check if corresponding `.spec.ts` files exist
14
+ 2. Read the source file to understand its API, dependencies, and behavior
15
+ 3. Generate or update test files following the patterns below
16
+ 4. Run `pnpm test:ci` to verify all tests pass
17
+ 5. Run `pnpm test:coverage` to check coverage and report gaps
18
+
19
+ ## Unit Test Patterns (Vitest + TestBed)
20
+
21
+ ### Components
22
+ ```typescript
23
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
24
+ import { describe, it, expect, beforeEach } from 'vitest';
25
+
26
+ describe('MyComponent', () => {
27
+ let component: MyComponent;
28
+ let fixture: ComponentFixture<MyComponent>;
29
+
30
+ beforeEach(async () => {
31
+ await TestBed.configureTestingModule({
32
+ imports: [MyComponent], // standalone
33
+ }).compileComponents();
34
+ fixture = TestBed.createComponent(MyComponent);
35
+ component = fixture.componentInstance;
36
+ fixture.detectChanges();
37
+ });
38
+
39
+ it('should create', () => expect(component).toBeTruthy());
40
+ });
41
+ ```
42
+
43
+ ### Services
44
+ - Use `TestBed.inject()` to get service instances
45
+ - Mock `HttpClient` with `provideHttpClientTesting()`
46
+ - Test error handling paths
47
+
48
+ ### Guards/Interceptors
49
+ - Test as functional providers
50
+ - Mock `ActivatedRouteSnapshot` and `RouterStateSnapshot`
51
+ - Verify redirect behavior
52
+
53
+ ## E2E Test Patterns (Cypress)
54
+ - Tests in `cypress/e2e/` with `.cy.ts` extension
55
+ - Use `cy.visit()`, `cy.get()`, `cy.contains()`
56
+ - Test critical flows: login, navigation, CRUD operations
57
+ - Base URL: `http://localhost:4200`
58
+
59
+ ## Test Structure
60
+ - Sections: Rendering > Interactions > States > Edge Cases > Accessibility
61
+ - Descriptive test names in Spanish: `deberia renderizar correctamente`
62
+ - Mock external dependencies with `vi.fn()` or `vi.spyOn()`
63
+ - Arrange-Act-Assert pattern in every test
64
+
65
+ ## Rules
66
+ - Test files live next to source files (`*.spec.ts`)
67
+ - Minimum 3 test cases per service, 5 per component
68
+ - Cover happy path, error cases, and edge cases
69
+ - No `any` in test code unless strictly necessary for mocks
70
+ - Run `pnpm test:ci` after writing tests to verify they pass
@@ -0,0 +1,58 @@
1
+ ---
2
+ name: security-auditor
3
+ description: Auditor de seguridad para aplicaciones Angular. Usar proactivamente despues de modificar codigo en core/, features/auth/, interceptors o configuracion de SSR para detectar vulnerabilidades.
4
+ readonly: true
5
+ ---
6
+
7
+ # Security Auditor
8
+
9
+ You are a security specialist for Angular 21 applications with SSR (Express). You detect vulnerabilities and bad practices that automated tools miss.
10
+
11
+ ## When Invoked
12
+
13
+ 1. Read the modified files and related security-sensitive code
14
+ 2. Scan for vulnerabilities in the categories below
15
+ 3. Report findings by severity: CRITICAL, HIGH, MEDIUM, LOW
16
+ 4. Provide remediation steps for each finding
17
+
18
+ ## Security Checks
19
+
20
+ ### XSS Prevention
21
+ - Detect `innerHTML` bindings in templates (use Angular sanitization or pipes instead)
22
+ - Detect `bypassSecurityTrustHtml/Style/Script/Url/ResourceUrl` usage
23
+ - Verify user input is never interpolated unsanitized in templates
24
+ - Check for `[attr.href]` with user-controlled values (javascript: protocol)
25
+
26
+ ### Authentication & Authorization
27
+ - Guards (`auth.guard`, `admin.guard`) must protect all restricted routes
28
+ - Verify guards use proper redirect on unauthorized access
29
+ - Check that tokens are not stored in `localStorage` (use `httpOnly` cookies or secure storage)
30
+ - Verify interceptors attach auth tokens correctly and handle 401 responses
31
+
32
+ ### SSR Security
33
+ - No sensitive data leaked in server-rendered HTML (check `TransferState` usage)
34
+ - Environment variables not exposed to the client bundle
35
+ - Express server (`server.ts`) has proper security headers
36
+ - No server-side secrets in `environment.ts` files
37
+
38
+ ### Data Exposure
39
+ - No hardcoded API keys, tokens, or credentials in source code
40
+ - No sensitive data in `console.log` statements
41
+ - Error interceptor does not expose stack traces or internal errors to users
42
+ - `.env` files not committed (verify `.gitignore`)
43
+
44
+ ### HTTP Security
45
+ - API calls use HTTPS in production environment config
46
+ - CSRF protection configured for state-changing requests
47
+ - Content Security Policy headers considered for SSR responses
48
+
49
+ ## Output Format
50
+
51
+ ```
52
+ [SEVERITY] file:line - Vulnerability description
53
+ Category: {XSS|Auth|SSR|DataExposure|HTTP}
54
+ Risk: {description of potential impact}
55
+ Remediation: {specific fix}
56
+ ```
57
+
58
+ End with an executive summary: total findings, risk level (Low/Medium/High/Critical), and prioritized action items.
@@ -0,0 +1,70 @@
1
+ import { execSync } from 'node:child_process';
2
+ import * as path from 'node:path';
3
+
4
+ interface HookInput {
5
+ file_path: string;
6
+ workspace_roots?: string[];
7
+ [key: string]: unknown;
8
+ }
9
+
10
+ const FORMATTABLE_EXTENSIONS = new Set(['.ts', '.html', '.css', '.scss', '.json']);
11
+
12
+ const IGNORED_DIRS = ['node_modules', 'dist', 'coverage', '.angular', '.husky'];
13
+
14
+ function readStdin(): Promise<string> {
15
+ return new Promise((resolve) => {
16
+ let data = '';
17
+ process.stdin.setEncoding('utf8');
18
+ process.stdin.on('data', (chunk: string) => {
19
+ data += chunk;
20
+ });
21
+ process.stdin.on('end', () => resolve(data));
22
+ process.stdin.on('error', () => resolve(''));
23
+ });
24
+ }
25
+
26
+ function isInIgnoredDir(filePath: string): boolean {
27
+ const normalized = filePath.replace(/\\/g, '/');
28
+ return IGNORED_DIRS.some((dir) => normalized.includes(`/${dir}/`));
29
+ }
30
+
31
+ async function main(): Promise<void> {
32
+ try {
33
+ const raw = await readStdin();
34
+ if (!raw?.trim()) return;
35
+
36
+ const payload = JSON.parse(raw.replace(/^\uFEFF/, '').trim()) as HookInput;
37
+ const filePath = payload.file_path;
38
+
39
+ if (!filePath) {
40
+ console.error('[auto-format] No file_path in payload');
41
+ return;
42
+ }
43
+
44
+ const ext = path.extname(filePath).toLowerCase();
45
+
46
+ if (!FORMATTABLE_EXTENSIONS.has(ext)) {
47
+ console.error(`[auto-format] Skipping non-formattable extension: ${ext}`);
48
+ return;
49
+ }
50
+
51
+ if (isInIgnoredDir(filePath)) {
52
+ console.error(`[auto-format] Skipping ignored directory: ${filePath}`);
53
+ return;
54
+ }
55
+
56
+ console.error(`[auto-format] Formatting: ${filePath}`);
57
+
58
+ execSync(`npx prettier --write "${filePath}"`, {
59
+ stdio: ['pipe', 'pipe', 'pipe'],
60
+ timeout: 10_000,
61
+ cwd: process.env['CURSOR_PROJECT_DIR'] || process.cwd(),
62
+ });
63
+
64
+ console.error(`[auto-format] Done: ${filePath}`);
65
+ } catch (err) {
66
+ console.error('[auto-format] Error:', err instanceof Error ? err.message : String(err));
67
+ }
68
+ }
69
+
70
+ main();
@@ -0,0 +1,113 @@
1
+ import * as fs from 'node:fs';
2
+ import * as path from 'node:path';
3
+
4
+ interface StopPayload {
5
+ status: 'completed' | 'aborted' | 'error';
6
+ loop_count: number;
7
+ workspace_roots: string[];
8
+ [key: string]: unknown;
9
+ }
10
+
11
+ interface PendingTest {
12
+ source: string;
13
+ test: string;
14
+ type: string;
15
+ name: string;
16
+ }
17
+
18
+ interface PendingTestsFile {
19
+ timestamp: string;
20
+ pending: PendingTest[];
21
+ }
22
+
23
+ function readStdin(): Promise<string> {
24
+ return new Promise((resolve) => {
25
+ let data = '';
26
+ process.stdin.setEncoding('utf8');
27
+ process.stdin.on('data', (chunk: string) => {
28
+ data += chunk;
29
+ });
30
+ process.stdin.on('end', () => resolve(data));
31
+ process.stdin.on('error', () => resolve(''));
32
+ });
33
+ }
34
+
35
+ function respond(output: Record<string, unknown>): void {
36
+ process.stdout.write(JSON.stringify(output) + '\n');
37
+ }
38
+
39
+ async function main(): Promise<void> {
40
+ try {
41
+ const raw = await readStdin();
42
+ if (!raw?.trim()) {
43
+ respond({});
44
+ return;
45
+ }
46
+
47
+ const payload = JSON.parse(raw.replace(/^\uFEFF/, '').trim()) as StopPayload;
48
+ const { status, loop_count, workspace_roots } = payload;
49
+
50
+ if (status !== 'completed' || loop_count > 0) {
51
+ respond({});
52
+ return;
53
+ }
54
+
55
+ const root = workspace_roots?.[0]
56
+ ? path.resolve(workspace_roots[0])
57
+ : (process.env.CURSOR_PROJECT_DIR ?? process.cwd());
58
+
59
+ const pendingPath = path.join(root, '.cursor', 'hooks', '.pending-tests.json');
60
+
61
+ if (!fs.existsSync(pendingPath)) {
62
+ respond({});
63
+ return;
64
+ }
65
+
66
+ let data: PendingTestsFile;
67
+ try {
68
+ data = JSON.parse(fs.readFileSync(pendingPath, 'utf8')) as PendingTestsFile;
69
+ } catch {
70
+ fs.unlinkSync(pendingPath);
71
+ respond({});
72
+ return;
73
+ }
74
+
75
+ if (!data.pending || data.pending.length === 0) {
76
+ fs.unlinkSync(pendingPath);
77
+ respond({});
78
+ return;
79
+ }
80
+
81
+ const fileList = data.pending
82
+ .map((p) => `- ${p.source} → ${p.test} (${p.type}: ${p.name})`)
83
+ .join('\n');
84
+
85
+ fs.unlinkSync(pendingPath);
86
+
87
+ const followup = [
88
+ 'Se crearon scaffolds de tests para los siguientes archivos:',
89
+ '',
90
+ fileList,
91
+ '',
92
+ 'Por favor, completa los tests con implementaciones reales:',
93
+ '',
94
+ '1. Leer el archivo fuente y entender su API/props/comportamiento',
95
+ '2. Reemplazar el scaffold basico con tests reales que cubran: happy path, edge cases, errores',
96
+ '3. Usar TestBed.configureTestingModule con los providers/imports necesarios',
97
+ '4. Para componentes con dependencias, mockear los servicios con vi.fn()',
98
+ '5. Usar nombres descriptivos en espanol para describe/it',
99
+ '6. Ejecutar `pnpm test:ci` al final para verificar que los tests pasen',
100
+ ].join('\n');
101
+
102
+ respond({ followup_message: followup });
103
+
104
+ console.error(
105
+ `[auto-test-on-stop] Triggering test completion for ${data.pending.length} pending test(s)`
106
+ );
107
+ } catch (err) {
108
+ console.error('[auto-test-on-stop] Error:', err instanceof Error ? err.message : String(err));
109
+ respond({});
110
+ }
111
+ }
112
+
113
+ main();