@girardelli/architect 2.2.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/README.md +105 -116
  2. package/architect-run.sh +431 -0
  3. package/assets/banner-v3.html +561 -0
  4. package/dist/agent-generator/context-enricher.d.ts +58 -0
  5. package/dist/agent-generator/context-enricher.d.ts.map +1 -0
  6. package/dist/agent-generator/context-enricher.js +613 -0
  7. package/dist/agent-generator/context-enricher.js.map +1 -0
  8. package/dist/agent-generator/domain-inferrer.d.ts +52 -0
  9. package/dist/agent-generator/domain-inferrer.d.ts.map +1 -0
  10. package/dist/agent-generator/domain-inferrer.js +585 -0
  11. package/dist/agent-generator/domain-inferrer.js.map +1 -0
  12. package/dist/agent-generator/framework-detector.d.ts +40 -0
  13. package/dist/agent-generator/framework-detector.d.ts.map +1 -0
  14. package/dist/agent-generator/framework-detector.js +611 -0
  15. package/dist/agent-generator/framework-detector.js.map +1 -0
  16. package/dist/agent-generator/index.d.ts +47 -0
  17. package/dist/agent-generator/index.d.ts.map +1 -0
  18. package/dist/agent-generator/index.js +545 -0
  19. package/dist/agent-generator/index.js.map +1 -0
  20. package/dist/agent-generator/stack-detector.d.ts +14 -0
  21. package/dist/agent-generator/stack-detector.d.ts.map +1 -0
  22. package/dist/agent-generator/stack-detector.js +124 -0
  23. package/dist/agent-generator/stack-detector.js.map +1 -0
  24. package/dist/agent-generator/templates/core/agents.d.ts +17 -0
  25. package/dist/agent-generator/templates/core/agents.d.ts.map +1 -0
  26. package/dist/agent-generator/templates/core/agents.js +1256 -0
  27. package/dist/agent-generator/templates/core/agents.js.map +1 -0
  28. package/dist/agent-generator/templates/core/architecture-rules.d.ts +7 -0
  29. package/dist/agent-generator/templates/core/architecture-rules.d.ts.map +1 -0
  30. package/dist/agent-generator/templates/core/architecture-rules.js +274 -0
  31. package/dist/agent-generator/templates/core/architecture-rules.js.map +1 -0
  32. package/dist/agent-generator/templates/core/general-rules.d.ts +8 -0
  33. package/dist/agent-generator/templates/core/general-rules.d.ts.map +1 -0
  34. package/dist/agent-generator/templates/core/general-rules.js +301 -0
  35. package/dist/agent-generator/templates/core/general-rules.js.map +1 -0
  36. package/dist/agent-generator/templates/core/hooks-generator.d.ts +21 -0
  37. package/dist/agent-generator/templates/core/hooks-generator.d.ts.map +1 -0
  38. package/dist/agent-generator/templates/core/hooks-generator.js +233 -0
  39. package/dist/agent-generator/templates/core/hooks-generator.js.map +1 -0
  40. package/dist/agent-generator/templates/core/index-md.d.ts +7 -0
  41. package/dist/agent-generator/templates/core/index-md.d.ts.map +1 -0
  42. package/dist/agent-generator/templates/core/index-md.js +246 -0
  43. package/dist/agent-generator/templates/core/index-md.js.map +1 -0
  44. package/dist/agent-generator/templates/core/orchestrator.d.ts +8 -0
  45. package/dist/agent-generator/templates/core/orchestrator.d.ts.map +1 -0
  46. package/dist/agent-generator/templates/core/orchestrator.js +422 -0
  47. package/dist/agent-generator/templates/core/orchestrator.js.map +1 -0
  48. package/dist/agent-generator/templates/core/preflight.d.ts +8 -0
  49. package/dist/agent-generator/templates/core/preflight.d.ts.map +1 -0
  50. package/dist/agent-generator/templates/core/preflight.js +213 -0
  51. package/dist/agent-generator/templates/core/preflight.js.map +1 -0
  52. package/dist/agent-generator/templates/core/quality-gates.d.ts +11 -0
  53. package/dist/agent-generator/templates/core/quality-gates.d.ts.map +1 -0
  54. package/dist/agent-generator/templates/core/quality-gates.js +254 -0
  55. package/dist/agent-generator/templates/core/quality-gates.js.map +1 -0
  56. package/dist/agent-generator/templates/core/security-rules.d.ts +7 -0
  57. package/dist/agent-generator/templates/core/security-rules.d.ts.map +1 -0
  58. package/dist/agent-generator/templates/core/security-rules.js +528 -0
  59. package/dist/agent-generator/templates/core/security-rules.js.map +1 -0
  60. package/dist/agent-generator/templates/core/skills-generator.d.ts +19 -0
  61. package/dist/agent-generator/templates/core/skills-generator.d.ts.map +1 -0
  62. package/dist/agent-generator/templates/core/skills-generator.js +546 -0
  63. package/dist/agent-generator/templates/core/skills-generator.js.map +1 -0
  64. package/dist/agent-generator/templates/core/workflow-fix-bug.d.ts +7 -0
  65. package/dist/agent-generator/templates/core/workflow-fix-bug.d.ts.map +1 -0
  66. package/dist/agent-generator/templates/core/workflow-fix-bug.js +237 -0
  67. package/dist/agent-generator/templates/core/workflow-fix-bug.js.map +1 -0
  68. package/dist/agent-generator/templates/core/workflow-new-feature.d.ts +8 -0
  69. package/dist/agent-generator/templates/core/workflow-new-feature.d.ts.map +1 -0
  70. package/dist/agent-generator/templates/core/workflow-new-feature.js +321 -0
  71. package/dist/agent-generator/templates/core/workflow-new-feature.js.map +1 -0
  72. package/dist/agent-generator/templates/core/workflow-review.d.ts +7 -0
  73. package/dist/agent-generator/templates/core/workflow-review.d.ts.map +1 -0
  74. package/dist/agent-generator/templates/core/workflow-review.js +104 -0
  75. package/dist/agent-generator/templates/core/workflow-review.js.map +1 -0
  76. package/dist/agent-generator/templates/domain/index.d.ts +22 -0
  77. package/dist/agent-generator/templates/domain/index.d.ts.map +1 -0
  78. package/dist/agent-generator/templates/domain/index.js +1176 -0
  79. package/dist/agent-generator/templates/domain/index.js.map +1 -0
  80. package/dist/agent-generator/templates/stack/index.d.ts +8 -0
  81. package/dist/agent-generator/templates/stack/index.d.ts.map +1 -0
  82. package/dist/agent-generator/templates/stack/index.js +695 -0
  83. package/dist/agent-generator/templates/stack/index.js.map +1 -0
  84. package/dist/agent-generator/templates/template-helpers.d.ts +75 -0
  85. package/dist/agent-generator/templates/template-helpers.d.ts.map +1 -0
  86. package/dist/agent-generator/templates/template-helpers.js +726 -0
  87. package/dist/agent-generator/templates/template-helpers.js.map +1 -0
  88. package/dist/agent-generator/types.d.ts +196 -0
  89. package/dist/agent-generator/types.d.ts.map +1 -0
  90. package/dist/agent-generator/types.js +27 -0
  91. package/dist/agent-generator/types.js.map +1 -0
  92. package/dist/analyzer.d.ts +5 -0
  93. package/dist/analyzer.d.ts.map +1 -1
  94. package/dist/analyzer.js +46 -5
  95. package/dist/analyzer.js.map +1 -1
  96. package/dist/analyzers/forecast.d.ts +85 -0
  97. package/dist/analyzers/forecast.d.ts.map +1 -0
  98. package/dist/analyzers/forecast.js +337 -0
  99. package/dist/analyzers/forecast.js.map +1 -0
  100. package/dist/analyzers/git-cache.d.ts +7 -0
  101. package/dist/analyzers/git-cache.d.ts.map +1 -0
  102. package/dist/analyzers/git-cache.js +41 -0
  103. package/dist/analyzers/git-cache.js.map +1 -0
  104. package/dist/analyzers/git-history.d.ts +113 -0
  105. package/dist/analyzers/git-history.d.ts.map +1 -0
  106. package/dist/analyzers/git-history.js +333 -0
  107. package/dist/analyzers/git-history.js.map +1 -0
  108. package/dist/analyzers/index.d.ts +10 -0
  109. package/dist/analyzers/index.d.ts.map +1 -0
  110. package/dist/analyzers/index.js +7 -0
  111. package/dist/analyzers/index.js.map +1 -0
  112. package/dist/analyzers/temporal-scorer.d.ts +72 -0
  113. package/dist/analyzers/temporal-scorer.d.ts.map +1 -0
  114. package/dist/analyzers/temporal-scorer.js +140 -0
  115. package/dist/analyzers/temporal-scorer.js.map +1 -0
  116. package/dist/anti-patterns.d.ts +7 -0
  117. package/dist/anti-patterns.d.ts.map +1 -1
  118. package/dist/anti-patterns.js +25 -6
  119. package/dist/anti-patterns.js.map +1 -1
  120. package/dist/cli.d.ts +2 -3
  121. package/dist/cli.d.ts.map +1 -1
  122. package/dist/cli.js +275 -113
  123. package/dist/cli.js.map +1 -1
  124. package/dist/config.d.ts +6 -0
  125. package/dist/config.d.ts.map +1 -1
  126. package/dist/config.js +48 -11
  127. package/dist/config.js.map +1 -1
  128. package/dist/html-reporter.d.ts +3 -1
  129. package/dist/html-reporter.d.ts.map +1 -1
  130. package/dist/html-reporter.js +248 -12
  131. package/dist/html-reporter.js.map +1 -1
  132. package/dist/index.d.ts +16 -3
  133. package/dist/index.d.ts.map +1 -1
  134. package/dist/index.js +63 -4
  135. package/dist/index.js.map +1 -1
  136. package/dist/project-summarizer.d.ts +38 -0
  137. package/dist/project-summarizer.d.ts.map +1 -0
  138. package/dist/project-summarizer.js +463 -0
  139. package/dist/project-summarizer.js.map +1 -0
  140. package/dist/refactor-reporter.js +1 -1
  141. package/dist/scanner.d.ts +8 -2
  142. package/dist/scanner.d.ts.map +1 -1
  143. package/dist/scanner.js +153 -113
  144. package/dist/scanner.js.map +1 -1
  145. package/dist/scorer.d.ts.map +1 -1
  146. package/dist/scorer.js +24 -11
  147. package/dist/scorer.js.map +1 -1
  148. package/dist/types.d.ts +29 -0
  149. package/dist/types.d.ts.map +1 -1
  150. package/package.json +12 -3
  151. package/src/agent-generator/context-enricher.ts +672 -0
  152. package/src/agent-generator/domain-inferrer.ts +635 -0
  153. package/src/agent-generator/framework-detector.ts +669 -0
  154. package/src/agent-generator/index.ts +634 -0
  155. package/src/agent-generator/stack-detector.ts +115 -0
  156. package/src/agent-generator/templates/core/agents.ts +1296 -0
  157. package/src/agent-generator/templates/core/architecture-rules.ts +287 -0
  158. package/src/agent-generator/templates/core/general-rules.ts +306 -0
  159. package/src/agent-generator/templates/core/hooks-generator.ts +242 -0
  160. package/src/agent-generator/templates/core/index-md.ts +260 -0
  161. package/src/agent-generator/templates/core/orchestrator.ts +459 -0
  162. package/src/agent-generator/templates/core/preflight.ts +215 -0
  163. package/src/agent-generator/templates/core/quality-gates.ts +256 -0
  164. package/src/agent-generator/templates/core/security-rules.ts +543 -0
  165. package/src/agent-generator/templates/core/skills-generator.ts +585 -0
  166. package/src/agent-generator/templates/core/workflow-fix-bug.ts +239 -0
  167. package/src/agent-generator/templates/core/workflow-new-feature.ts +323 -0
  168. package/src/agent-generator/templates/core/workflow-review.ts +106 -0
  169. package/src/agent-generator/templates/domain/index.ts +1201 -0
  170. package/src/agent-generator/templates/stack/index.ts +705 -0
  171. package/src/agent-generator/templates/template-helpers.ts +776 -0
  172. package/src/agent-generator/types.ts +232 -0
  173. package/src/analyzer.ts +51 -5
  174. package/src/analyzers/forecast.ts +496 -0
  175. package/src/analyzers/git-cache.ts +52 -0
  176. package/src/analyzers/git-history.ts +488 -0
  177. package/src/analyzers/index.ts +33 -0
  178. package/src/analyzers/temporal-scorer.ts +227 -0
  179. package/src/anti-patterns.ts +29 -6
  180. package/src/cli.ts +316 -117
  181. package/src/config.ts +52 -11
  182. package/src/html-reporter.ts +263 -13
  183. package/src/index.ts +93 -10
  184. package/src/project-summarizer.ts +521 -0
  185. package/src/refactor-reporter.ts +1 -1
  186. package/src/scanner.ts +136 -90
  187. package/src/scorer.ts +26 -11
  188. package/src/types.ts +27 -0
  189. package/tests/agent-generator.test.ts +427 -0
  190. package/tests/analyzers-integration.test.ts +174 -0
  191. package/tests/architect-adapter-enrichment.test.ts +9 -0
  192. package/tests/context-enricher.test.ts +971 -0
  193. package/tests/fixtures/monorepo/package.json +6 -0
  194. package/tests/fixtures/monorepo/packages/app/package.json +12 -0
  195. package/tests/fixtures/monorepo/packages/app/src/index.ts +6 -0
  196. package/tests/fixtures/monorepo/packages/core/package.json +7 -0
  197. package/tests/fixtures/monorepo/packages/core/src/index.ts +7 -0
  198. package/tests/forecast.test.ts +509 -0
  199. package/tests/framework-detector.test.ts +1172 -0
  200. package/tests/git-history.test.ts +254 -0
  201. package/tests/monorepo-scan.test.ts +170 -0
  202. package/tests/scanner.test.ts +7 -8
  203. package/tests/scorer.test.ts +594 -0
  204. package/tests/stack-detector.test.ts +241 -0
  205. package/tests/template-generation.test.ts +706 -0
  206. package/tests/template-helpers.test.ts +1152 -0
  207. package/tests/temporal-scorer.test.ts +307 -0
  208. package/dist/agent-generator.d.ts +0 -106
  209. package/dist/agent-generator.d.ts.map +0 -1
  210. package/dist/agent-generator.js +0 -1398
  211. package/dist/agent-generator.js.map +0 -1
  212. package/src/agent-generator.ts +0 -1526
