nothumanallowed 9.4.10 → 9.4.12
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.4.
|
|
3
|
+
"version": "9.4.12",
|
|
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/ui.mjs
CHANGED
|
@@ -1233,7 +1233,6 @@ export async function cmdUI(args) {
|
|
|
1233
1233
|
const wantsScreenshot = /screenshot|screen\s*shot|schermo|cattura|foto|immagine/i.test(msg);
|
|
1234
1234
|
const wantsSearch = /\b(cerca|search|find|look\s*up|ricerca|cercare)\b/i.test(msg);
|
|
1235
1235
|
|
|
1236
|
-
console.log(` [flow] actions=${actions.length} [${actions.map(a=>a.action).join(',')}] wantsSearch=${wantsSearch} wantsScreenshot=${wantsScreenshot}`);
|
|
1237
1236
|
// If user asked to search but LLM didn't call web_search, force it
|
|
1238
1237
|
if (wantsSearch && !actions.some(a => a.action === 'web_search')) {
|
|
1239
1238
|
// Extract search query from message (remove action words)
|
|
@@ -1307,7 +1306,6 @@ export async function cmdUI(args) {
|
|
|
1307
1306
|
}
|
|
1308
1307
|
|
|
1309
1308
|
// If the tool produced a screenshot (web_search with screenshot=true), send it via SSE
|
|
1310
|
-
console.log(` [debug] action=${action} resultStr.length=${resultStr.length} hasScreenshot=${resultStr.includes('[Screenshot')} last80=${resultStr.slice(-80)}`);
|
|
1311
1309
|
if (resultStr.includes('[Screenshot of results captured')) {
|
|
1312
1310
|
try {
|
|
1313
1311
|
const fileMatch = resultStr.match(/file:(ss-\d+\.jpg)/);
|
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.4.
|
|
8
|
+
export const VERSION = '9.4.12';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import os from 'os';
|
|
11
|
+
import path from 'path';
|
|
11
12
|
|
|
12
13
|
import {
|
|
13
14
|
listMessages,
|
|
@@ -1322,7 +1323,7 @@ export async function executeTool(action, params, config) {
|
|
|
1322
1323
|
if (params.screenshot) {
|
|
1323
1324
|
try {
|
|
1324
1325
|
const be = await import('./browser-engine.mjs');
|
|
1325
|
-
// Ensure browser is running
|
|
1326
|
+
// Ensure browser is running
|
|
1326
1327
|
if (!be.isBrowserRunning()) {
|
|
1327
1328
|
await be.browserOpen('https://example.com', { waitForLoad: true });
|
|
1328
1329
|
}
|
|
@@ -1345,7 +1346,7 @@ export async function executeTool(action, params, config) {
|
|
|
1345
1346
|
fsMod.writeFileSync(path.join(ssDir, ssFilename), Buffer.from(ss.base64, 'base64'));
|
|
1346
1347
|
return textResult + `\n\n[Screenshot of results captured (${Math.round(ss.size / 1024)}KB) file:${ssFilename}]`;
|
|
1347
1348
|
}
|
|
1348
|
-
} catch { /* screenshot failed
|
|
1349
|
+
} catch { /* screenshot failed */ }
|
|
1349
1350
|
}
|
|
1350
1351
|
|
|
1351
1352
|
return textResult;
|