@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
package/docs/cli-tui.md
ADDED
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
# Sybil TUI (Terminal User Interface)
|
|
2
|
+
|
|
3
|
+
Interactive terminal interface for managing Sybil AI Agent.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Launch interactive TUI (no arguments)
|
|
9
|
+
sybil
|
|
10
|
+
|
|
11
|
+
# Direct commands (with arguments)
|
|
12
|
+
sybil init # Setup wizard
|
|
13
|
+
sybil start # Start bot
|
|
14
|
+
sybil otp # Generate OTP
|
|
15
|
+
sybil --help # Show all commands
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Main Menu
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
┌─────────────────────────────────────┐
|
|
22
|
+
│ SYBIL │
|
|
23
|
+
│ AI Agent Management │
|
|
24
|
+
└─────────────────────────────────────┘
|
|
25
|
+
|
|
26
|
+
1. 🚀 Quick Setup
|
|
27
|
+
2. 🤖 Bot Management
|
|
28
|
+
3. 🔐 Authentication
|
|
29
|
+
4. 📊 Monitoring & Logs
|
|
30
|
+
5. ⚙️ Configuration
|
|
31
|
+
6. 📱 WhatsApp Integration
|
|
32
|
+
7. 🔧 Advanced Tools
|
|
33
|
+
8. ❓ Help & Documentation
|
|
34
|
+
|
|
35
|
+
Choose an option: _
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Feature Overview
|
|
39
|
+
|
|
40
|
+
### 🚀 Quick Setup
|
|
41
|
+
- **Interactive Setup**: Step-by-step configuration wizard
|
|
42
|
+
- **Provider Selection**: Choose from 17+ AI providers
|
|
43
|
+
- **Telegram Bot**: Automatic bot token validation
|
|
44
|
+
- **Environment**: Create and validate `.env` file
|
|
45
|
+
|
|
46
|
+
### 🤖 Bot Management
|
|
47
|
+
- **Start/Stop**: Control bot lifecycle
|
|
48
|
+
- **Status Check**: Real-time bot health
|
|
49
|
+
- **Restart**: Clean restart with memory preservation
|
|
50
|
+
- **Logs**: Live streaming logs
|
|
51
|
+
|
|
52
|
+
### 🔐 Authentication System
|
|
53
|
+
- **OTP Generation**: Create secure 6-digit codes
|
|
54
|
+
- **User Management**: List authenticated users
|
|
55
|
+
- **Access Control**: Grant/revoke user access
|
|
56
|
+
- **Pending OTPs**: View and manage pending authentications
|
|
57
|
+
|
|
58
|
+
### 📊 Monitoring & Logs
|
|
59
|
+
- **Real-time Logs**: Live streaming with filtering
|
|
60
|
+
- **Performance Metrics**: Response times, error rates
|
|
61
|
+
- **Usage Stats**: Message counts, user activity
|
|
62
|
+
- **System Health**: Memory, CPU, network status
|
|
63
|
+
|
|
64
|
+
### ⚙️ Configuration
|
|
65
|
+
- **Provider Switching**: Change AI provider on-the-fly
|
|
66
|
+
- **Model Selection**: Switch between models
|
|
67
|
+
- **Memory Settings**: Adjust history length
|
|
68
|
+
- **Safety Settings**: Configure processors
|
|
69
|
+
|
|
70
|
+
### 📱 WhatsApp Integration
|
|
71
|
+
- **QR Code**: Connect WhatsApp via QR scan
|
|
72
|
+
- **Status Check**: WhatsApp connection status
|
|
73
|
+
- **Message Logs**: WhatsApp message history
|
|
74
|
+
- **Contact Management**: Manage allowed contacts
|
|
75
|
+
|
|
76
|
+
### 🔧 Advanced Tools
|
|
77
|
+
- **Backup/Restore**: Full system backup
|
|
78
|
+
- **Update System**: Check for updates and apply
|
|
79
|
+
- **Doctor**: Diagnose and fix issues
|
|
80
|
+
- **Memory Tools**: Clear memory, reset conversations
|
|
81
|
+
|
|
82
|
+
## TUI Commands
|
|
83
|
+
|
|
84
|
+
### Interactive Mode
|
|
85
|
+
```bash
|
|
86
|
+
sybil # Launch TUI menu
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Direct Commands
|
|
90
|
+
```bash
|
|
91
|
+
sybil init # Setup wizard
|
|
92
|
+
sybil start # Start bot
|
|
93
|
+
sybil stop # Stop bot
|
|
94
|
+
sybil status # Check status
|
|
95
|
+
sybil otp --generate # Generate OTP
|
|
96
|
+
sybil otp --list # List pending OTPs
|
|
97
|
+
sybil config --edit # Interactive config
|
|
98
|
+
sybil logs --follow # Live logs
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## OTP Management
|
|
102
|
+
|
|
103
|
+
### Generate OTP
|
|
104
|
+
```bash
|
|
105
|
+
$ sybil otp
|
|
106
|
+
🔐 Telegram OTP Authentication
|
|
107
|
+
|
|
108
|
+
📱 Generate Authentication OTP
|
|
109
|
+
|
|
110
|
+
What would you like to do?
|
|
111
|
+
1. 🆕 Generate new OTP
|
|
112
|
+
2. 📋 Show pending OTPs
|
|
113
|
+
3. 👥 List authenticated users
|
|
114
|
+
|
|
115
|
+
Choose: 1
|
|
116
|
+
|
|
117
|
+
Enter user's Telegram Chat ID: 123456789
|
|
118
|
+
|
|
119
|
+
✅ OTP Generated!
|
|
120
|
+
|
|
121
|
+
📱 Share this code: 847291
|
|
122
|
+
⏰ Valid for: 10 minutes
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### List Authenticated Users
|
|
126
|
+
```bash
|
|
127
|
+
$ sybil otp --list
|
|
128
|
+
|
|
129
|
+
👥 Authenticated Users:
|
|
130
|
+
✅ 123456789 - 2024-01-15 14:30:22
|
|
131
|
+
✅ 987654321 - 2024-01-15 15:45:10
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Revoke Access
|
|
135
|
+
```bash
|
|
136
|
+
$ sybil otp --revoke 123456789
|
|
137
|
+
🔐 Revoke authentication for chat 123456789? [y/N]: y
|
|
138
|
+
✅ Authentication revoked
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## Configuration Management
|
|
142
|
+
|
|
143
|
+
### Provider Switching
|
|
144
|
+
```bash
|
|
145
|
+
$ sybil config --edit
|
|
146
|
+
|
|
147
|
+
⚙️ Configuration Management
|
|
148
|
+
|
|
149
|
+
Current Provider: groq
|
|
150
|
+
Model: llama-3.3-70b-versatile
|
|
151
|
+
|
|
152
|
+
1. Change AI Provider
|
|
153
|
+
2. Switch Model
|
|
154
|
+
3. Update Telegram Token
|
|
155
|
+
4. Configure Memory
|
|
156
|
+
5. Set Safety Preferences
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Environment Validation
|
|
160
|
+
```bash
|
|
161
|
+
$ sybil doctor
|
|
162
|
+
|
|
163
|
+
🏥 System Diagnostics
|
|
164
|
+
|
|
165
|
+
✅ Environment variables
|
|
166
|
+
✅ Database connection
|
|
167
|
+
✅ Telegram bot token
|
|
168
|
+
✅ AI provider connectivity
|
|
169
|
+
✅ Memory system
|
|
170
|
+
✅ Browser tools
|
|
171
|
+
✅ WhatsApp integration
|
|
172
|
+
|
|
173
|
+
All systems operational! 🎉
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## WhatsApp Setup
|
|
177
|
+
|
|
178
|
+
### Connect WhatsApp
|
|
179
|
+
```bash
|
|
180
|
+
$ sybil whatsapp --setup
|
|
181
|
+
|
|
182
|
+
📱 WhatsApp Setup
|
|
183
|
+
|
|
184
|
+
1. Scan the QR code with your phone
|
|
185
|
+
2. Your WhatsApp will be connected
|
|
186
|
+
3. You can now chat with Sybil on WhatsApp
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### Check Status
|
|
190
|
+
```bash
|
|
191
|
+
$ sybil whatsapp --status
|
|
192
|
+
|
|
193
|
+
📱 WhatsApp Status: Connected ✅
|
|
194
|
+
Phone: +1 (555) 123-4567
|
|
195
|
+
Ready to receive messages
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
## Browser Tools
|
|
199
|
+
|
|
200
|
+
### Interactive Browser Control
|
|
201
|
+
```bash
|
|
202
|
+
$ sybil tools browser
|
|
203
|
+
|
|
204
|
+
🖥️ Browser Control
|
|
205
|
+
|
|
206
|
+
1. Navigate to URL
|
|
207
|
+
2. Take screenshot
|
|
208
|
+
3. Extract content
|
|
209
|
+
4. Save as Markdown
|
|
210
|
+
5. Google search
|
|
211
|
+
6. Execute JavaScript
|
|
212
|
+
|
|
213
|
+
Choose action: 1
|
|
214
|
+
|
|
215
|
+
Enter URL: https://example.com
|
|
216
|
+
✅ Navigated to https://example.com
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
## Memory Management
|
|
220
|
+
|
|
221
|
+
### Memory Operations
|
|
222
|
+
```bash
|
|
223
|
+
$ sybil memory
|
|
224
|
+
|
|
225
|
+
🧠 Memory Management
|
|
226
|
+
|
|
227
|
+
1. View conversation history
|
|
228
|
+
2. Clear working memory
|
|
229
|
+
3. Search semantic memory
|
|
230
|
+
4. Export memories
|
|
231
|
+
5. Import from backup
|
|
232
|
+
|
|
233
|
+
Choose: 3
|
|
234
|
+
|
|
235
|
+
Search: "AI model discussions"
|
|
236
|
+
Found 5 relevant memories...
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
## Advanced Features
|
|
240
|
+
|
|
241
|
+
### Real-time Monitoring
|
|
242
|
+
```bash
|
|
243
|
+
$ sybil monitor
|
|
244
|
+
|
|
245
|
+
📊 Sybil Monitor
|
|
246
|
+
|
|
247
|
+
CPU: 12% | Memory: 256MB | Network: Connected
|
|
248
|
+
Messages: 1,247 | Users: 15 | Errors: 0
|
|
249
|
+
|
|
250
|
+
Provider: groq | Model: llama-3.3-70b-versatile
|
|
251
|
+
Uptime: 2h 34m | Response time: 1.2s avg
|
|
252
|
+
|
|
253
|
+
Live logs: [streaming...]
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### Backup System
|
|
257
|
+
```bash
|
|
258
|
+
$ sybil backup
|
|
259
|
+
|
|
260
|
+
💾 Creating backup...
|
|
261
|
+
✅ Backup created: sybil-backup-2024-01-15-14-30-22.tar.gz
|
|
262
|
+
Location: ~/.sybil/backups/
|
|
263
|
+
Size: 2.3MB
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
## Keyboard Shortcuts
|
|
267
|
+
|
|
268
|
+
In TUI mode:
|
|
269
|
+
- `q` - Quit
|
|
270
|
+
- `h` - Help
|
|
271
|
+
- `r` - Restart bot
|
|
272
|
+
- `l` - View logs
|
|
273
|
+
- `c` - Configuration
|
|
274
|
+
- `o` - OTP management
|
|
275
|
+
|
|
276
|
+
## Error Handling
|
|
277
|
+
|
|
278
|
+
### Common Issues
|
|
279
|
+
|
|
280
|
+
```bash
|
|
281
|
+
# Missing API key
|
|
282
|
+
$ sybil doctor
|
|
283
|
+
❌ Missing OPENAI_API_KEY
|
|
284
|
+
Run: sybil config --edit
|
|
285
|
+
|
|
286
|
+
# Telegram bot not found
|
|
287
|
+
$ sybil status
|
|
288
|
+
❌ Telegram: Bot token invalid
|
|
289
|
+
Run: sybil config --edit
|
|
290
|
+
|
|
291
|
+
# Memory issues
|
|
292
|
+
$ sybil doctor
|
|
293
|
+
❌ Database: Connection failed
|
|
294
|
+
Run: sybil restore --latest
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
## Configuration Files
|
|
298
|
+
|
|
299
|
+
### `.env` Example
|
|
300
|
+
```env
|
|
301
|
+
# Required
|
|
302
|
+
TELEGRAM_BOT_TOKEN=your_bot_token_here
|
|
303
|
+
AI_PROVIDER=groq
|
|
304
|
+
GROQ_API_KEY=your_key_here
|
|
305
|
+
GROQ_MODEL=llama-3.3-70b-versatile
|
|
306
|
+
|
|
307
|
+
# Optional
|
|
308
|
+
ENABLE_WHATSAPP=true
|
|
309
|
+
DATABASE_URL=file:./mastra.db
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
## Environment Variables
|
|
313
|
+
|
|
314
|
+
| Variable | Required | Description |
|
|
315
|
+
|----------|----------|-------------|
|
|
316
|
+
| `TELEGRAM_BOT_TOKEN` | ✅ | Telegram bot token from @BotFather |
|
|
317
|
+
| `AI_PROVIDER` | ✅ | One of: openai, anthropic, google, groq, ollama, nvidia |
|
|
318
|
+
| `*_API_KEY` | ✅ | API key for chosen provider |
|
|
319
|
+
| `*_MODEL` | ✅ | Model name for provider |
|
|
320
|
+
| `ENABLE_WHATSAPP` | ❌ | Enable WhatsApp integration |
|
|
321
|
+
| `BROWSER_HEADLESS` | ❌ | Browser mode (true/false) |
|
|
322
|
+
|
|
323
|
+
## Troubleshooting
|
|
324
|
+
|
|
325
|
+
### Common Commands
|
|
326
|
+
```bash
|
|
327
|
+
# Check everything
|
|
328
|
+
sybil doctor
|
|
329
|
+
|
|
330
|
+
# Restart with clean state
|
|
331
|
+
sybil stop && sybil start
|
|
332
|
+
|
|
333
|
+
# View recent logs
|
|
334
|
+
sybil logs --tail 50
|
|
335
|
+
|
|
336
|
+
# Generate new OTP for user
|
|
337
|
+
sybil otp --generate
|
|
338
|
+
|
|
339
|
+
# Switch providers quickly
|
|
340
|
+
sybil config --provider openai --model gpt-4o
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
## Getting Help
|
|
344
|
+
|
|
345
|
+
```bash
|
|
346
|
+
# TUI help
|
|
347
|
+
sybil --help
|
|
348
|
+
|
|
349
|
+
# Command help
|
|
350
|
+
sybil otp --help
|
|
351
|
+
sybil config --help
|
|
352
|
+
|
|
353
|
+
# Documentation
|
|
354
|
+
sybil help docs
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
## Quick Setup Commands
|
|
358
|
+
|
|
359
|
+
```bash
|
|
360
|
+
# Complete setup in 3 commands
|
|
361
|
+
sybil init # Interactive setup
|
|
362
|
+
sybil start # Start bot
|
|
363
|
+
sybil otp --generate # Generate first OTP
|
|
364
|
+
|
|
365
|
+
# Alternative: One-liner setup
|
|
366
|
+
sybil init && sybil start
|
|
367
|
+
```
|