samarthya-bot 1.0.4 → 1.1.1
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 +12 -1
- package/backend/.env.example +2 -2
- package/backend/public/assets/index-6PCzI3K2.js +40 -0
- package/backend/public/assets/index-6TF5jVRQ.js +149 -0
- package/backend/public/assets/index-B0U7rt6f.js +46 -0
- package/backend/public/assets/index-BF0RZh9i.js +149 -0
- package/backend/public/assets/index-CGw8cc8z.js +149 -0
- package/backend/public/assets/index-Cx0Ei-z7.js +149 -0
- package/backend/public/assets/index-DIPdcLv-.js +25 -0
- package/backend/public/assets/index-Da1E-MYB.js +53 -0
- package/backend/public/assets/index-DyjpBYmS.js +51 -0
- package/backend/public/assets/index-DzlXcaXT.js +149 -0
- package/backend/public/assets/index-J7XSVHCz.css +1 -0
- package/backend/public/index.html +2 -2
- package/backend/public/logos.png +0 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -86,7 +86,8 @@ npm run dev
|
|
|
86
86
|
| `samarthya gateway` | Run the backend control plane and serve the Dashboard. |
|
|
87
87
|
| `samarthya status` | Display the status of background jobs and the engine. |
|
|
88
88
|
| `samarthya stop` | Gracefully shut down all background autonomous agents. |
|
|
89
|
-
| `samarthya model
|
|
89
|
+
| `samarthya model` | Swap between LLM providers (e.g. `ollama`, `gemini`). |
|
|
90
|
+
| `samarthya tunnel` | Expose gateway to internet & auto-setup Telegram webhooks. |
|
|
90
91
|
|
|
91
92
|
---
|
|
92
93
|
|
|
@@ -99,6 +100,9 @@ If you are running from source or manual setup, create a `.env` file in the `bac
|
|
|
99
100
|
GEMINI_API_KEY=your_gemini_api_key_here
|
|
100
101
|
MEMORY_ENCRYPTION_KEY=your_32_char_secret_key
|
|
101
102
|
|
|
103
|
+
# Optional (For Remote Access)
|
|
104
|
+
TELEGRAM_BOT_TOKEN=your_telegram_bot_api_key
|
|
105
|
+
|
|
102
106
|
# Optional
|
|
103
107
|
MONGO_URI=mongodb://localhost:27017/samarthya
|
|
104
108
|
PORT=5000
|
|
@@ -106,6 +110,13 @@ USE_OLLAMA=false
|
|
|
106
110
|
ACTIVE_PROVIDER=gemini # or ollama
|
|
107
111
|
```
|
|
108
112
|
|
|
113
|
+
### 📱 Telegram Integration
|
|
114
|
+
To connect SamarthyaBot to Telegram:
|
|
115
|
+
1. Get a bot token from [@BotFather](https://t.me/BotFather).
|
|
116
|
+
2. Add `TELEGRAM_BOT_TOKEN` to your `.env` file.
|
|
117
|
+
3. Run `samarthya tunnel` in your terminal.
|
|
118
|
+
4. Samarthya will automatically create a secure tunnel and link your bot!
|
|
119
|
+
|
|
109
120
|
*Note: The `samarthya onboard` command handles these for you automatically!*
|
|
110
121
|
|
|
111
122
|
---
|
package/backend/.env.example
CHANGED
|
@@ -16,8 +16,8 @@ OLLAMA_MODEL=llama3.2
|
|
|
16
16
|
ACTIVE_PROVIDER=gemini
|
|
17
17
|
ACTIVE_MODEL=gemini-2.5-flash-lite
|
|
18
18
|
|
|
19
|
-
# Optional Telegram Remote Control
|
|
20
|
-
|
|
19
|
+
# Optional Telegram Remote Control (Connect via 'samarthya tunnel')
|
|
20
|
+
TELEGRAM_BOT_TOKEN=your_telegram_bot_api_key
|
|
21
21
|
|
|
22
22
|
# Node Environment
|
|
23
23
|
NODE_ENV=production
|