@@ -0,0 +1,233 @@
1
+ import { getEnriched } from '../template-helpers.js';
2
+ /**
3
+ * Generates executable hook scripts (.sh) for the .agent/hooks/ directory.
4
+ * These are real, runnable shell scripts tied to git lifecycle events.
5
+ *
6
+ * v5.1: Uses project-specific toolchain commands, score thresholds,
7
+ * and coverage targets from the enriched context.
8
+ */
9
+ /**
10
+ * Pre-commit hook: lint + build check
11
+ */
12
+ export function generatePreCommitHook(ctx) {
13
+ const enriched = getEnriched(ctx);
14
+ const tc = enriched.toolchain;
15
+ const config = ctx.config;
16
+ const projectName = ctx.projectName;
17
+ const lintCmd = tc?.lintCmd || 'npx eslint .';
18
+ const buildCmd = tc?.buildCmd || 'npm run build';
19
+ return `#!/bin/bash
20
+ # ============================================================
21
+ # PRE-COMMIT HOOK — ${projectName}
22
+ # Gerado por Architect v5.1
23
+ #
24
+ # Instalação:
25
+ # cp .agent/hooks/pre-commit.sh .git/hooks/pre-commit
26
+ # chmod +x .git/hooks/pre-commit
27
+ # ============================================================
28
+
29
+ set -e
30
+
31
+ echo "🔍 [pre-commit] Verificando qualidade do código..."
32
+
33
+ # ── 1. Branch Safety ──
34
+ BRANCH=$(git branch --show-current)
35
+ if [[ "$BRANCH" == "main" || "$BRANCH" == "master" || "$BRANCH" == "staging" || "$BRANCH" == "develop" ]]; then
36
+ echo "❌ BLOQUEADO: Commit direto em '$BRANCH' é proibido."
37
+ echo " Crie uma branch: git checkout -b feature/<nome>"
38
+ exit 1
39
+ fi
40
+
41
+ # ── 2. Secrets Check ──
42
+ echo "🔐 Verificando secrets..."
43
+ SECRETS_PATTERN='(password|secret|api[_-]?key|access[_-]?token|private[_-]?key)\\s*[:=]\\s*["\\'\\x60][^"\\x60]{8,}'
44
+
45
+ STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM)
46
+ if echo "$STAGED_FILES" | xargs grep -ilE "$SECRETS_PATTERN" 2>/dev/null; then
47
+ echo "❌ BLOQUEADO: Possível secret detectado nos arquivos staged."
48
+ echo " Remova o secret e use variáveis de ambiente."
49
+ exit 1
50
+ fi
51
+
52
+ # ── 3. File Size Check ──
53
+ echo "📏 Verificando tamanho de arquivos..."
54
+ for file in $STAGED_FILES; do
55
+ if [ -f "$file" ]; then
56
+ LINES=$(wc -l < "$file" 2>/dev/null || echo "0")
57
+ if [ "$LINES" -gt 500 ]; then
58
+ echo "⚠️ AVISO: $file tem $LINES linhas (limite: 500)"
59
+ fi
60
+ fi
61
+ done
62
+
63
+ # ── 4. Lint ──
64
+ echo "🧹 Executando lint..."
65
+ ${lintCmd} --quiet 2>/dev/null || {
66
+ echo "❌ BLOQUEADO: Lint falhou."
67
+ echo " Corrija: ${lintCmd}"
68
+ exit 1
69
+ }
70
+
71
+ # ── 5. Build ──
72
+ echo "🔨 Verificando build..."
73
+ ${buildCmd} 2>/dev/null || {
74
+ echo "❌ BLOQUEADO: Build falhou."
75
+ echo " Corrija: ${buildCmd}"
76
+ exit 1
77
+ }
78
+
79
+ # ── 6. Debug Statements ──
80
+ echo "🐛 Verificando debug statements..."
81
+ if echo "$STAGED_FILES" | xargs grep -n 'console\\.log\\|debugger\\|print(' 2>/dev/null | grep -v 'node_modules' | grep -v '.test.'; then
82
+ echo "⚠️ AVISO: Debug statements encontrados. Remova antes do merge."
83
+ fi
84
+
85
+ echo "✅ [pre-commit] Tudo OK — commit liberado."
86
+ exit 0
87
+ `;
88
+ }
89
+ /**
90
+ * Pre-push hook: test + score gate
91
+ */
92
+ export function generatePrePushHook(ctx) {
93
+ const enriched = getEnriched(ctx);
94
+ const tc = enriched.toolchain;
95
+ const config = ctx.config;
96
+ const projectName = ctx.projectName;
97
+ const testCmd = tc?.testCmd || 'npm test';
98
+ const coverageCmd = tc?.coverageCmd || 'npm run test -- --coverage';
99
+ return `#!/bin/bash
100
+ # ============================================================
101
+ # PRE-PUSH HOOK — ${projectName}
102
+ # Gerado por Architect v5.1
103
+ #
104
+ # Instalação:
105
+ # cp .agent/hooks/pre-push.sh .git/hooks/pre-push
106
+ # chmod +x .git/hooks/pre-push
107
+ # ============================================================
108
+
109
+ set -e
110
+
111
+ echo "🚀 [pre-push] Verificação completa antes do push..."
112
+
113
+ # ── 1. Branch Safety ──
114
+ BRANCH=$(git branch --show-current)
115
+ if [[ "$BRANCH" == "main" || "$BRANCH" == "master" ]]; then
116
+ echo "❌ BLOQUEADO: Push direto para '$BRANCH' é proibido."
117
+ echo " Use Pull Request."
118
+ exit 1
119
+ fi
120
+
121
+ # ── 2. Full Test Suite ──
122
+ echo "🧪 Executando testes completos..."
123
+ ${testCmd} || {
124
+ echo "❌ BLOQUEADO: Testes falharam."
125
+ echo " Corrija antes de fazer push."
126
+ exit 1
127
+ }
128
+
129
+ # ── 3. Coverage Gate ──
130
+ echo "📊 Verificando cobertura (mínimo: ${config.coverageMinimum}%)..."
131
+ COVERAGE_OUTPUT=$(${coverageCmd} 2>&1 || true)
132
+ echo "$COVERAGE_OUTPUT" | tail -5
133
+
134
+ # Parse coverage percentage (works with Jest/Istanbul output)
135
+ COVERAGE=$(echo "$COVERAGE_OUTPUT" | grep -oP 'All files[^|]*\\|\\s*[\\d.]+' | grep -oP '[\\d.]+$' || echo "0")
136
+ if [ -n "$COVERAGE" ]; then
137
+ COVERAGE_INT=\${COVERAGE%.*}
138
+ if [ "$COVERAGE_INT" -lt ${config.coverageMinimum} ] 2>/dev/null; then
139
+ echo "⚠️ AVISO: Cobertura ($COVERAGE_INT%) abaixo do mínimo (${config.coverageMinimum}%)"
140
+ fi
141
+ fi
142
+
143
+ # ── 4. Architecture Score Gate ──
144
+ echo "🏗️ Verificando score de arquitetura (mínimo: ${config.scoreThreshold}/100)..."
145
+ if command -v architect &> /dev/null; then
146
+ SCORE=$(architect score . --json 2>/dev/null | grep -oP '"overall":\\s*\\K[0-9]+' || echo "N/A")
147
+ if [ "$SCORE" != "N/A" ] && [ "$SCORE" -lt ${config.scoreThreshold} ] 2>/dev/null; then
148
+ echo "❌ BLOQUEADO: Score ($SCORE/100) abaixo do mínimo (${config.scoreThreshold}/100)"
149
+ exit 1
150
+ fi
151
+ echo " Score: $SCORE/100 ✅"
152
+ else
153
+ echo " ⏭️ architect não instalado — skip score gate"
154
+ fi
155
+
156
+ echo "✅ [pre-push] Tudo OK — push liberado."
157
+ exit 0
158
+ `;
159
+ }
160
+ /**
161
+ * Post-analysis hook: remediation actions
162
+ */
163
+ export function generatePostAnalysisHook(ctx) {
164
+ const enriched = getEnriched(ctx);
165
+ const projectName = ctx.projectName;
166
+ const report = ctx.report;
167
+ return `#!/bin/bash
168
+ # ============================================================
169
+ # POST-ANALYSIS HOOK — ${projectName}
170
+ # Gerado por Architect v5.1
171
+ #
172
+ # Executa após 'architect analyze .' para gerar ações
173
+ # de remediação automáticas.
174
+ #
175
+ # Uso:
176
+ # architect analyze . && bash .agent/hooks/post-analysis.sh
177
+ # ============================================================
178
+
179
+ set -e
180
+
181
+ echo "🔧 [post-analysis] Processando resultados da análise..."
182
+
183
+ REPORT_JSON="architect-report.json"
184
+ REPORT_HTML="architect-report.html"
185
+
186
+ # ── 1. Score Evolution ──
187
+ CURRENT_SCORE=${report.score.overall}
188
+ echo "📊 Score atual: $CURRENT_SCORE/100"
189
+ echo " Meta curto prazo: ${Math.min(100, report.score.overall + 5)}/100"
190
+ echo " Meta médio prazo: ${Math.min(100, report.score.overall + 10)}/100"
191
+
192
+ # ── 2. Critical Anti-Patterns Alert ──
193
+ CRITICAL_COUNT=$(grep -c '"severity":"CRITICAL"' "$REPORT_JSON" 2>/dev/null || echo "0")
194
+ HIGH_COUNT=$(grep -c '"severity":"HIGH"' "$REPORT_JSON" 2>/dev/null || echo "0")
195
+
196
+ if [ "$CRITICAL_COUNT" -gt 0 ]; then
197
+ echo ""
198
+ echo "🔴 ATENÇÃO: $CRITICAL_COUNT anti-patterns CRÍTICOS detectados!"
199
+ echo " Resolva antes do próximo sprint."
200
+ fi
201
+
202
+ if [ "$HIGH_COUNT" -gt 0 ]; then
203
+ echo "🟠 $HIGH_COUNT anti-patterns HIGH detectados."
204
+ fi
205
+
206
+ # ── 3. Generate Summary ──
207
+ echo ""
208
+ echo "📋 Resumo:"
209
+ echo " Arquivos: ${report.projectInfo.totalFiles}"
210
+ echo " Linhas: ${report.projectInfo.totalLines.toLocaleString()}"
211
+ echo " Anti-patterns: ${report.antiPatterns.length}"
212
+ echo ""
213
+
214
+ # ── 4. Suggestions ──
215
+ if [ -f "$REPORT_JSON" ]; then
216
+ echo "💡 Top 5 sugestões:"
217
+ cat "$REPORT_JSON" | python3 -c "
218
+ import json, sys
219
+ data = json.load(sys.stdin)
220
+ for s in data.get('suggestions', [])[:5]:
221
+ print(f' → {s.get(\"description\", \"\")}')
222
+ " 2>/dev/null || echo " (instale python3 para ver sugestões)"
223
+ fi
224
+
225
+ echo ""
226
+ echo "📄 Report HTML: $REPORT_HTML"
227
+ echo "📦 Report JSON: $REPORT_JSON"
228
+ echo ""
229
+ echo "✅ [post-analysis] Concluído."
230
+ exit 0
231
+ `;
232
+ }
233
+ //# sourceMappingURL=hooks-generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks-generator.js","sourceRoot":"","sources":["../../../../src/agent-generator/templates/core/hooks-generator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;;;;GAMG;AAEH;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,GAA8C;IAClF,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;IAClC,MAAM,EAAE,GAAG,QAAQ,CAAC,SAAS,CAAC;IAC9B,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAC1B,MAAM,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;IAEpC,MAAM,OAAO,GAAG,EAAE,EAAE,OAAO,IAAI,cAAc,CAAC;IAC9C,MAAM,QAAQ,GAAG,EAAE,EAAE,QAAQ,IAAI,eAAe,CAAC;IAEjD,OAAO;;sBAEa,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4C/B,OAAO;;sBAEa,OAAO;;;;;;EAM3B,QAAQ;;sBAEY,QAAQ;;;;;;;;;;;;CAY7B,CAAC;AACF,CAAC;AAED;;GAEG;A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,CAAC,cAAc,EAAE;0BACvC,MAAM,CAAC,YAAY,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;CAoBnD,CAAC;AACF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { TemplateContext } from '../../types.js';
2
+ /**
3
+ * Generates enterprise-grade INDEX.md — master navigation guide for the agent framework.
4
+ * ~350+ lines with: mandatory reads, situational guide, agent catalog, templates, flow diagram.
5
+ */
6
+ export declare function generateIndexMd(ctx: TemplateContext): string;
7
+ //# sourceMappingURL=index-md.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-md.d.ts","sourceRoot":"","sources":["../../../../src/agent-generator/templates/core/index-md.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,eAAe,GAAG,MAAM,CAwL5D"}
@@ -0,0 +1,246 @@
1
+ /**
2
+ * Generates enterprise-grade INDEX.md — master navigation guide for the agent framework.
3
+ * ~350+ lines with: mandatory reads, situational guide, agent catalog, templates, flow diagram.
4
+ */
5
+ export function generateIndexMd(ctx) {
6
+ const { report, stack, projectName, stackLabel, plan, config } = ctx;
7
+ const agents = buildAgentCatalog(ctx);
8
+ const situationalGuide = buildSituationalGuide(ctx);
9
+ const templates = buildTemplatesCatalog();
10
+ return `# ${projectName} — Agent Framework
11
+
12
+ > **Auto-generated by [Architect v3.1](https://github.com/camilooscargbaptista/architect)**
13
+ > Stack: **${stackLabel}** | Score: **${report.score.overall}/100** | Files: **${report.projectInfo.totalFiles}** | Lines: **${report.projectInfo.totalLines.toLocaleString()}**
14
+
15
+ ---
16
+
17
+ ## ⛔ PARE AQUI — LEITURA OBRIGATÓRIA
18
+
19
+ > **Antes de qualquer ação, leia estes documentos NA ORDEM.**
20
+ > Pular esta etapa é violação do protocolo.
21
+
22
+ | # | Arquivo | O que contém | Quando ler |
23
+ |---|---------|-------------|-----------|
24
+ | 1 | [00-general.md](./rules/00-general.md) | Regras de Ouro, convenções, identidade do projeto | **SEMPRE** |
25
+ | 2 | [PREFLIGHT.md](./guards/PREFLIGHT.md) | Checklist pré-ação por camada | **SEMPRE** |
26
+ | 3 | [QUALITY-GATES.md](./guards/QUALITY-GATES.md) | Métricas mínimas, blockers, processo de verificação | **SEMPRE** |
27
+ | 4 | [CODE-REVIEW-CHECKLIST.md](./guards/CODE-REVIEW-CHECKLIST.md) | Pontos obrigatórios de revisão | Antes de PR |
28
+
29
+ ---
30
+
31
+ ## 🗺️ Guia Situacional
32
+
33
+ > **"O que vou fazer?"** → Siga a coluna correspondente.
34
+
35
+ ${situationalGuide}
36
+
37
+ ---
38
+
39
+ ## 🤖 Agentes Disponíveis
40
+
41
+ ${agents}
42
+
43
+ ---
44
+
45
+ ## 📋 Templates Disponíveis
46
+
47
+ ${templates}
48
+
49
+ ---
50
+
51
+ ## 📁 Estrutura do Framework
52
+
53
+ \`\`\`
54
+ .agent/
55
+ ├── INDEX.md ← VOCÊ ESTÁ AQUI
56
+ ├── agents/ → Agentes especializados
57
+ │ ├── AGENT-ORCHESTRATOR.md
58
+ ${stack.hasBackend ? `│ ├── ${stack.primary.toUpperCase()}-BACKEND-DEVELOPER.md\n` : ''}${stack.hasFrontend ? `│ ├── FRONTEND-DEVELOPER.md\n` : ''}${stack.hasMobile ? `│ ├── FLUTTER-UI-DEVELOPER.md\n` : ''}${stack.hasDatabase ? `│ ├── DATABASE-ENGINEER.md\n` : ''}│ ├── SECURITY-AUDITOR.md
59
+ │ ├── QA-TEST-ENGINEER.md
60
+ │ └── TECH-DEBT-CONTROLLER.md
61
+ ├── rules/ → Regras de codificação
62
+ │ ├── 00-general.md
63
+ │ ├── 01-architecture.md
64
+ │ └── 02-security.md
65
+ ├── guards/ → Checklists e quality gates
66
+ │ ├── PREFLIGHT.md
67
+ │ ├── QUALITY-GATES.md
68
+ │ └── CODE-REVIEW-CHECKLIST.md
69
+ ├── workflows/ → Fluxos de trabalho
70
+ │ ├── new-feature.md
71
+ │ ├── fix-bug.md
72
+ │ └── review.md
73
+ ├── templates/ → Templates reutilizáveis
74
+ │ ├── C4.md
75
+ │ ├── BDD.md
76
+ │ ├── TDD.md
77
+ │ ├── ADR.md
78
+ │ └── THREAT-MODEL.md
79
+ └── skills/ → Padrões e referências
80
+ \`\`\`
81
+
82
+ ---
83
+
84
+ ## 🔄 Fluxo Completo de Desenvolvimento
85
+
86
+ \`\`\`
87
+ REQUISIÇÃO RECEBIDA
88
+
89
+
90
+ ┌──────────────────┐
91
+ │ PREFLIGHT.md │ ← Ler OBRIGATÓRIO
92
+ │ (diagnóstico) │
93
+ └────────┬─────────┘
94
+
95
+
96
+ ┌──────────────────┐
97
+ │ ORCHESTRATOR │ ← Decompõe a requisição
98
+ │ (classificar) │
99
+ └────────┬─────────┘
100
+
101
+
102
+ ┌──────────────────────────────────────┐
103
+ │ 6 GATES OBRIGATÓRIOS │
104
+ │ │
105
+ │ 1. MOCKUP (se tem UI) │
106
+ │ 2. User Stories │
107
+ │ 3. Arquitetura (C4) │
108
+ │ 4. Tarefas (breakdown) │
109
+ │ 5. BDD (cenários) │
110
+ │ 6. TDD (casos de teste) │
111
+ │ │
112
+ │ ⚠️ /approved após cada gate │
113
+ └────────┬─────────────────────────────┘
114
+
115
+
116
+ ┌──────────────────────────────────────┐
117
+ │ IMPLEMENTAÇÃO (ordenada) │
118
+ │ │
119
+ │ 1° Backend (se houver) │
120
+ │ 2° Documento de Integração │
121
+ │ 3° Frontend / App (se houver) │
122
+ └────────┬─────────────────────────────┘
123
+
124
+
125
+ ┌──────────────────┐
126
+ │ QUALITY-GATES │ ← Build + Coverage ≥ ${config.coverageMinimum}%
127
+ │ (verificação) │
128
+ └────────┬─────────┘
129
+
130
+
131
+ ┌──────────────────┐
132
+ │ CODE REVIEW │ ← Checklist obrigatório
133
+ │ (PR) │
134
+ └────────┬─────────┘
135
+
136
+
137
+ ✅ DONE
138
+ \`\`\`
139
+
140
+ ---
141
+
142
+ ## ⚡ Atalhos Rápidos
143
+
144
+ | Situação | Comando / Workflow |
145
+ |----------|-------------------|
146
+ | Nova feature | \`/new-feature\` → [workflow](./workflows/new-feature.md) |
147
+ | Corrigir bug | \`/fix-bug\` → [workflow](./workflows/fix-bug.md) |
148
+ | Code review | \`/review\` → [workflow](./workflows/review.md) |
149
+ | Verificar qualidade | \`architect score ./src\` |
150
+ | Analisar arquitetura | \`architect analyze ./src\` |
151
+
152
+ ---
153
+
154
+ ## 🔌 Plugin Recomendado
155
+
156
+ Para análise contínua de arquitetura e manutenção do score:
157
+
158
+ \`\`\`
159
+ ┌─────────────────────────────────────────────┐
160
+ │ 📦 @girardelli/architect │
161
+ │ Plugin para Claude Code │
162
+ │ │
163
+ │ npm install -g @girardelli/architect │
164
+ │ │
165
+ │ Comandos: │
166
+ │ • architect analyze ./src │
167
+ │ • architect score ./src │
168
+ │ • architect agents ./src │
169
+ │ • architect refactor ./src │
170
+ │ │
171
+ │ Score atual: ${String(report.score.overall).padEnd(2)}/100 │
172
+ │ Meta: ${String(Math.min(100, report.score.overall + 10)).padEnd(3)}/100 │
173
+ └─────────────────────────────────────────────┘
174
+ \`\`\`
175
+
176
+ ---
177
+
178
+ ## ⚠️ REGRA DE OURO
179
+
180
+ > **Na dúvida, PARA e PERGUNTA ao humano.**
181
+ > Nunca assuma. Nunca decida sozinho. Sempre valide.
182
+
183
+ ---
184
+
185
+ **Gerado por Architect v3.1 · Score: ${report.score.overall}/100 · ${new Date().toISOString().split('T')[0]}**
186
+ `;
187
+ }
188
+ function buildAgentCatalog(ctx) {
189
+ const { stack } = ctx;
190
+ const rows = [];
191
+ rows.push('| Agente | Role | Capabilities |');
192
+ rows.push('|--------|------|-------------|');
193
+ rows.push('| [AGENT-ORCHESTRATOR](./agents/AGENT-ORCHESTRATOR.md) | coordination | Decomposição, dispatch, consolidação, quality gate |');
194
+ if (stack.hasBackend) {
195
+ rows.push(`| [${stack.primary.toUpperCase()}-BACKEND-DEVELOPER](./agents/${stack.primary.toUpperCase()}-BACKEND-DEVELOPER.md) | development | APIs, serviços, lógica de negócio, migrations |`);
196
+ }
197
+ if (stack.hasFrontend) {
198
+ const fw = stack.frameworks.find(f => ['Angular', 'Vue', 'Next.js', 'React'].includes(f)) || 'FRONTEND';
199
+ rows.push(`| [${fw.toUpperCase().replace('.', '')}-FRONTEND-DEVELOPER](./agents/${fw.toUpperCase().replace('.', '')}-FRONTEND-DEVELOPER.md) | development | Componentes, state management, UX responsiva |`);
200
+ }
201
+ if (stack.hasMobile) {
202
+ rows.push('| [FLUTTER-UI-DEVELOPER](./agents/FLUTTER-UI-DEVELOPER.md) | development | Screens, widgets, navegação, integração API |');
203
+ }
204
+ if (stack.hasDatabase) {
205
+ rows.push('| [DATABASE-ENGINEER](./agents/DATABASE-ENGINEER.md) | development | Schema, migrations, indexação, performance |');
206
+ }
207
+ rows.push('| [SECURITY-AUDITOR](./agents/SECURITY-AUDITOR.md) | quality | Ameaças STRIDE, OWASP, LGPD, vulnerabilidades |');
208
+ rows.push('| [QA-TEST-ENGINEER](./agents/QA-TEST-ENGINEER.md) | quality | Planos de teste, BDD/TDD, cobertura, regressão |');
209
+ rows.push('| [TECH-DEBT-CONTROLLER](./agents/TECH-DEBT-CONTROLLER.md) | governance | Débito técnico, refatorações, metas de score |');
210
+ return rows.join('\n');
211
+ }
212
+ function buildSituationalGuide(ctx) {
213
+ const { stack } = ctx;
214
+ const rows = [];
215
+ rows.push('| Ação | Leia antes | Workflow | Agente principal |');
216
+ rows.push('|------|-----------|---------|-----------------|');
217
+ rows.push('| Nova feature | 00-general + PREFLIGHT | [new-feature](./workflows/new-feature.md) | ORCHESTRATOR |');
218
+ rows.push('| Corrigir bug | 00-general + PREFLIGHT | [fix-bug](./workflows/fix-bug.md) | ORCHESTRATOR |');
219
+ if (stack.hasBackend) {
220
+ rows.push(`| Mexer em backend | 00-general + 01-architecture | new-feature ou fix-bug | ${stack.primary.toUpperCase()}-BACKEND |`);
221
+ }
222
+ if (stack.hasFrontend) {
223
+ rows.push('| Mexer em frontend | 00-general + 01-architecture | new-feature ou fix-bug | FRONTEND |');
224
+ }
225
+ if (stack.hasMobile) {
226
+ rows.push('| Mexer no app | 00-general | new-feature ou fix-bug | FLUTTER-UI |');
227
+ }
228
+ if (stack.hasDatabase) {
229
+ rows.push('| Mexer em banco | 00-general + 01-architecture | new-feature | DATABASE-ENGINEER |');
230
+ }
231
+ rows.push('| Segurança | 02-security | — | SECURITY-AUDITOR |');
232
+ rows.push('| Testes | 00-general | — | QA-TEST-ENGINEER |');
233
+ rows.push('| Refatoração | QUALITY-GATES | — | TECH-DEBT-CONTROLLER |');
234
+ rows.push('| Code review | CODE-REVIEW-CHECKLIST | [review](./workflows/review.md) | QA-TEST-ENGINEER |');
235
+ return rows.join('\n');
236
+ }
237
+ function buildTemplatesCatalog() {
238
+ return `| Template | Arquivo | Quando usar |
239
+ |----------|---------|-----------|
240
+ | C4 Architecture | [C4.md](./templates/C4.md) | Documentar arquitetura de qualquer feature |
241
+ | BDD Scenarios | [BDD.md](./templates/BDD.md) | Antes de implementar — cenários de aceite |
242
+ | TDD Cases | [TDD.md](./templates/TDD.md) | Antes de implementar — casos de teste |
243
+ | ADR | [ADR.md](./templates/ADR.md) | Decisões arquiteturais significativas |
244
+ | Threat Model | [THREAT-MODEL.md](./templates/THREAT-MODEL.md) | Features que lidam com dados sensíveis |`;
245
+ }
246
+ //# sourceMappingURL=index-md.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-md.js","sourceRoot":"","sources":["../../../../src/agent-generator/templates/core/index-md.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,GAAoB;IAClD,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC;IAErE,MAAM,MAAM,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,gBAAgB,GAAG,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@ -0,0 +1,8 @@
1
+ import { TemplateContext, EnrichedTemplateContext } from '../../types.js';
2
+ /**
3
+ * Generates enterprise-grade AGENT-ORCHESTRATOR.md
4
+ * ~800+ lines: 5-phase protocol, mandatory artifact gates, business interrogation,
5
+ * parallel dispatch, C4/BDD/TDD inline templates, risk matrix, implementation order.
6
+ */
7
+ export declare function generateOrchestrator(ctx: TemplateContext | EnrichedTemplateContext): string;
8
+ //# sourceMappingURL=orchestrator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../../../../src/agent-generator/templates/core/orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAgB1E;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,eAAe,GAAG,uBAAuB,GAAG,MAAM,CA6U3F"}