mcp-lab-agent 2.1.2 → 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 -8
- 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 +68 -12
- package/slack-bot/src/index.js +4 -11
- package/slack-bot/src/workers/qa-job.js +17 -10
package/README.md
CHANGED
|
@@ -59,6 +59,14 @@ npx mcp-lab-agent auto "login flow" --max-retries 5
|
|
|
59
59
|
npx mcp-lab-agent stats
|
|
60
60
|
```
|
|
61
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
|
+
|
|
62
70
|
### Integração com IDE (Cursor/Cline/Windsurf)
|
|
63
71
|
|
|
64
72
|
**1. Configure o MCP** (`~/.cursor/mcp.json`):
|
|
@@ -295,8 +303,6 @@ QA_LAB_LLM_BASE_URL=https://llm-interno.empresa.com/v1
|
|
|
295
303
|
QA_LAB_LLM_API_KEY=sua-key-interna
|
|
296
304
|
```
|
|
297
305
|
|
|
298
|
-
**Guia completo:** [CONFIGURACAO_CORPORATIVA.md](CONFIGURACAO_CORPORATIVA.md)
|
|
299
|
-
|
|
300
306
|
### Variáveis de ambiente (todas opcionais)
|
|
301
307
|
|
|
302
308
|
| Variável | Uso |
|
|
@@ -322,13 +328,7 @@ npm install playwright
|
|
|
322
328
|
|
|
323
329
|
## Documentação
|
|
324
330
|
|
|
325
|
-
- **[PITCH.md](PITCH.md)** — Apresentação executiva (use para apresentar ao time)
|
|
326
|
-
- **[EXEMPLO_EVOLUCAO.md](EXEMPLO_EVOLUCAO.md)** — Como a taxa de sucesso melhora com o tempo
|
|
327
|
-
- **[ARQUITETURA_LEARNING.md](ARQUITETURA_LEARNING.md)** — Detalhes técnicos do sistema de learning
|
|
328
331
|
- **[CHANGELOG.md](CHANGELOG.md)** — Histórico de versões
|
|
329
|
-
- **[MIGRATION_V2.md](MIGRATION_V2.md)** — Guia de migração da v1.x
|
|
330
|
-
|
|
331
|
-
Documentação completa (local): `docs/`
|
|
332
332
|
|
|
333
333
|
---
|
|
334
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);
|