nothumanallowed 9.3.10 → 9.3.11
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": "9.3.
|
|
3
|
+
"version": "9.3.11",
|
|
4
4
|
"description": "NotHumanAllowed — 38 AI agents + 58 tools + browser automation + web search. Streaming chat, headless Chrome CDP, multi-conversation, export. Gmail, Calendar, Drive, GitHub, Notion, Slack. Zero-dependency CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/commands/chat.mjs
CHANGED
|
@@ -59,8 +59,7 @@ const MAX_HISTORY = 20;
|
|
|
59
59
|
const CHAT_PERSONA = `You are NHA Chat, a personal operations assistant inside the NotHumanAllowed CLI. ` +
|
|
60
60
|
`You help the user manage their emails, calendar, tasks, GitHub issues, Notion pages, and Slack channels through natural conversation. ` +
|
|
61
61
|
`Be concise, helpful, and proactive. When presenting data, format it clearly. ` +
|
|
62
|
-
`Never output raw JSON to the user — always wrap results in natural language
|
|
63
|
-
`ALWAYS respond in the same language the user writes in. If the user writes in English, respond in English. If the user writes in Italian, respond in Italian. Match their language exactly.`;
|
|
62
|
+
`Never output raw JSON to the user — always wrap results in natural language.`;
|
|
64
63
|
|
|
65
64
|
// ── System Prompt Builder ────────────────────────────────────────────────────
|
|
66
65
|
|
package/src/commands/ui.mjs
CHANGED
|
@@ -175,8 +175,7 @@ export async function cmdUI(args) {
|
|
|
175
175
|
const UI_PERSONA = `You are NHA Chat, a personal operations assistant inside the NotHumanAllowed web UI. ` +
|
|
176
176
|
`You help the user manage their emails, calendar, tasks, GitHub issues, Notion pages, and Slack channels through natural conversation. ` +
|
|
177
177
|
`Be concise, helpful, and proactive. When presenting data, format it clearly. ` +
|
|
178
|
-
`Never output raw JSON to the user
|
|
179
|
-
`ALWAYS respond in the same language the user writes in. If the user writes in English, respond in English. If the user writes in Italian, respond in Italian. Match their language exactly.`;
|
|
178
|
+
`Never output raw JSON to the user.`;
|
|
180
179
|
const chatSystemPrompt = buildSystemPrompt('NHA UI', UI_PERSONA, config);
|
|
181
180
|
|
|
182
181
|
// ── Route Handlers ──────────────────────────────────────────────────────
|
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 = '9.3.
|
|
8
|
+
export const VERSION = '9.3.11';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|
|
@@ -612,7 +612,7 @@ async function launchBrowser() {
|
|
|
612
612
|
await ws.send('Page.addScriptToEvaluateOnNewDocument', {
|
|
613
613
|
source: `
|
|
614
614
|
Object.defineProperty(navigator, 'webdriver', { get: () => false });
|
|
615
|
-
Object.defineProperty(navigator, 'languages', { get: () => ['
|
|
615
|
+
Object.defineProperty(navigator, 'languages', { get: () => ['en-US', 'en'] });
|
|
616
616
|
Object.defineProperty(navigator, 'plugins', { get: () => [1, 2, 3, 4, 5] });
|
|
617
617
|
window.chrome = { runtime: {} };
|
|
618
618
|
`,
|
|
@@ -73,6 +73,8 @@ export const DESTRUCTIVE_ACTIONS = new Set([
|
|
|
73
73
|
* Callers replace {{TODAY}} and {{TIMEZONE}} and append their own persona.
|
|
74
74
|
*/
|
|
75
75
|
export const TOOL_DEFINITIONS = `
|
|
76
|
+
IMPORTANT — LANGUAGE RULE: Detect the language of the user's CURRENT message and respond ENTIRELY in that same language. English message = English response. Italian message = Italian response. Do NOT default to Italian just because the user profile or timezone is Italian. Match the language of what the user JUST wrote, not the system context.
|
|
77
|
+
|
|
76
78
|
You have access to the following tools. When the user's message requires an action,
|
|
77
79
|
output EXACTLY ONE fenced JSON block per action:
|
|
78
80
|
|
|
@@ -344,7 +346,7 @@ RULES:
|
|
|
344
346
|
- Dates: today is {{TODAY}}. Infer relative dates from this.
|
|
345
347
|
- The user's timezone is {{TIMEZONE}}.
|
|
346
348
|
- CRITICAL: when creating calendar events, always use LOCAL time in format "YYYY-MM-DDTHH:MM:SS" WITHOUT any Z suffix or timezone offset.
|
|
347
|
-
- LANGUAGE:
|
|
349
|
+
- LANGUAGE: Respond in the language of the user's LAST message. Not the profile language, not the timezone — the actual message language.
|
|
348
350
|
`.trim();
|
|
349
351
|
|
|
350
352
|
// ── Action Parser ────────────────────────────────────────────────────────────
|