mcp-lab-agent 2.1.3 → 2.1.4
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/README.md +8 -14
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/slack-bot/README.md +24 -8
- package/slack-bot/check-config.js +74 -0
- package/slack-bot/package.json +2 -1
- package/slack-bot/src/config.js +7 -1
- package/slack-bot/src/workers/qa-job.js +17 -10
package/README.md
CHANGED
|
@@ -44,12 +44,6 @@ O agente:
|
|
|
44
44
|
|
|
45
45
|
---
|
|
46
46
|
|
|
47
|
-
## Configurações
|
|
48
|
-
|
|
49
|
-
**Primeira vez?** Veja [CONFIGURACOES.md](CONFIGURACOES.md) — lista de arquivos e onde colocar cada configuração.
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
47
|
## Quick Start
|
|
54
48
|
|
|
55
49
|
### Análise Completa (CLI)
|
|
@@ -65,6 +59,14 @@ npx mcp-lab-agent auto "login flow" --max-retries 5
|
|
|
65
59
|
npx mcp-lab-agent stats
|
|
66
60
|
```
|
|
67
61
|
|
|
62
|
+
### Slack Bot (sem clonar o projeto)
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
npx mcp-lab-agent slack-bot
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Configure `~/.cursor/mcp.json` com `"qa-lab-agent": { "slack": { "botToken": "xoxb-...", "signingSecret": "..." } }`. O bot roda localmente; use ngrok para expor em desenvolvimento.
|
|
69
|
+
|
|
68
70
|
### Integração com IDE (Cursor/Cline/Windsurf)
|
|
69
71
|
|
|
70
72
|
**1. Configure o MCP** (`~/.cursor/mcp.json`):
|
|
@@ -301,8 +303,6 @@ QA_LAB_LLM_BASE_URL=https://llm-interno.empresa.com/v1
|
|
|
301
303
|
QA_LAB_LLM_API_KEY=sua-key-interna
|
|
302
304
|
```
|
|
303
305
|
|
|
304
|
-
**Guia completo:** [CONFIGURACAO_CORPORATIVA.md](CONFIGURACAO_CORPORATIVA.md)
|
|
305
|
-
|
|
306
306
|
### Variáveis de ambiente (todas opcionais)
|
|
307
307
|
|
|
308
308
|
| Variável | Uso |
|
|
@@ -328,13 +328,7 @@ npm install playwright
|
|
|
328
328
|
|
|
329
329
|
## Documentação
|
|
330
330
|
|
|
331
|
-
- **[PITCH.md](PITCH.md)** — Apresentação executiva (use para apresentar ao time)
|
|
332
|
-
- **[EXEMPLO_EVOLUCAO.md](EXEMPLO_EVOLUCAO.md)** — Como a taxa de sucesso melhora com o tempo
|
|
333
|
-
- **[ARQUITETURA_LEARNING.md](ARQUITETURA_LEARNING.md)** — Detalhes técnicos do sistema de learning
|
|
334
331
|
- **[CHANGELOG.md](CHANGELOG.md)** — Histórico de versões
|
|
335
|
-
- **[MIGRATION_V2.md](MIGRATION_V2.md)** — Guia de migração da v1.x
|
|
336
|
-
|
|
337
|
-
Documentação completa (local): `docs/`
|
|
338
332
|
|
|
339
333
|
---
|
|
340
334
|
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import { z } from "zod";
|
|
|
8
8
|
import { spawn as spawn2 } from "child_process";
|
|
9
9
|
import path5 from "path";
|
|
10
10
|
import fs5 from "fs";
|
|
11
|
+
import { fileURLToPath, pathToFileURL } from "url";
|
|
11
12
|
|
|
12
13
|
// src/core/llm-router.js
|
|
13
14
|
function resolveLLMProvider(taskType = "simple") {
|
|
@@ -593,7 +594,8 @@ USO:
|
|
|
593
594
|
mcp-lab-agent --help # Mostra esta ajuda
|
|
594
595
|
|
|
595
596
|
COMANDOS CLI:
|
|
596
|
-
|
|
597
|
+
slack-bot Inicia o Slack Bot (QA via @mention) - sem precisar clonar o repo
|
|
598
|
+
analyze An\xE1lise completa: executa, analisa estabilidade, prev\xEA riscos e recomenda a\xE7\xF5es
|
|
597
599
|
auto <descri\xE7\xE3o> [--max-retries N] Modo aut\xF4nomo: gera teste, roda, corrige e aprende (default: 3 tentativas)
|
|
598
600
|
stats Mostra estat\xEDsticas de aprendizado (taxa de sucesso, corre\xE7\xF5es, etc.)
|
|
599
601
|
detect [--json] Detecta frameworks e estrutura
|
|
@@ -601,6 +603,8 @@ COMANDOS CLI:
|
|
|
601
603
|
list Lista ferramentas MCP dispon\xEDveis
|
|
602
604
|
|
|
603
605
|
EXEMPLOS:
|
|
606
|
+
mcp-lab-agent slack-bot # Slack Bot (configure em ~/.cursor/mcp.json)
|
|
607
|
+
npx mcp-lab-agent slack-bot # Usar sem instalar (sem clonar o projeto)
|
|
604
608
|
mcp-lab-agent analyze # An\xE1lise completa + recomenda\xE7\xF5es
|
|
605
609
|
mcp-lab-agent auto "login flow" --max-retries 5
|
|
606
610
|
mcp-lab-agent stats
|
|
@@ -3483,6 +3487,14 @@ test.describe('${type.toUpperCase()} Test', () => {
|
|
|
3483
3487
|
}
|
|
3484
3488
|
);
|
|
3485
3489
|
async function main() {
|
|
3490
|
+
const cmd = process.argv[2];
|
|
3491
|
+
if (cmd === "slack-bot") {
|
|
3492
|
+
const __dirname2 = path5.dirname(fileURLToPath(import.meta.url));
|
|
3493
|
+
const slackBotPath = path5.join(__dirname2, "..", "slack-bot", "src", "index.js");
|
|
3494
|
+
const slackBotUrl = pathToFileURL(slackBotPath).href;
|
|
3495
|
+
await import(slackBotUrl);
|
|
3496
|
+
return;
|
|
3497
|
+
}
|
|
3486
3498
|
const handled = await handleCLI();
|
|
3487
3499
|
if (handled) {
|
|
3488
3500
|
process.exit(0);
|