@brunosps00/dev-workflow 0.4.1 → 0.4.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brunosps00/dev-workflow",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "AI-driven development workflow commands for any project. Scaffolds a complete PRD-to-PR pipeline with multi-platform AI assistant support.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"dev-workflow": "./bin/dev-workflow.js"
|
|
@@ -273,6 +273,20 @@ Save to `{{PRD_PATH}}/dw-code-review.md`:
|
|
|
273
273
|
|
|
274
274
|
**REJECTED**: Tests failing, RFs not implemented, serious rules violations, security issues, or CRITICAL issues.
|
|
275
275
|
|
|
276
|
+
## Next Steps by Status
|
|
277
|
+
|
|
278
|
+
<critical>The suggested next step MUST match the review status. NEVER suggest /dw-fix-qa after code-review — that command is exclusively for bugs found by /dw-run-qa.</critical>
|
|
279
|
+
|
|
280
|
+
- **APPROVED**: Suggest `/dw-commit` followed by `/dw-generate-pr`
|
|
281
|
+
- **APPROVED WITH CAVEATS**: List the caveats. Suggest fixing the caveats, re-running build + lint with --fix, then re-running `/dw-code-review`
|
|
282
|
+
- **REJECTED**: List the findings that caused rejection. The correct flow is:
|
|
283
|
+
1. Fix the findings listed in the report
|
|
284
|
+
2. Run build and lint with `--fix` until they pass
|
|
285
|
+
3. Re-run `/dw-code-review`
|
|
286
|
+
4. Repeat until APPROVED
|
|
287
|
+
- Do NOT suggest `/dw-fix-qa` (that is for visual QA bugs)
|
|
288
|
+
- Do NOT suggest `/dw-run-qa` before resolving code-review findings
|
|
289
|
+
|
|
276
290
|
**Approval Decision Flow:**
|
|
277
291
|
```dot
|
|
278
292
|
digraph approval {
|
|
@@ -97,7 +97,13 @@ Refer to `.dw/rules/` for project-specific URLs and frameworks.
|
|
|
97
97
|
- `{{PRD_PATH}}/QA/screenshots/`
|
|
98
98
|
- `{{PRD_PATH}}/QA/logs/`
|
|
99
99
|
- `{{PRD_PATH}}/QA/scripts/`
|
|
100
|
-
|
|
100
|
+
<critical>BEFORE executing any test involving login or authentication, search for test credentials in the codebase. Look for (in priority order):
|
|
101
|
+
1. `.dw/templates/qa-test-credentials.md`
|
|
102
|
+
2. Any file with "credenciais", "credentials", "test-users", "test-accounts", "auth", "login", "usuarios-teste" in the name (recursive glob search)
|
|
103
|
+
3. Environment variables in `.env.test`, `.env.local`, `.env.development`
|
|
104
|
+
4. Documentation in README or docs/ mentioning test users
|
|
105
|
+
If NO credentials are found, STOP and ask the user before continuing. Do NOT guess credentials or use fake data.</critical>
|
|
106
|
+
- Choose the appropriate user/profile for the test scenario
|
|
101
107
|
- Verify the application is running on localhost
|
|
102
108
|
- Use `browser_navigate` from Playwright MCP to access the application
|
|
103
109
|
- Confirm the page loaded correctly with `browser_snapshot`
|
|
@@ -253,6 +253,20 @@ Salvar em `{{PRD_PATH}}/dw-code-review.md`:
|
|
|
253
253
|
|
|
254
254
|
**REPROVADO**: Testes falhando, RFs não implementados, violação grave de rules, problemas de segurança, ou CRITICAL issues.
|
|
255
255
|
|
|
256
|
+
## Próximos Passos por Status
|
|
257
|
+
|
|
258
|
+
<critical>O próximo passo sugerido DEVE corresponder ao status do review. NUNCA sugira /dw-fix-qa após code-review — esse comando é exclusivo para bugs encontrados pelo /dw-run-qa.</critical>
|
|
259
|
+
|
|
260
|
+
- **APROVADO**: Sugira `/dw-commit` seguido de `/dw-generate-pr`
|
|
261
|
+
- **APROVADO COM RESSALVAS**: Liste as ressalvas. Sugira corrigir as ressalvas, re-executar build + lint com --fix, e então re-executar `/dw-code-review`
|
|
262
|
+
- **REPROVADO**: Liste os findings que causaram a reprovação. O fluxo correto é:
|
|
263
|
+
1. Corrigir os findings listados no relatório
|
|
264
|
+
2. Executar build e lint com `--fix` até passar
|
|
265
|
+
3. Re-executar `/dw-code-review`
|
|
266
|
+
4. Repetir até APROVADO
|
|
267
|
+
- NÃO sugira `/dw-fix-qa` (esse é para bugs de QA visual)
|
|
268
|
+
- NÃO sugira `/dw-run-qa` antes de resolver os findings do code-review
|
|
269
|
+
|
|
256
270
|
**Fluxo de Decisão de Aprovação:**
|
|
257
271
|
```dot
|
|
258
272
|
digraph approval {
|
|
@@ -97,7 +97,13 @@ Consulte `.dw/rules/` para URLs e frameworks específicos do projeto.
|
|
|
97
97
|
- `{{PRD_PATH}}/QA/screenshots/`
|
|
98
98
|
- `{{PRD_PATH}}/QA/logs/`
|
|
99
99
|
- `{{PRD_PATH}}/QA/scripts/`
|
|
100
|
-
|
|
100
|
+
<critical>ANTES de executar qualquer teste que envolva login ou autenticação, busque credenciais de teste no codebase. Procure por (em ordem de prioridade):
|
|
101
|
+
1. `.dw/templates/qa-test-credentials.md`
|
|
102
|
+
2. Qualquer arquivo com "credenciais", "credentials", "test-users", "test-accounts", "auth", "login", "usuarios-teste" no nome (busca recursiva com glob)
|
|
103
|
+
3. Variáveis de ambiente em `.env.test`, `.env.local`, `.env.development`
|
|
104
|
+
4. Documentação em README ou docs/ que mencione usuários de teste
|
|
105
|
+
Se NENHUMA credencial for encontrada, PARE e pergunte ao usuário antes de continuar. NÃO tente adivinhar credenciais ou usar dados falsos.</critical>
|
|
106
|
+
- Escolher o usuário/perfil apropriado para o cenário de teste
|
|
101
107
|
- Verificar se a aplicação está rodando em localhost
|
|
102
108
|
- Usar `browser_navigate` do Playwright MCP para acessar a aplicação
|
|
103
109
|
- Confirmar que a página carregou corretamente com `browser_snapshot`
|