@poolzin/pool-bot 2026.3.21 → 2026.3.23
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/CHANGELOG.md +81 -0
- package/dist/acp/bindings-store.js +209 -0
- package/dist/acp/control-plane/runtime-cache.js +54 -0
- package/dist/acp/control-plane/runtime-options.js +215 -0
- package/dist/acp/control-plane/session-actor-queue.js +36 -0
- package/dist/acp/runtime/errors.js +47 -0
- package/dist/acp/runtime/registry.js +86 -0
- package/dist/acp/runtime/types.js +1 -0
- package/dist/acp/translator.js +97 -0
- package/dist/agents/failover-error.js +145 -47
- package/dist/browser/browser-profile-manager.js +319 -0
- package/dist/browser/cdp-proxy-bypass.js +129 -0
- package/dist/browser/cdp-timeouts.js +41 -0
- package/dist/browser/chrome-extension-validator.js +406 -0
- package/dist/browser/chrome-mcp-snapshot.js +222 -0
- package/dist/browser/chrome-mcp.js +421 -0
- package/dist/browser/chrome-mcp.snapshot.js +133 -0
- package/dist/browser/errors.js +67 -0
- package/dist/browser/form-fields.js +22 -0
- package/dist/browser/output-atomic.js +44 -0
- package/dist/browser/profile-capabilities.js +47 -0
- package/dist/browser/safe-filename.js +25 -0
- package/dist/browser/snapshot-roles.js +60 -0
- package/dist/build-info.json +3 -3
- package/dist/commands/security-owner-only.js +86 -0
- package/dist/control-ui/assets/{index-Dvkl4Xlx.js → index-D7shnQwQ.js} +404 -388
- package/dist/control-ui/assets/index-D7shnQwQ.js.map +1 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/cron/cron-filters.js +150 -0
- package/dist/gateway/device-pairing-security.js +197 -0
- package/dist/gateway/event-deduplication.js +167 -0
- package/dist/gateway/run-tracker.js +253 -0
- package/dist/gateway/server-methods/nodes.js +14 -0
- package/dist/gateway/websocket-preauth-security.js +188 -0
- package/dist/infra/errors.js +53 -13
- package/dist/infra/exec-approvals-security.js +217 -0
- package/dist/infra/security/command-analyzer.js +257 -0
- package/dist/plugins/loader.js +16 -8
- package/dist/security/external-content.js +51 -1
- package/dist/sessions/session-costs.js +228 -0
- package/dist/shared/param-key.js +16 -0
- package/dist/shared/poll-params.js +58 -0
- package/dist/shared/polls.js +55 -0
- package/docs/DASHBOARD-GAP-ANALYSIS-AND-PLAN.md +430 -0
- package/docs/FEATURES.md +523 -0
- package/docs/FINAL-IMPLEMENTATION-REVIEW.md +274 -0
- package/docs/FINAL-IMPLEMENTATION-SUMMARY.md +356 -0
- package/docs/FINAL-PROFESSIONAL-EVALUATION.md +312 -0
- package/docs/IMPLEMENTATION-PRIORITY-EVALUATION.md +298 -0
- package/docs/IMPLEMENTATION-PROGRESS.md +237 -0
- package/docs/IMPLEMENTATION-REVIEW-PHASE1-2.md +381 -0
- package/docs/IMPLEMENTATION-REVIEW-PHASE4.md +389 -0
- package/docs/IMPLEMENTATION-REVIEW-PHASE5.md +420 -0
- package/docs/IMPLEMENTATION-REVIEW-PHASE6.md +422 -0
- package/docs/IMPLEMENTATION-REVIEW-PHASE7-FINAL.md +184 -0
- package/docs/MIKRODASH-ANALYSIS.md +412 -0
- package/docs/OPENCLAW-GAP-ANALYSIS-FINAL.md +431 -0
- package/docs/OPENCLAW-VS-POOLBOT-ANALYSIS.md +351 -0
- package/docs/PHASE-7-SUMMARY.md +144 -0
- package/docs/POOLBOT-OFFICE-PLAN.md +697 -0
- package/docs/PROJECT-FINAL-STATUS.md +237 -0
- package/docs/README.md +116 -0
- package/docs/REAL-IMPROVEMENTS-EVALUATION.md +477 -0
- package/docs/SECURITY-HARDENING-IMPLEMENTATION.md +161 -0
- package/docs/channels/googlechat.md +235 -206
- package/docs/channels/irc.md +332 -0
- package/docs/channels/nostr.md +255 -168
- package/docs/components/command-palette.md +166 -0
- package/docs/components/login-gate.md +219 -0
- package/docs/getting-started/installation.md +191 -0
- package/docs/getting-started/introduction.md +120 -0
- package/docs/improvements/USAGE-GUIDE.md +359 -0
- package/docs/plans/2026-03-15-openclaw-features-implementation.md +1632 -0
- package/docs/reference/deadcode-detection.md +72 -0
- package/extensions/acpx/node_modules/.bin/acpx +21 -0
- package/extensions/agency-agents/node_modules/.bin/vite +4 -4
- package/extensions/agency-agents/node_modules/.bin/vitest +2 -2
- package/extensions/googlechat/node_modules/.bin/tsc +21 -0
- package/extensions/googlechat/node_modules/.bin/tsserver +21 -0
- package/extensions/googlechat/node_modules/.bin/vitest +21 -0
- package/extensions/googlechat/package.json +11 -28
- package/extensions/googlechat/src/googlechat-channel.test.ts +60 -0
- package/extensions/googlechat/src/googlechat-channel.ts +120 -0
- package/extensions/googlechat/src/index.ts +14 -0
- package/extensions/irc/node_modules/.bin/tsc +21 -0
- package/extensions/irc/node_modules/.bin/tsserver +21 -0
- package/extensions/irc/node_modules/.bin/vitest +21 -0
- package/extensions/irc/package.json +16 -8
- package/extensions/irc/src/index.ts +14 -0
- package/extensions/irc/src/irc-channel.test.ts +43 -0
- package/extensions/irc/src/irc-channel.ts +191 -0
- package/extensions/keyed-async-queue/node_modules/.bin/tsc +21 -0
- package/extensions/keyed-async-queue/node_modules/.bin/tsserver +21 -0
- package/extensions/keyed-async-queue/node_modules/.bin/vitest +21 -0
- package/extensions/keyed-async-queue/package.json +20 -0
- package/extensions/keyed-async-queue/src/index.ts +14 -0
- package/extensions/keyed-async-queue/src/queue.test.ts +135 -0
- package/extensions/keyed-async-queue/src/queue.ts +200 -0
- package/extensions/memory-core/node_modules/.bin/tsc +21 -0
- package/extensions/memory-core/node_modules/.bin/tsserver +21 -0
- package/extensions/memory-core/node_modules/.bin/vitest +21 -0
- package/extensions/memory-core/package.json +11 -8
- package/extensions/memory-core/src/index.ts +14 -0
- package/extensions/memory-core/src/memory-manager.test.ts +124 -0
- package/extensions/memory-core/src/memory-manager.ts +186 -0
- package/extensions/nostr/node_modules/.bin/tsc +2 -2
- package/extensions/nostr/node_modules/.bin/tsserver +2 -2
- package/extensions/nostr/node_modules/.bin/vitest +21 -0
- package/extensions/nostr/package.json +15 -24
- package/extensions/nostr/src/index.ts +14 -0
- package/extensions/nostr/src/nostr-channel.test.ts +55 -0
- package/extensions/nostr/src/nostr-channel.ts +228 -0
- package/extensions/page-agent/node_modules/.bin/vitest +2 -2
- package/extensions/test-utils/node_modules/.bin/jiti +21 -0
- package/extensions/test-utils/node_modules/.bin/playwright +21 -0
- package/extensions/test-utils/node_modules/.bin/tsx +21 -0
- package/extensions/test-utils/node_modules/.bin/vite +21 -0
- package/extensions/test-utils/node_modules/.bin/vitest +21 -0
- package/extensions/test-utils/node_modules/.bin/yaml +21 -0
- package/extensions/xyops/node_modules/.bin/vitest +2 -2
- package/package.json +2 -1
- package/dist/control-ui/assets/index-Dvkl4Xlx.js.map +0 -1
- package/extensions/googlechat/node_modules/.bin/poolbot +0 -21
- package/extensions/memory-core/node_modules/.bin/poolbot +0 -21
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
# Login Gate
|
|
2
|
+
|
|
3
|
+
O Login Gate é o componente de autenticação do Pool Bot Dashboard, responsável por gerenciar a conexão segura com o gateway.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- 🔐 **Autenticação Segura** - Token-based auth
|
|
8
|
+
- 👁️ **Toggle Visibilidade** - Mostrar/ocultar tokens
|
|
9
|
+
- ✅ **Validação** - Validação em tempo real
|
|
10
|
+
- 📝 **Instruções** - Guia de conexão embutido
|
|
11
|
+
- 🔗 **Links de Ajuda** - Documentação integrada
|
|
12
|
+
|
|
13
|
+
## Componentes
|
|
14
|
+
|
|
15
|
+
### Campos de Entrada
|
|
16
|
+
|
|
17
|
+
1. **Gateway URL**
|
|
18
|
+
- URL do gateway (ex: `ws://127.0.0.1:18789`)
|
|
19
|
+
- Auto-complete de URLs salvas
|
|
20
|
+
- Validação de formato
|
|
21
|
+
|
|
22
|
+
2. **Token**
|
|
23
|
+
- Token de autenticação do gateway
|
|
24
|
+
- Toggle de visibilidade (eye/eye-off)
|
|
25
|
+
- Armazenamento seguro (opcional)
|
|
26
|
+
|
|
27
|
+
3. **Password** (Opcional)
|
|
28
|
+
- Senha adicional se configurada
|
|
29
|
+
- Toggle de visibilidade
|
|
30
|
+
- Não obrigatório por padrão
|
|
31
|
+
|
|
32
|
+
### Estados
|
|
33
|
+
|
|
34
|
+
#### Desconectado
|
|
35
|
+
```
|
|
36
|
+
┌─────────────────────────────┐
|
|
37
|
+
│ Pool Bot │
|
|
38
|
+
│ Connect to Gateway │
|
|
39
|
+
│ │
|
|
40
|
+
│ Gateway URL [input] │
|
|
41
|
+
│ Token [input] │
|
|
42
|
+
│ Password [input] │
|
|
43
|
+
│ │
|
|
44
|
+
│ [Connect] │
|
|
45
|
+
│ │
|
|
46
|
+
│ Quick Start: │
|
|
47
|
+
│ 1. poolbot gateway run │
|
|
48
|
+
│ 2. poolbot dashboard │
|
|
49
|
+
│ 3. Copy tokenized URL │
|
|
50
|
+
└─────────────────────────────┘
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
#### Conectado
|
|
54
|
+
```
|
|
55
|
+
┌─────────────────────────────┐
|
|
56
|
+
│ ✓ Connected │
|
|
57
|
+
│ │
|
|
58
|
+
│ Gateway authentication │
|
|
59
|
+
│ successful │
|
|
60
|
+
└─────────────────────────────┘
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
#### Erro
|
|
64
|
+
```
|
|
65
|
+
┌─────────────────────────────┐
|
|
66
|
+
│ ✗ Connection Error │
|
|
67
|
+
│ │
|
|
68
|
+
│ Auth failed. Re-copy a │
|
|
69
|
+
│ tokenized URL... │
|
|
70
|
+
│ │
|
|
71
|
+
│ [Docs: Control UI auth] │
|
|
72
|
+
└─────────────────────────────┘
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Uso
|
|
76
|
+
|
|
77
|
+
### Componente Lit
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import { LoginGate } from './components/login-gate'
|
|
81
|
+
|
|
82
|
+
// Criar elemento
|
|
83
|
+
const gate = document.createElement('login-gate')
|
|
84
|
+
|
|
85
|
+
// Props
|
|
86
|
+
gate.connected = false
|
|
87
|
+
gate.error = null
|
|
88
|
+
gate.loading = false
|
|
89
|
+
|
|
90
|
+
// Eventos
|
|
91
|
+
gate.addEventListener('login', (e) => {
|
|
92
|
+
const { token, password } = e.detail
|
|
93
|
+
// Conectar ao gateway
|
|
94
|
+
})
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Props
|
|
98
|
+
|
|
99
|
+
```typescript
|
|
100
|
+
type LoginGateProps = {
|
|
101
|
+
connected: boolean // Estado de conexão
|
|
102
|
+
error: string | null // Mensagem de erro
|
|
103
|
+
token: string // Token atual
|
|
104
|
+
password: string // Password atual
|
|
105
|
+
showToken: boolean // Mostrar token?
|
|
106
|
+
showPassword: boolean // Mostrar password?
|
|
107
|
+
loading: boolean // Loading state?
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Eventos
|
|
112
|
+
|
|
113
|
+
```typescript
|
|
114
|
+
// Evento de login
|
|
115
|
+
gate.addEventListener('login', (e: CustomEvent) => {
|
|
116
|
+
const { token, password } = e.detail
|
|
117
|
+
// Tentar conectar
|
|
118
|
+
})
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Fluxo de Autenticação
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
1. Usuário abre dashboard
|
|
125
|
+
↓
|
|
126
|
+
2. Login Gate renderiza
|
|
127
|
+
↓
|
|
128
|
+
3. Usuário insere credenciais
|
|
129
|
+
↓
|
|
130
|
+
4. Clica em "Connect"
|
|
131
|
+
↓
|
|
132
|
+
5. Validação local
|
|
133
|
+
↓
|
|
134
|
+
6. Conexão com gateway
|
|
135
|
+
↓
|
|
136
|
+
7. Sucesso → Dashboard
|
|
137
|
+
Falha → Mostra erro
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Segurança
|
|
141
|
+
|
|
142
|
+
### Best Practices
|
|
143
|
+
|
|
144
|
+
1. **Tokens**
|
|
145
|
+
- Nunca log tokens em console
|
|
146
|
+
- Usar secure context (HTTPS)
|
|
147
|
+
- Expirar tokens periodicamente
|
|
148
|
+
|
|
149
|
+
2. **Passwords**
|
|
150
|
+
- Hash antes de enviar
|
|
151
|
+
- Usar HTTPS sempre
|
|
152
|
+
- Rate limiting
|
|
153
|
+
|
|
154
|
+
3. **Armazenamento**
|
|
155
|
+
- Usar sessionStorage
|
|
156
|
+
- Limpar on logout
|
|
157
|
+
- Não persistir em produção
|
|
158
|
+
|
|
159
|
+
### Configuração de Segurança
|
|
160
|
+
|
|
161
|
+
```typescript
|
|
162
|
+
// Forçar HTTPS
|
|
163
|
+
poolbot config set gateway.requireHttps true
|
|
164
|
+
|
|
165
|
+
// Expirar tokens
|
|
166
|
+
poolbot config set gateway.tokenExpiry 3600
|
|
167
|
+
|
|
168
|
+
// Rate limiting
|
|
169
|
+
poolbot config set gateway.rateLimit 10
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
## Customização
|
|
173
|
+
|
|
174
|
+
### Estilização
|
|
175
|
+
|
|
176
|
+
```css
|
|
177
|
+
login-gate {
|
|
178
|
+
--bg-primary: #ffffff;
|
|
179
|
+
--text-muted: #666666;
|
|
180
|
+
--success: #4caf50;
|
|
181
|
+
--error: #f44336;
|
|
182
|
+
}
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### Mensagens Customizadas
|
|
186
|
+
|
|
187
|
+
```typescript
|
|
188
|
+
// i18n
|
|
189
|
+
const customMessages = {
|
|
190
|
+
'login.connected': 'Conectado com sucesso!',
|
|
191
|
+
'login.subtitle': 'Entre com suas credenciais',
|
|
192
|
+
'common.connecting': 'Conectando...',
|
|
193
|
+
}
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
## Testes
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
# Testar componente
|
|
200
|
+
pnpm test -- login-gate
|
|
201
|
+
|
|
202
|
+
# Testes incluem:
|
|
203
|
+
# - Renderização
|
|
204
|
+
# - Validação de campos
|
|
205
|
+
# - Estados de erro
|
|
206
|
+
# - Toggle de visibilidade
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## Arquivos Relacionados
|
|
210
|
+
|
|
211
|
+
- `ui/src/ui/components/login-gate.ts` - Componente principal
|
|
212
|
+
- `ui/src/ui/icons.ts` - Ícones (eye, eyeOff)
|
|
213
|
+
- `src/gateway/auth.ts` - Autenticação do gateway
|
|
214
|
+
|
|
215
|
+
## Links Relacionados
|
|
216
|
+
|
|
217
|
+
- [Autenticação](/security/authentication)
|
|
218
|
+
- [Gateway](/architecture/gateway)
|
|
219
|
+
- [Segurança](/security/overview)
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
# Instalação do Pool Bot
|
|
2
|
+
|
|
3
|
+
## Pré-requisitos
|
|
4
|
+
|
|
5
|
+
- **Node.js** 22+ ou **Bun** 1.0+
|
|
6
|
+
- **pnpm** 8+ (recomendado) ou npm
|
|
7
|
+
- **Git** para clonar o repositório
|
|
8
|
+
|
|
9
|
+
## Métodos de Instalação
|
|
10
|
+
|
|
11
|
+
### 1. Via NPM (Recomendado)
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Instalação global
|
|
15
|
+
npm install -g @poolzin/pool-bot
|
|
16
|
+
|
|
17
|
+
# Ou com pnpm
|
|
18
|
+
pnpm add -g @poolzin/pool-bot
|
|
19
|
+
|
|
20
|
+
# Verificar instalação
|
|
21
|
+
poolbot --version
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### 2. Via Docker
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# Pull da imagem
|
|
28
|
+
docker pull poolbot/pool-bot:latest
|
|
29
|
+
|
|
30
|
+
# Rodar container
|
|
31
|
+
docker run -d \
|
|
32
|
+
--name poolbot \
|
|
33
|
+
-v poolbot-data:/root/.poolbot \
|
|
34
|
+
-p 18789:18789 \
|
|
35
|
+
poolbot/pool-bot:latest
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 3. Do Source
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# Clonar repositório
|
|
42
|
+
git clone https://github.com/poolbot/poolbot.git
|
|
43
|
+
cd poolbot
|
|
44
|
+
|
|
45
|
+
# Instalar dependências
|
|
46
|
+
pnpm install
|
|
47
|
+
|
|
48
|
+
# Build
|
|
49
|
+
pnpm build
|
|
50
|
+
|
|
51
|
+
# Link global (opcional)
|
|
52
|
+
pnpm link --global
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Primeiros Passos
|
|
56
|
+
|
|
57
|
+
### 1. Inicializar Configuração
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Criar diretório de configuração
|
|
61
|
+
poolbot config init
|
|
62
|
+
|
|
63
|
+
# Ou criar manualmente
|
|
64
|
+
mkdir -p ~/.poolbot
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### 2. Configurar Gateway
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# Configuração básica
|
|
71
|
+
poolbot config set gateway.mode local
|
|
72
|
+
poolbot config set gateway.port 18789
|
|
73
|
+
poolbot config set gateway.bind loopback
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 3. Iniciar Gateway
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# Iniciar gateway
|
|
80
|
+
poolbot gateway run
|
|
81
|
+
|
|
82
|
+
# Ou em modo development
|
|
83
|
+
poolbot gateway run --dev
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### 4. Acessar Dashboard
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
# Abrir dashboard no browser
|
|
90
|
+
poolbot dashboard
|
|
91
|
+
|
|
92
|
+
# Ou URL direta
|
|
93
|
+
# http://127.0.0.1:18789
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Configuração de Canais
|
|
97
|
+
|
|
98
|
+
### Telegram
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
# Obter token do @BotFather
|
|
102
|
+
poolbot config set channels.telegram.token YOUR_BOT_TOKEN
|
|
103
|
+
|
|
104
|
+
# Habilitar canal
|
|
105
|
+
poolbot config set channels.telegram.enabled true
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Discord
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
# Obter token do Discord Developer Portal
|
|
112
|
+
poolbot config set channels.discord.token YOUR_BOT_TOKEN
|
|
113
|
+
|
|
114
|
+
# Habilitar canal
|
|
115
|
+
poolbot config set channels.discord.enabled true
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Slack
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Obter bot token do Slack App
|
|
122
|
+
poolbot config set channels.slack.token xoxb-YOUR-TOKEN
|
|
123
|
+
|
|
124
|
+
# Habilitar canal
|
|
125
|
+
poolbot config set channels.slack.enabled true
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### WhatsApp
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
# Escanear QR Code
|
|
132
|
+
poolbot whatsapp scan
|
|
133
|
+
|
|
134
|
+
# Ou configurar sessão
|
|
135
|
+
poolbot config set channels.whatsapp.session YOUR_SESSION_ID
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Verificação
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
# Verificar status do gateway
|
|
142
|
+
poolbot gateway status
|
|
143
|
+
|
|
144
|
+
# Verificar canais
|
|
145
|
+
poolbot channels status
|
|
146
|
+
|
|
147
|
+
# Verificar configuração
|
|
148
|
+
poolbot config list
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Troubleshooting
|
|
152
|
+
|
|
153
|
+
### Gateway não inicia
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
# Verificar logs
|
|
157
|
+
poolbot gateway logs
|
|
158
|
+
|
|
159
|
+
# Verificar porta
|
|
160
|
+
lsof -i :18789
|
|
161
|
+
|
|
162
|
+
# Resetar configuração
|
|
163
|
+
poolbot config reset
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Canais não conectam
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
# Verificar tokens
|
|
170
|
+
poolbot channels test telegram
|
|
171
|
+
|
|
172
|
+
# Re-autenticar
|
|
173
|
+
poolbot login <channel>
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Problemas de permissão
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
# Linux/Mac
|
|
180
|
+
chmod +x $(which poolbot)
|
|
181
|
+
|
|
182
|
+
# Windows (Admin)
|
|
183
|
+
# Reinstalar como administrador
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Próximos Passos
|
|
187
|
+
|
|
188
|
+
- [Configuração](/getting-started/configuration)
|
|
189
|
+
- [Quick Start](/getting-started/quick-start)
|
|
190
|
+
- [Canais](/channels/overview)
|
|
191
|
+
- [Dashboard](/components/dashboard)
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Introdução ao Pool Bot
|
|
2
|
+
|
|
3
|
+
## O que é Pool Bot?
|
|
4
|
+
|
|
5
|
+
Pool Bot é uma plataforma de automação e integração de mensagens multi-canal com suporte a agentes de IA. Ele permite que você conecte seus canais de comunicação favoritos (Telegram, Discord, Slack, WhatsApp, etc.) e automatize respostas, gerencie sessões e integre com modelos de linguagem.
|
|
6
|
+
|
|
7
|
+
## Principais Features
|
|
8
|
+
|
|
9
|
+
### 🎯 Multi-Canal
|
|
10
|
+
Conecte e gerencie múltiplos canais de comunicação em um único lugar:
|
|
11
|
+
- **Telegram** - Bots do Telegram
|
|
12
|
+
- **Discord** - Servidores Discord
|
|
13
|
+
- **Slack** - Workspaces Slack
|
|
14
|
+
- **WhatsApp** - WhatsApp Web
|
|
15
|
+
- **Signal** - Signal Bot
|
|
16
|
+
- **iMessage** - iMessage (macOS)
|
|
17
|
+
- **Google Chat** - Google Workspace
|
|
18
|
+
- **IRC** - Servidores IRC
|
|
19
|
+
- **Nostr** - Protocolo Nostr descentralizado
|
|
20
|
+
|
|
21
|
+
### 🤖 Agentes de IA
|
|
22
|
+
Integração com modelos de linguagem para automação inteligente:
|
|
23
|
+
- Suporte a múltiplos provedores (Claude, GPT, etc.)
|
|
24
|
+
- Gerenciamento de sessões por usuário
|
|
25
|
+
- Memória contextual
|
|
26
|
+
- Customização de prompts
|
|
27
|
+
|
|
28
|
+
### 🎛️ Dashboard Web
|
|
29
|
+
Interface web moderna para gerenciamento:
|
|
30
|
+
- Command Palette (Cmd+K)
|
|
31
|
+
- Visão geral em tempo real
|
|
32
|
+
- Gerenciamento de sessões
|
|
33
|
+
- Configuração de canais
|
|
34
|
+
- Monitoramento de custos
|
|
35
|
+
|
|
36
|
+
### ⏰ Cron & Agendamento
|
|
37
|
+
Automatize tarefas recorrentes:
|
|
38
|
+
- Jobs agendados por canal
|
|
39
|
+
- Filtros avançados (usuário, sessão, agente)
|
|
40
|
+
- Logs de execução
|
|
41
|
+
- Retry automático
|
|
42
|
+
|
|
43
|
+
### 💰 Cost Tracking
|
|
44
|
+
Monitore custos de API:
|
|
45
|
+
- Tracking de tokens
|
|
46
|
+
- Tempo de processamento
|
|
47
|
+
- Chamadas de API
|
|
48
|
+
- Exportação de relatórios (CSV, JSON, Markdown)
|
|
49
|
+
|
|
50
|
+
### 🔌 Sistema de Plugins
|
|
51
|
+
Estenda funcionalidades:
|
|
52
|
+
- Memory Core - Gerenciamento de memória
|
|
53
|
+
- Keyed Async Queue - Filas concorrentes
|
|
54
|
+
- Desenvolva seus próprios plugins
|
|
55
|
+
|
|
56
|
+
## Casos de Uso
|
|
57
|
+
|
|
58
|
+
### 1. Atendimento ao Cliente
|
|
59
|
+
Automatize respostas frequentes em múltiplos canais enquanto mantém a capacidade de escalar para atendimento humano.
|
|
60
|
+
|
|
61
|
+
### 2. Notificações
|
|
62
|
+
Envie notificações automatizadas para seus canais preferidos baseadas em eventos do seu sistema.
|
|
63
|
+
|
|
64
|
+
### 3. Automação de Comunidade
|
|
65
|
+
Gerencie comunidades no Discord/Telegram com moderação automática, boas-vindas e FAQs.
|
|
66
|
+
|
|
67
|
+
### 4. Assistente Pessoal
|
|
68
|
+
Conecte seus canais pessoais e tenha um assistente de IA disponível em todos eles.
|
|
69
|
+
|
|
70
|
+
### 5. Monitoramento
|
|
71
|
+
Receba alertas e monitore sistemas através dos seus canais de comunicação.
|
|
72
|
+
|
|
73
|
+
## Arquitetura
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
┌─────────────────────────────────────────────────────┐
|
|
77
|
+
│ Pool Bot Gateway │
|
|
78
|
+
├─────────────────────────────────────────────────────┤
|
|
79
|
+
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
|
|
80
|
+
│ │Telegram │ │ Discord │ │ Slack │ ... │
|
|
81
|
+
│ └────┬────┘ └────┬────┘ └────┬────┘ │
|
|
82
|
+
│ │ │ │ │
|
|
83
|
+
│ └────────────┴────────────┘ │
|
|
84
|
+
│ │ │
|
|
85
|
+
│ ┌────────▼────────┐ │
|
|
86
|
+
│ │ Message Router │ │
|
|
87
|
+
│ └────────┬────────┘ │
|
|
88
|
+
│ │ │
|
|
89
|
+
│ ┌────────────┴────────────┐ │
|
|
90
|
+
│ │ │ │
|
|
91
|
+
│ ┌────▼────┐ ┌─────▼─────┐ │
|
|
92
|
+
│ │ Session │ │ Agent │ │
|
|
93
|
+
│ │ Manager │ │ Manager │ │
|
|
94
|
+
│ └────┬────┘ └─────┬─────┘ │
|
|
95
|
+
│ │ │ │
|
|
96
|
+
│ └────────────┬────────────┘ │
|
|
97
|
+
│ │ │
|
|
98
|
+
│ ┌────────▼────────┐ │
|
|
99
|
+
│ │ ACP Layer │ │
|
|
100
|
+
│ └────────┬────────┘ │
|
|
101
|
+
│ │ │
|
|
102
|
+
│ ┌────────────┴────────────┐ │
|
|
103
|
+
│ │ │ │
|
|
104
|
+
│ ┌────▼────┐ ┌─────▼─────┐ │
|
|
105
|
+
│ │ LLM │ │ Memory │ │
|
|
106
|
+
│ │ Provider│ │ Store │ │
|
|
107
|
+
│ └─────────┘ └───────────┘ │
|
|
108
|
+
└─────────────────────────────────────────────────────┘
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Começando
|
|
112
|
+
|
|
113
|
+
Veja nosso guia de [Instalação](/getting-started/installation) para começar em 5 minutos!
|
|
114
|
+
|
|
115
|
+
## Links Relacionados
|
|
116
|
+
|
|
117
|
+
- [Instalação](/getting-started/installation)
|
|
118
|
+
- [Configuração](/getting-started/configuration)
|
|
119
|
+
- [Quick Start](/getting-started/quick-start)
|
|
120
|
+
- [Arquitetura](/architecture/overview)
|