nothumanallowed 14.1.47 → 14.1.48
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": "14.1.
|
|
3
|
+
"version": "14.1.48",
|
|
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 = '14.1.
|
|
8
|
+
export const VERSION = '14.1.48';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|
|
@@ -51,9 +51,9 @@ export function register(router) {
|
|
|
51
51
|
const { promisify } = await import('util');
|
|
52
52
|
const execAsync = promisify(exec);
|
|
53
53
|
|
|
54
|
-
//
|
|
55
|
-
const { stdout, stderr } = await execAsync('npm
|
|
56
|
-
timeout:
|
|
54
|
+
// npm update -g doesn't cross major/minor versions — use install @latest
|
|
55
|
+
const { stdout, stderr } = await execAsync('npm install -g nothumanallowed@latest', {
|
|
56
|
+
timeout: 120000
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
sendJSON(res, 200, {
|
|
@@ -19,7 +19,7 @@ import { createServer } from 'net';
|
|
|
19
19
|
import { promisify } from 'util';
|
|
20
20
|
import { sendJSON, sendError, parseBody, sendSSE } from '../index.mjs';
|
|
21
21
|
import { loadConfig } from '../../config.mjs';
|
|
22
|
-
import { callLLM, callLLMStream } from '../../services/llm.mjs';
|
|
22
|
+
import { callLLM, callLLMStream, fixQwen3BPE } from '../../services/llm.mjs';
|
|
23
23
|
import { NHA_DIR } from '../../constants.mjs';
|
|
24
24
|
|
|
25
25
|
const execAsync = promisify(exec);
|
package/src/services/llm.mjs
CHANGED
|
@@ -693,6 +693,8 @@ export async function callNHA(apiKey, model, systemPrompt, userMessage, stream =
|
|
|
693
693
|
let content = data.choices?.[0]?.message?.content || '';
|
|
694
694
|
// Strip thinking tags if present
|
|
695
695
|
content = content.replace(/<think>[\s\S]*?<\/think>/g, '').trim();
|
|
696
|
+
// Fix Qwen3 BPE tokenizer artifacts (words fused without spaces)
|
|
697
|
+
content = fixQwen3BPE(content);
|
|
696
698
|
return content;
|
|
697
699
|
}
|
|
698
700
|
|