nothumanallowed 10.6.0 → 10.6.1

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": "10.6.0",
3
+ "version": "10.6.1",
4
4
  "description": "NotHumanAllowed — 38 AI agents, 53 tools. Email, calendar, browser automation, screen capture, canvas, cron/heartbeat, GitHub, Notion, Slack, voice chat, 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 = '10.6.0';
8
+ export const VERSION = '10.6.1';
9
9
  export const BASE_URL = 'https://nothumanallowed.com/cli';
10
10
  export const API_BASE = 'https://nothumanallowed.com/api/v1';
11
11
 
@@ -1744,16 +1744,22 @@ function collabSelect(id){
1744
1744
 
1745
1745
  function collabLoadMessages(){
1746
1746
  if(!collabActiveChannel)return;
1747
- // Reset unread when viewing
1748
1747
  collabUnreadCount=0;
1749
1748
  updateCollabBadge();
1750
1749
  apiGet('/api/collab/messages?channelId='+collabActiveChannel).then(function(r){
1750
+ if(r&&r.error){
1751
+ var el=document.getElementById('collabMessages');
1752
+ if(el)el.innerHTML='<div style="text-align:center;color:var(--red);padding:20px;font-size:11px">'+esc(r.error)+'<br><span style="color:var(--dim);font-size:10px">This channel may have expired or the server was restarted.</span></div>';
1753
+ return;
1754
+ }
1751
1755
  if(!r||!r.messages)return;
1752
1756
  collabMessages=r.messages;
1753
- // Update last count for this channel
1754
1757
  var ch=collabChannels.find(function(c){return c.id===collabActiveChannel});
1755
1758
  if(ch)ch._lastCount=r.messages.length;
1756
1759
  renderCollabMessages();
1760
+ }).catch(function(e){
1761
+ var el=document.getElementById('collabMessages');
1762
+ if(el)el.innerHTML='<div style="text-align:center;color:var(--red);padding:20px;font-size:11px">Connection error</div>';
1757
1763
  });
1758
1764
  }
1759
1765