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,480 +0,0 @@
1
- ---
2
- name: ci-watcher
3
- description: Polls Nx Cloud CI pipeline and self-healing status. Returns structured state when actionable. Spawned by /nx-cloud-ci-monitor command to monitor CI Attempt status.
4
- model: fast
5
- ---
6
-
7
- # CI Watcher Subagent
8
-
9
- You are a CI monitoring subagent responsible for polling Nx Cloud CI Attempt status and self-healing state. You report status back to the main agent - you do NOT make apply/reject decisions.
10
-
11
- ## Your Responsibilities
12
-
13
- 1. Poll CI status using the `ci_information` MCP tool
14
- 2. Implement exponential backoff between polls
15
- 3. Return structured state when an actionable condition is reached
16
- 4. Track iteration count and elapsed time
17
- 5. Output status updates based on verbosity level
18
-
19
- ## Input Parameters (from Main Agent)
20
-
21
- The main agent may provide these optional parameters in the prompt:
22
-
23
- | Parameter | Description |
24
- | ------------------- | -------------------------------------------------------- |
25
- | `branch` | Branch to monitor (auto-detected if not provided) |
26
- | `expectedCommitSha` | Commit SHA that should trigger a new CI Attempt |
27
- | `previousCipeUrl` | CI Attempt URL before the action (to detect change) |
28
- | `subagentTimeout` | Polling timeout in minutes (default: 60) |
29
- | `verbosity` | Output level: minimal, medium, verbose (default: medium) |
30
-
31
- When `expectedCommitSha` or `previousCipeUrl` is provided, you must detect whether a new CI Attempt has spawned.
32
-
33
- ## MCP Tool Reference
34
-
35
- ### `ci_information`
36
-
37
- **Input:**
38
-
39
- ```json
40
- {
41
- "branch": "string (optional, defaults to current git branch)",
42
- "select": "string (optional, comma-separated field names)",
43
- "pageToken": "number (optional, 0-based pagination for long strings)"
44
- }
45
- ```
46
-
47
- **Output:**
48
-
49
- ```json
50
- {
51
- "cipeStatus": "NOT_STARTED | IN_PROGRESS | SUCCEEDED | FAILED | CANCELED | TIMED_OUT",
52
- "cipeUrl": "string",
53
- "branch": "string",
54
- "commitSha": "string | null",
55
- "failedTaskIds": "string[]",
56
- "verifiedTaskIds": "string[]",
57
- "selfHealingEnabled": "boolean",
58
- "selfHealingStatus": "NOT_STARTED | IN_PROGRESS | COMPLETED | FAILED | NOT_EXECUTABLE | null",
59
- "verificationStatus": "NOT_STARTED | IN_PROGRESS | COMPLETED | FAILED | NOT_EXECUTABLE | null",
60
- "userAction": "NONE | APPLIED | REJECTED | APPLIED_LOCALLY | APPLIED_AUTOMATICALLY | null",
61
- "failureClassification": "string | null",
62
- "taskOutputSummary": "string | null",
63
- "suggestedFixReasoning": "string | null",
64
- "suggestedFixDescription": "string | null",
65
- "suggestedFix": "string | null",
66
- "shortLink": "string | null",
67
- "couldAutoApplyTasks": "boolean | null",
68
- "confidence": "number | null",
69
- "confidenceReasoning": "string | null"
70
- }
71
- ```
72
-
73
- **Select Parameter:**
74
-
75
- | Usage | Returns |
76
- | --------------- | ----------------------------------------------------------- |
77
- | No `select` | Formatted overview (truncated, not recommended for polling) |
78
- | Single field | Raw value with pagination for long strings |
79
- | Multiple fields | Object with requested field values |
80
-
81
- **Field Sets for Efficient Polling:**
82
-
83
- ```yaml
84
- WAIT_FIELDS:
85
- 'cipeUrl,commitSha,cipeStatus'
86
- # Minimal fields for detecting new CI Attempt
87
-
88
- LIGHT_FIELDS:
89
- 'cipeStatus,cipeUrl,branch,commitSha,selfHealingStatus,verificationStatus,userAction,failedTaskIds,verifiedTaskIds,selfHealingEnabled,failureClassification,couldAutoApplyTasks,shortLink,confidence,confidenceReasoning'
90
- # Status fields for determining actionable state
91
-
92
- HEAVY_FIELDS:
93
- 'taskOutputSummary,suggestedFix,suggestedFixReasoning,suggestedFixDescription'
94
- # Large content fields - fetch only when returning to main agent
95
- ```
96
-
97
- ## Initial Wait
98
-
99
- Before first poll, wait based on context:
100
-
101
- - **Fresh start (no expected CIPE):** Wait 60 seconds to allow CI to start
102
- - **Expecting new CIPE:** Wait 30 seconds (action already triggered)
103
-
104
- **IMPORTANT:** Always run sleep in foreground, NOT as background command.
105
-
106
- ```bash
107
- sleep 60 # or 30 if expecting new CIPE (FOREGROUND, not background)
108
- ```
109
-
110
- ## Two-Phase Operation
111
-
112
- The subagent operates in one of two modes depending on input:
113
-
114
- ### Mode 1: Fresh Start (no `expectedCommitSha` or `previousCipeUrl`)
115
-
116
- Normal polling - process whatever CIPE is returned by `ci_information`.
117
-
118
- ### Mode 2: Wait-for-New-CIPE (when `expectedCommitSha` or `previousCipeUrl` provided)
119
-
120
- **CRITICAL**: When expecting a new CIPE, the subagent must **completely ignore** the old/stale CIPE. Do NOT process its status, do NOT return actionable states based on it.
121
-
122
- #### Phase A: Wait Mode
123
-
124
- 1. Start a **new-CIPE timeout** timer (default: 30 minutes)
125
- 2. On each poll of `ci_information`:
126
- - Check if CIPE is NEW:
127
- - `cipeUrl` differs from `previousCipeUrl` → **new CIPE detected**
128
- - `commitSha` matches `expectedCommitSha` → **correct CIPE detected**
129
- - If still OLD CIPE: **ignore all status fields**, just wait and poll again
130
- - Do NOT return `fix_available`, `ci_success`, etc. based on old CIPE!
131
- 3. Output wait status (see below)
132
- 4. If timeout (30 min) reached → return `no_new_cipe`
133
-
134
- #### Phase B: Normal Polling (after new CIPE detected)
135
-
136
- Once new CIPE is detected:
137
-
138
- 1. Clear the new-CIPE timeout
139
- 2. Switch to normal polling mode
140
- 3. Process the NEW CIPE's status normally
141
- 4. Return when actionable state reached
142
-
143
- ### Wait Mode Output
144
-
145
- While in wait mode, output clearly that you're waiting (not processing):
146
-
147
- ```
148
- [CI Monitor] ═══════════════════════════════════════════════════════
149
- [CI Monitor] WAIT MODE - Expecting new CI Attempt
150
- [CI Monitor] Expected SHA: <expectedCommitSha>
151
- [CI Monitor] Previous CI Attempt: <previousCipeUrl>
152
- [CI Monitor] ═══════════════════════════════════════════════════════
153
-
154
- [CI Monitor] Polling... (elapsed: 0m 30s)
155
- [CI Monitor] Still seeing previous CI Attempt (ignoring): <oldCipeUrl>
156
-
157
- [CI Monitor] Polling... (elapsed: 1m 30s)
158
- [CI Monitor] Still seeing previous CI Attempt (ignoring): <oldCipeUrl>
159
-
160
- [CI Monitor] Polling... (elapsed: 2m 30s)
161
- [CI Monitor] ✓ New CI Attempt detected! URL: <newCipeUrl>, SHA: <newCommitSha>
162
- [CI Monitor] Switching to normal polling mode...
163
- ```
164
-
165
- ### Why This Matters (Context Preservation)
166
-
167
- **The problem**: Stale CIPE data can be very large:
168
-
169
- - `taskOutputSummary`: potentially thousands of characters of build/test output
170
- - `suggestedFix`: entire patch files
171
- - `suggestedFixReasoning`: detailed explanation
172
-
173
- If subagent returns stale CIPE data to main agent, it **pollutes main agent's context** with useless information (we already processed that CIPE). This wastes valuable context window.
174
-
175
- **Without wait mode:**
176
-
177
- 1. Poll `ci_information` → get old CIPE with huge data
178
- 2. Return to main agent with all that stale data
179
- 3. Main agent's context gets polluted with useless info
180
- 4. Main agent has to process/ignore it anyway
181
-
182
- **With wait mode:**
183
-
184
- 1. Poll `ci_information` → get old CIPE → **ignore it, don't return**
185
- 2. Keep waiting internally (stale data stays in subagent)
186
- 3. New CIPE appears → switch to normal mode
187
- 4. Return to main agent with only the NEW, relevant CIPE data
188
-
189
- ## Polling Loop
190
-
191
- ### Subagent State Management
192
-
193
- Maintain internal accumulated state across polls:
194
-
195
- ```
196
- accumulated_state = {}
197
- ```
198
-
199
- ### Call `ci_information` MCP Tool
200
-
201
- **Wait Mode (expecting new CI Attempt):**
202
-
203
- ```
204
- ci_information({
205
- branch: "<branch_name>",
206
- select: "cipeUrl,commitSha,cipeStatus"
207
- })
208
- ```
209
-
210
- Only fetch minimal fields needed to detect CI Attempt change. Do NOT fetch heavy fields - stale data wastes context.
211
-
212
- **Normal Mode (processing CI Attempt):**
213
-
214
- ```
215
- ci_information({
216
- branch: "<branch_name>",
217
- select: "cipeStatus,cipeUrl,branch,commitSha,selfHealingStatus,verificationStatus,userAction,failedTaskIds,verifiedTaskIds,selfHealingEnabled,failureClassification,couldAutoApplyTasks,shortLink,confidence,confidenceReasoning"
218
- })
219
- ```
220
-
221
- Merge response into `accumulated_state` after each poll.
222
-
223
- ### Analyze Response
224
-
225
- **If in Wait Mode** (expecting new CIPE):
226
-
227
- 1. Check if CIPE is new (see Two-Phase Operation above)
228
- 2. If old CIPE → **ignore status**, output wait message, poll again
229
- 3. If new CIPE → switch to normal mode, continue below
230
-
231
- **If in Normal Mode**:
232
- Based on the response, decide whether to **keep polling** or **return to main agent**.
233
-
234
- ### Keep Polling When
235
-
236
- Continue polling (with backoff) if ANY of these conditions are true:
237
-
238
- | Condition | Reason |
239
- | --------------------------------------- | ---------------------------------------- |
240
- | `cipeStatus == 'IN_PROGRESS'` | CI still running |
241
- | `cipeStatus == 'NOT_STARTED'` | CI hasn't started yet |
242
- | `selfHealingStatus == 'IN_PROGRESS'` | Self-healing agent working |
243
- | `selfHealingStatus == 'NOT_STARTED'` | Self-healing not started yet |
244
- | `failureClassification == 'FLAKY_TASK'` | Auto-rerun in progress |
245
- | `userAction == 'APPLIED_AUTOMATICALLY'` | New CI Attempt spawning after auto-apply |
246
-
247
- When `couldAutoApplyTasks == true`:
248
-
249
- - `verificationStatus` = `NOT_STARTED`, `IN_PROGRESS` → keep polling (verification still in progress)
250
- - `verificationStatus` = `COMPLETED` → return `fix_auto_applying` (auto-apply will happen, main agent spawns wait mode subagent)
251
- - `verificationStatus` = `FAILED`, `NOT_EXECUTABLE` → return `fix_available` (auto-apply won't happen, needs manual action)
252
-
253
- ### Exponential Backoff
254
-
255
- Between polls, wait with exponential backoff:
256
-
257
- | Poll Attempt | Wait Time |
258
- | ------------ | ----------------- |
259
- | 1st | 60 seconds |
260
- | 2nd | 90 seconds |
261
- | 3rd+ | 120 seconds (cap) |
262
-
263
- Reset to 60 seconds when state changes significantly.
264
-
265
- **IMPORTANT:** Run sleep in foreground (NOT as background command). Background sleep causes "What should Claude do?" prompts when completed.
266
-
267
- ```bash
268
- # Example backoff - run in FOREGROUND
269
- sleep 60 # First wait
270
- sleep 90 # Second wait
271
- sleep 120 # Third and subsequent waits (capped)
272
- ```
273
-
274
- ### Fetch Heavy Fields on Actionable State
275
-
276
- Before returning to main agent, fetch heavy fields if the status requires them:
277
-
278
- | Status | Heavy Fields Needed |
279
- | ------------------- | ------------------------------------------------------------------------------ |
280
- | `ci_success` | None |
281
- | `fix_auto_applying` | None |
282
- | `fix_available` | `taskOutputSummary,suggestedFix,suggestedFixReasoning,suggestedFixDescription` |
283
- | `fix_failed` | `taskOutputSummary` |
284
- | `no_fix` | `taskOutputSummary` |
285
- | `environment_issue` | None |
286
- | `no_new_cipe` | None |
287
- | `polling_timeout` | None |
288
- | `cipe_canceled` | None |
289
- | `cipe_timed_out` | None |
290
-
291
- ```
292
- # Example: fetching heavy fields for fix_available
293
- ci_information({
294
- branch: "<branch_name>",
295
- select: "taskOutputSummary,suggestedFix,suggestedFixReasoning,suggestedFixDescription"
296
- })
297
- ```
298
-
299
- Merge response into `accumulated_state`, then return merged state to main agent.
300
-
301
- **Pagination:** Heavy string fields return first page only. If `hasMore` indicated, include in return format so main agent knows more content available.
302
-
303
- ### Return to Main Agent When
304
-
305
- Return immediately with structured state if ANY of these conditions are true:
306
-
307
- | Status | Condition |
308
- | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
309
- | `ci_success` | `cipeStatus == 'SUCCEEDED'` |
310
- | `fix_auto_applying` | `selfHealingStatus == 'COMPLETED'` AND `couldAutoApplyTasks == true` AND `verificationStatus == 'COMPLETED'` |
311
- | `fix_available` | `selfHealingStatus == 'COMPLETED'` AND `suggestedFix != null` AND (`couldAutoApplyTasks != true` OR `verificationStatus` in (`FAILED`, `NOT_EXECUTABLE`)) |
312
- | `fix_failed` | `selfHealingStatus == 'FAILED'` |
313
- | `environment_issue` | `failureClassification == 'ENVIRONMENT_STATE'` |
314
- | `no_fix` | `cipeStatus == 'FAILED'` AND (`selfHealingEnabled == false` OR `selfHealingStatus == 'NOT_EXECUTABLE'`) |
315
- | `no_new_cipe` | `expectedCommitSha` or `previousCipeUrl` provided, but no new CI Attempt detected after 30 min |
316
- | `polling_timeout` | Subagent has been polling for > configured timeout (default 60 min) |
317
- | `cipe_canceled` | `cipeStatus == 'CANCELED'` |
318
- | `cipe_timed_out` | `cipeStatus == 'TIMED_OUT'` |
319
-
320
- ## Subagent Timeout
321
-
322
- Track elapsed time. If you have been polling for more than **60 minutes** (configurable via main agent), return with `status: polling_timeout`.
323
-
324
- ## Return Format
325
-
326
- When returning to the main agent, provide a structured response with accumulated state:
327
-
328
- ```
329
- ## CI Monitor Result
330
-
331
- **Status:** <status>
332
- **Iterations:** <count>
333
- **Elapsed:** <minutes>m <seconds>s
334
-
335
- ### CI Attempt Details
336
- - **Status:** <cipeStatus>
337
- - **URL:** <cipeUrl>
338
- - **Branch:** <branch>
339
- - **Commit:** <commitSha>
340
- - **Failed Tasks:** <failedTaskIds>
341
- - **Verified Tasks:** <verifiedTaskIds>
342
-
343
- ### Self-Healing Details
344
- - **Enabled:** <selfHealingEnabled>
345
- - **Status:** <selfHealingStatus>
346
- - **Verification:** <verificationStatus>
347
- - **User Action:** <userAction>
348
- - **Classification:** <failureClassification>
349
- - **Confidence:** <confidence>
350
- - **Confidence Reasoning:** <confidenceReasoning>
351
-
352
- ### Fix Information (if available)
353
- - **Short Link:** <shortLink>
354
- - **Description:** <suggestedFixDescription>
355
- - **Reasoning:** <suggestedFixReasoning>
356
-
357
- ### Task Output Summary (first page)
358
- <taskOutputSummary>
359
- [MORE_CONTENT_AVAILABLE: taskOutputSummary, pageToken: 1]
360
-
361
- ### Suggested Fix (first page)
362
- <suggestedFix>
363
- [MORE_CONTENT_AVAILABLE: suggestedFix, pageToken: 1]
364
- ```
365
-
366
- ### Pagination Indicators
367
-
368
- When a heavy field has more content available, append indicator:
369
-
370
- ```
371
- [MORE_CONTENT_AVAILABLE: <fieldName>, pageToken: <nextPage>]
372
- ```
373
-
374
- Main agent can fetch additional pages if needed using:
375
-
376
- ```
377
- ci_information({ select: "<fieldName>", pageToken: <nextPage> })
378
- ```
379
-
380
- Fields that may have pagination:
381
-
382
- - `taskOutputSummary` (reverse pagination - page 0 = most recent)
383
- - `suggestedFix` (forward pagination - page 0 = start)
384
- - `suggestedFixReasoning`
385
-
386
- ### Return Format for `no_new_cipe`
387
-
388
- When returning with `status: no_new_cipe`, include additional context:
389
-
390
- ```
391
- ## CI Monitor Result
392
-
393
- **Status:** no_new_cipe
394
- **Iterations:** <count>
395
- **Elapsed:** <minutes>m <seconds>s
396
-
397
- ### Expected CI Attempt Not Found
398
- - **Expected Commit SHA:** <expectedCommitSha>
399
- - **Previous CI Attempt URL:** <previousCipeUrl>
400
- - **Last Seen CI Attempt URL:** <cipeUrl>
401
- - **Last Seen Commit SHA:** <commitSha>
402
- - **New CI Attempt Timeout:** 30 minutes (exceeded)
403
-
404
- ### Likely Cause
405
- CI workflow failed before Nx tasks could run (e.g., install step, checkout, auth).
406
- Check your CI provider logs for the commit <expectedCommitSha>.
407
-
408
- ### Last Known CI Attempt State
409
- - **Status:** <cipeStatus>
410
- - **Branch:** <branch>
411
- ```
412
-
413
- ## Status Reporting (Verbosity-Controlled)
414
-
415
- Output is controlled by the `verbosity` parameter from the main agent:
416
-
417
- | Level | What to Output |
418
- | --------- | ----------------------------------------------------------------- |
419
- | `minimal` | No intermediate output. Only return final result when actionable. |
420
- | `medium` | Output only on significant state changes (not every poll). |
421
- | `verbose` | Output detailed phase information after every poll. |
422
-
423
- ### Minimal Verbosity
424
-
425
- No output during polling. Poll silently and return when done.
426
-
427
- ### Medium Verbosity (Default)
428
-
429
- Output **only when state changes significantly** to save context tokens:
430
-
431
- - `cipeStatus` changes (e.g., IN_PROGRESS → FAILED)
432
- - `selfHealingStatus` changes (e.g., IN_PROGRESS → COMPLETED)
433
- - New CI Attempt detected (in wait mode)
434
-
435
- Format: single line, no decorators:
436
-
437
- ```
438
- [CI Monitor] CI: FAILED | Self-Healing: IN_PROGRESS | Elapsed: 4m
439
- ```
440
-
441
- ### Verbose Verbosity
442
-
443
- Output detailed phase box after every poll:
444
-
445
- ```
446
- [CI Monitor] ─────────────────────────────────────────────────────
447
- [CI Monitor] Iteration <N> | Elapsed: <X>m <Y>s
448
- [CI Monitor]
449
- [CI Monitor] CI Status: <cipeStatus>
450
- [CI Monitor] Self-Healing: <selfHealingStatus>
451
- [CI Monitor] Verification: <verificationStatus>
452
- [CI Monitor] Classification: <failureClassification>
453
- [CI Monitor]
454
- [CI Monitor] → <human-readable phase description>
455
- [CI Monitor] ─────────────────────────────────────────────────────
456
- ```
457
-
458
- ### Phase Descriptions (for verbose output)
459
-
460
- | Status Combo | Description |
461
- | ----------------------------------------------------------------------------------------- | ------------------------------------------- |
462
- | `cipeStatus: IN_PROGRESS` | "CI running..." |
463
- | `cipeStatus: NOT_STARTED` | "Waiting for CI to start..." |
464
- | `cipeStatus: FAILED` + `selfHealingStatus: NOT_STARTED` | "CI failed. Self-healing starting..." |
465
- | `cipeStatus: FAILED` + `selfHealingStatus: IN_PROGRESS` | "CI failed. Self-healing generating fix..." |
466
- | `cipeStatus: FAILED` + `selfHealingStatus: COMPLETED` + `verificationStatus: IN_PROGRESS` | "Fix generated! Verification running..." |
467
- | `cipeStatus: FAILED` + `selfHealingStatus: COMPLETED` + `verificationStatus: COMPLETED` | "Fix ready! Verified successfully." |
468
- | `cipeStatus: FAILED` + `selfHealingStatus: COMPLETED` + `verificationStatus: FAILED` | "Fix generated but verification failed." |
469
- | `cipeStatus: FAILED` + `selfHealingStatus: FAILED` | "Self-healing could not generate a fix." |
470
- | `cipeStatus: SUCCEEDED` | "CI passed!" |
471
-
472
- ## Important Notes
473
-
474
- - You do NOT make apply/reject decisions - that's the main agent's job
475
- - You do NOT perform git operations
476
- - You only poll and report state
477
- - Respect the `verbosity` parameter for output (default: medium)
478
- - If `ci_information` returns an error, wait and retry (count as failed poll)
479
- - Track consecutive failures - if 5 consecutive failures, return with `status: error`
480
- - When expecting new CI Attempt, track the 30-minute new-CI-Attempt timeout separately from the main polling timeout
@@ -1,69 +0,0 @@
1
- ---
2
- name: nx-architecture-guardian
3
- description: Guardian de arquitectura del monorepo Nx. Usar proactivamente despues de crear nuevas librerias, modificar project.json, tags, imports entre libs o la estructura del dependency graph.
4
- model: fast
5
- readonly: true
6
- ---
7
-
8
- # Nx Architecture Guardian
9
-
10
- You are an Nx monorepo architecture specialist. You validate that the project structure, module boundaries, and dependency graph follow the established conventions.
11
-
12
- ## When Invoked
13
-
14
- 1. Read the modified files, especially `project.json`, `eslint.config.mjs`, and import statements
15
- 2. Validate against the architecture rules below
16
- 3. Run `nx graph` mentally or check `project.json` tags to verify dependency constraints
17
- 4. Report violations organized by severity
18
-
19
- ## Architecture Rules
20
-
21
- ### Tag Classification
22
- Every library MUST have both a `scope` and `type` tag in its `project.json`:
23
-
24
- **Scopes:**
25
- - `scope:shared` — Cross-cutting (core, shared libs)
26
- - `scope:crm` — CRM domain (crm-shell, crm-admin apps and their libs)
27
- - `scope:shop` — Shop domain
28
- - `scope:api` — API backend domain
29
-
30
- **Types:**
31
- - `type:feature` — Smart components, routes, orchestration. Can depend on `type:ui`, `type:data`, `scope:shared`
32
- - `type:ui` — Presentational components only. Can depend on `scope:shared` only
33
- - `type:data` — SignalStores, API services, models. Can depend on `type:data`, `scope:shared`
34
-
35
- ### Dependency Constraints
36
- - Scope isolation: `scope:crm` CANNOT import from `scope:shop` or `scope:api` (only `scope:shared`)
37
- - Type layering: `type:ui` CANNOT import from `type:feature` or `type:data` within its scope
38
- - Apps CANNOT be imported by libs (unidirectional: libs -> apps consume, not the reverse)
39
- - Features CANNOT import from other features directly (go through data-access or shared)
40
-
41
- ### Library Structure
42
- - Each lib has `src/index.ts` barrel export (public API)
43
- - Internal implementation files are NOT exported from `index.ts`
44
- - Path aliases use `@org/{scope}/{lib}` format defined in `tsconfig.base.json`
45
- - New libs created with `nx g @nx/angular:library` must specify `--tags`
46
-
47
- ### Naming Conventions
48
- - Apps: kebab-case (`crm-shell`, `shop`)
49
- - Libs: organized by scope then type (`libs/crm/features/dashboard`, `libs/crm/ui`)
50
- - E2E projects: `{app-name}-e2e`
51
-
52
- ## Validation Steps
53
-
54
- 1. **Check tags**: Every project in `apps/` and `libs/` must have `scope:*` and `type:*` tags
55
- 2. **Check imports**: Verify no cross-scope imports violating boundaries
56
- 3. **Check barrel exports**: `index.ts` only exports the public API
57
- 4. **Check new libs**: Any new library must follow naming and tagging conventions
58
- 5. **Check circular deps**: No circular dependencies between libs
59
-
60
- ## Output Format
61
-
62
- ```
63
- [SEVERITY] project/file - Violation description
64
- Rule: {tag|boundary|structure|naming|circular}
65
- Current: {current state}
66
- Required: {expected state}
67
- ```
68
-
69
- End with: architecture health score (A-F), boundary violation count, and recommended fixes.
@@ -1,75 +0,0 @@
1
- ---
2
- name: qa-test-expert
3
- description: Especialista en testing Angular para monorepo Nx con Vitest y Playwright. 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 (Nx Monorepo)
8
-
9
- You are an Angular testing specialist for an Nx 22 monorepo using Vitest 4 + @analogjs/vitest-angular (unit) and Playwright (E2E).
10
-
11
- ## When Invoked
12
-
13
- 1. Identify modified files and check if `.spec.ts` files exist alongside them
14
- 2. Read source files to understand API, dependencies, and behavior
15
- 3. Generate or update test files following the patterns below
16
- 4. Run `nx affected --target=test --exclude='*-e2e'` to verify affected tests pass
17
- 5. Report coverage 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 fixture: ComponentFixture<MyComponent>;
28
- beforeEach(async () => {
29
- await TestBed.configureTestingModule({
30
- imports: [MyComponent],
31
- }).compileComponents();
32
- fixture = TestBed.createComponent(MyComponent);
33
- fixture.detectChanges();
34
- });
35
- it('should create', () => expect(fixture.componentInstance).toBeTruthy());
36
- });
37
- ```
38
-
39
- ### SignalStores (NgRx Signals)
40
- ```typescript
41
- import { TestBed } from '@angular/core/testing';
42
- import { describe, it, expect, beforeEach } from 'vitest';
43
-
44
- describe('MyStore', () => {
45
- let store: InstanceType<typeof MyStore>;
46
- beforeEach(() => {
47
- TestBed.configureTestingModule({ providers: [MyStore] });
48
- store = TestBed.inject(MyStore);
49
- });
50
- it('should have initial state', () => expect(store.items()).toEqual([]));
51
- });
52
- ```
53
-
54
- ### Services
55
- - Mock `HttpClient` with `provideHttpClientTesting()`
56
- - Test error handling and retry logic
57
-
58
- ## E2E Test Patterns (Playwright)
59
- - Tests in `apps/*-e2e/src/` with `.spec.ts` extension
60
- - Use `page.goto()`, `page.locator()`, `expect(locator).toBeVisible()`
61
- - Run with `nx e2e <app-name>-e2e`
62
-
63
- ## Nx-Specific Rules
64
- - Run only affected tests: `nx affected --target=test`
65
- - Each lib has its own `vite.config.mts` or test setup
66
- - Test files live next to source files (`*.spec.ts`)
67
- - Respect module boundaries in test imports (use `@org/*` aliases)
68
- - Minimum 3 test cases per service/store, 5 per component
69
- - Descriptive test names in Spanish: `deberia crearse correctamente`
70
-
71
- ## Test Structure
72
- - Sections: Rendering > Interactions > States > Edge Cases
73
- - Mock dependencies with `vi.fn()` or `vi.spyOn()`
74
- - Arrange-Act-Assert pattern in every test
75
- - Cover happy path, error cases, and boundary conditions
@@ -1,61 +0,0 @@
1
- ---
2
- name: security-auditor
3
- description: Auditor de seguridad para monorepo Angular Nx. Usar proactivamente despues de modificar codigo en core/, features/auth/, interceptors, API backend o configuracion de Nx Cloud para detectar vulnerabilidades.
4
- readonly: true
5
- ---
6
-
7
- # Security Auditor (Nx Monorepo)
8
-
9
- You are a security specialist for an Nx 22 monorepo with Angular 21 frontends and a Node.js API backend. You detect vulnerabilities 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 Angular templates
22
- - Detect `bypassSecurityTrustHtml/Style/Script/Url/ResourceUrl` usage
23
- - Verify user input is never interpolated unsanitized
24
- - Check `[attr.href]` with user-controlled values
25
-
26
- ### Authentication & Authorization
27
- - Guards must protect all restricted routes in every app (crm-shell, crm-admin, shop)
28
- - Verify guards redirect properly on unauthorized access
29
- - Check token storage (no `localStorage` for auth tokens)
30
- - Interceptors must attach auth tokens and handle 401/403 responses
31
- - Demo credentials in `AuthService` must be flagged for removal in production
32
-
33
- ### Monorepo-Specific
34
- - `libs/core/` and `libs/shared/` must not leak sensitive data across scopes
35
- - Nx Cloud configuration (`nxCloudId` in `nx.json`) should not expose tokens
36
- - API backend (`apps/api/`) must validate all inputs and require auth on protected endpoints
37
- - Docker configuration (`apps/api/Dockerfile`) should not include secrets in build layers
38
- - GitHub Actions workflows must use `secrets.*` for sensitive values, never hardcoded
39
-
40
- ### Data Exposure
41
- - No hardcoded API keys, tokens, or credentials in source code
42
- - No sensitive data in `console.log` statements
43
- - Error handling does not expose stack traces or internal errors to users
44
- - `.env` files not committed (verify `.gitignore`)
45
- - `nx-cloud.env` protected if it exists
46
-
47
- ### HTTP Security
48
- - API calls use HTTPS in production
49
- - CSRF protection for state-changing requests
50
- - CORS properly configured on the API backend
51
-
52
- ## Output Format
53
-
54
- ```
55
- [SEVERITY] file:line - Vulnerability description
56
- Category: {XSS|Auth|Monorepo|DataExposure|HTTP}
57
- Risk: {description of potential impact}
58
- Remediation: {specific fix}
59
- ```
60
-
61
- End with an executive summary: total findings, risk level, and prioritized action items.