up-cc 0.3.3 → 0.4.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 (58) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +259 -49
  3. package/agents/up-api-tester.md +405 -0
  4. package/agents/up-arquiteto.md +461 -0
  5. package/agents/up-backend-specialist.md +158 -0
  6. package/agents/up-blind-validator.md +259 -0
  7. package/agents/up-clone-crawler.md +234 -0
  8. package/agents/up-clone-design-extractor.md +227 -0
  9. package/agents/up-clone-feature-mapper.md +225 -0
  10. package/agents/up-clone-prd-writer.md +169 -0
  11. package/agents/up-clone-verifier.md +227 -0
  12. package/agents/up-code-reviewer.md +225 -0
  13. package/agents/up-database-specialist.md +152 -0
  14. package/agents/up-devops-agent.md +203 -0
  15. package/agents/up-executor.md +45 -5
  16. package/agents/up-exhaustive-tester.md +348 -0
  17. package/agents/up-frontend-specialist.md +135 -0
  18. package/agents/up-product-analyst.md +192 -0
  19. package/agents/up-qa-agent.md +171 -0
  20. package/agents/up-requirements-validator.md +230 -0
  21. package/agents/up-security-reviewer.md +137 -0
  22. package/agents/up-system-designer.md +332 -0
  23. package/agents/up-technical-writer.md +188 -0
  24. package/agents/up-visual-critic.md +358 -0
  25. package/bin/up-tools.cjs +84 -2
  26. package/commands/clone-builder.md +67 -0
  27. package/commands/dashboard.md +48 -0
  28. package/commands/depurar.md +1 -1
  29. package/commands/mobile-first.md +71 -0
  30. package/commands/modo-builder.md +178 -0
  31. package/commands/ux-tester.md +63 -0
  32. package/package.json +1 -1
  33. package/references/blueprints/audit.md +29 -0
  34. package/references/blueprints/booking.md +49 -0
  35. package/references/blueprints/community.md +48 -0
  36. package/references/blueprints/crm.md +40 -0
  37. package/references/blueprints/dashboard.md +48 -0
  38. package/references/blueprints/data-management.md +42 -0
  39. package/references/blueprints/ecommerce.md +51 -0
  40. package/references/blueprints/marketplace.md +48 -0
  41. package/references/blueprints/notifications.md +32 -0
  42. package/references/blueprints/saas-users.md +50 -0
  43. package/references/blueprints/settings.md +31 -0
  44. package/references/engineering-principles.md +205 -0
  45. package/references/production-requirements.md +106 -0
  46. package/references/state-persistence.md +74 -0
  47. package/templates/builder-defaults.md +73 -0
  48. package/templates/delivery.md +279 -0
  49. package/templates/design-tokens.md +151 -0
  50. package/workflows/builder-e2e.md +501 -0
  51. package/workflows/builder.md +2248 -0
  52. package/workflows/clone-builder.md +320 -0
  53. package/workflows/executar-fase.md +28 -2
  54. package/workflows/executar-plano.md +404 -6
  55. package/workflows/mobile-first.md +692 -0
  56. package/workflows/novo-projeto.md +22 -0
  57. package/workflows/rapido.md +1 -1
  58. package/workflows/ux-tester.md +500 -0
