nothumanallowed 13.5.194 → 13.5.195
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "13.5.
|
|
3
|
+
"version": "13.5.195",
|
|
4
4
|
"description": "NotHumanAllowed — 38 AI agents, 80 tools, Studio (visual agentic workflows). Email, calendar, browser automation, screen capture, canvas, cron/heartbeat, Alexandria E2E messaging, GitHub, Notion, Slack, voice chat, free AI (Liara), 28 languages. Zero-dependency CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/constants.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { fileURLToPath } from 'url';
|
|
|
5
5
|
const __filename = fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = path.dirname(__filename);
|
|
7
7
|
|
|
8
|
-
export const VERSION = '13.5.
|
|
8
|
+
export const VERSION = '13.5.195';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { callAgent, callLLM } from './llm.mjs';
|
|
12
|
-
import { buildSystemPrompt, parseActions, executeTool, TOOL_DEFINITIONS } from './tool-executor.mjs';
|
|
12
|
+
import { buildSystemPrompt, parseActions, executeTool, TOOL_DEFINITIONS, LIARA_TOOL_DEFINITIONS } from './tool-executor.mjs';
|
|
13
13
|
import https from 'https';
|
|
14
14
|
import http from 'http';
|
|
15
15
|
import { URL } from 'url';
|
|
@@ -187,10 +187,15 @@ async function callAgentWithTools(config, agentName, userMessage, languageOverri
|
|
|
187
187
|
// Priority: explicit override (from message text detection) → config setting → system locale
|
|
188
188
|
const language = languageOverride || config?.profile?.language || config?.language || LANG_MAP[locale.split('-')[0]] || 'English';
|
|
189
189
|
|
|
190
|
-
|
|
190
|
+
// Use compact Liara prompt when provider is 'nha' (same logic as buildSystemPrompt)
|
|
191
|
+
const isLiara = config?.llm?.provider === 'nha';
|
|
192
|
+
const baseDefinitions = isLiara ? LIARA_TOOL_DEFINITIONS : TOOL_DEFINITIONS;
|
|
193
|
+
const systemPrompt = baseDefinitions
|
|
191
194
|
.replace('{{TODAY}}', today)
|
|
192
195
|
.replace('{{TIMEZONE}}', tz)
|
|
193
|
-
.replace(/\{\{LANGUAGE\}\}/g, language)
|
|
196
|
+
.replace(/\{\{LANGUAGE\}\}/g, language) +
|
|
197
|
+
// For Telegram: user confirmation already happened in the chat — execute destructive actions directly
|
|
198
|
+
'\n\nIMPORTANT: This is a Telegram bot context. The user has already confirmed destructive actions (delete, send, etc.) via chat messages. Execute them immediately without asking again — do NOT describe what you are about to do, just do it and confirm when done.';
|
|
194
199
|
|
|
195
200
|
// Multi-turn: serialize history as [User]/[Assistant] string (same pattern as chat.mjs)
|
|
196
201
|
// preHistory: optional [{role, content}] from previous conversation turn (for sticky confirmations)
|