samarthya-bot 2.2.0 → 2.2.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.
@@ -17,13 +17,13 @@ module.exports = {
17
17
  developer: {
18
18
  name: '👨‍💻 Developer Pack',
19
19
  nameHi: '👨‍💻 डेवलपर पैक',
20
- tools: ['web_search', 'file_read', 'file_write', 'file_list', 'calculate', 'send_email', 'run_command', 'system_info', 'open_url', 'note_take', 'reminder_set', 'capture_desktop_screenshot', 'schedule_background_task', 'simulate_task'],
20
+ tools: ['web_search', 'file_read', 'file_write', 'file_list', 'calculate', 'send_email', 'run_command', 'system_info', 'browser_action', 'ssh_deploy', 'note_take', 'reminder_set', 'capture_desktop_screenshot', 'schedule_background_task', 'simulate_task'],
21
21
  description: 'Shell commands, file ops, system info, browser control'
22
22
  },
23
23
  personal: {
24
24
  name: '🏠 Personal Pack',
25
25
  nameHi: '🏠 पर्सनल पैक',
26
- tools: ['web_search', 'reminder_set', 'note_take', 'calculate', 'weather_info', 'file_read', 'file_write', 'file_list', 'calendar_schedule', 'upi_generate', 'send_email', 'system_info', 'open_url', 'run_command', 'capture_desktop_screenshot', 'schedule_background_task', 'simulate_task'],
26
+ tools: ['web_search', 'reminder_set', 'note_take', 'calculate', 'weather_info', 'file_read', 'file_write', 'file_list', 'calendar_schedule', 'upi_generate', 'send_email', 'system_info', 'browser_action', 'run_command', 'capture_desktop_screenshot', 'schedule_background_task', 'simulate_task'],
27
27
  description: 'Weather, notes, reminders, UPI, email, files'
28
28
  }
29
29
  },
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "samarthya-agent",
3
- "version": "1.0.0",
3
+ "version": "2.1.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "samarthya-agent",
9
- "version": "1.0.0",
9
+ "version": "2.1.1",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@google/genai": "^1.43.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samarthya-agent",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "main": "server.js",
5
5
  "bin": {
6
6
  "samarthya": "./bin/samarthya.js",
@@ -39,4 +39,4 @@
39
39
  "devDependencies": {
40
40
  "nodemon": "^3.1.14"
41
41
  }
42
- }
42
+ }
@@ -270,7 +270,8 @@ const toolDefinitions = {
270
270
  // Create subdirectories if needed
271
271
  await fs.mkdir(path.dirname(filePath), { recursive: true });
272
272
 
273
- await fs.writeFile(filePath, args.content, 'utf-8');
273
+ const argContent = args.content ?? args.data ?? args.body ?? args.text ?? "";
274
+ await fs.writeFile(filePath, String(argContent), 'utf-8');
274
275
  const stat = await fs.stat(filePath);
275
276
 
276
277
  return {
@@ -502,7 +503,7 @@ const toolDefinitions = {
502
503
  // ─────────── DEVOPS / STREAMING EXECUTION (Go Worker Integration) ───────────
503
504
  devops_execute_stream: {
504
505
  name: 'devops_execute_stream',
505
- description: 'Run long or complex shell commands (like npm install, git push, vercel deploy) and stream the output back. Required for any heavy DevOps/Auto-Coder tasks. Uses the ultra-fast Go micro-worker.',
506
+ description: `Run long or complex shell commands (like npm install, git push, vercel deploy) and stream the output back. Required for any heavy DevOps/Auto-Coder tasks. Uses the ultra-fast Go micro-worker. Host OS: ${os.type()} ${os.release()}`,
506
507
  descriptionHi: 'लाइव शेल कमांड चलाएं',
507
508
  riskLevel: 'critical',
508
509
  category: 'system',
@@ -548,7 +549,7 @@ const toolDefinitions = {
548
549
  // ─────────── LEGACY RUN COMMAND (Kept for instant small commands) ───────────
549
550
  run_command: {
550
551
  name: 'run_command',
551
- description: 'Run basic, instant shell commands natively. For long-running deploying/building, use devops_execute_stream instead.',
552
+ description: `Run basic, instant shell commands natively. Host OS: ${os.type()} ${os.release()}. (Note: To open URLs/files, use 'start' for Windows, 'open' for macOS, 'xdg-open' for Linux).`,
552
553
  descriptionHi: 'शेल कमांड चलाएं',
553
554
  riskLevel: 'critical',
554
555
  category: 'system',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samarthya-bot",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "SamarthyaBot — Privacy-First Local Agentic AI Operating System. Self-hosted multi-agent RPA engine with Telegram, Discord, Web Dashboard, Puppeteer browser control, SSH deployment, encrypted memory, voice transcription, and Indian workflow automation (GST, UPI, IRCTC). Supports Gemini, Claude, GPT, Ollama, DeepSeek, Qwen, OpenRouter. Made in India.",
5
5
  "main": "backend/server.js",
6
6
  "bin": {
@@ -155,4 +155,4 @@
155
155
  "type": "git",
156
156
  "url": "git+https://github.com/mebishnusahu0595/SamarthyaBot.git"
157
157
  }
158
- }
158
+ }