nothumanallowed 14.1.50 → 14.1.52
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 +1 -1
- package/src/constants.mjs +1 -1
- package/src/server/routes/studio.mjs +5 -5
- package/src/services/llm.mjs +6 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.52",
|
|
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.52';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|
|
@@ -90,17 +90,17 @@ export function register(router) {
|
|
|
90
90
|
const hasCalendar = /calendar|agenda|calendari|eventi|schedule/i.test(taskLow);
|
|
91
91
|
const hasSearch = /cerca|search|notizie|news|ultime|latest|web|internet|tendenz|trend|acquista|compra|dove\s+trovare|where\s+to\s+buy|similar|simile/i.test(taskLow);
|
|
92
92
|
const hasCanvas = /html|dashboard|visua|report|grafico|chart/i.test(taskLow);
|
|
93
|
-
const hasGitHub = /github|git|issue|
|
|
94
|
-
const hasSlack = /slack
|
|
95
|
-
const hasNotion = /
|
|
93
|
+
const hasGitHub = /github|git\b|issue\b|pull request|\bPR\b/i.test(taskLow);
|
|
94
|
+
const hasSlack = /slack/i.test(taskLow);
|
|
95
|
+
const hasNotion = /\bnotion\b/i.test(taskLow);
|
|
96
96
|
const hasBriefing = /briefing|analisi|analizza|summary|sommario|riassunto|riepiloga|valutazione|valuta/i.test(taskLow);
|
|
97
|
-
const hasFinance = /finance|mercato|market|stock|trading|finanz|investiment|cripto/i.test(taskLow);
|
|
97
|
+
const hasFinance = /finance|mercato|market|stock|trading|finanz|investiment|cripto|oro|gold|petrolio|oil|commodit|prezzo|correlazion|macro|inflazion|tassi|borse|etf|bitcoin|nasdaq|sp500/i.test(taskLow);
|
|
98
98
|
const hasSecurity = /security|sicurezza|vulnerabilit|audit|pentest|rischi|dipendenz/i.test(taskLow);
|
|
99
99
|
const hasStrategy = /strateg|competitiv|posizionament|raccomandaz|competitive|positioning/i.test(taskLow);
|
|
100
100
|
const hasReputation = /reputazion|reputation|online|brand|review|recension/i.test(taskLow);
|
|
101
101
|
const hasCode = /codice|code|refactor|debug|bug|sviluppo|software|npm|package/i.test(taskLow);
|
|
102
102
|
const hasWriting = /scrivi|write|articolo|article|blog|testo|text|documento|document/i.test(taskLow);
|
|
103
|
-
const hasData = /dati|data|dataset|csv|json|analizza i dati|pattern|statistich/i.test(taskLow);
|
|
103
|
+
const hasData = /dati|data|dataset|csv|json|analizza i dati|pattern|statistich|correlazion|regressione|trend|serie\s+storic/i.test(taskLow);
|
|
104
104
|
const hasTranslate = /traduci|translate|traduzione|translation/i.test(taskLow);
|
|
105
105
|
const hasTravel = /ristorante|restaurant|b&b|hotel|albergo|agriturismo|locanda|osteria|prenotaz|vacanz|romantico|sushi|giapponese|cinese|pizza|cena|dinner|pranzo|lunch|soggiorno|weekend|pernottament|posto\s+dove\s+mangiare|posto\s+dove\s+dormire|dove\s+mangiare|dove\s+dormire|posto\s+romantico|gita|escursione/i.test(taskLow);
|
|
106
106
|
|
package/src/services/llm.mjs
CHANGED
|
@@ -59,7 +59,7 @@ const BOUNDARY_WORDS = new Set([
|
|
|
59
59
|
]);
|
|
60
60
|
|
|
61
61
|
// Single characters commonly produced by BPE fragmentation in Italian/English
|
|
62
|
-
const BPE_SINGLE_CHARS = new Set(
|
|
62
|
+
const BPE_SINGLE_CHARS = new Set('abcdefghijklmnopqrstuvwxyzàèéìòù'.split(''));
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* Enterprise-grade linguistic scorer for Italian/English word candidates.
|
|
@@ -693,8 +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
|
-
//
|
|
697
|
-
|
|
696
|
+
// NOTE: Do NOT apply fixQwen3BPE here. With stream:false, vLLM returns
|
|
697
|
+
// correctly-spaced text. The BPE repair regex corrupts normal words.
|
|
698
698
|
return content;
|
|
699
699
|
}
|
|
700
700
|
|
|
@@ -962,13 +962,9 @@ export async function callLLMStream(config, systemPrompt, userMessage, onToken,
|
|
|
962
962
|
let fullNhaText = nhaJson.choices?.[0]?.message?.content || '';
|
|
963
963
|
// Strip <think>...</think> blocks
|
|
964
964
|
fullNhaText = fullNhaText.replace(/<think>[\s\S]*?<\/think>/g, '').trim();
|
|
965
|
-
//
|
|
966
|
-
//
|
|
967
|
-
//
|
|
968
|
-
// "ilprezzodell'oro" instead of "il prezzo dell'oro".
|
|
969
|
-
// We fix this by inserting spaces before Italian/English articles and
|
|
970
|
-
// prepositions that appear fused at word boundaries.
|
|
971
|
-
fullNhaText = fixQwen3BPE(fullNhaText);
|
|
965
|
+
// NOTE: Do NOT apply fixQwen3BPE here. With stream:false, vLLM returns
|
|
966
|
+
// correctly-spaced text. The BPE repair regex is too aggressive and
|
|
967
|
+
// corrupts normal Italian words (e.g. "assistente" → "ass ist ente").
|
|
972
968
|
if (onToken) onToken(fullNhaText);
|
|
973
969
|
return fullNhaText;
|
|
974
970
|
}
|
|
@@ -1233,8 +1229,6 @@ async function streamSSEWithCallback(res, format, onToken) {
|
|
|
1233
1229
|
}
|
|
1234
1230
|
}
|
|
1235
1231
|
|
|
1236
|
-
// Apply BPE repair to the final accumulated text before returning
|
|
1237
|
-
fullText = fixQwen3BPE(fullText);
|
|
1238
1232
|
return fullText;
|
|
1239
1233
|
}
|
|
1240
1234
|
|