nothumanallowed 9.4.4 → 9.4.6
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 +2 -1
- package/src/constants.mjs +1 -1
- package/src/services/web-ui.mjs +5 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.6",
|
|
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
|
@@ -1363,7 +1363,8 @@ export async function cmdUI(args) {
|
|
|
1363
1363
|
// Extract memory
|
|
1364
1364
|
try { extractMemory('chat', msg, finalResponse); } catch {}
|
|
1365
1365
|
|
|
1366
|
-
|
|
1366
|
+
const ssFiles = res._screenshotFiles || [];
|
|
1367
|
+
sendSSE('done', { content: finalResponse, screenshotFiles: ssFiles });
|
|
1367
1368
|
} catch (e) {
|
|
1368
1369
|
sendSSE('error', { message: e.message });
|
|
1369
1370
|
}
|
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.6';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|
package/src/services/web-ui.mjs
CHANGED
|
@@ -581,17 +581,19 @@ function sendChat(){
|
|
|
581
581
|
chatHistory[streamIdx]._screenshots.push(ssUrl);
|
|
582
582
|
chatHistory[streamIdx].content+='\\n\\n';
|
|
583
583
|
renderMessages();
|
|
584
|
-
//
|
|
584
|
+
// Show and update browser viewer with the screenshot
|
|
585
|
+
showBrowserViewer('Screenshot','Captured');
|
|
585
586
|
updateBrowserFrame(data.base64,data.format||'jpeg');
|
|
586
587
|
updateBrowserStatus('Screenshot captured');
|
|
587
588
|
}
|
|
588
589
|
if(currentEvent==='browser_frame'&&data.base64){
|
|
589
|
-
// Live frame update
|
|
590
|
+
// Live frame update — also ensure viewer is open
|
|
591
|
+
showBrowserViewer(data.url||'Browser','Live');
|
|
590
592
|
updateBrowserFrame(data.base64,data.format||'jpeg');
|
|
591
593
|
if(data.url)updateBrowserStatus(data.url);
|
|
592
594
|
}
|
|
593
595
|
if(currentEvent==='tool_synthesis'){chatHistory[streamIdx].content='';renderMessages();}
|
|
594
|
-
if(currentEvent==='done'){endStreaming();if(data.content)chatHistory[streamIdx].content=data.content;var ss=chatHistory[streamIdx]._screenshots;if(ss
|
|
596
|
+
if(currentEvent==='done'){endStreaming();if(data.content)chatHistory[streamIdx].content=data.content;var ssf=data.screenshotFiles||[];for(var fi=0;fi<ssf.length;fi++){chatHistory[streamIdx].content+='\\n\\n';}var ss=chatHistory[streamIdx]._screenshots||[];for(var si=0;si<ss.length;si++){if(ss[si].indexOf('/api/screenshots/')===0){var alreadyAdded=false;for(var fj=0;fj<ssf.length;fj++){if(ss[si].indexOf(ssf[fj])!==-1)alreadyAdded=true;}if(!alreadyAdded)chatHistory[streamIdx].content+='\\n\\n';}else if(ssf.length===0){chatHistory[streamIdx].content+='\\n\\n';}}renderMessages();loadConvList();setTimeout(closeBrowserViewer,5000);}
|
|
595
597
|
if(currentEvent==='error'){endStreaming();chatHistory[streamIdx].content='Error: '+(data.message||'Unknown');renderMessages();}
|
|
596
598
|
}catch(e){}
|
|
597
599
|
}
|