nothumanallowed 9.4.1 → 9.4.2
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/commands/ui.mjs +8 -0
- package/src/constants.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.2",
|
|
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
|
@@ -1226,7 +1226,15 @@ export async function cmdUI(args) {
|
|
|
1226
1226
|
const { textParts, actions } = parseActions(fullResponse);
|
|
1227
1227
|
const toolResults = [];
|
|
1228
1228
|
|
|
1229
|
+
// Auto-detect screenshot intent from user message
|
|
1230
|
+
const wantsScreenshot = /screenshot|screen\s*shot|schermo|cattura|foto|immagine/i.test(msg);
|
|
1231
|
+
|
|
1229
1232
|
for (const { action, params } of actions) {
|
|
1233
|
+
// Force screenshot=true on web_search if user asked for screenshot
|
|
1234
|
+
if (action === 'web_search' && wantsScreenshot && !params.screenshot) {
|
|
1235
|
+
params.screenshot = true;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1230
1238
|
sendSSE('tool', { action, status: 'executing' });
|
|
1231
1239
|
try {
|
|
1232
1240
|
// For browser_screenshot in web UI: capture and send base64 image
|
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.2';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|