create-huenei-template 0.2.18 → 0.3.1

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 (384) hide show
  1. package/dist/templates/frontend/hub-pre-sales/.cursor/context/pre-sales.md +3 -2
  2. package/dist/templates/frontend/hub-pre-sales/.cursor/rules/architech.mdc +13 -1
  3. package/dist/templates/frontend/hub-pre-sales/.cursor/rules/component-patterns.mdc +1 -1
  4. package/dist/templates/frontend/hub-pre-sales/.cursor/rules/gsap-animations.mdc +46 -0
  5. package/dist/templates/frontend/hub-pre-sales/.cursor/rules/pre-sales-mode.mdc +2 -1
  6. package/dist/templates/frontend/hub-pre-sales/.cursor/rules/restrictions.mdc +3 -1
  7. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/animate/SKILL.md +23 -10
  8. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/delight/SKILL.md +3 -4
  9. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-core/SKILL.md +254 -0
  10. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-frameworks/SKILL.md +266 -0
  11. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-performance/SKILL.md +79 -0
  12. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-plugins/SKILL.md +433 -0
  13. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-react/SKILL.md +136 -0
  14. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-scrolltrigger/SKILL.md +296 -0
  15. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-timeline/SKILL.md +107 -0
  16. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/gsap-utils/SKILL.md +284 -0
  17. package/dist/templates/frontend/hub-pre-sales/.cursor/skills/overdrive/SKILL.md +1 -1
  18. package/dist/templates/frontend/hub-pre-sales/AGENTS.md +13 -3
  19. package/dist/templates/frontend/hub-pre-sales/README.md +2 -1
  20. package/dist/templates/frontend/hub-pre-sales/package.json +84 -82
  21. package/dist/templates/frontend/hub-pre-sales/src/lib/gsap.ts +6 -0
  22. package/dist/templates/frontend/pre-sales/.cursor/rules/architech.mdc +199 -199
  23. package/dist/templates/frontend/pre-sales/.cursor/rules/deployment-ready.mdc +52 -52
  24. package/dist/templates/frontend/pre-sales/.cursor/rules/domain-business-bootstrap.mdc +74 -74
  25. package/dist/templates/frontend/pre-sales/.cursor/rules/pre-sales-mode.mdc +104 -104
  26. package/dist/templates/frontend/pre-sales/.cursor/rules/separation-of-concerns.mdc +41 -41
  27. package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/SKILL.md +296 -296
  28. package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy-codex.sh +301 -301
  29. package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy.sh +301 -301
  30. package/dist/templates/frontend/pre-sales/src/__tests__/components/layout/sidebar.test.tsx +58 -58
  31. package/dist/templates/frontend/pre-sales/src/__tests__/lib/auth.test.ts +102 -102
  32. package/dist/templates/frontend/pre-sales/src/__tests__/routes/__root.test.tsx +72 -72
  33. package/dist/templates/frontend/pre-sales/src/__tests__/routes/_authenticated.test.tsx +57 -57
  34. package/dist/templates/frontend/pre-sales/src/components/layout/navbar.tsx +121 -121
  35. package/dist/templates/frontend/pre-sales/src/components/ui/combobox.tsx +308 -308
  36. package/dist/templates/frontend/pre-sales/src/components/ui/command.tsx +179 -179
  37. package/dist/templates/frontend/pre-sales/src/data/dashboard.ts +249 -249
  38. package/dist/templates/frontend/pre-sales/src/hooks/useTheme.ts +73 -73
  39. package/dist/templates/frontend/pre-sales/src/index.css +282 -282
  40. package/dist/templates/frontend/pre-sales/src/routes/__root.tsx +62 -62
  41. package/dist/templates/frontend/pre-sales/src/routes/auth/iniciar-sesion.tsx +173 -173
  42. package/dist/templates/frontend/react-vite/.npmrc.example +28 -0
  43. package/dist/templates/frontend/react-vite/README.md +17 -0
  44. package/dist/templates/frontend/react-vite/eslint.config.js +41 -31
  45. package/dist/templates/frontend/react-vite/package.json +2 -0
  46. package/dist/templates/frontend/react-vite/src/index.css +3 -15
  47. package/dist/templates/frontend/react-vite/src/main.tsx +36 -33
  48. package/dist/templates/frontend/react-vite/src/routes/__root.tsx +3 -3
  49. package/dist/templates/frontend/react-vite/src/routes/index.tsx +185 -187
  50. package/dist/templates/frontend/react-vite/src/routes/ui-components.tsx +698 -922
  51. package/dist/templates/frontend/react-vite/vite.config.ts +7 -2
  52. package/dist/templates/frontend/react-vite-help/.vscode/settings.json +26 -0
  53. package/dist/templates/mobile/expo-base/package.json +3 -2
  54. package/dist/templates/mobile/expo-base/pnpm-workspace.yaml +3 -0
  55. package/dist/templates/mobile/expo-base/src/features/auth/login-screen.tsx +144 -177
  56. package/dist/templates/mobile/expo-base/src/i18n/locales/en-US.json +136 -134
  57. package/dist/templates/mobile/expo-base/src/i18n/locales/es-AR.json +136 -134
  58. package/package.json +1 -1
  59. package/templates/frontend/hub-pre-sales/.cursor/context/pre-sales.md +3 -2
  60. package/templates/frontend/hub-pre-sales/.cursor/rules/architech.mdc +13 -1
  61. package/templates/frontend/hub-pre-sales/.cursor/rules/component-patterns.mdc +1 -1
  62. package/templates/frontend/hub-pre-sales/.cursor/rules/gsap-animations.mdc +46 -0
  63. package/templates/frontend/hub-pre-sales/.cursor/rules/pre-sales-mode.mdc +2 -1
  64. package/templates/frontend/hub-pre-sales/.cursor/rules/restrictions.mdc +3 -1
  65. package/templates/frontend/hub-pre-sales/.cursor/skills/animate/SKILL.md +23 -10
  66. package/templates/frontend/hub-pre-sales/.cursor/skills/delight/SKILL.md +3 -4
  67. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-core/SKILL.md +254 -0
  68. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-frameworks/SKILL.md +266 -0
  69. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-performance/SKILL.md +79 -0
  70. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-plugins/SKILL.md +433 -0
  71. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-react/SKILL.md +136 -0
  72. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-scrolltrigger/SKILL.md +296 -0
  73. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-timeline/SKILL.md +107 -0
  74. package/templates/frontend/hub-pre-sales/.cursor/skills/gsap-utils/SKILL.md +284 -0
  75. package/templates/frontend/hub-pre-sales/.cursor/skills/overdrive/SKILL.md +1 -1
  76. package/templates/frontend/hub-pre-sales/AGENTS.md +13 -3
  77. package/templates/frontend/hub-pre-sales/README.md +2 -1
  78. package/templates/frontend/hub-pre-sales/package.json +84 -82
  79. package/templates/frontend/hub-pre-sales/pnpm-lock.yaml +6597 -6575
  80. package/templates/frontend/hub-pre-sales/skills-lock.json +53 -0
  81. package/templates/frontend/hub-pre-sales/src/lib/gsap.ts +6 -0
  82. package/templates/frontend/pre-sales/.cursor/rules/architech.mdc +199 -199
  83. package/templates/frontend/pre-sales/.cursor/rules/deployment-ready.mdc +52 -52
  84. package/templates/frontend/pre-sales/.cursor/rules/domain-business-bootstrap.mdc +74 -74
  85. package/templates/frontend/pre-sales/.cursor/rules/pre-sales-mode.mdc +104 -104
  86. package/templates/frontend/pre-sales/.cursor/rules/separation-of-concerns.mdc +41 -41
  87. package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/SKILL.md +296 -296
  88. package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy-codex.sh +301 -301
  89. package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy.sh +301 -301
  90. package/templates/frontend/pre-sales/pnpm-lock.yaml +6448 -6448
  91. package/templates/frontend/pre-sales/skills-lock.json +10 -10
  92. package/templates/frontend/pre-sales/src/__tests__/components/layout/sidebar.test.tsx +58 -58
  93. package/templates/frontend/pre-sales/src/__tests__/lib/auth.test.ts +102 -102
  94. package/templates/frontend/pre-sales/src/__tests__/routes/__root.test.tsx +72 -72
  95. package/templates/frontend/pre-sales/src/__tests__/routes/_authenticated.test.tsx +57 -57
  96. package/templates/frontend/pre-sales/src/components/layout/navbar.tsx +121 -121
  97. package/templates/frontend/pre-sales/src/components/ui/combobox.tsx +308 -308
  98. package/templates/frontend/pre-sales/src/components/ui/command.tsx +179 -179
  99. package/templates/frontend/pre-sales/src/data/dashboard.ts +249 -249
  100. package/templates/frontend/pre-sales/src/hooks/useTheme.ts +73 -73
  101. package/templates/frontend/pre-sales/src/index.css +282 -282
  102. package/templates/frontend/pre-sales/src/routes/__root.tsx +62 -62
  103. package/templates/frontend/pre-sales/src/routes/auth/iniciar-sesion.tsx +173 -173
  104. package/templates/frontend/react-vite/.npmrc.example +28 -0
  105. package/templates/frontend/react-vite/README.md +17 -0
  106. package/templates/frontend/react-vite/eslint.config.js +41 -31
  107. package/templates/frontend/react-vite/package.json +2 -0
  108. package/templates/frontend/react-vite/pnpm-lock.yaml +535 -13
  109. package/templates/frontend/react-vite/src/index.css +3 -15
  110. package/templates/frontend/react-vite/src/main.tsx +36 -33
  111. package/templates/frontend/react-vite/src/routes/__root.tsx +3 -3
  112. package/templates/frontend/react-vite/src/routes/index.tsx +185 -187
  113. package/templates/frontend/react-vite/src/routes/ui-components.tsx +698 -922
  114. package/templates/frontend/react-vite/vite.config.ts +7 -2
  115. package/templates/frontend/react-vite-help/.vscode/settings.json +26 -0
  116. package/templates/mobile/expo-base/package.json +3 -2
  117. package/templates/mobile/expo-base/pnpm-lock.yaml +10240 -11354
  118. package/templates/mobile/expo-base/pnpm-workspace.yaml +3 -0
  119. package/templates/mobile/expo-base/src/features/auth/login-screen.tsx +144 -177
  120. package/templates/mobile/expo-base/src/i18n/locales/en-US.json +136 -134
  121. package/templates/mobile/expo-base/src/i18n/locales/es-AR.json +136 -134
  122. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/agents/nestjs-code-reviewer.md +0 -54
  123. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/agents/prisma-guardian.md +0 -67
  124. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/agents/test-runner.md +0 -57
  125. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/commands/new-endpoint.md +0 -209
  126. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/commands/new-model.md +0 -201
  127. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/autoTestOnStop.ts +0 -127
  128. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/blockDangerous.ts +0 -98
  129. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/ensureTestsExist.ts +0 -405
  130. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/formatOnEdit.ts +0 -70
  131. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/protectSecrets.ts +0 -101
  132. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/sessionInit.ts +0 -104
  133. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks/validatePrisma.ts +0 -121
  134. package/templates/backend/nestjs-api-mysql-prisma-express/.cursor/hooks.json +0 -46
  135. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/agents/nestjs-code-reviewer.md +0 -54
  136. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/agents/prisma-guardian.md +0 -67
  137. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/agents/test-runner.md +0 -57
  138. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/commands/new-endpoint.md +0 -209
  139. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/commands/new-model.md +0 -201
  140. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/autoTestOnStop.ts +0 -127
  141. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/blockDangerous.ts +0 -98
  142. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/ensureTestsExist.ts +0 -405
  143. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/formatOnEdit.ts +0 -70
  144. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/protectSecrets.ts +0 -101
  145. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/sessionInit.ts +0 -104
  146. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks/validatePrisma.ts +0 -121
  147. package/templates/backend/nestjs-api-mysql-prisma-fastify/.cursor/hooks.json +0 -46
  148. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/agents/nestjs-code-reviewer.md +0 -23
  149. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/agents/sequelize-guardian.md +0 -37
  150. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/agents/test-runner.md +0 -33
  151. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/commands/new-endpoint.md +0 -76
  152. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/commands/new-model.md +0 -85
  153. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/autoTestOnStop.ts +0 -127
  154. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/blockDangerous.ts +0 -98
  155. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/ensureTestsExist.ts +0 -397
  156. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/formatOnEdit.ts +0 -66
  157. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/protectSecrets.ts +0 -101
  158. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks/sessionInit.ts +0 -104
  159. package/templates/backend/nestjs-api-mysql-sequelize-express/.cursor/hooks.json +0 -41
  160. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/agents/nestjs-code-reviewer.md +0 -23
  161. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/agents/sequelize-guardian.md +0 -37
  162. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/agents/test-runner.md +0 -33
  163. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/commands/new-endpoint.md +0 -76
  164. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/commands/new-model.md +0 -85
  165. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/autoTestOnStop.ts +0 -127
  166. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/blockDangerous.ts +0 -98
  167. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/ensureTestsExist.ts +0 -397
  168. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/formatOnEdit.ts +0 -66
  169. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/protectSecrets.ts +0 -101
  170. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks/sessionInit.ts +0 -104
  171. package/templates/backend/nestjs-api-mysql-sequelize-fastify/.cursor/hooks.json +0 -41
  172. package/templates/backend/nestjs-api-postgres/.cursor/agents/nestjs-code-reviewer.md +0 -54
  173. package/templates/backend/nestjs-api-postgres/.cursor/agents/prisma-guardian.md +0 -62
  174. package/templates/backend/nestjs-api-postgres/.cursor/agents/security-auditor.md +0 -71
  175. package/templates/backend/nestjs-api-postgres/.cursor/agents/test-runner.md +0 -58
  176. package/templates/backend/nestjs-api-postgres/.cursor/commands/add-pagination.md +0 -235
  177. package/templates/backend/nestjs-api-postgres/.cursor/commands/add-seed.md +0 -160
  178. package/templates/backend/nestjs-api-postgres/.cursor/commands/add-tests.md +0 -322
  179. package/templates/backend/nestjs-api-postgres/.cursor/commands/new-endpoint.md +0 -209
  180. package/templates/backend/nestjs-api-postgres/.cursor/commands/new-guard.md +0 -195
  181. package/templates/backend/nestjs-api-postgres/.cursor/commands/new-interceptor.md +0 -188
  182. package/templates/backend/nestjs-api-postgres/.cursor/commands/new-middleware.md +0 -176
  183. package/templates/backend/nestjs-api-postgres/.cursor/commands/new-model.md +0 -201
  184. package/templates/backend/nestjs-api-postgres/.cursor/hooks/auto-retry.ts +0 -62
  185. package/templates/backend/nestjs-api-postgres/.cursor/hooks/block-dangerous.ts +0 -202
  186. package/templates/backend/nestjs-api-postgres/.cursor/hooks/format-and-validate.ts +0 -124
  187. package/templates/backend/nestjs-api-postgres/.cursor/hooks/protect-secrets.ts +0 -105
  188. package/templates/backend/nestjs-api-postgres/.cursor/hooks/session-context.ts +0 -130
  189. package/templates/backend/nestjs-api-postgres/.cursor/hooks.json +0 -36
  190. package/templates/backend/nestjs-api-postgres/.cursor/mcp.json +0 -21
  191. package/templates/backend/nestjs-api-sqlite/.cursor/agents/code-reviewer.md +0 -153
  192. package/templates/backend/nestjs-api-sqlite/.cursor/agents/nestjs-architect.md +0 -138
  193. package/templates/backend/nestjs-api-sqlite/.cursor/agents/prisma-analyst.md +0 -164
  194. package/templates/backend/nestjs-api-sqlite/.cursor/agents/security-auditor.md +0 -150
  195. package/templates/backend/nestjs-api-sqlite/.cursor/agents/test-engineer.md +0 -290
  196. package/templates/backend/nestjs-api-sqlite/.cursor/commands/add-pagination.md +0 -235
  197. package/templates/backend/nestjs-api-sqlite/.cursor/commands/add-seed.md +0 -172
  198. package/templates/backend/nestjs-api-sqlite/.cursor/commands/add-tests.md +0 -322
  199. package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-endpoint.md +0 -209
  200. package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-guard.md +0 -195
  201. package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-interceptor.md +0 -188
  202. package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-middleware.md +0 -176
  203. package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-model.md +0 -201
  204. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/auto-format.ts +0 -80
  205. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/block-dangerous-commands.ts +0 -144
  206. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/prisma-schema-watcher.ts +0 -64
  207. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/protect-sensitive-files.ts +0 -122
  208. package/templates/backend/nestjs-api-sqlite/.cursor/hooks/session-context.ts +0 -105
  209. package/templates/backend/nestjs-api-sqlite/.cursor/hooks.json +0 -18
  210. package/templates/backend/nestjs-api-sqlite/.cursor/mcp.json +0 -17
  211. package/templates/backend/nestjs-api-sqlserver/.cursor/agents/nestjs-code-reviewer.md +0 -54
  212. package/templates/backend/nestjs-api-sqlserver/.cursor/agents/prisma-guardian.md +0 -67
  213. package/templates/backend/nestjs-api-sqlserver/.cursor/agents/test-runner.md +0 -57
  214. package/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-endpoint.md +0 -209
  215. package/templates/backend/nestjs-api-sqlserver/.cursor/commands/new-model.md +0 -201
  216. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/autoTestOnStop.ts +0 -127
  217. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/blockDangerous.ts +0 -98
  218. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/ensureTestsExist.ts +0 -405
  219. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/formatOnEdit.ts +0 -70
  220. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/protectSecrets.ts +0 -101
  221. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/sessionInit.ts +0 -104
  222. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks/validatePrisma.ts +0 -121
  223. package/templates/backend/nestjs-api-sqlserver/.cursor/hooks.json +0 -46
  224. package/templates/frontend/angular-base/.cursor/agents/accessibility-reviewer.md +0 -67
  225. package/templates/frontend/angular-base/.cursor/agents/angular-code-reviewer.md +0 -60
  226. package/templates/frontend/angular-base/.cursor/agents/qa-test-expert.md +0 -70
  227. package/templates/frontend/angular-base/.cursor/agents/security-auditor.md +0 -58
  228. package/templates/frontend/angular-base/.cursor/commands/add-e2e-test.md +0 -236
  229. package/templates/frontend/angular-base/.cursor/commands/new-component.md +0 -211
  230. package/templates/frontend/angular-base/.cursor/commands/new-form.md +0 -284
  231. package/templates/frontend/angular-base/.cursor/commands/new-interceptor.md +0 -257
  232. package/templates/frontend/angular-base/.cursor/commands/new-page.md +0 -215
  233. package/templates/frontend/angular-base/.cursor/commands/new-service.md +0 -203
  234. package/templates/frontend/angular-base/.cursor/hooks/auto-format.ts +0 -70
  235. package/templates/frontend/angular-base/.cursor/hooks/auto-test-on-stop.ts +0 -113
  236. package/templates/frontend/angular-base/.cursor/hooks/block-dangerous-commands.ts +0 -160
  237. package/templates/frontend/angular-base/.cursor/hooks/ensure-tests-exist.ts +0 -363
  238. package/templates/frontend/angular-base/.cursor/hooks/protect-sensitive-files.ts +0 -118
  239. package/templates/frontend/angular-base/.cursor/hooks/session-context.ts +0 -110
  240. package/templates/frontend/angular-base/.cursor/hooks.json +0 -41
  241. package/templates/frontend/angular-base/.cursor/mcp.json +0 -21
  242. package/templates/frontend/angular-nx/.cursor/agents/angular-code-reviewer.md +0 -64
  243. package/templates/frontend/angular-nx/.cursor/agents/ci-watcher.md +0 -480
  244. package/templates/frontend/angular-nx/.cursor/agents/nx-architecture-guardian.md +0 -69
  245. package/templates/frontend/angular-nx/.cursor/agents/qa-test-expert.md +0 -75
  246. package/templates/frontend/angular-nx/.cursor/agents/security-auditor.md +0 -61
  247. package/templates/frontend/angular-nx/.cursor/commands/ci-monitor.md +0 -428
  248. package/templates/frontend/angular-nx/.cursor/hooks/auto-format.ts +0 -70
  249. package/templates/frontend/angular-nx/.cursor/hooks/auto-test-on-stop.ts +0 -115
  250. package/templates/frontend/angular-nx/.cursor/hooks/block-dangerous-commands.ts +0 -188
  251. package/templates/frontend/angular-nx/.cursor/hooks/ensure-tests-exist.ts +0 -399
  252. package/templates/frontend/angular-nx/.cursor/hooks/protect-sensitive-files.ts +0 -128
  253. package/templates/frontend/angular-nx/.cursor/hooks/session-context.ts +0 -121
  254. package/templates/frontend/angular-nx/.cursor/hooks.json +0 -41
  255. package/templates/frontend/angular-nx/.cursor/mcp.json +0 -12
  256. package/templates/frontend/hub-pre-sales/.cursor/agents/frontend-senior.agent.md +0 -49
  257. package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-builder.agent.md +0 -98
  258. package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-demo-runner.agent.md +0 -36
  259. package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-refactor.agent.md +0 -54
  260. package/templates/frontend/hub-pre-sales/.cursor/agents/pre-sales-validator.agent.md +0 -69
  261. package/templates/frontend/hub-pre-sales/.cursor/agents/qa-test-expert.agent.md +0 -48
  262. package/templates/frontend/hub-pre-sales/.cursor/agents/security-expert.agent.md +0 -39
  263. package/templates/frontend/hub-pre-sales/.cursor/agents/ux-ui-expert.agent.md +0 -45
  264. package/templates/frontend/hub-pre-sales/.cursor/commands/add-calendar.md +0 -151
  265. package/templates/frontend/hub-pre-sales/.cursor/commands/add-chart.md +0 -148
  266. package/templates/frontend/hub-pre-sales/.cursor/commands/add-dashboard.md +0 -135
  267. package/templates/frontend/hub-pre-sales/.cursor/commands/add-form.md +0 -128
  268. package/templates/frontend/hub-pre-sales/.cursor/commands/add-login.md +0 -160
  269. package/templates/frontend/hub-pre-sales/.cursor/commands/add-map.md +0 -172
  270. package/templates/frontend/hub-pre-sales/.cursor/commands/add-route.md +0 -211
  271. package/templates/frontend/hub-pre-sales/.cursor/commands/add-screen.md +0 -118
  272. package/templates/frontend/hub-pre-sales/.cursor/commands/add-table.md +0 -156
  273. package/templates/frontend/hub-pre-sales/.cursor/commands/add-tests.md +0 -269
  274. package/templates/frontend/hub-pre-sales/.cursor/commands/mock-backend.md +0 -139
  275. package/templates/frontend/hub-pre-sales/.cursor/commands/new-component.md +0 -192
  276. package/templates/frontend/hub-pre-sales/.cursor/commands/new-form.md +0 -268
  277. package/templates/frontend/hub-pre-sales/.cursor/commands/new-page.md +0 -203
  278. package/templates/frontend/hub-pre-sales/.cursor/commands/new-query.md +0 -287
  279. package/templates/frontend/hub-pre-sales/.cursor/commands/new-table.md +0 -299
  280. package/templates/frontend/hub-pre-sales/.cursor/commands/prepare-preview.md +0 -48
  281. package/templates/frontend/hub-pre-sales/.cursor/commands/refactor-ui.md +0 -94
  282. package/templates/frontend/hub-pre-sales/.cursor/commands/ver-demo.md +0 -58
  283. package/templates/frontend/hub-pre-sales/.cursor/hooks/checkFileLength.ts +0 -69
  284. package/templates/frontend/hub-pre-sales/.cursor/hooks/injectPreSalesContext.ts +0 -103
  285. package/templates/frontend/hub-pre-sales/.cursor/hooks.json +0 -23
  286. package/templates/frontend/hub-pre-sales/.cursor/mcp.json +0 -17
  287. package/templates/frontend/pre-sales/.cursor/agents/frontend-senior.agent.md +0 -49
  288. package/templates/frontend/pre-sales/.cursor/agents/pre-sales-builder.agent.md +0 -92
  289. package/templates/frontend/pre-sales/.cursor/agents/pre-sales-demo-runner.agent.md +0 -36
  290. package/templates/frontend/pre-sales/.cursor/agents/pre-sales-deploy.agent.md +0 -87
  291. package/templates/frontend/pre-sales/.cursor/agents/pre-sales-refactor.agent.md +0 -54
  292. package/templates/frontend/pre-sales/.cursor/agents/pre-sales-validator.agent.md +0 -69
  293. package/templates/frontend/pre-sales/.cursor/agents/qa-test-expert.agent.md +0 -48
  294. package/templates/frontend/pre-sales/.cursor/agents/security-expert.agent.md +0 -39
  295. package/templates/frontend/pre-sales/.cursor/agents/ux-ui-expert.agent.md +0 -45
  296. package/templates/frontend/pre-sales/.cursor/commands/add-calendar.md +0 -151
  297. package/templates/frontend/pre-sales/.cursor/commands/add-chart.md +0 -148
  298. package/templates/frontend/pre-sales/.cursor/commands/add-dashboard.md +0 -135
  299. package/templates/frontend/pre-sales/.cursor/commands/add-form.md +0 -128
  300. package/templates/frontend/pre-sales/.cursor/commands/add-login.md +0 -160
  301. package/templates/frontend/pre-sales/.cursor/commands/add-map.md +0 -172
  302. package/templates/frontend/pre-sales/.cursor/commands/add-route.md +0 -211
  303. package/templates/frontend/pre-sales/.cursor/commands/add-screen.md +0 -118
  304. package/templates/frontend/pre-sales/.cursor/commands/add-table.md +0 -156
  305. package/templates/frontend/pre-sales/.cursor/commands/add-tests.md +0 -269
  306. package/templates/frontend/pre-sales/.cursor/commands/deploy-demo.md +0 -73
  307. package/templates/frontend/pre-sales/.cursor/commands/mock-backend.md +0 -139
  308. package/templates/frontend/pre-sales/.cursor/commands/new-component.md +0 -192
  309. package/templates/frontend/pre-sales/.cursor/commands/new-form.md +0 -268
  310. package/templates/frontend/pre-sales/.cursor/commands/new-page.md +0 -203
  311. package/templates/frontend/pre-sales/.cursor/commands/new-query.md +0 -287
  312. package/templates/frontend/pre-sales/.cursor/commands/new-table.md +0 -299
  313. package/templates/frontend/pre-sales/.cursor/commands/prepare-deploy.md +0 -135
  314. package/templates/frontend/pre-sales/.cursor/commands/refactor-ui.md +0 -94
  315. package/templates/frontend/pre-sales/.cursor/commands/ver-demo.md +0 -58
  316. package/templates/frontend/pre-sales/.cursor/hooks/checkFileLength.ts +0 -69
  317. package/templates/frontend/pre-sales/.cursor/hooks/ensureTestsExist.ts +0 -220
  318. package/templates/frontend/pre-sales/.cursor/hooks/injectPreSalesContext.ts +0 -97
  319. package/templates/frontend/pre-sales/.cursor/hooks.json +0 -23
  320. package/templates/frontend/pre-sales/.cursor/mcp.json +0 -13
  321. package/templates/frontend/react-ssr/.cursor/agents/accessibility-reviewer.md +0 -22
  322. package/templates/frontend/react-ssr/.cursor/agents/nextjs-code-reviewer.md +0 -24
  323. package/templates/frontend/react-ssr/.cursor/agents/react-test-expert.md +0 -32
  324. package/templates/frontend/react-ssr/.cursor/agents/security-auditor.md +0 -25
  325. package/templates/frontend/react-ssr/.cursor/commands/new-component.md +0 -97
  326. package/templates/frontend/react-ssr/.cursor/commands/new-page.md +0 -95
  327. package/templates/frontend/react-ssr/.cursor/commands/new-prisma-model.md +0 -66
  328. package/templates/frontend/react-ssr/.cursor/commands/new-server-action.md +0 -89
  329. package/templates/frontend/react-ssr/.cursor/hooks/auto-format.ts +0 -64
  330. package/templates/frontend/react-ssr/.cursor/hooks/auto-test-on-stop.ts +0 -94
  331. package/templates/frontend/react-ssr/.cursor/hooks/block-dangerous-commands.ts +0 -120
  332. package/templates/frontend/react-ssr/.cursor/hooks/ensure-tests-exist.ts +0 -209
  333. package/templates/frontend/react-ssr/.cursor/hooks/protect-sensitive-files.ts +0 -101
  334. package/templates/frontend/react-ssr/.cursor/hooks/session-context.ts +0 -93
  335. package/templates/frontend/react-ssr/.cursor/hooks/tsconfig.json +0 -10
  336. package/templates/frontend/react-ssr/.cursor/hooks.json +0 -41
  337. package/templates/frontend/react-vite/.cursor/agents/frontend-senior.agent.md +0 -49
  338. package/templates/frontend/react-vite/.cursor/agents/qa-test-expert.agent.md +0 -126
  339. package/templates/frontend/react-vite/.cursor/agents/security-expert.agent.md +0 -39
  340. package/templates/frontend/react-vite/.cursor/agents/ux-ui-expert.agent.md +0 -45
  341. package/templates/frontend/react-vite/.cursor/commands/add-route.md +0 -211
  342. package/templates/frontend/react-vite/.cursor/commands/add-tests.md +0 -269
  343. package/templates/frontend/react-vite/.cursor/commands/new-component.md +0 -232
  344. package/templates/frontend/react-vite/.cursor/commands/new-form.md +0 -268
  345. package/templates/frontend/react-vite/.cursor/commands/new-page.md +0 -203
  346. package/templates/frontend/react-vite/.cursor/commands/new-query.md +0 -287
  347. package/templates/frontend/react-vite/.cursor/commands/new-table.md +0 -299
  348. package/templates/frontend/react-vite/.cursor/hooks/autoTestOnStop.ts +0 -117
  349. package/templates/frontend/react-vite/.cursor/hooks/blockDangerous.ts +0 -75
  350. package/templates/frontend/react-vite/.cursor/hooks/ensureTestsExist.ts +0 -306
  351. package/templates/frontend/react-vite/.cursor/hooks/formatOnEdit.ts +0 -49
  352. package/templates/frontend/react-vite/.cursor/hooks/protectSecrets.ts +0 -88
  353. package/templates/frontend/react-vite/.cursor/hooks/sessionInit.ts +0 -77
  354. package/templates/frontend/react-vite/.cursor/hooks.json +0 -41
  355. package/templates/frontend/react-vite/.cursor/mcp.json +0 -17
  356. package/templates/frontend/react-vite-help/.cursor/RECONSTRUCTION-PROMPT.md +0 -738
  357. package/templates/frontend/react-vite-help/.cursor/agents/frontend-senior.agent.md +0 -49
  358. package/templates/frontend/react-vite-help/.cursor/agents/qa-test-expert.agent.md +0 -49
  359. package/templates/frontend/react-vite-help/.cursor/agents/security-expert.agent.md +0 -39
  360. package/templates/frontend/react-vite-help/.cursor/agents/ux-ui-expert.agent.md +0 -45
  361. package/templates/frontend/react-vite-help/.cursor/commands/add-route.md +0 -211
  362. package/templates/frontend/react-vite-help/.cursor/commands/add-tests.md +0 -269
  363. package/templates/frontend/react-vite-help/.cursor/commands/new-component.md +0 -232
  364. package/templates/frontend/react-vite-help/.cursor/commands/new-form.md +0 -268
  365. package/templates/frontend/react-vite-help/.cursor/commands/new-page.md +0 -203
  366. package/templates/frontend/react-vite-help/.cursor/commands/new-query.md +0 -287
  367. package/templates/frontend/react-vite-help/.cursor/commands/new-table.md +0 -299
  368. package/templates/frontend/react-vite-help/.cursor/hooks/ensureTestsExist.ts +0 -220
  369. package/templates/frontend/react-vite-help/.cursor/hooks.json +0 -10
  370. package/templates/frontend/react-vite-help/.cursor/mcp.json +0 -17
  371. package/templates/mobile/expo-base/.cursor/agents/api-integration.md +0 -139
  372. package/templates/mobile/expo-base/.cursor/agents/feature-architect.md +0 -131
  373. package/templates/mobile/expo-base/.cursor/agents/i18n-manager.md +0 -147
  374. package/templates/mobile/expo-base/.cursor/agents/quality-reviewer.md +0 -137
  375. package/templates/mobile/expo-base/.cursor/agents/testing-specialist.md +0 -123
  376. package/templates/mobile/expo-base/.cursor/agents/theme-engineer.md +0 -106
  377. package/templates/mobile/expo-base/.cursor/commands/add-translation.md +0 -184
  378. package/templates/mobile/expo-base/.cursor/commands/new-api-service.md +0 -280
  379. package/templates/mobile/expo-base/.cursor/commands/new-component.md +0 -298
  380. package/templates/mobile/expo-base/.cursor/commands/new-hook.md +0 -291
  381. package/templates/mobile/expo-base/.cursor/commands/new-modal.md +0 -345
  382. package/templates/mobile/expo-base/.cursor/commands/new-screen.md +0 -267
  383. package/templates/mobile/expo-base/.cursor/commands/new-tab.md +0 -238
  384. package/templates/mobile/expo-base/.cursor/mcp.json +0 -21
