@fortressllm/sybil 0.0.3
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/.env copy +91 -0
- package/.env.example +139 -0
- package/BROWSER_CONTROL.md +354 -0
- package/CLI_CHAT_FEATURE.md +224 -0
- package/CLI_GUIDE.md +359 -0
- package/DYNAMIC_SKILLS.md +345 -0
- package/DockerFile.sandbox +14 -0
- package/PROGRESS.md +249 -0
- package/README.md +281 -0
- package/RENAME_LOG.md +62 -0
- package/SIMPLIFIED_TELEGRAM_UX.md +273 -0
- package/SYBIL_SUMMARY.md +360 -0
- package/TASK11_NETWORK.md +202 -0
- package/TASK14_CLI.md +432 -0
- package/TASK8_SAFETY.md +317 -0
- package/TASK9_COMPLETION.md +186 -0
- package/TASK9_SUMMARY.md +201 -0
- package/TELEGRAM_OTP_AUTH.md +359 -0
- package/VECTOR_MEMORY.md +163 -0
- package/assets/logo.png +0 -0
- package/cypfq_code_search.md +287 -0
- package/cypfq_driver_search.md +297 -0
- package/cypfq_github_search.md +297 -0
- package/cypfq_repo_search.md +370 -0
- package/dist/agents/autonomous-agent.d.ts +61 -0
- package/dist/agents/autonomous-agent.d.ts.map +1 -0
- package/dist/agents/autonomous-agent.js +536 -0
- package/dist/agents/autonomous-agent.js.map +1 -0
- package/dist/agents/network.d.ts +1006 -0
- package/dist/agents/network.d.ts.map +1 -0
- package/dist/agents/network.js +1266 -0
- package/dist/agents/network.js.map +1 -0
- package/dist/cli/commands/backup.d.ts +3 -0
- package/dist/cli/commands/backup.d.ts.map +1 -0
- package/dist/cli/commands/backup.js +63 -0
- package/dist/cli/commands/backup.js.map +1 -0
- package/dist/cli/commands/config.d.ts +3 -0
- package/dist/cli/commands/config.d.ts.map +1 -0
- package/dist/cli/commands/config.js +163 -0
- package/dist/cli/commands/config.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +3 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/doctor.js +107 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/init.d.ts +3 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +138 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/logs.d.ts +3 -0
- package/dist/cli/commands/logs.d.ts.map +1 -0
- package/dist/cli/commands/logs.js +81 -0
- package/dist/cli/commands/logs.js.map +1 -0
- package/dist/cli/commands/otp.d.ts +3 -0
- package/dist/cli/commands/otp.d.ts.map +1 -0
- package/dist/cli/commands/otp.js +142 -0
- package/dist/cli/commands/otp.js.map +1 -0
- package/dist/cli/commands/restore.d.ts +3 -0
- package/dist/cli/commands/restore.d.ts.map +1 -0
- package/dist/cli/commands/restore.js +99 -0
- package/dist/cli/commands/restore.js.map +1 -0
- package/dist/cli/commands/start.d.ts +3 -0
- package/dist/cli/commands/start.d.ts.map +1 -0
- package/dist/cli/commands/start.js +65 -0
- package/dist/cli/commands/start.js.map +1 -0
- package/dist/cli/commands/status.d.ts +3 -0
- package/dist/cli/commands/status.d.ts.map +1 -0
- package/dist/cli/commands/status.js +68 -0
- package/dist/cli/commands/status.js.map +1 -0
- package/dist/cli/commands/stop.d.ts +3 -0
- package/dist/cli/commands/stop.d.ts.map +1 -0
- package/dist/cli/commands/stop.js +62 -0
- package/dist/cli/commands/stop.js.map +1 -0
- package/dist/cli/commands/update.d.ts +3 -0
- package/dist/cli/commands/update.d.ts.map +1 -0
- package/dist/cli/commands/update.js +49 -0
- package/dist/cli/commands/update.js.map +1 -0
- package/dist/cli/commands/whatsapp.d.ts +3 -0
- package/dist/cli/commands/whatsapp.d.ts.map +1 -0
- package/dist/cli/commands/whatsapp.js +281 -0
- package/dist/cli/commands/whatsapp.js.map +1 -0
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +58 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli.d.ts +9 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +750 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +109 -0
- package/dist/index.js.map +1 -0
- package/dist/mastra/index.d.ts +4 -0
- package/dist/mastra/index.d.ts.map +1 -0
- package/dist/mastra/index.js +37 -0
- package/dist/mastra/index.js.map +1 -0
- package/dist/mastra/memory.d.ts +9 -0
- package/dist/mastra/memory.d.ts.map +1 -0
- package/dist/mastra/memory.js +92 -0
- package/dist/mastra/memory.js.map +1 -0
- package/dist/processors/index.d.ts +74 -0
- package/dist/processors/index.d.ts.map +1 -0
- package/dist/processors/index.js +153 -0
- package/dist/processors/index.js.map +1 -0
- package/dist/processors/semantic-recall.d.ts +63 -0
- package/dist/processors/semantic-recall.d.ts.map +1 -0
- package/dist/processors/semantic-recall.js +216 -0
- package/dist/processors/semantic-recall.js.map +1 -0
- package/dist/processors/tool-search.d.ts +26 -0
- package/dist/processors/tool-search.d.ts.map +1 -0
- package/dist/processors/tool-search.js +41 -0
- package/dist/processors/tool-search.js.map +1 -0
- package/dist/skills/dynamic/skill-generator.d.ts +169 -0
- package/dist/skills/dynamic/skill-generator.d.ts.map +1 -0
- package/dist/skills/dynamic/skill-generator.js +488 -0
- package/dist/skills/dynamic/skill-generator.js.map +1 -0
- package/dist/tools/agent-delegation-tools.d.ts +142 -0
- package/dist/tools/agent-delegation-tools.d.ts.map +1 -0
- package/dist/tools/agent-delegation-tools.js +263 -0
- package/dist/tools/agent-delegation-tools.js.map +1 -0
- package/dist/tools/browser-tools.d.ts +374 -0
- package/dist/tools/browser-tools.d.ts.map +1 -0
- package/dist/tools/browser-tools.js +752 -0
- package/dist/tools/browser-tools.js.map +1 -0
- package/dist/tools/dynamic/registry.d.ts +61 -0
- package/dist/tools/dynamic/registry.d.ts.map +1 -0
- package/dist/tools/dynamic/registry.js +121 -0
- package/dist/tools/dynamic/registry.js.map +1 -0
- package/dist/tools/dynamic/tool-generator.d.ts +99 -0
- package/dist/tools/dynamic/tool-generator.d.ts.map +1 -0
- package/dist/tools/dynamic/tool-generator.js +367 -0
- package/dist/tools/dynamic/tool-generator.js.map +1 -0
- package/dist/tools/extended-tools.d.ts +176 -0
- package/dist/tools/extended-tools.d.ts.map +1 -0
- package/dist/tools/extended-tools.js +464 -0
- package/dist/tools/extended-tools.js.map +1 -0
- package/dist/tools/library/calendar/index.d.ts +134 -0
- package/dist/tools/library/calendar/index.d.ts.map +1 -0
- package/dist/tools/library/calendar/index.js +160 -0
- package/dist/tools/library/calendar/index.js.map +1 -0
- package/dist/tools/podman-workspace-mcp-cli.d.ts +3 -0
- package/dist/tools/podman-workspace-mcp-cli.d.ts.map +1 -0
- package/dist/tools/podman-workspace-mcp-cli.js +12 -0
- package/dist/tools/podman-workspace-mcp-cli.js.map +1 -0
- package/dist/tools/podman-workspace-mcp.d.ts +247 -0
- package/dist/tools/podman-workspace-mcp.d.ts.map +1 -0
- package/dist/tools/podman-workspace-mcp.js +1093 -0
- package/dist/tools/podman-workspace-mcp.js.map +1 -0
- package/dist/tools/podman-workspace.d.ts +148 -0
- package/dist/tools/podman-workspace.d.ts.map +1 -0
- package/dist/tools/podman-workspace.js +682 -0
- package/dist/tools/podman-workspace.js.map +1 -0
- package/dist/tools/telegram-file-tools.d.ts +78 -0
- package/dist/tools/telegram-file-tools.d.ts.map +1 -0
- package/dist/tools/telegram-file-tools.js +294 -0
- package/dist/tools/telegram-file-tools.js.map +1 -0
- package/dist/tools/tool-registry.d.ts +467 -0
- package/dist/tools/tool-registry.d.ts.map +1 -0
- package/dist/tools/tool-registry.js +156 -0
- package/dist/tools/tool-registry.js.map +1 -0
- package/dist/tools/web-tools.d.ts +77 -0
- package/dist/tools/web-tools.d.ts.map +1 -0
- package/dist/tools/web-tools.js +416 -0
- package/dist/tools/web-tools.js.map +1 -0
- package/dist/tools/whatsapp-autoreply-tools.d.ts +118 -0
- package/dist/tools/whatsapp-autoreply-tools.d.ts.map +1 -0
- package/dist/tools/whatsapp-autoreply-tools.js +503 -0
- package/dist/tools/whatsapp-autoreply-tools.js.map +1 -0
- package/dist/tools/whatsapp-tools.d.ts +175 -0
- package/dist/tools/whatsapp-tools.d.ts.map +1 -0
- package/dist/tools/whatsapp-tools.js +566 -0
- package/dist/tools/whatsapp-tools.js.map +1 -0
- package/dist/utils/logger.d.ts +65 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +307 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/model-config.d.ts +73 -0
- package/dist/utils/model-config.d.ts.map +1 -0
- package/dist/utils/model-config.js +366 -0
- package/dist/utils/model-config.js.map +1 -0
- package/dist/utils/semantic-memory.d.ts +82 -0
- package/dist/utils/semantic-memory.d.ts.map +1 -0
- package/dist/utils/semantic-memory.js +189 -0
- package/dist/utils/semantic-memory.js.map +1 -0
- package/dist/utils/system.d.ts +2 -0
- package/dist/utils/system.d.ts.map +1 -0
- package/dist/utils/system.js +24 -0
- package/dist/utils/system.js.map +1 -0
- package/dist/utils/telegram-auth.d.ts +54 -0
- package/dist/utils/telegram-auth.d.ts.map +1 -0
- package/dist/utils/telegram-auth.js +146 -0
- package/dist/utils/telegram-auth.js.map +1 -0
- package/dist/utils/telegram.d.ts +7 -0
- package/dist/utils/telegram.d.ts.map +1 -0
- package/dist/utils/telegram.js +1494 -0
- package/dist/utils/telegram.js.map +1 -0
- package/dist/utils/whatsapp-client.d.ts +166 -0
- package/dist/utils/whatsapp-client.d.ts.map +1 -0
- package/dist/utils/whatsapp-client.js +722 -0
- package/dist/utils/whatsapp-client.js.map +1 -0
- package/dist/workflows/planner-workflow.d.ts +39 -0
- package/dist/workflows/planner-workflow.d.ts.map +1 -0
- package/dist/workflows/planner-workflow.js +165 -0
- package/dist/workflows/planner-workflow.js.map +1 -0
- package/dist/workflows/skill-builder-workflow.d.ts +16 -0
- package/dist/workflows/skill-builder-workflow.d.ts.map +1 -0
- package/dist/workflows/skill-builder-workflow.js +157 -0
- package/dist/workflows/skill-builder-workflow.js.map +1 -0
- package/dist/workspace/index.d.ts +23 -0
- package/dist/workspace/index.d.ts.map +1 -0
- package/dist/workspace/index.js +64 -0
- package/dist/workspace/index.js.map +1 -0
- package/docs/README.md +140 -0
- package/docs/api/agents.md +481 -0
- package/docs/api/browser-tools.md +469 -0
- package/docs/api/memory.md +629 -0
- package/docs/architecture/agent-networks.md +586 -0
- package/docs/architecture/memory.md +579 -0
- package/docs/architecture/overview.md +436 -0
- package/docs/architecture/tools.md +637 -0
- package/docs/cli-tui.md +367 -0
- package/docs/guides/environment-variables.md +502 -0
- package/docs/guides/troubleshooting.md +882 -0
- package/docs/tutorials/agent-networks.md +432 -0
- package/docs/tutorials/dynamic-tools.md +469 -0
- package/docs/tutorials/getting-started.md +263 -0
- package/docs/tutorials/skills.md +561 -0
- package/docs/tutorials/web-browsing.md +329 -0
- package/mastra.db-shm +0 -0
- package/mastra.db-wal +0 -0
- package/package.json +71 -0
- package/plan.md +601 -0
- package/skills/code-review/SKILL.md +48 -0
- package/skills/task-planning/SKILL.md +55 -0
- package/skills/web-research/SKILL.md +79 -0
- package/skills/whatsapp-management/SKILL.md +78 -0
- package/src/agents/autonomous-agent.ts +626 -0
- package/src/agents/network.ts +1307 -0
- package/src/cli/commands/backup.ts +78 -0
- package/src/cli/commands/config.ts +176 -0
- package/src/cli/commands/doctor.ts +111 -0
- package/src/cli/commands/init.ts +150 -0
- package/src/cli/commands/logs.ts +94 -0
- package/src/cli/commands/otp.ts +162 -0
- package/src/cli/commands/restore.ts +118 -0
- package/src/cli/commands/start.ts +76 -0
- package/src/cli/commands/status.ts +81 -0
- package/src/cli/commands/stop.ts +68 -0
- package/src/cli/commands/update.ts +61 -0
- package/src/cli/commands/whatsapp.ts +322 -0
- package/src/cli/index.ts +69 -0
- package/src/cli.ts +830 -0
- package/src/index.ts +124 -0
- package/src/mastra/index.ts +49 -0
- package/src/mastra/memory.ts +99 -0
- package/src/mastra/public/workspace/plan.md +115 -0
- package/src/mastra/public/workspace/research/react-tailwind/skill.md +47 -0
- package/src/processors/index.ts +170 -0
- package/src/processors/semantic-recall.ts +277 -0
- package/src/processors/tool-search.ts +46 -0
- package/src/skills/dynamic/skill-generator.ts +568 -0
- package/src/tools/agent-delegation-tools.ts +301 -0
- package/src/tools/browser-tools.ts +792 -0
- package/src/tools/dynamic/registry.ts +144 -0
- package/src/tools/dynamic/tool-generator.ts +406 -0
- package/src/tools/extended-tools.ts +498 -0
- package/src/tools/library/calendar/index.ts +172 -0
- package/src/tools/podman-workspace-mcp-cli.ts +14 -0
- package/src/tools/podman-workspace-mcp.ts +1290 -0
- package/src/tools/podman-workspace.ts +858 -0
- package/src/tools/telegram-file-tools.ts +320 -0
- package/src/tools/tool-registry.ts +233 -0
- package/src/tools/web-tools.ts +461 -0
- package/src/tools/whatsapp-autoreply-tools.ts +616 -0
- package/src/tools/whatsapp-tools.ts +602 -0
- package/src/utils/logger.ts +368 -0
- package/src/utils/model-config.ts +437 -0
- package/src/utils/semantic-memory.ts +230 -0
- package/src/utils/system.ts +25 -0
- package/src/utils/telegram-auth.ts +201 -0
- package/src/utils/telegram.ts +1847 -0
- package/src/utils/whatsapp-client.ts +808 -0
- package/src/workflows/planner-workflow.ts +178 -0
- package/src/workflows/skill-builder-workflow.ts +175 -0
- package/src/workspace/index.ts +69 -0
- package/tsconfig.json +22 -0
- package/view-logs.sh +116 -0
- package/whatsapp-session.sh +197 -0
|
@@ -0,0 +1,882 @@
|
|
|
1
|
+
# Troubleshooting Guide
|
|
2
|
+
|
|
3
|
+
Common issues and solutions for Sybil.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Installation Issues
|
|
8
|
+
|
|
9
|
+
### npm install fails
|
|
10
|
+
|
|
11
|
+
**Error:** `npm ERR! code E404` or `npm ERR! code ENOENT`
|
|
12
|
+
|
|
13
|
+
**Solutions:**
|
|
14
|
+
|
|
15
|
+
1. **Clear npm cache:**
|
|
16
|
+
```bash
|
|
17
|
+
npm cache clean --force
|
|
18
|
+
npm install
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
2. **Delete node_modules and reinstall:**
|
|
22
|
+
```bash
|
|
23
|
+
rm -rf node_modules package-lock.json
|
|
24
|
+
npm install
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
3. **Check Node.js version:**
|
|
28
|
+
```bash
|
|
29
|
+
node --version # Should be v18+
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
4. **Use specific Node version:**
|
|
33
|
+
```bash
|
|
34
|
+
# Using nvm
|
|
35
|
+
nvm install 20
|
|
36
|
+
nvm use 20
|
|
37
|
+
npm install
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
### TypeScript compilation errors
|
|
43
|
+
|
|
44
|
+
**Error:** `Cannot find module` or `Type error`
|
|
45
|
+
|
|
46
|
+
**Solutions:**
|
|
47
|
+
|
|
48
|
+
1. **Rebuild TypeScript:**
|
|
49
|
+
```bash
|
|
50
|
+
npm run build
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
2. **Check TypeScript version:**
|
|
54
|
+
```bash
|
|
55
|
+
npx tsc --version # Should be 5.x
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
3. **Install missing types:**
|
|
59
|
+
```bash
|
|
60
|
+
npm install -D @types/node
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
4. **Clean build:**
|
|
64
|
+
```bash
|
|
65
|
+
rm -rf dist
|
|
66
|
+
npm run build
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Telegram Bot Issues
|
|
72
|
+
|
|
73
|
+
### Bot not responding
|
|
74
|
+
|
|
75
|
+
**Symptoms:** Messages to bot get no response
|
|
76
|
+
|
|
77
|
+
**Solutions:**
|
|
78
|
+
|
|
79
|
+
1. **Check bot token:**
|
|
80
|
+
```bash
|
|
81
|
+
# Verify token format
|
|
82
|
+
echo $TELEGRAM_BOT_TOKEN # Should be like: 123456789:ABCdef...
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
2. **Test bot token:**
|
|
86
|
+
```bash
|
|
87
|
+
curl https://api.telegram.org/bot<YOUR_TOKEN>/getMe
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
3. **Check if bot is running:**
|
|
91
|
+
```bash
|
|
92
|
+
sybil status
|
|
93
|
+
# or
|
|
94
|
+
ps aux | grep node
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
4. **Restart bot:**
|
|
98
|
+
```bash
|
|
99
|
+
sybil stop
|
|
100
|
+
sybil start
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
5. **Check logs:**
|
|
104
|
+
```bash
|
|
105
|
+
sybil logs --follow
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
### "Telegram bot token invalid"
|
|
111
|
+
|
|
112
|
+
**Solution:**
|
|
113
|
+
1. Message [@BotFather](https://t.me/BotFather)
|
|
114
|
+
2. Send `/mybots`
|
|
115
|
+
3. Select your bot
|
|
116
|
+
4. Choose "API Token"
|
|
117
|
+
5. Copy new token
|
|
118
|
+
6. Update `.env`:
|
|
119
|
+
```bash
|
|
120
|
+
TELEGRAM_BOT_TOKEN=new_token_here
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
### Bot webhook issues
|
|
126
|
+
|
|
127
|
+
**Symptoms:** Bot receives messages but doesn't respond
|
|
128
|
+
|
|
129
|
+
**Solutions:**
|
|
130
|
+
|
|
131
|
+
1. **Check for webhook conflicts:**
|
|
132
|
+
```bash
|
|
133
|
+
# Remove webhook if set
|
|
134
|
+
curl -X POST "https://api.telegram.org/bot<TOKEN>/deleteWebhook"
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
2. **Verify polling mode:**
|
|
138
|
+
- Sybil uses polling by default
|
|
139
|
+
- Check logs for "polling" messages
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## AI Provider Issues
|
|
144
|
+
|
|
145
|
+
### "AI Provider not configured"
|
|
146
|
+
|
|
147
|
+
**Symptoms:** Error on startup about missing AI configuration
|
|
148
|
+
|
|
149
|
+
**Solutions:**
|
|
150
|
+
|
|
151
|
+
1. **Check .env file:**
|
|
152
|
+
```bash
|
|
153
|
+
cat .env | grep AI_PROVIDER
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
2. **Set provider:**
|
|
157
|
+
```bash
|
|
158
|
+
echo "AI_PROVIDER=ollama" >> .env
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
3. **Verify provider-specific variables:**
|
|
162
|
+
```bash
|
|
163
|
+
# For Ollama
|
|
164
|
+
echo "OLLAMA_MODEL=llama3.2" >> .env
|
|
165
|
+
|
|
166
|
+
# For OpenAI
|
|
167
|
+
echo "OPENAI_API_KEY=sk-..." >> .env
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
### Ollama connection refused
|
|
173
|
+
|
|
174
|
+
**Error:** `connect ECONNREFUSED 127.0.0.1:11434`
|
|
175
|
+
|
|
176
|
+
**Solutions:**
|
|
177
|
+
|
|
178
|
+
1. **Start Ollama:**
|
|
179
|
+
```bash
|
|
180
|
+
ollama serve
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
2. **Check if Ollama is running:**
|
|
184
|
+
```bash
|
|
185
|
+
curl http://localhost:11434/api/tags
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
3. **Verify model exists:**
|
|
189
|
+
```bash
|
|
190
|
+
ollama list
|
|
191
|
+
ollama pull llama3.2
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
4. **Check Ollama version:**
|
|
195
|
+
```bash
|
|
196
|
+
ollama --version
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
5. **Different port:**
|
|
200
|
+
```bash
|
|
201
|
+
# If Ollama runs on different port
|
|
202
|
+
OLLAMA_BASE_URL=http://localhost:11435
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
### "Model not found"
|
|
208
|
+
|
|
209
|
+
**Error:** Model returns 404 or not available
|
|
210
|
+
|
|
211
|
+
**Solutions:**
|
|
212
|
+
|
|
213
|
+
1. **Check model name:**
|
|
214
|
+
```bash
|
|
215
|
+
# For Ollama
|
|
216
|
+
ollama list
|
|
217
|
+
|
|
218
|
+
# Should match OLLAMA_MODEL in .env
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
2. **Pull model:**
|
|
222
|
+
```bash
|
|
223
|
+
ollama pull llama3.2
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
3. **Use correct model format:**
|
|
227
|
+
```bash
|
|
228
|
+
# OpenAI
|
|
229
|
+
OPENAI_MODEL=gpt-4o
|
|
230
|
+
|
|
231
|
+
# Anthropic
|
|
232
|
+
ANTHROPIC_MODEL=claude-3-5-sonnet-20241022
|
|
233
|
+
|
|
234
|
+
# Groq
|
|
235
|
+
GROQ_MODEL=llama-3.3-70b-versatile
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
### API rate limits
|
|
241
|
+
|
|
242
|
+
**Error:** `429 Too Many Requests`
|
|
243
|
+
|
|
244
|
+
**Solutions:**
|
|
245
|
+
|
|
246
|
+
1. **Switch to different provider:**
|
|
247
|
+
```bash
|
|
248
|
+
# Edit .env
|
|
249
|
+
AI_PROVIDER=ollama # Local, no rate limits
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
2. **Reduce concurrent requests:**
|
|
253
|
+
- Limit number of simultaneous chats
|
|
254
|
+
- Add delays between messages
|
|
255
|
+
|
|
256
|
+
3. **Check provider status:**
|
|
257
|
+
- OpenAI: https://status.openai.com
|
|
258
|
+
- Anthropic: https://status.anthropic.com
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
### "Embedding model error"
|
|
263
|
+
|
|
264
|
+
**Error:** Semantic search or memory fails
|
|
265
|
+
|
|
266
|
+
**Solutions:**
|
|
267
|
+
|
|
268
|
+
1. **Check embedding configuration:**
|
|
269
|
+
```bash
|
|
270
|
+
cat .env | grep EMBEDDING
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
2. **Use OpenAI for embeddings:**
|
|
274
|
+
```bash
|
|
275
|
+
EMBEDDING_MODEL=openai/text-embedding-3-small
|
|
276
|
+
OPENAI_API_KEY=sk-...
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
3. **Or disable semantic search:**
|
|
280
|
+
```bash
|
|
281
|
+
# Remove semantic recall from processors
|
|
282
|
+
# Edit: src/processors/index.ts
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## WhatsApp Issues
|
|
288
|
+
|
|
289
|
+
### QR code not scanning
|
|
290
|
+
|
|
291
|
+
**Symptoms:** QR code appears but WhatsApp won't scan
|
|
292
|
+
|
|
293
|
+
**Solutions:**
|
|
294
|
+
|
|
295
|
+
1. **Use WhatsApp on phone, not WhatsApp Business:**
|
|
296
|
+
- Standard WhatsApp works better
|
|
297
|
+
|
|
298
|
+
2. **Clear browser cache:**
|
|
299
|
+
```bash
|
|
300
|
+
rm -rf .wwebjs_cache
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
3. **Try again:**
|
|
304
|
+
```bash
|
|
305
|
+
sybil whatsapp
|
|
306
|
+
# Select "Reinitialize"
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
4. **Check session folder:**
|
|
310
|
+
```bash
|
|
311
|
+
ls -la ~/.sybil/whatsapp-session/
|
|
312
|
+
# Should contain session files
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
5. **Re-authenticate:**
|
|
316
|
+
```bash
|
|
317
|
+
rm -rf ~/.sybil/whatsapp-session
|
|
318
|
+
sybil whatsapp
|
|
319
|
+
# Scan new QR code
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
### WhatsApp "Disconnected"
|
|
325
|
+
|
|
326
|
+
**Symptoms:** Status shows disconnected or "not ready"
|
|
327
|
+
|
|
328
|
+
**Solutions:**
|
|
329
|
+
|
|
330
|
+
1. **Check WhatsApp status:**
|
|
331
|
+
```bash
|
|
332
|
+
sybil whatsapp
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
2. **Re-initialize:**
|
|
336
|
+
```bash
|
|
337
|
+
# In Telegram
|
|
338
|
+
/whatsapp
|
|
339
|
+
# Or use CLI
|
|
340
|
+
sybil whatsapp
|
|
341
|
+
# Select "Initialize"
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
3. **Check Puppeteer:**
|
|
345
|
+
```bash
|
|
346
|
+
# Verify Chrome/Chromium installed
|
|
347
|
+
which google-chrome
|
|
348
|
+
which chromium
|
|
349
|
+
|
|
350
|
+
# Set custom path if needed
|
|
351
|
+
echo "PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium" >> .env
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
4. **Check logs:**
|
|
355
|
+
```bash
|
|
356
|
+
sybil logs --follow | grep -i whatsapp
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
---
|
|
360
|
+
|
|
361
|
+
### Message not sending
|
|
362
|
+
|
|
363
|
+
**Error:** "Failed to send WhatsApp message"
|
|
364
|
+
|
|
365
|
+
**Solutions:**
|
|
366
|
+
|
|
367
|
+
1. **Check phone number format:**
|
|
368
|
+
- Use international format: `+1234567890`
|
|
369
|
+
- No spaces or special characters
|
|
370
|
+
|
|
371
|
+
2. **Verify contact exists:**
|
|
372
|
+
```bash
|
|
373
|
+
# In Telegram
|
|
374
|
+
"Check if +1234567890 is in my WhatsApp contacts"
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
3. **Check connection:**
|
|
378
|
+
```bash
|
|
379
|
+
/whatsapp
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
4. **Wait for connection:**
|
|
383
|
+
- WhatsApp Web takes time to sync
|
|
384
|
+
- Try again in 30 seconds
|
|
385
|
+
|
|
386
|
+
---
|
|
387
|
+
|
|
388
|
+
## Memory Issues
|
|
389
|
+
|
|
390
|
+
### Memory not persisting
|
|
391
|
+
|
|
392
|
+
**Symptoms:** Bot doesn't remember previous conversations
|
|
393
|
+
|
|
394
|
+
**Solutions:**
|
|
395
|
+
|
|
396
|
+
1. **Check database:**
|
|
397
|
+
```bash
|
|
398
|
+
ls -lh mastra.db
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
2. **Verify database URL:**
|
|
402
|
+
```bash
|
|
403
|
+
cat .env | grep DATABASE
|
|
404
|
+
# Should be: DATABASE_URL=file:./mastra.db
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
3. **Check permissions:**
|
|
408
|
+
```bash
|
|
409
|
+
# Should be writable
|
|
410
|
+
touch mastra.db
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
4. **Reset database (⚠️ loses all data):**
|
|
414
|
+
```bash
|
|
415
|
+
rm mastra.db
|
|
416
|
+
npm start
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
---
|
|
420
|
+
|
|
421
|
+
### Semantic search not working
|
|
422
|
+
|
|
423
|
+
**Symptoms:** "Memory" command returns nothing
|
|
424
|
+
|
|
425
|
+
**Solutions:**
|
|
426
|
+
|
|
427
|
+
1. **Check if semantic recall is enabled:**
|
|
428
|
+
```bash
|
|
429
|
+
# Check src/processors/index.ts
|
|
430
|
+
# Should include semanticRecall in inputProcessors
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
2. **Verify embedding model:**
|
|
434
|
+
```bash
|
|
435
|
+
cat .env | grep EMBEDDING
|
|
436
|
+
```
|
|
437
|
+
|
|
438
|
+
3. **Check LibSQL:**
|
|
439
|
+
```bash
|
|
440
|
+
# Should have vector extension
|
|
441
|
+
sqlite3 mastra.db ".tables"
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
4. **Rebuild memory:**
|
|
445
|
+
```bash
|
|
446
|
+
# Restart to reinitialize
|
|
447
|
+
sybil restart
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
---
|
|
451
|
+
|
|
452
|
+
## Workspace/Podman Issues
|
|
453
|
+
|
|
454
|
+
### "Podman not found"
|
|
455
|
+
|
|
456
|
+
**Error:** Code execution fails
|
|
457
|
+
|
|
458
|
+
**Solutions:**
|
|
459
|
+
|
|
460
|
+
1. **Install Podman:**
|
|
461
|
+
```bash
|
|
462
|
+
# macOS
|
|
463
|
+
brew install podman
|
|
464
|
+
|
|
465
|
+
# Ubuntu/Debian
|
|
466
|
+
sudo apt-get install podman
|
|
467
|
+
|
|
468
|
+
# Fedora
|
|
469
|
+
sudo dnf install podman
|
|
470
|
+
```
|
|
471
|
+
|
|
472
|
+
2. **Start Podman machine (macOS):**
|
|
473
|
+
```bash
|
|
474
|
+
podman machine init
|
|
475
|
+
podman machine start
|
|
476
|
+
```
|
|
477
|
+
|
|
478
|
+
3. **Verify installation:**
|
|
479
|
+
```bash
|
|
480
|
+
podman --version
|
|
481
|
+
podman run hello-world
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
---
|
|
485
|
+
|
|
486
|
+
### Code execution fails
|
|
487
|
+
|
|
488
|
+
**Error:** "Failed to execute code"
|
|
489
|
+
|
|
490
|
+
**Solutions:**
|
|
491
|
+
|
|
492
|
+
1. **Check Podman:**
|
|
493
|
+
```bash
|
|
494
|
+
podman ps
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
2. **Check workspace path:**
|
|
498
|
+
```bash
|
|
499
|
+
# Must use /workspace/ prefix
|
|
500
|
+
# Correct: /workspace/script.py
|
|
501
|
+
# Wrong: ./script.py or /Users/.../script.py
|
|
502
|
+
```
|
|
503
|
+
|
|
504
|
+
3. **Check logs:**
|
|
505
|
+
```bash
|
|
506
|
+
sybil logs --follow | grep -i podman
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
4. **Test manually:**
|
|
510
|
+
```bash
|
|
511
|
+
podman run --rm -v $(pwd)/workspace:/workspace alpine ls /workspace
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
---
|
|
515
|
+
|
|
516
|
+
## CLI Issues
|
|
517
|
+
|
|
518
|
+
### "sybil command not found"
|
|
519
|
+
|
|
520
|
+
**Solutions:**
|
|
521
|
+
|
|
522
|
+
1. **Install globally:**
|
|
523
|
+
```bash
|
|
524
|
+
npm install -g .
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
2. **Use npx:**
|
|
528
|
+
```bash
|
|
529
|
+
npx sybil
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
3. **Check PATH:**
|
|
533
|
+
```bash
|
|
534
|
+
# Add to shell config
|
|
535
|
+
export PATH="$PATH:$(npm bin -g)"
|
|
536
|
+
```
|
|
537
|
+
|
|
538
|
+
4. **Link locally:**
|
|
539
|
+
```bash
|
|
540
|
+
npm link
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
---
|
|
544
|
+
|
|
545
|
+
### CLI commands not working
|
|
546
|
+
|
|
547
|
+
**Solutions:**
|
|
548
|
+
|
|
549
|
+
1. **Build first:**
|
|
550
|
+
```bash
|
|
551
|
+
npm run build
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
2. **Check dist folder:**
|
|
555
|
+
```bash
|
|
556
|
+
ls dist/cli/
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
3. **Run directly:**
|
|
560
|
+
```bash
|
|
561
|
+
node dist/cli/index.js
|
|
562
|
+
```
|
|
563
|
+
|
|
564
|
+
---
|
|
565
|
+
|
|
566
|
+
## Performance Issues
|
|
567
|
+
|
|
568
|
+
### Slow responses
|
|
569
|
+
|
|
570
|
+
**Solutions:**
|
|
571
|
+
|
|
572
|
+
1. **Switch to faster provider:**
|
|
573
|
+
```bash
|
|
574
|
+
# Groq is fastest
|
|
575
|
+
AI_PROVIDER=groq
|
|
576
|
+
GROQ_API_KEY=...
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
2. **Use smaller model:**
|
|
580
|
+
```bash
|
|
581
|
+
# OpenAI
|
|
582
|
+
OPENAI_MODEL=gpt-4o-mini
|
|
583
|
+
|
|
584
|
+
# Ollama
|
|
585
|
+
OLLAMA_MODEL=llama3.2 # vs llama3.1
|
|
586
|
+
```
|
|
587
|
+
|
|
588
|
+
3. **Check token usage:**
|
|
589
|
+
- Reduce conversation history
|
|
590
|
+
- Clear old messages: `/memory clear`
|
|
591
|
+
|
|
592
|
+
4. **Disable streaming:**
|
|
593
|
+
```typescript
|
|
594
|
+
// In code, set streaming: false
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
---
|
|
598
|
+
|
|
599
|
+
### High memory usage
|
|
600
|
+
|
|
601
|
+
**Solutions:**
|
|
602
|
+
|
|
603
|
+
1. **Reduce maxSteps:**
|
|
604
|
+
```typescript
|
|
605
|
+
// src/agents/autonomous-agent.ts
|
|
606
|
+
maxSteps: 5 // Instead of 10
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
2. **Clear memory:**
|
|
610
|
+
```bash
|
|
611
|
+
# In Telegram
|
|
612
|
+
/memory clear
|
|
613
|
+
```
|
|
614
|
+
|
|
615
|
+
3. **Use TokenLimiter:**
|
|
616
|
+
```bash
|
|
617
|
+
# Already enabled in src/processors/index.ts
|
|
618
|
+
```
|
|
619
|
+
|
|
620
|
+
---
|
|
621
|
+
|
|
622
|
+
## Browser/Playwright Issues
|
|
623
|
+
|
|
624
|
+
### "Browser not found"
|
|
625
|
+
|
|
626
|
+
**Error:** Playwright MCP fails
|
|
627
|
+
|
|
628
|
+
**Solutions:**
|
|
629
|
+
|
|
630
|
+
1. **Install Playwright:**
|
|
631
|
+
```bash
|
|
632
|
+
npx playwright install
|
|
633
|
+
```
|
|
634
|
+
|
|
635
|
+
2. **Install browsers:**
|
|
636
|
+
```bash
|
|
637
|
+
npx playwright install chromium
|
|
638
|
+
```
|
|
639
|
+
|
|
640
|
+
3. **Check version:**
|
|
641
|
+
```bash
|
|
642
|
+
npx playwright --version
|
|
643
|
+
```
|
|
644
|
+
|
|
645
|
+
---
|
|
646
|
+
|
|
647
|
+
### Browser automation fails
|
|
648
|
+
|
|
649
|
+
**Solutions:**
|
|
650
|
+
|
|
651
|
+
1. **Check if headless mode works:**
|
|
652
|
+
```bash
|
|
653
|
+
# In agent configuration, check headless setting
|
|
654
|
+
```
|
|
655
|
+
|
|
656
|
+
2. **Check screenshot:**
|
|
657
|
+
```bash
|
|
658
|
+
# Try simpler command first
|
|
659
|
+
"Take a screenshot of google.com"
|
|
660
|
+
```
|
|
661
|
+
|
|
662
|
+
3. **Check logs:**
|
|
663
|
+
```bash
|
|
664
|
+
sybil logs | grep -i playwright
|
|
665
|
+
```
|
|
666
|
+
|
|
667
|
+
---
|
|
668
|
+
|
|
669
|
+
## MCP Issues
|
|
670
|
+
|
|
671
|
+
### MCP server not connecting
|
|
672
|
+
|
|
673
|
+
**Error:** "MCP server failed to start"
|
|
674
|
+
|
|
675
|
+
**Solutions:**
|
|
676
|
+
|
|
677
|
+
1. **Check if npx is available:**
|
|
678
|
+
```bash
|
|
679
|
+
which npx
|
|
680
|
+
npx --version
|
|
681
|
+
```
|
|
682
|
+
|
|
683
|
+
2. **Install MCP packages:**
|
|
684
|
+
```bash
|
|
685
|
+
npm install -g @playwright/mcp
|
|
686
|
+
npm install -g @upstash/context7-mcp
|
|
687
|
+
```
|
|
688
|
+
|
|
689
|
+
3. **Check server status:**
|
|
690
|
+
```bash
|
|
691
|
+
# Test manually
|
|
692
|
+
npx @playwright/mcp@latest
|
|
693
|
+
```
|
|
694
|
+
|
|
695
|
+
---
|
|
696
|
+
|
|
697
|
+
### Context7 MCP errors
|
|
698
|
+
|
|
699
|
+
**Error:** "Context7 MCP failed"
|
|
700
|
+
|
|
701
|
+
**Solutions:**
|
|
702
|
+
|
|
703
|
+
1. **Check API key:**
|
|
704
|
+
```bash
|
|
705
|
+
# Currently hardcoded in src/agents/network.ts
|
|
706
|
+
# Should be: ctx7sk-78fe8c3e-9e31-4950-9774-2129910b7e60
|
|
707
|
+
```
|
|
708
|
+
|
|
709
|
+
2. **Use local docs instead:**
|
|
710
|
+
- Context7 is optional
|
|
711
|
+
- Agent works without it
|
|
712
|
+
|
|
713
|
+
---
|
|
714
|
+
|
|
715
|
+
## Authentication Issues
|
|
716
|
+
|
|
717
|
+
### OTP not working
|
|
718
|
+
|
|
719
|
+
**Solutions:**
|
|
720
|
+
|
|
721
|
+
1. **Generate OTP:**
|
|
722
|
+
```bash
|
|
723
|
+
sybil otp --generate
|
|
724
|
+
```
|
|
725
|
+
|
|
726
|
+
2. **Check authorized users:**
|
|
727
|
+
```bash
|
|
728
|
+
sybil otp --list
|
|
729
|
+
```
|
|
730
|
+
|
|
731
|
+
3. **Reset auth:**
|
|
732
|
+
```bash
|
|
733
|
+
# Remove auth file
|
|
734
|
+
rm ~/.sybil/settings.json
|
|
735
|
+
```
|
|
736
|
+
|
|
737
|
+
---
|
|
738
|
+
|
|
739
|
+
### User unauthorized
|
|
740
|
+
|
|
741
|
+
**Symptoms:** "You are not authorized"
|
|
742
|
+
|
|
743
|
+
**Solutions:**
|
|
744
|
+
|
|
745
|
+
1. **Check if OTP required:**
|
|
746
|
+
```bash
|
|
747
|
+
# Check if OTP mode enabled in settings
|
|
748
|
+
cat ~/.sybil/settings.json
|
|
749
|
+
```
|
|
750
|
+
|
|
751
|
+
2. **Authorize user:**
|
|
752
|
+
```bash
|
|
753
|
+
sybil otp
|
|
754
|
+
# Generate code
|
|
755
|
+
# User sends code to bot
|
|
756
|
+
```
|
|
757
|
+
|
|
758
|
+
3. **Disable OTP (⚠️ less secure):**
|
|
759
|
+
```bash
|
|
760
|
+
# Set in settings
|
|
761
|
+
OTP_REQUIRED=false
|
|
762
|
+
```
|
|
763
|
+
|
|
764
|
+
---
|
|
765
|
+
|
|
766
|
+
## Debug Mode
|
|
767
|
+
|
|
768
|
+
### Enable verbose logging
|
|
769
|
+
|
|
770
|
+
```bash
|
|
771
|
+
# Set log level
|
|
772
|
+
LOG_LEVEL=debug npm start
|
|
773
|
+
|
|
774
|
+
# Or use CLI
|
|
775
|
+
sybil doctor --verbose
|
|
776
|
+
```
|
|
777
|
+
|
|
778
|
+
### Check all components
|
|
779
|
+
|
|
780
|
+
```bash
|
|
781
|
+
# Run diagnostics
|
|
782
|
+
sybil doctor
|
|
783
|
+
```
|
|
784
|
+
|
|
785
|
+
### View logs
|
|
786
|
+
|
|
787
|
+
```bash
|
|
788
|
+
# Follow logs
|
|
789
|
+
sybil logs --follow
|
|
790
|
+
|
|
791
|
+
# Filter for errors
|
|
792
|
+
sybil logs --level error
|
|
793
|
+
|
|
794
|
+
# Show last 100 lines
|
|
795
|
+
sybil logs --lines 100
|
|
796
|
+
```
|
|
797
|
+
|
|
798
|
+
---
|
|
799
|
+
|
|
800
|
+
## Getting Help
|
|
801
|
+
|
|
802
|
+
### Still stuck?
|
|
803
|
+
|
|
804
|
+
1. **Check logs:**
|
|
805
|
+
```bash
|
|
806
|
+
sybil logs --follow
|
|
807
|
+
```
|
|
808
|
+
|
|
809
|
+
2. **Run diagnostics:**
|
|
810
|
+
```bash
|
|
811
|
+
sybil doctor
|
|
812
|
+
```
|
|
813
|
+
|
|
814
|
+
3. **Enable debug mode:**
|
|
815
|
+
```bash
|
|
816
|
+
LOG_LEVEL=debug npm start
|
|
817
|
+
```
|
|
818
|
+
|
|
819
|
+
4. **Check GitHub issues:**
|
|
820
|
+
- Search existing issues
|
|
821
|
+
- Create new issue with logs
|
|
822
|
+
|
|
823
|
+
5. **Community support:**
|
|
824
|
+
- Telegram: [@BotFather](https://t.me/BotFather)
|
|
825
|
+
- Mastra: [Discord](https://discord.gg/mastra)
|
|
826
|
+
|
|
827
|
+
---
|
|
828
|
+
|
|
829
|
+
## Quick Fixes
|
|
830
|
+
|
|
831
|
+
### Nuclear option (⚠️ resets everything)
|
|
832
|
+
|
|
833
|
+
```bash
|
|
834
|
+
# Stop bot
|
|
835
|
+
sybil stop
|
|
836
|
+
|
|
837
|
+
# Remove all data
|
|
838
|
+
rm -rf ~/.sybil
|
|
839
|
+
rm -rf .wwebjs_auth
|
|
840
|
+
rm -rf .wwebjs_cache
|
|
841
|
+
rm mastra.db
|
|
842
|
+
|
|
843
|
+
# Reinstall
|
|
844
|
+
npm install
|
|
845
|
+
npm run build
|
|
846
|
+
|
|
847
|
+
# Reconfigure
|
|
848
|
+
sybil init
|
|
849
|
+
|
|
850
|
+
# Start fresh
|
|
851
|
+
sybil start
|
|
852
|
+
```
|
|
853
|
+
|
|
854
|
+
### Common one-liners
|
|
855
|
+
|
|
856
|
+
```bash
|
|
857
|
+
# Quick restart
|
|
858
|
+
sybil stop && sybil start
|
|
859
|
+
|
|
860
|
+
# Clear WhatsApp
|
|
861
|
+
rm -rf ~/.sybil/whatsapp-session && sybil whatsapp
|
|
862
|
+
|
|
863
|
+
# Reset memory
|
|
864
|
+
rm mastra.db && npm start
|
|
865
|
+
|
|
866
|
+
# Rebuild
|
|
867
|
+
rm -rf dist && npm run build && npm start
|
|
868
|
+
```
|
|
869
|
+
|
|
870
|
+
---
|
|
871
|
+
|
|
872
|
+
## Error Code Reference
|
|
873
|
+
|
|
874
|
+
| Error | Likely Cause | Solution |
|
|
875
|
+
|-------|--------------|----------|
|
|
876
|
+
| `ECONNREFUSED` | Service not running | Start Ollama/Podman |
|
|
877
|
+
| `ENOENT` | File not found | Check paths, reinstall |
|
|
878
|
+
| `EACCES` | Permission denied | Check file permissions |
|
|
879
|
+
| `429` | Rate limited | Wait or switch provider |
|
|
880
|
+
| `401` | Unauthorized | Check API keys |
|
|
881
|
+
| `404` | Not found | Check model names |
|
|
882
|
+
| `500` | Server error | Check provider status |
|