nothumanallowed 10.8.1 → 10.8.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nothumanallowed",
3
- "version": "10.8.1",
3
+ "version": "10.8.2",
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": {
@@ -2117,12 +2117,12 @@ export async function cmdUI(args) {
2117
2117
  function connectAlexandriaWs(channelId, channelName) {
2118
2118
  if (alexWsConnections.has(channelId)) return;
2119
2119
  try {
2120
- const { WebSocket: WsClient } = require('ws');
2121
2120
  const wsUrl = 'wss://nothumanallowed.com/ws/alexandria/' + channelId;
2122
2121
  const alexWs = new WsClient(wsUrl);
2123
2122
 
2124
2123
  alexWs.on('open', () => {
2125
2124
  alexWsConnections.set(channelId, alexWs);
2125
+ console.log(` [Alexandria WS] Connected to channel ${channelId.slice(0, 8)}...`);
2126
2126
  });
2127
2127
 
2128
2128
  alexWs.on('message', (data) => {
@@ -2166,7 +2166,8 @@ export async function cmdUI(args) {
2166
2166
  // Reconnect after 5s
2167
2167
  setTimeout(() => connectAlexandriaWs(channelId, channelName), 5000);
2168
2168
  });
2169
- alexWs.on('error', () => {
2169
+ alexWs.on('error', (e) => {
2170
+ console.log(` [Alexandria WS] Error on ${channelId.slice(0, 8)}: ${e.message}`);
2170
2171
  alexWsConnections.delete(channelId);
2171
2172
  });
2172
2173
  } catch {}
@@ -2178,11 +2179,16 @@ export async function cmdUI(args) {
2178
2179
  const chFile = path.join(collabDir, 'channels.json');
2179
2180
  if (fs.existsSync(chFile)) {
2180
2181
  const channels = JSON.parse(fs.readFileSync(chFile, 'utf-8'));
2182
+ console.log(` [Alexandria WS] Connecting to ${channels.length} channel(s)...`);
2181
2183
  for (const ch of channels) {
2182
2184
  connectAlexandriaWs(ch.id, ch.name);
2183
2185
  }
2186
+ } else {
2187
+ console.log(' [Alexandria WS] No channels file found');
2184
2188
  }
2185
- } catch {}
2189
+ } catch (e) {
2190
+ console.log(` [Alexandria WS] Startup error: ${e.message}`);
2191
+ }
2186
2192
  }, 2000);
2187
2193
 
2188
2194
  } catch {
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.8.1';
8
+ export const VERSION = '10.8.2';
9
9
  export const BASE_URL = 'https://nothumanallowed.com/cli';
10
10
  export const API_BASE = 'https://nothumanallowed.com/api/v1';
11
11