up-cc 0.4.4 → 0.4.5
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.
- package/commands/modo-builder.md +7 -4
- package/package.json +1 -1
- package/workflows/builder.md +71 -19
package/commands/modo-builder.md
CHANGED
|
@@ -78,11 +78,14 @@ Em brownfield, convencoes do codebase existente tem prioridade sobre defaults.
|
|
|
78
78
|
<process>
|
|
79
79
|
**Parsear flags primeiro:** Extrair `--light` dos $ARGUMENTS se presente. O restante e o briefing.
|
|
80
80
|
|
|
81
|
-
**
|
|
82
|
-
|
|
83
|
-
Estagios: 1 (Intake simplificado) → 2 (Mini-scan + estrutura inline) → 3 (Build + E2E) → Fim.
|
|
81
|
+
**GUARD: Light mode SOMENTE se `--light` esta presente LITERALMENTE nos argumentos.**
|
|
82
|
+
NAO inferir light baseado no tamanho do briefing. Briefing curto = FULL com poucas fases.
|
|
84
83
|
|
|
85
|
-
**Se
|
|
84
|
+
**Se `--light` PRESENTE nos argumentos:**
|
|
85
|
+
Execute o builder workflow em modo light (ver secao `<light_process>` no workflow).
|
|
86
|
+
Light ainda verifica (up-verificador), testa (E2E + DCRV 1 ciclo), mas sem polish/delivery.
|
|
87
|
+
|
|
88
|
+
**Se `--light` AUSENTE (default = FULL):**
|
|
86
89
|
Execute the builder workflow from @~/.claude/up/workflows/builder.md end-to-end.
|
|
87
90
|
|
|
88
91
|
**CRITICO:** A partir do Estagio 2, ZERO interacao com usuario. NAO use AskUserQuestion apos coletar o briefing e respostas criticas. Toda decisao e tomada autonomamente.
|
package/package.json
CHANGED
package/workflows/builder.md
CHANGED
|
@@ -11,8 +11,25 @@ Modo Builder: construir projeto completo de forma autonoma. Funciona em dois mod
|
|
|
11
11
|
A partir do Estagio 2, ZERO interacao com usuario. Todas as decisoes sao tomadas autonomamente.
|
|
12
12
|
|
|
13
13
|
**IMPORTANTE: Verificar flag `--light` no $ARGUMENTS antes de iniciar.**
|
|
14
|
-
Se `--light` presente: pular direto para `<light_process
|
|
14
|
+
Se `--light` presente LITERALMENTE nos argumentos: pular direto para `<light_process>`.
|
|
15
15
|
Se ausente: seguir o `<process>` normal (full).
|
|
16
|
+
|
|
17
|
+
**GUARD CONTRA ATIVACAO ACIDENTAL DO LIGHT:**
|
|
18
|
+
- O modo light so e ativado se o usuario escreveu `--light` explicitamente.
|
|
19
|
+
- NAO inferir light baseado no tamanho do briefing ou complexidade.
|
|
20
|
+
- NAO ativar light porque "parece uma feature simples".
|
|
21
|
+
- Briefing curto = modo FULL com poucas fases, NAO modo light.
|
|
22
|
+
- Se em duvida: FULL. Sempre FULL como default.
|
|
23
|
+
|
|
24
|
+
**LOG OBRIGATORIO no inicio (EXECUTAR SEMPRE):**
|
|
25
|
+
```
|
|
26
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
27
|
+
UP > MODO BUILDER — {FULL | LIGHT}
|
|
28
|
+
Versao: $(cat $HOME/.claude/up/VERSION 2>/dev/null || echo "dev")
|
|
29
|
+
Argumentos: $ARGUMENTS
|
|
30
|
+
Flag --light: {SIM | NAO}
|
|
31
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
32
|
+
```
|
|
16
33
|
</purpose>
|
|
17
34
|
|
|
18
35
|
<core_principle>
|
|
@@ -2294,31 +2311,58 @@ Retornar: ## PLANNING COMPLETE
|
|
|
2294
2311
|
|
|
2295
2312
|
Mesmo processo do full — spawnar up-executor por wave.
|
|
2296
2313
|
|
|
2297
|
-
#### L3.3 Verificar Fase
|
|
2314
|
+
#### L3.3 Verificar Fase
|
|
2298
2315
|
|
|
2299
|
-
|
|
2316
|
+
Spawnar up-verificador (mesmo do full — verificacao real, nao shortcut):
|
|
2300
2317
|
|
|
2301
|
-
1. Checar que SUMMARYs existem para todos os planos
|
|
2302
|
-
2. Checar que commits existem: `git log --oneline --grep="fase-{X}"`
|
|
2303
|
-
3. Se ha testes automatizados no projeto: rodar
|
|
2304
|
-
```bash
|
|
2305
|
-
# Detectar e rodar testes
|
|
2306
|
-
npm test 2>/dev/null || pnpm test 2>/dev/null || echo "sem testes"
|
|
2307
2318
|
```
|
|
2308
|
-
|
|
2319
|
+
Task(
|
|
2320
|
+
subagent_type="up-verificador",
|
|
2321
|
+
model="$MODEL_VERIFICATION",
|
|
2322
|
+
prompt="Verificar fase {phase_number}. Diretorio: {phase_dir}. Objetivo: {goal}."
|
|
2323
|
+
)
|
|
2324
|
+
```
|
|
2309
2325
|
|
|
2310
|
-
|
|
2326
|
+
| Status | Acao |
|
|
2327
|
+
|--------|------|
|
|
2328
|
+
| `passed` | → L3.4 |
|
|
2329
|
+
| `gaps_found` | Tentar gap closure (1 ciclo max) |
|
|
2330
|
+
| `human_needed` | Registrar, avancar |
|
|
2311
2331
|
|
|
2312
2332
|
#### L3.4 Teste E2E (Playwright)
|
|
2313
2333
|
|
|
2314
|
-
**
|
|
2315
|
-
|
|
2334
|
+
**Referencia:** `@~/.claude/up/workflows/builder-e2e.md` — Passo 3 (Teste por Fase)
|
|
2335
|
+
|
|
2336
|
+
**EXECUTAR OBRIGATORIAMENTE se a fase tem UI.** Nao pular.
|
|
2337
|
+
|
|
2338
|
+
1. Subir dev server (se nao esta rodando)
|
|
2339
|
+
2. Traduzir must_haves em testes E2E
|
|
2340
|
+
3. Navegar, interagir, verificar, screenshot
|
|
2341
|
+
4. Bugs: corrigir (max 5 tentativas por bug)
|
|
2342
|
+
5. Criar E2E-RESULTS.md
|
|
2316
2343
|
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2344
|
+
**Se dev server falha:** Registrar e continuar (nao bloqueia).
|
|
2345
|
+
|
|
2346
|
+
#### L3.4.1 DCRV Light (1 ciclo)
|
|
2347
|
+
|
|
2348
|
+
**Apos E2E**, rodar DCRV em modo light (1 ciclo, sem loop):
|
|
2349
|
+
|
|
2350
|
+
**Referencia:** `@~/.claude/up/workflows/dcrv.md`
|
|
2351
|
+
|
|
2352
|
+
```
|
|
2353
|
+
SCOPE=light
|
|
2354
|
+
PHASE_DIR={phase_dir}
|
|
2355
|
+
PHASE_NUMBER={phase_number}
|
|
2356
|
+
MAX_CYCLES=1
|
|
2357
|
+
MAX_ISSUES_PER_CYCLE=10
|
|
2358
|
+
AUTO_FIX=true
|
|
2359
|
+
```
|
|
2360
|
+
|
|
2361
|
+
Isso roda os 3 detectores (visual, API, exhaustive), corrige o que puder em 1 ciclo, e segue.
|
|
2362
|
+
|
|
2363
|
+
```
|
|
2364
|
+
Fase {X} (light): DCRV — {resolved}/{total} issues corrigidas
|
|
2365
|
+
```
|
|
2322
2366
|
|
|
2323
2367
|
#### L3.5 Marcar Fase Completa
|
|
2324
2368
|
|
|
@@ -2373,7 +2417,15 @@ Quer mais? /up:modo-builder "proxima feature"
|
|
|
2373
2417
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
2374
2418
|
```
|
|
2375
2419
|
|
|
2376
|
-
**NAO gerar DELIVERY.md. NAO rodar polish. NAO rodar ideias.**
|
|
2420
|
+
**NAO gerar DELIVERY.md. NAO rodar polish completo. NAO rodar ideias.**
|
|
2421
|
+
|
|
2422
|
+
**Light mode success criteria:**
|
|
2423
|
+
- [ ] .plano/ criado com PROJECT.md, ROADMAP.md, REQUIREMENTS.md
|
|
2424
|
+
- [ ] Todas fases executadas com commits atomicos
|
|
2425
|
+
- [ ] Verificador rodou em cada fase (NAO quick check)
|
|
2426
|
+
- [ ] E2E Playwright rodou em fases com UI
|
|
2427
|
+
- [ ] DCRV light (1 ciclo) rodou em cada fase com UI/API
|
|
2428
|
+
- [ ] Resumo final exibido com metricas
|
|
2377
2429
|
|
|
2378
2430
|
</light_process>
|
|
2379
2431
|
|