@@ -0,0 +1,279 @@
1
+ # Delivery Report Template
2
+
3
+ Template para `.plano/DELIVERY.md` -- relatorio de entrega final gerado pelo modo builder.
4
+
5
+ <template>
6
+
7
+ ```markdown
8
+ # Entrega: [Nome do Projeto]
9
+
10
+ ## Resumo
11
+
12
+ [O que foi construido em 2-3 frases. Descrever o produto, nao o processo.]
13
+
14
+ ## Quality Score
15
+
16
+ **Score Final: [N]/10** (apos [X] ciclos de refinamento)
17
+
18
+ | Dimensao | Score | Peso |
19
+ |----------|-------|------|
20
+ | Funcionalidade | [N]/10 | 25% |
21
+ | E2E | [N]/10 | 20% |
22
+ | UX | [N]/10 | 15% |
23
+ | Responsividade | [N]/10 | 15% |
24
+ | Codigo | [N]/10 | 15% |
25
+ | Completude | [N]/10 | 10% |
26
+
27
+ **Ciclos de refinamento:** [N]
28
+ **Score inicial:** [N]/10 → **Score final:** [N]/10
29
+
30
+ ## Stack Utilizada
31
+
32
+ | Camada | Tecnologia | Versao |
33
+ |--------|-----------|--------|
34
+ | Frontend | [framework] | [versao] |
35
+ | Backend | [framework/servico] | [versao] |
36
+ | Database | [banco] | [versao] |
37
+ | Auth | [metodo] | -- |
38
+ | Deploy | [plataforma] | -- |
39
+
40
+ ## O que foi Entregue
41
+
42
+ [Para cada fase completada:]
43
+
44
+ ### Fase [N]: [Nome]
45
+ - [Entregavel 1]
46
+ - [Entregavel 2]
47
+ - [Entregavel 3]
48
+
49
+ ## Requisitos Atendidos
50
+
51
+ **[X] de [Y] requisitos completos**
52
+
53
+ ### Completos
54
+ - [x] [REQ-ID]: [Descricao]
55
+
56
+ ### Pendentes (se houver)
57
+ - [ ] [REQ-ID]: [Descricao] -- [motivo]
58
+
59
+ ## Testes E2E (Playwright)
60
+
61
+ [Resultados do teste E2E final — de .plano/e2e/E2E-REPORT.md]
62
+
63
+ ### Rotas Testadas
64
+
65
+ | Rota | Status | Screenshot |
66
+ |------|--------|------------|
67
+ | / | OK | .plano/e2e/smoke/index.png |
68
+ | /dashboard | OK | .plano/e2e/smoke/dashboard.png |
69
+
70
+ **Rotas acessiveis:** [N]/[M]
71
+
72
+ ### Fluxos E2E
73
+
74
+ | Fluxo | Passos | Resultado |
75
+ |-------|--------|-----------|
76
+ | [Nome do fluxo 1] | [N] | PASSOU |
77
+ | [Nome do fluxo 2] | [N] | FALHOU no passo [X] |
78
+
79
+ ### Responsividade
80
+
81
+ | Viewport | Screenshot | Status |
82
+ |----------|-----------|--------|
83
+ | Desktop (1920x1080) | .plano/e2e/responsive/desktop.png | OK |
84
+ | Tablet (768x1024) | .plano/e2e/responsive/tablet.png | [status] |
85
+ | Mobile (375x812) | .plano/e2e/responsive/mobile.png | [status] |
86
+
87
+ ### Bugs Encontrados nos Testes
88
+
89
+ | # | Descricao | Severidade | Corrigido? |
90
+ |---|-----------|-----------|-----------|
91
+ | 1 | [bug] | [alta/media/baixa] | Sim/Nao |
92
+
93
+ **Total:** [N] bugs encontrados, [M] corrigidos automaticamente
94
+
95
+ ### Testes Pendentes de Credenciais
96
+
97
+ [Testes que o builder nao conseguiu executar por precisar de credenciais/acesso do usuario]
98
+
99
+ | O que testar | Credencial necessaria | Como obter | Prioridade |
100
+ |-------------|----------------------|-----------|-----------|
101
+ | [ex: Integração Instagram] | [Cookie de sessão] | [Login manual no Playwright] | [Alta/Media] |
102
+
103
+ **Instrucoes:** Para testar manualmente, rode `/up:ux-tester` ou `/up:verificar-trabalho` apos configurar as credenciais acima.
104
+
105
+ Relatorio completo: `.plano/e2e/E2E-REPORT.md`
106
+ Screenshots: `.plano/e2e/`
107
+
108
+ ## UX Review (Navegacao como Usuario Real)
109
+
110
+ [Resultados do UX Tester — de .plano/ux-review/UX-REPORT.md]
111
+
112
+ **Score Geral:** [N]/10
113
+
114
+ | Dimensao | Score |
115
+ |----------|-------|
116
+ | Clareza | [N]/10 |
117
+ | Eficiencia | [N]/10 |
118
+ | Feedback | [N]/10 |
119
+ | Consistencia | [N]/10 |
120
+ | Acessibilidade | [N]/10 |
121
+ | Performance Percebida | [N]/10 |
122
+
123
+ ### Melhorias UX Implementadas
124
+
125
+ | ID | Melhoria | Dimensao |
126
+ |----|----------|----------|
127
+ | UX-001 | [descricao] | [dimensao] |
128
+ | UX-002 | [descricao] | [dimensao] |
129
+
130
+ **Implementadas:** [N] (incluindo componentes novos e ajustes de fluxo)
131
+ **Tentativas falhas (revertidas):** [N]
132
+
133
+ ### Tentativas Falhas
134
+ [Mudancas que o UX Tester tentou mas reverteu por quebrar funcionalidade]
135
+
136
+ Relatorio completo: `.plano/ux-review/UX-REPORT.md`
137
+ Screenshots: `.plano/ux-review/screenshots/`
138
+
139
+ ## Responsividade Mobile (Mobile First)
140
+
141
+ [Resultados do Mobile First — de .plano/mobile-review/MOBILE-REPORT.md]
142
+
143
+ **Score de Responsividade:** [N]/10
144
+
145
+ | Viewport | Paginas OK | Problemas | Corrigidos |
146
+ |----------|-----------|-----------|-----------|
147
+ | Mobile (390px) | [N] | [N] | [N] |
148
+ | Tablet (768px) | [N] | [N] | [N] |
149
+ | Desktop (1920px) | [N] (referencia) | -- | -- |
150
+
151
+ ### Correcoes Implementadas
152
+
153
+ | ID | Problema | Pagina | Fix |
154
+ |----|---------|--------|-----|
155
+ | MOB-001 | [desc] | [rota] | [o que foi feito] |
156
+
157
+ **Desktop intacto:** Verificado apos cada correcao
158
+
159
+ Relatorio completo: `.plano/mobile-review/MOBILE-REPORT.md`
160
+ Screenshots: `.plano/mobile-review/screenshots/`
161
+
162
+ ## Insights Capturados Durante o Build
163
+
164
+ [Insights descobertos pelos agentes durante a execucao — de .plano/captures/TRIAGE.md]
165
+
166
+ ### Criticos
167
+ [Problemas que precisam de atencao imediata]
168
+
169
+ ### Alertas
170
+ [Problemas potenciais detectados]
171
+
172
+ ### Oportunidades
173
+ [Melhorias e features descobertas organicamente durante o build]
174
+
175
+ ### Padroes
176
+ [Padroes identificados no codebase que podem informar futuras decisoes]
177
+
178
+ **Total:** [N] insights capturados durante [M] fases
179
+
180
+ Triagem completa: `.plano/captures/TRIAGE.md`
181
+
182
+ ## Melhorias Aplicadas
183
+
184
+ [Lista das melhorias do Estagio 4 - Polish, se executado]
185
+
186
+ | ID | Melhoria | Dimensao | Impacto |
187
+ |----|----------|----------|---------|
188
+ | MELH-001 | [descricao] | UX/Perf/Mod | [resultado] |
189
+
190
+ ## Proximos Passos (Ideias Geradas)
191
+
192
+ [Top 5 ideias do /up:ideias, ordenadas por ICE score]
193
+
194
+ 1. **[Ideia 1]** -- ICE: [score] | [descricao breve]
195
+ 2. **[Ideia 2]** -- ICE: [score] | [descricao breve]
196
+ 3. **[Ideia 3]** -- ICE: [score] | [descricao breve]
197
+ 4. **[Ideia 4]** -- ICE: [score] | [descricao breve]
198
+ 5. **[Ideia 5]** -- ICE: [score] | [descricao breve]
199
+
200
+ Relatorio completo: `.plano/ideias/RELATORIO.md`
201
+
202
+ ## Como Rodar
203
+
204
+ ### Pre-requisitos
205
+ - Node.js >= [versao]
206
+ - [Outros pre-requisitos]
207
+
208
+ ### Setup
209
+ \`\`\`bash
210
+ [comandos de instalacao]
211
+ \`\`\`
212
+
213
+ ### Variaveis de Ambiente
214
+ \`\`\`bash
215
+ # Copiar .env.example para .env e preencher:
216
+ [VAR_1]= # [descricao]
217
+ [VAR_2]= # [descricao]
218
+ \`\`\`
219
+
220
+ ### Desenvolvimento
221
+ \`\`\`bash
222
+ [comando para rodar em dev]
223
+ \`\`\`
224
+
225
+ ### Build
226
+ \`\`\`bash
227
+ [comando para build de producao]
228
+ \`\`\`
229
+
230
+ ## Metricas do Build
231
+
232
+ | Metrica | Valor |
233
+ |---------|-------|
234
+ | Fases completadas | [N] |
235
+ | Planos executados | [N] |
236
+ | Commits | [N] |
237
+ | Testes unitarios | [N] passando |
238
+ | Rotas E2E testadas | [N]/[M] OK |
239
+ | Fluxos E2E testados | [N]/[M] passaram |
240
+ | Bugs E2E encontrados | [N] ([M] corrigidos) |
241
+ | UX Score | [N]/10 |
242
+ | Melhorias UX implementadas | [N] |
243
+ | Responsividade Score | [N]/10 |
244
+ | Problemas mobile corrigidos | [N] |
245
+ | Insights capturados | [N] |
246
+ | Reassessments | [N] ajustes no roadmap |
247
+ | Melhorias codigo aplicadas | [N] |
248
+ | Ideias geradas | [N] |
249
+
250
+ ---
251
+ *Gerado automaticamente por UP modo-builder em [data]*
252
+ ```
253
+
254
+ </template>
255
+
256
+ <guidelines>
257
+
258
+ **Preenchimento:**
259
+ - Secoes preenchidas automaticamente pelo workflow builder.md
260
+ - Dados extraidos de: ROADMAP.md, REQUIREMENTS.md, SUMMARYs, E2E-REPORT.md, RELATORIO.md (melhorias e ideias)
261
+ - "Como Rodar" inferido do stack + package.json + env vars usados
262
+
263
+ **Se testes E2E nao executaram:**
264
+ - Secao "Testes E2E" mostra: "Testes E2E nao executados (projeto sem UI ou dev server falhou)"
265
+
266
+ **Se UX Review nao executou:**
267
+ - Secao "UX Review" mostra: "UX Review nao executado (projeto sem UI ou dev server falhou)"
268
+
269
+ **Se nao ha captures:**
270
+ - Secao "Insights Capturados" mostra: "Nenhum insight capturado durante o build"
271
+
272
+ **Se estagio Polish nao executou:**
273
+ - Secao "Melhorias Aplicadas" mostra: "Estagio de polimento nao executado"
274
+ - Secao "Proximos Passos" mostra: "Ideacao nao executada"
275
+
276
+ **Se requisitos pendentes:**
277
+ - Listar com motivo (falha na verificacao, complexidade, bloqueio externo)
278
+
279
+ </guidelines>
@@ -0,0 +1,151 @@
1
+ # Design Tokens — {PROJECT_NAME}
2
+
3
+ Referencia visual do projeto. Gerado pelo up-system-designer durante o Estagio 2 (Arquitetura).
4
+ Usado pelo up-visual-critic como baseline para avaliar consistencia visual.
5
+
6
+ ---
7
+
8
+ ## Colors
9
+
10
+ ### Primary
11
+ - `--color-primary`: {valor} — Acao principal, CTA, links
12
+ - `--color-primary-hover`: {valor} — Hover da cor primaria
13
+ - `--color-primary-foreground`: {valor} — Texto sobre cor primaria
14
+
15
+ ### Secondary
16
+ - `--color-secondary`: {valor} — Acoes secundarias
17
+ - `--color-secondary-hover`: {valor}
18
+ - `--color-secondary-foreground`: {valor}
19
+
20
+ ### Neutral
21
+ - `--color-background`: {valor} — Fundo geral
22
+ - `--color-foreground`: {valor} — Texto principal
23
+ - `--color-muted`: {valor} — Fundos sutis
24
+ - `--color-muted-foreground`: {valor} — Texto secundario
25
+ - `--color-border`: {valor} — Bordas
26
+ - `--color-input`: {valor} — Fundo de inputs
27
+ - `--color-card`: {valor} — Fundo de cards
28
+
29
+ ### Semantic
30
+ - `--color-success`: {valor} — Sucesso, confirmacao
31
+ - `--color-warning`: {valor} — Alerta, atencao
32
+ - `--color-error`: {valor} — Erro, destrutivo
33
+ - `--color-info`: {valor} — Informativo
34
+
35
+ ## Typography
36
+
37
+ ### Font Family
38
+ - `--font-sans`: {valor} — Texto geral (ex: Inter, Geist, system-ui)
39
+ - `--font-mono`: {valor} — Codigo (ex: JetBrains Mono, Fira Code)
40
+
41
+ ### Font Size Scale
42
+ | Token | Size | Usage |
43
+ |-------|------|-------|
44
+ | `--text-xs` | 12px | Labels, captions |
45
+ | `--text-sm` | 14px | Body secundario, inputs |
46
+ | `--text-base` | 16px | Body principal |
47
+ | `--text-lg` | 18px | Subtitulos |
48
+ | `--text-xl` | 20px | Section headers |
49
+ | `--text-2xl` | 24px | Page titles |
50
+ | `--text-3xl` | 30px | Hero sections |
51
+ | `--text-4xl` | 36px | Display |
52
+
53
+ ### Font Weight
54
+ | Token | Weight | Usage |
55
+ |-------|--------|-------|
56
+ | `--font-normal` | 400 | Body text |
57
+ | `--font-medium` | 500 | Labels, emphasis |
58
+ | `--font-semibold` | 600 | Subtitles, buttons |
59
+ | `--font-bold` | 700 | Titles, headings |
60
+
61
+ ## Spacing
62
+
63
+ ### Scale (base: 4px)
64
+ | Token | Value | Usage |
65
+ |-------|-------|-------|
66
+ | `--space-1` | 4px | Inline gaps, icon padding |
67
+ | `--space-2` | 8px | Tight element spacing |
68
+ | `--space-3` | 12px | Input padding, small gaps |
69
+ | `--space-4` | 16px | Card padding, standard gap |
70
+ | `--space-5` | 20px | Section padding (mobile) |
71
+ | `--space-6` | 24px | Section gaps |
72
+ | `--space-8` | 32px | Section padding (desktop) |
73
+ | `--space-10` | 40px | Large section spacing |
74
+ | `--space-12` | 48px | Page margins |
75
+ | `--space-16` | 64px | Hero spacing |
76
+
77
+ ## Border Radius
78
+
79
+ | Token | Value | Usage |
80
+ |-------|-------|-------|
81
+ | `--radius-sm` | 4px | Badges, tags |
82
+ | `--radius-md` | 8px | Buttons, inputs |
83
+ | `--radius-lg` | 12px | Cards, modals |
84
+ | `--radius-xl` | 16px | Large cards, sheets |
85
+ | `--radius-full` | 9999px | Avatars, pills |
86
+
87
+ ## Shadows
88
+
89
+ | Token | Value | Usage |
90
+ |-------|-------|-------|
91
+ | `--shadow-sm` | 0 1px 2px rgba(0,0,0,0.05) | Inputs, subtle elevation |
92
+ | `--shadow-md` | 0 4px 6px rgba(0,0,0,0.07) | Cards, dropdowns |
93
+ | `--shadow-lg` | 0 10px 15px rgba(0,0,0,0.1) | Modals, popovers |
94
+ | `--shadow-xl` | 0 20px 25px rgba(0,0,0,0.15) | Dialogs, sheets |
95
+
96
+ ## Breakpoints
97
+
98
+ | Token | Value | Usage |
99
+ |-------|-------|-------|
100
+ | `--bp-sm` | 640px | Mobile landscape |
101
+ | `--bp-md` | 768px | Tablet |
102
+ | `--bp-lg` | 1024px | Desktop |
103
+ | `--bp-xl` | 1280px | Wide desktop |
104
+ | `--bp-2xl` | 1536px | Ultra wide |
105
+
106
+ ## Z-Index Scale
107
+
108
+ | Token | Value | Usage |
109
+ |-------|-------|-------|
110
+ | `--z-dropdown` | 50 | Dropdowns, selects |
111
+ | `--z-sticky` | 100 | Sticky headers |
112
+ | `--z-overlay` | 200 | Overlays, backdrops |
113
+ | `--z-modal` | 300 | Modals, dialogs |
114
+ | `--z-popover` | 400 | Popovers, tooltips |
115
+ | `--z-toast` | 500 | Toast notifications |
116
+
117
+ ## Component Tokens
118
+
119
+ ### Buttons
120
+ - Height: 36px (sm), 40px (md), 44px (lg)
121
+ - Padding horizontal: 12px (sm), 16px (md), 24px (lg)
122
+ - Font size: 13px (sm), 14px (md), 15px (lg)
123
+ - Border radius: `--radius-md`
124
+ - Transition: 150ms ease
125
+
126
+ ### Inputs
127
+ - Height: 36px (sm), 40px (md), 44px (lg)
128
+ - Padding horizontal: 12px
129
+ - Font size: 14px
130
+ - Border: 1px solid `--color-border`
131
+ - Border radius: `--radius-md`
132
+ - Focus ring: 2px `--color-primary` with offset
133
+
134
+ ### Cards
135
+ - Padding: `--space-4` (mobile), `--space-6` (desktop)
136
+ - Border: 1px solid `--color-border`
137
+ - Border radius: `--radius-lg`
138
+ - Shadow: `--shadow-sm`
139
+
140
+ ### Tables
141
+ - Header bg: `--color-muted`
142
+ - Row height: 48px
143
+ - Cell padding: `--space-3` horizontal
144
+ - Border: 1px solid `--color-border` (bottom only)
145
+
146
+ ---
147
+
148
+ **Nota:** Este arquivo e referencia para o visual critic. Os valores reais sao definidos em:
149
+ - Tailwind: `tailwind.config.ts` (theme.extend)
150
+ - CSS: `globals.css` (CSS custom properties)
151
+ - shadcn: `components.json` + `lib/utils.ts`