nothumanallowed 9.4.2 → 9.4.3

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.2",
3
+ "version": "9.4.3",
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": {
@@ -1295,7 +1295,6 @@ export async function cmdUI(args) {
1295
1295
  // If the tool produced a screenshot (web_search with screenshot=true), send it via SSE
1296
1296
  if (resultStr.includes('[Screenshot of results captured')) {
1297
1297
  try {
1298
- // Extract filename from result (tool-executor already saved it)
1299
1298
  const fileMatch = resultStr.match(/file:(ss-\d+\.jpg)/);
1300
1299
  if (fileMatch) {
1301
1300
  const ssFilename = fileMatch[1];
@@ -1303,6 +1302,8 @@ export async function cmdUI(args) {
1303
1302
  if (fs.existsSync(ssPath)) {
1304
1303
  const ssBase64 = fs.readFileSync(ssPath).toString('base64');
1305
1304
  sendSSE('screenshot', { base64: ssBase64, format: 'jpeg', filename: ssFilename });
1305
+ // Also send as browser_frame for the viewer
1306
+ sendSSE('browser_frame', { base64: ssBase64, format: 'jpeg', url: 'Search results' });
1306
1307
  if (!res._screenshotFiles) res._screenshotFiles = [];
1307
1308
  res._screenshotFiles.push(ssFilename);
1308
1309
  }
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.2';
8
+ export const VERSION = '9.4.3';
9
9
  export const BASE_URL = 'https://nothumanallowed.com/cli';
10
10
  export const API_BASE = 'https://nothumanallowed.com/api/v1';
11
11
 
@@ -564,8 +564,8 @@ function sendChat(){
564
564
  var label=toolLabels[data.action]||data.action;
565
565
  var indicator=data.status==='executing'?'\\u23f3 '+label+'...':'\\u2705 '+label;
566
566
  if(data.status==='error')indicator='\\u274c '+label+' failed';
567
- // Show browser viewer for browser actions
568
- var isBrowserAction=data.action&&data.action.startsWith('browser_');
567
+ // Show browser viewer for browser and web_search actions
568
+ var isBrowserAction=data.action&&(data.action.startsWith('browser_')||data.action==='web_search');
569
569
  if(isBrowserAction&&data.status==='executing'){showBrowserViewer(label,'Executing...');}
570
570
  if(isBrowserAction&&data.status==='done'){updateBrowserStatus('\\u2705 '+label);}
571
571
  if(isBrowserAction&&data.status==='error'){updateBrowserStatus('\\u274c '+label);}