nothumanallowed 13.5.110 → 13.5.111

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": "13.5.110",
3
+ "version": "13.5.111",
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 = '13.5.110';
8
+ export const VERSION = '13.5.111';
9
9
  export const BASE_URL = 'https://nothumanallowed.com/cli';
10
10
  export const API_BASE = 'https://nothumanallowed.com/api/v1';
11
11
 
@@ -929,7 +929,7 @@ function sendChat(){
929
929
  }
930
930
  if(chatAttachedImage){payload.imageBase64=chatAttachedImage.base64;payload.imageMimeType=chatAttachedImage.mimeType;}
931
931
  clearChatAttach();
932
- apiPost('/api/chat',payload).then(function(r){
932
+ fetch(API+'/api/chat',{method:'POST',headers:{'Content-Type':'application/json','x-nha-client':'web-ui'},body:JSON.stringify(payload)}).then(function(r){return r.json();}).then(function(r){
933
933
  chatHistory.pop();
934
934
  if(r&&r.response){chatHistory.push({role:'assistant',content:r.response})}
935
935
  else if(r&&r.error){chatHistory.push({role:'assistant',content:'Error: '+r.error})}
@@ -952,7 +952,7 @@ function sendChat(){
952
952
  var allHistory=chatHistory.slice(0,-1).map(function(m){return{role:m.role,content:(m.content||'').replace(/!\\[Screenshot\\]\\(data:image\\/[^)]+\\)/g,'[Screenshot taken]')};});
953
953
  var payload={message:msg,history:allHistory,conversationId:activeConvId,isRetry:isRetry};
954
954
 
955
- fetch(API+'/api/chat/stream',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify(payload),signal:chatAbortController.signal}).then(function(response){
955
+ fetch(API+'/api/chat/stream',{method:'POST',headers:{'Content-Type':'application/json','x-nha-client':'web-ui'},body:JSON.stringify(payload),signal:chatAbortController.signal}).then(function(response){
956
956
  if(!response.ok||!response.body||typeof response.body.getReader!=='function'){
957
957
  // Fallback for browsers without ReadableStream support - use non-streaming endpoint
958
958
  chatHistory[streamIdx].content='Thinking...';renderMessages();