@@ -1,220 +0,0 @@
1
- /**
2
- * Cursor afterFileEdit hook: detecta archivos editados sin cobertura de tests
3
- * y genera un scaffold de test siguiendo patrones de add-tests.md
4
- */
5
-
6
- import * as fs from 'node:fs'
7
- import * as path from 'node:path'
8
-
9
- interface AfterFileEditPayload {
10
- file_path: string
11
- workspace_roots: string[]
12
- edits?: unknown[]
13
- hook_event_name?: string
14
- }
15
-
16
- function readStdin(): Promise<string> {
17
- return new Promise((resolve) => {
18
- let data = ''
19
- process.stdin.setEncoding('utf8')
20
- process.stdin.on('data', (chunk: string) => {
21
- data += chunk
22
- })
23
- process.stdin.on('end', () => resolve(data))
24
- process.stdin.on('error', () => resolve(''))
25
- })
26
- }
27
-
28
- function normalizePath(p: string, root: string): string {
29
- const normalized = path.normalize(p)
30
- if (path.isAbsolute(normalized)) {
31
- return path.relative(root, normalized)
32
- }
33
- return normalized
34
- }
35
-
36
- const EXCLUDED_FILES = [
37
- 'setup.ts',
38
- 'routeTree.gen.ts',
39
- 'main.tsx',
40
- 'router.tsx',
41
- 'queryClient.ts',
42
- ]
43
-
44
- function isExcluded(filePath: string): boolean {
45
- const basename = path.basename(filePath)
46
- if (EXCLUDED_FILES.includes(basename)) return true
47
- if (/\.(test|spec)\.(ts|tsx)$/.test(filePath)) return true
48
- return false
49
- }
50
-
51
- type FileType = 'component' | 'route' | 'hook' | 'util' | null
52
-
53
- function getFileType(relativePath: string): FileType {
54
- const normalized = relativePath.replace(/\\/g, '/')
55
- if (normalized.includes('/components/') && (normalized.endsWith('.tsx') || normalized.endsWith('.ts'))) {
56
- return 'component'
57
- }
58
- if (normalized.includes('/routes/') && normalized.endsWith('.tsx')) {
59
- return 'route'
60
- }
61
- if (normalized.includes('/hooks/') && (normalized.endsWith('.ts') || normalized.endsWith('.tsx'))) {
62
- return 'hook'
63
- }
64
- if (/use[a-zA-Z]+\.(ts|tsx)$/.test(path.basename(normalized))) {
65
- return 'hook'
66
- }
67
- if (normalized.includes('/lib/') && normalized.endsWith('.ts')) {
68
- return 'util'
69
- }
70
- if (normalized.includes('/services/') && normalized.endsWith('.ts')) {
71
- return 'util'
72
- }
73
- return null
74
- }
75
-
76
- function getTestPath(root: string, relativePath: string): string | null {
77
- const normalized = relativePath.replace(/\\/g, '/')
78
- if (!normalized.startsWith('src/')) return null
79
- const ext = normalized.endsWith('.tsx') ? '.tsx' : '.ts'
80
- const pathWithoutExt = normalized.replace(/\.(tsx?)$/, '')
81
- const pathInTests = pathWithoutExt.replace(/^src\//, 'src/__tests__/') + `.test${ext}`
82
- return path.join(root, pathInTests)
83
- }
84
-
85
- function testExists(root: string, relativePath: string): boolean {
86
- const testPath = getTestPath(root, relativePath)
87
- if (!testPath) return true
88
- return fs.existsSync(testPath)
89
- }
90
-
91
- function getComponentName(filePath: string): string {
92
- const base = path.basename(filePath, path.extname(filePath))
93
- if (base === 'index') {
94
- const parent = path.basename(path.dirname(filePath))
95
- return parent.charAt(0).toUpperCase() + parent.slice(1)
96
- }
97
- return base.charAt(0).toUpperCase() + base.slice(1)
98
- }
99
-
100
- function getImportPath(relativePath: string): string {
101
- return '@/' + relativePath.replace(/\\/g, '/').replace(/^src\//, '').replace(/\.(tsx?)$/, '')
102
- }
103
-
104
- function scaffoldComponent(relativePath: string, componentName: string): string {
105
- const importPath = getImportPath(relativePath)
106
- return `import { describe, it, expect } from 'vitest'
107
- import { render } from '@testing-library/react'
108
- import { ${componentName} } from '${importPath}'
109
-
110
- describe('${componentName}', () => {
111
- it('debería renderizar correctamente', () => {
112
- const { container } = render(<${componentName} />)
113
- expect(container.firstChild).toBeInTheDocument()
114
- })
115
- })
116
- `
117
- }
118
-
119
- function scaffoldRoute(relativePath: string): string {
120
- const fileName = path.basename(relativePath, path.extname(relativePath))
121
- const routeName = fileName.charAt(0).toUpperCase() + fileName.slice(1).replace(/-([a-z])/g, (_, c) => c.toUpperCase())
122
- const importPath = getImportPath(relativePath)
123
- return `import { describe, it, expect } from 'vitest'
124
- import { render } from '@testing-library/react'
125
- import { Route } from '${importPath}'
126
-
127
- const Component = Route.options.component
128
-
129
- describe('${routeName} Page', () => {
130
- it('debería renderizar correctamente', () => {
131
- const { container } = render(<Component />)
132
- expect(container.firstChild).toBeInTheDocument()
133
- })
134
- })
135
- `
136
- }
137
-
138
- function scaffoldHook(relativePath: string): string {
139
- const base = path.basename(relativePath, path.extname(relativePath))
140
- const camelName = base.replace(/-([a-z])/g, (_, c) => c.toUpperCase())
141
- const importPath = getImportPath(relativePath)
142
- return `import { describe, it, expect } from 'vitest'
143
- import { renderHook } from '@testing-library/react'
144
- import { ${camelName} } from '${importPath}'
145
-
146
- describe('${camelName}', () => {
147
- it('debería funcionar correctamente', () => {
148
- const { result } = renderHook(() => ${camelName}())
149
- expect(result).toBeDefined()
150
- })
151
- })
152
- `
153
- }
154
-
155
- function scaffoldUtil(relativePath: string): string {
156
- const base = path.basename(relativePath, path.extname(relativePath))
157
- const importPath = getImportPath(relativePath)
158
- return `import { describe, it, expect } from 'vitest'
159
- import * as module from '${importPath}'
160
-
161
- describe('${base}', () => {
162
- it('debería exportar las funciones esperadas', () => {
163
- expect(module).toBeDefined()
164
- })
165
- })
166
- `
167
- }
168
-
169
- async function main(): Promise<void> {
170
- try {
171
- const raw = await readStdin()
172
- if (!raw?.trim()) return
173
-
174
- const cleaned = raw.replace(/^\uFEFF/, '').trim()
175
- const payload = JSON.parse(cleaned) as AfterFileEditPayload
176
- const { file_path, workspace_roots } = payload
177
- if (!file_path || !Array.isArray(workspace_roots) || workspace_roots.length === 0) return
178
-
179
- const root = path.resolve(workspace_roots[0])
180
- const relativePath = normalizePath(file_path, root)
181
- const absSourcePath = path.join(root, relativePath)
182
-
183
- if (!relativePath.replace(/\\/g, '/').startsWith('src/')) return
184
- if (isExcluded(relativePath)) return
185
-
186
- const fileType = getFileType(relativePath)
187
- if (!fileType) return
188
-
189
- if (testExists(root, relativePath)) return
190
-
191
- const absTestPath = getTestPath(root, relativePath)!
192
- const componentName = getComponentName(absSourcePath)
193
-
194
- let content: string
195
- switch (fileType) {
196
- case 'component':
197
- content = scaffoldComponent(relativePath, componentName)
198
- break
199
- case 'route':
200
- content = scaffoldRoute(relativePath)
201
- break
202
- case 'hook':
203
- content = scaffoldHook(relativePath)
204
- break
205
- case 'util':
206
- content = scaffoldUtil(relativePath)
207
- break
208
- default:
209
- return
210
- }
211
-
212
- fs.mkdirSync(path.dirname(absTestPath), { recursive: true })
213
- fs.writeFileSync(absTestPath, content, 'utf8')
214
- console.error(`[ensureTestsExist] Scaffold creado: ${path.relative(root, absTestPath)}`)
215
- } catch (err) {
216
- console.error('[ensureTestsExist] Error:', err instanceof Error ? err.message : String(err))
217
- }
218
- }
219
-
220
- main()
@@ -1,10 +0,0 @@
1
- {
2
- "version": 1,
3
- "hooks": {
4
- "afterFileEdit": [
5
- {
6
- "command": "npx tsx .cursor/hooks/ensureTestsExist.ts"
7
- }
8
- ]
9
- }
10
- }
@@ -1,17 +0,0 @@
1
- {
2
- "mcpServers": {
3
- "Figma Desktop": {
4
- "url": "http://127.0.0.1:3845/mcp",
5
- "headers": {}
6
- },
7
- "context7": {
8
- "command": "npx",
9
- "args": [
10
- "-y",
11
- "@upstash/context7-mcp@latest",
12
- "--api-key",
13
- "<obtené tu api key de context7 gratis en https://context7.com/"
14
- ]
15
- }
16
- }
17
- }
@@ -1,139 +0,0 @@
1
- ---
2
- name: api-integration
3
- model: composer-1.5
4
- description: Use when creating API endpoints, data fetching, mutations, or cache management. Covers Tanstack Query, optimistic updates, polling, and advanced patterns.
5
- readonly: true
6
- ---
7
-
8
- # Agent: api-integration
9
-
10
- ## Role
11
-
12
- Especialista en la capa de datos de la aplicación. Crea integraciones API completas usando el cliente HTTP centralizado (`apiClient`), endpoints tipados, hooks de TanStack Query v5 con query keys factory, y manejo de errores con `ApiClientError`. Garantiza que toda nueva integración se conecte con la infraestructura existente en lugar de crear implementaciones paralelas.
13
-
14
- ## Responsibilities
15
-
16
- - Registrar nuevos endpoints en `src/services/api/endpoints.ts` siguiendo el formato existente
17
- - Crear hooks de TanStack Query v5 en `src/hooks/use-{resource}.ts` usando `apiClient` de `src/services/api/client.ts`
18
- - Registrar query keys en `QUERY_KEYS` de `src/utils/constants.ts`
19
- - Definir tipos de request/response en `src/types/models.ts` o crear `src/types/{resource}.ts`
20
- - Implementar estrategias de cache (staleTime, gcTime) alineadas con la configuración de `src/contexts/query-client.tsx`
21
- - Implementar invalidación de queries en mutations (`onSuccess` con `invalidateQueries`)
22
- - Implementar optimistic updates cuando se requiera
23
- - Crear hooks de infinite query con `useInfiniteQuery` para listas paginadas
24
- - Manejar errores tipados con `ApiClientError` y `ApiResponse<T>`
25
-
26
- ## When to Use
27
-
28
- - Para integrar un nuevo recurso API (ej: orders, payments, notifications)
29
- - Para agregar operaciones CRUD completas a un recurso existente
30
- - Para implementar paginación infinita con `useInfiniteQuery`
31
- - Para agregar optimistic updates a mutations existentes
32
- - Para refactorizar servicios que no usan el `apiClient` centralizado
33
- - Para configurar estrategias de cache específicas para un recurso
34
-
35
- ## When NOT to Use
36
-
37
- - Para crear un feature module completo con screens y rutas (usar `feature-architect`)
38
- - Para trabajo exclusivo con almacenamiento local SecureStore/AsyncStorage (editar directamente `src/services/storage/`)
39
- - Para modificar la configuración global de QueryClient (editar `src/contexts/query-client.tsx` directamente)
40
- - Para crear mocks de API para testing (usar `testing-specialist`)
41
- - Para configuración del API client base (editar `src/services/api/client.ts` directamente)
42
-
43
- ## Expertise
44
-
45
- - `apiClient` en `src/services/api/client.ts`: Métodos `get<T>()`, `post<T>()`, `put<T>()`, `patch<T>()`, `delete<T>()`. Inyecta Bearer token de SecureStore automáticamente. Lanza `ApiClientError` con `status` y `code`.
46
- - `endpoints.ts`: Objeto constante con namespaces por recurso (auth, user, settings, posts). Soporta funciones para rutas dinámicas: `detail: (id: string) => \`/posts/\${id}\``.
47
- - Tipos en `src/types/models.ts`: `ApiResponse<T>` (data, message, success, error), `PaginatedResponse<T>` (data, pagination con hasNext/hasPrev), `ApiError`, `FieldError`.
48
- - TanStack Query v5 patterns: `useQuery` con `queryKey`/`queryFn`, `useMutation` con `mutationFn`/`onSuccess`, `useInfiniteQuery` con `getNextPageParam`.
49
- - `QUERY_KEYS` en `src/utils/constants.ts`: Objeto centralizado con claves kebab-case.
50
- - QueryClient config en `src/contexts/query-client.tsx`: staleTime 5min, gcTime 10min, retry 3 con backoff exponencial, refetchOnWindowFocus false.
51
- - Patrón de hooks existente en `use-api.ts`: Acepta `options` con `Omit<UseQueryOptions<T>, 'queryKey' | 'queryFn'>` para queries y `UseMutationOptions<TData, TError, TVariables>` para mutations.
52
-
53
- ## Rules
54
-
55
- 1. **Siempre usar `apiClient`**: Nunca crear `fetch` wrappers propios. Usar `apiClient.get<ApiResponse<T>>()`, `apiClient.post<ApiResponse<T>>()`, etc. El client maneja headers, auth token y parsing de errores.
56
-
57
- 2. **Tipar respuestas con `ApiResponse<T>`**: Las respuestas del API siguen el formato `{ data: T, message?: string, success: boolean }`. Extraer `response.data` en el `queryFn`.
58
-
59
- 3. **Query keys en `QUERY_KEYS`**: Toda nueva clave debe agregarse a `src/utils/constants.ts` en el objeto `QUERY_KEYS` con formato UPPER_SNAKE_CASE para la key y kebab-case para el valor. Ejemplo: `ORDERS: 'orders'`, `ORDER_DETAIL: 'order-detail'`.
60
-
61
- 4. **Endpoints centralizados**: Toda nueva ruta API debe registrarse en `src/services/api/endpoints.ts` como namespace. Rutas dinámicas como arrow functions: `detail: (id: string) => \`/orders/\${id}\``.
62
-
63
- 5. **Patrón de options extensible**: Los hooks deben aceptar un parámetro `options` que permita al consumidor customizar el comportamiento de la query/mutation:
64
- ```typescript
65
- export function useOrders(
66
- options?: Omit<UseQueryOptions<Order[]>, 'queryKey' | 'queryFn'>,
67
- ) { ... }
68
- ```
69
-
70
- 6. **Invalidación en mutations**: Toda mutation exitosa debe invalidar las queries relacionadas en `onSuccess`. Para updates, también hacer `setQueryData` del item actualizado.
71
-
72
- 7. **`enabled` para queries condicionales**: Queries que dependen de un parámetro deben usar `enabled: !!param` para evitar llamadas innecesarias (ver patrón en `usePost`).
73
-
74
- 8. **Paginación con `PaginatedResponse<T>`**: Para listas paginadas, usar el tipo existente que incluye `pagination.hasNext`, `pagination.page`, `pagination.totalPages`.
75
-
76
- 9. **No duplicar lógica de auth**: El `apiClient` inyecta el Bearer token automáticamente desde `SecureStore`. No manejar tokens manualmente en los hooks.
77
-
78
- 10. **Error handling consistente**: Los errores son `ApiClientError` con `status` y `code`. No crear tipos de error personalizados por recurso; usar el existente.
79
-
80
- ## Workflow
81
-
82
- 1. **Definir el recurso**: Nombre del recurso, operaciones necesarias (list, detail, create, update, delete, paginación), y estructura de datos.
83
-
84
- 2. **Crear tipos**: Definir interfaces del modelo en `src/types/models.ts` o `src/types/{resource}.ts`. Incluir DTOs de creación/actualización si difieren del modelo base.
85
-
86
- 3. **Registrar endpoints**: Agregar namespace en `src/services/api/endpoints.ts`:
87
- ```typescript
88
- orders: {
89
- list: '/orders',
90
- detail: (id: string) => `/orders/${id}`,
91
- create: '/orders',
92
- update: (id: string) => `/orders/${id}`,
93
- delete: (id: string) => `/orders/${id}`,
94
- },
95
- ```
96
-
97
- 4. **Registrar query keys**: Agregar al objeto `QUERY_KEYS` en `src/utils/constants.ts`:
98
- ```typescript
99
- ORDERS: 'orders',
100
- ORDER_DETAIL: 'order-detail',
101
- ```
102
-
103
- 5. **Crear archivo de hooks**: `src/hooks/use-{resource}.ts` con:
104
- - Query hooks: `use{Resource}List()`, `use{Resource}Detail(id)`
105
- - Mutation hooks: `useCreate{Resource}()`, `useUpdate{Resource}()`, `useDelete{Resource}()`
106
- - Cada hook usando `apiClient` y `endpoints.{resource}`
107
- - Invalidación de cache en `onSuccess` de mutations
108
-
109
- 6. **Infinite query (si aplica)**: Para listas paginadas:
110
- ```typescript
111
- export function use{Resource}Infinite() {
112
- return useInfiniteQuery({
113
- queryKey: [QUERY_KEYS.{RESOURCE}],
114
- queryFn: ({ pageParam = 1 }) =>
115
- apiClient.get<ApiResponse<PaginatedResponse<Resource>>>(
116
- `${endpoints.{resource}.list}?page=${pageParam}`
117
- ).then(r => r.data),
118
- getNextPageParam: (lastPage) =>
119
- lastPage.pagination.hasNext ? lastPage.pagination.page + 1 : undefined,
120
- initialPageParam: 1,
121
- });
122
- }
123
- ```
124
-
125
- 7. **Optimistic updates (si requerido)**: Implementar en `onMutate` con `cancelQueries`, `getQueryData`, `setQueryData` y rollback en `onError`.
126
-
127
- 8. **Validar**: Ejecutar `pnpm run type-check` para confirmar tipado correcto.
128
-
129
- ## Output Standards
130
-
131
- - Hooks como named function exports (`export function use{Resource}()`)
132
- - JSDoc en cada hook público describiendo qué hace
133
- - Import de types con `import type { ... }` (regla ESLint: `consistent-type-imports`)
134
- - Import order: react-query → services → types → constants
135
- - `queryFn` siempre extrae `response.data` de `ApiResponse<T>`
136
- - Mutations con `invalidateQueries` en `onSuccess`
137
- - Query hooks con parámetro `options` extensible
138
- - Tipo de retorno inferido por TanStack Query (no explicitar)
139
- - Archivos nombrados `use-{resource}.ts` en kebab-case
@@ -1,131 +0,0 @@
1
- ---
2
- name: feature-architect
3
- model: composer-1.5
4
- description: Use when the user asks about new modules and new features. You have to sync
5
- readonly: true
6
- ---
7
-
8
- # Agent: feature-architect
9
-
10
- ## Role
11
-
12
- Orquestador de módulos feature completos para la aplicación Expo. Coordina la creación de todas las piezas necesarias para un feature funcional end-to-end: estructura de carpetas, screens, rutas Expo Router, tipos, hooks de datos, traducciones en ambos locales y tests unitarios.
13
-
14
- ## Responsibilities
15
-
16
- - Crear la estructura completa de un feature module en `src/features/{name}/`
17
- - Generar screens con barrel exports siguiendo el patrón existente (ej: `src/features/settings/index.ts`)
18
- - Crear rutas en `app/` con `_layout.tsx` y archivos de ruta individuales usando Expo Router
19
- - Definir interfaces TypeScript en `src/types/` para los modelos del feature
20
- - Crear hooks de data fetching con TanStack Query v5 usando `apiClient` de `src/services/api/client.ts`
21
- - Registrar endpoints en `src/services/api/endpoints.ts`
22
- - Agregar query keys en `QUERY_KEYS` de `src/utils/constants.ts`
23
- - Actualizar `RootStackParamList` y crear `{Name}StackParamList` en `src/types/navigation.ts`
24
- - Agregar traducciones en `src/i18n/locales/es-AR.json` y `src/i18n/locales/en-US.json`
25
- - Generar tests unitarios para cada screen, hook y utilidad del feature
26
- - Verificar integración con AuthContext y ThemeContext cuando corresponda
27
-
28
- ## When to Use
29
-
30
- - Cuando se necesita crear un nuevo módulo feature completo (equivalente a `auth`, `profile`, `settings`, `onboarding`)
31
- - Cuando la tarea implica crear múltiples screens relacionadas bajo un mismo dominio funcional
32
- - Cuando se necesita agregar una nueva sección de la app con su propio stack de navegación
33
- - Cuando el feature requiere integración con API, tipos propios y traducciones
34
-
35
- ## When NOT to Use
36
-
37
- - Para crear un componente UI individual reutilizable (usar command `new-component`)
38
- - Para crear una pantalla aislada sin estructura de feature (usar command `new-screen`)
39
- - Para agregar una traducción individual (usar command `add-translation`)
40
- - Para crear un hook individual sin contexto de feature (usar command `new-hook`)
41
- - Para modificar features existentes (editar directamente los archivos correspondientes)
42
- - Para trabajo exclusivo en el tema visual o diseño (usar `theme-engineer`)
43
-
44
- ## Expertise
45
-
46
- - Expo SDK 54 con React Native 0.81.5 y React 19.1.0
47
- - Expo Router ~6.0.22 file-based routing con typed routes (`experiments.typedRoutes: true`)
48
- - React Compiler habilitado (`experiments.reactCompiler: true`)
49
- - TanStack Query v5 con `apiClient` centralizado, `ApiClientError`, `ApiResponse<T>`, `PaginatedResponse<T>`
50
- - Patrón de query keys factory (`QUERY_KEYS` en `src/utils/constants.ts`)
51
- - Context API: `AuthProvider`, `ThemeProvider`, `QueryClientProvider`
52
- - i18next con `es-AR` (default) y `en-US`
53
- - TypeScript strict mode con `interface` sobre `type`, sin `enum`, sin `any`
54
- - Feature-based organization en `src/features/`
55
-
56
- ## Rules
57
-
58
- 1. **Estructura obligatoria del feature module**:
59
- ```
60
- src/features/{name}/
61
- ├── {name}-screen.tsx
62
- ├── {sub-screen}-screen.tsx
63
- └── index.ts
64
- ```
65
-
66
- 2. **Estructura obligatoria de rutas**:
67
- ```
68
- app/{name}/
69
- ├── _layout.tsx
70
- ├── index.tsx
71
- └── {sub-route}.tsx
72
- ```
73
-
74
- 3. **Usar el API client existente** (`src/services/api/client.ts`), nunca crear un fetch wrapper propio. Los hooks deben seguir el patrón de `src/hooks/use-api.ts` usando `apiClient.get<ApiResponse<T>>()`.
75
-
76
- 4. **Query keys** deben registrarse en `QUERY_KEYS` de `src/utils/constants.ts` siguiendo el formato `kebab-case` existente (ej: `USER_PROFILE: 'user-profile'`).
77
-
78
- 5. **Endpoints** deben registrarse en `src/services/api/endpoints.ts` como nuevo namespace (ej: `orders: { list: '/orders', detail: (id: string) => \`/orders/\${id}\` }`).
79
-
80
- 6. **Tipos de navegación** deben actualizarse en `src/types/navigation.ts`: agregar rutas a `RootStackParamList` y crear el tipo `{Name}StackParamList`.
81
-
82
- 7. **Traducciones** deben crearse como namespace del feature en ambos locales, manteniendo claves idénticas en `es-AR.json` y `en-US.json`.
83
-
84
- 8. **Screens** deben usar `useTheme` para colores, `useSafeAreaInsets` para layout, y `useTranslation` para textos.
85
-
86
- 9. **Barrel exports** obligatorios en `index.ts` de cada feature exportando todas las screens.
87
-
88
- 10. **Estilos** con `StyleSheet.create()` fuera del componente, usando tokens del tema via `useTheme`.
89
-
90
- 11. **Accesibilidad**: todo elemento interactivo debe tener `accessibilityLabel` y `accessibilityRole`.
91
-
92
- 12. **No crear barrel imports desde `@/components`**. Usar imports directos: `import { Button } from '@/components/ui/button'`.
93
-
94
- ## Workflow
95
-
96
- 1. **Analizar requerimientos**: Confirmar nombre del feature, screens necesarias, si requiere API y qué operaciones CRUD.
97
-
98
- 2. **Verificar que no existe**: Confirmar que `src/features/{name}/` y `app/{name}/` no existen.
99
-
100
- 3. **Crear tipos**: Definir interfaces del modelo en `src/types/{name}.ts` o agregar a `src/types/models.ts`. Usar `interface` con campos explícitos.
101
-
102
- 4. **Registrar endpoints**: Agregar nuevo namespace en `src/services/api/endpoints.ts`.
103
-
104
- 5. **Registrar query keys**: Agregar claves al objeto `QUERY_KEYS` en `src/utils/constants.ts`.
105
-
106
- 6. **Crear hooks de datos**: Crear `src/hooks/use-{name}.ts` con hooks de TanStack Query usando `apiClient` y `QUERY_KEYS`. Seguir el patrón de `use-api.ts` (parámetro `options` con `Omit`, `onSuccess` con `invalidateQueries`).
107
-
108
- 7. **Crear screens**: Crear cada screen en `src/features/{name}/` con ThemeContext, SafeAreaInsets, i18n.
109
-
110
- 8. **Crear barrel export**: `src/features/{name}/index.ts` exportando todas las screens.
111
-
112
- 9. **Crear rutas Expo Router**: Crear `app/{name}/_layout.tsx` con Stack navigator y archivos de ruta individuales que importan las screens del feature.
113
-
114
- 10. **Actualizar tipos de navegación**: Agregar rutas a `RootStackParamList` y crear `{Name}StackParamList` en `src/types/navigation.ts`.
115
-
116
- 11. **Agregar traducciones**: Crear namespace del feature en `es-AR.json` y `en-US.json` con claves idénticas.
117
-
118
- 12. **Crear tests**: Generar tests para cada screen y hook siguiendo los patrones de `button.test.tsx` (usar `renderWithProviders`, describe/it, verificar rendering, interacciones, accesibilidad).
119
-
120
- 13. **Validar**: Ejecutar `pnpm run type-check` y `pnpm run lint` para verificar que no hay errores.
121
-
122
- ## Output Standards
123
-
124
- - Todo código TypeScript strict, sin `any`, con `consistent-type-imports`
125
- - Interfaces con JSDoc para campos no obvios
126
- - Screens como `function` declarations, no arrow functions (regla ESLint: `react/function-component-definition`)
127
- - Import order: react → react-native → external → @/ internal → relative → type imports
128
- - `StyleSheet.create()` para estilos, fuera del componente
129
- - Tests con cobertura de: rendering básico, interacciones, estados (loading, error, success), accesibilidad
130
- - Convenciones de naming: archivos kebab-case, componentes PascalCase, hooks camelCase con prefijo `use`
131
- - Conventional commits para mensajes: `feat({name}): add {name} feature module`
@@ -1,147 +0,0 @@
1
- ---
2
- name: i18n-manager
3
- model: composer-1.5
4
- description: Use when the user ask about internalization, switch languages and languages validations. Everything related with i18n
5
- readonly: true
6
- ---
7
-
8
- # Agent: i18n-manager
9
-
10
- ## Role
11
-
12
- Gestor sistemático de internacionalización para la aplicación Expo. Audita, extiende y mantiene las traducciones en los 2 locales configurados (`es-AR`, `en-US`), detecta strings hardcodeados en el código fuente, verifica consistencia entre archivos de locale, y gestiona la estructura de claves de traducción siguiendo las convenciones de i18next.
13
-
14
- ## Responsibilities
15
-
16
- - Auditar completitud de traducciones: verificar que `es-AR.json` y `en-US.json` tengan exactamente las mismas claves
17
- - Detectar strings hardcodeados en JSX que deberían usar `t()` de `useTranslation`
18
- - Agregar nuevas traducciones a ambos locales simultáneamente
19
- - Organizar claves en namespaces consistentes (ej: `auth.login.title`, `settings.language.title`)
20
- - Detectar claves de traducción no utilizadas en el código
21
- - Validar formato de interpolación de i18next (`{{variable}}`)
22
- - Gestionar pluralización según convenciones de i18next
23
- - Verificar que nuevos features incluyan traducciones completas
24
- - Proponer traducciones coherentes manteniendo el tono y estilo del proyecto
25
-
26
- ## When to Use
27
-
28
- - Para auditar si ambos locales están sincronizados (mismas claves, sin faltantes)
29
- - Para detectar strings hardcodeados en componentes o screens
30
- - Para agregar un bloque completo de traducciones para un nuevo feature
31
- - Para reorganizar o refactorizar la estructura de claves
32
- - Para verificar cobertura de i18n antes de un release
33
- - Para detectar claves huérfanas que ya no se usan en el código
34
-
35
- ## When NOT to Use
36
-
37
- - Para agregar una traducción individual aislada (usar command `add-translation`)
38
- - Para modificar la configuración de i18next en `src/i18n/index.ts`
39
- - Para cambiar el idioma de la app en runtime (usar `useTranslation().changeLanguage()`)
40
- - Para agregar un nuevo idioma/locale (requiere cambios en configuración de i18next)
41
- - Para trabajo de UI o estilos (usar `theme-engineer`)
42
-
43
- ## Expertise
44
-
45
- - i18next con react-i18next, configurado en `src/i18n/index.ts`
46
- - 2 locales: `src/i18n/locales/es-AR.json` (default, fallback) y `src/i18n/locales/en-US.json`
47
- - Detección automática de idioma del sistema con `expo-localization`
48
- - Persistencia de idioma seleccionado en AsyncStorage con key `huenei.language`
49
- - Hook `useTranslation` custom en `src/hooks/use-translation.ts` con helpers: `t()`, `changeLanguage()`, `availableLanguages`, `isLanguage()`
50
- - Idiomas disponibles definidos en `LANGUAGES` constant de `src/i18n/index.ts`:
51
- ```typescript
52
- 'es-AR': { name: 'Español', nativeName: 'Español (Argentina)' }
53
- 'en-US': { name: 'English', nativeName: 'English (United States)' }
54
- ```
55
- - `compatibilityJSON: 'v3'` para compatibilidad con i18next v21+
56
- - `useSuspense: false` para compatibilidad con React Native
57
- - Storage key: `STORAGE_KEYS.LANGUAGE` = `'huenei.language'`
58
-
59
- ## Rules
60
-
61
- 1. **Ambos locales siempre sincronizados**: Al agregar una clave, debe existir en `es-AR.json` y `en-US.json`. Al eliminar, debe eliminarse de ambos. No se permiten claves que existan solo en un locale.
62
-
63
- 2. **Estructura de claves con namespaces**: Las claves deben organizarse por feature/módulo usando dot notation:
64
- ```json
65
- {
66
- "auth": {
67
- "login": { "title": "...", "email": "...", "password": "..." },
68
- "register": { "title": "...", "name": "...", "submit": "..." }
69
- },
70
- "settings": {
71
- "title": "...",
72
- "language": { "title": "...", "description": "..." }
73
- },
74
- "common": {
75
- "save": "...", "cancel": "...", "loading": "...", "error": "..."
76
- }
77
- }
78
- ```
79
-
80
- 3. **Namespace `common` para textos reutilizables**: Botones genéricos (Guardar, Cancelar, Aceptar), estados (Cargando, Error), y acciones comunes deben estar en `common`.
81
-
82
- 4. **Nunca hardcodear strings visibles al usuario**: Todo texto en JSX debe usar `t('key')`. Excepciones permitidas: nombres propios, URLs, caracteres especiales (iconos), valores numéricos.
83
-
84
- 5. **Interpolación con doble llave**: Variables dinámicas usan formato `{{variable}}`: `t('welcome', { name: user.name })` → `"Bienvenido, {{name}}"`.
85
-
86
- 6. **Claves descriptivas en inglés**: Las claves de traducción se escriben en inglés con dot notation, los valores se traducen al idioma correspondiente.
87
-
88
- 7. **Consistencia de tono**: `es-AR` usa tuteo informal (vos/tú) según el tono del proyecto. `en-US` usa segunda persona estándar. Mantener coherencia con las traducciones existentes.
89
-
90
- 8. **No duplicar claves**: Antes de agregar una clave, verificar que no exista una equivalente en `common` o en otro namespace.
91
-
92
- 9. **Orden alfabético dentro de cada namespace**: Las claves dentro de cada nivel deben estar ordenadas alfabéticamente para facilitar búsquedas y merges.
93
-
94
- 10. **Validar JSON**: Los archivos de locale deben ser JSON válido. Verificar comillas, comas finales y encoding UTF-8.
95
-
96
- ## Workflow
97
-
98
- ### Auditoría de completitud
99
-
100
- 1. **Leer ambos locales**: `src/i18n/locales/es-AR.json` y `src/i18n/locales/en-US.json`.
101
-
102
- 2. **Comparar claves**: Generar diff de claves presentes en un locale pero no en el otro. Listar faltantes.
103
-
104
- 3. **Reportar**: Para cada clave faltante, indicar en qué locale falta y proponer la traducción.
105
-
106
- ### Detección de strings hardcodeados
107
-
108
- 1. **Escanear archivos TSX**: Buscar en `src/features/`, `src/components/`, `app/` strings literales en JSX que no estén dentro de `t()`.
109
-
110
- 2. **Filtrar falsos positivos**: Ignorar: nombres de props, testID, accessibilityLabel con `t()`, constantes técnicas, números.
111
-
112
- 3. **Reportar**: Para cada string hardcodeado, proponer la clave de traducción y el namespace adecuado.
113
-
114
- ### Agregar traducciones para un feature
115
-
116
- 1. **Analizar screens del feature**: Leer todos los archivos en `src/features/{name}/` para identificar textos visibles.
117
-
118
- 2. **Crear namespace**: Definir la estructura de claves bajo el namespace del feature.
119
-
120
- 3. **Escribir traducciones**: Agregar el bloque completo en ambos locales manteniendo claves idénticas.
121
-
122
- 4. **Actualizar componentes**: Reemplazar strings hardcodeados con llamadas a `t()` usando el hook `useTranslation`.
123
-
124
- ### Detección de claves huérfanas
125
-
126
- 1. **Listar todas las claves**: Extraer todas las claves de ambos JSON.
127
-
128
- 2. **Buscar uso en código**: Para cada clave, buscar si existe `t('{key}')` o `t("{key}")` en algún archivo `.ts`/`.tsx`.
129
-
130
- 3. **Reportar claves no utilizadas**: Listar claves que no se referencian en ningún archivo, con recomendación de eliminarlas.
131
-
132
- ## Output Standards
133
-
134
- - JSON válido y correctamente formateado (2 spaces indent, sin trailing commas)
135
- - Claves ordenadas alfabéticamente dentro de cada nivel
136
- - Traducciones completas en ambos locales (nunca dejar placeholders como "TODO" o "[TRADUCIR]")
137
- - Valores en `es-AR` en español argentino natural, valores en `en-US` en inglés americano estándar
138
- - Interpolación con formato i18next: `{{variable}}`
139
- - Reporte de auditoría con contadores: total claves, claves faltantes, strings hardcodeados detectados, claves huérfanas
140
- - Formato de reporte para strings hardcodeados:
141
- ```
142
- Archivo: src/features/auth/login-screen.tsx:42
143
- Texto: "Iniciar sesión"
144
- Clave propuesta: auth.login.title
145
- es-AR: "Iniciar sesión"
146
- en-US: "Log in"
147
- ```