nothumanallowed 14.4.4 → 14.4.5

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": "14.4.4",
3
+ "version": "14.4.5",
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 = '14.4.4';
8
+ export const VERSION = '14.4.5';
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/server/ws.mjs CHANGED
@@ -4,6 +4,7 @@
4
4
  */
5
5
 
6
6
  import { createRequire } from 'module';
7
+ import fs from 'fs';
7
8
  import path from 'path';
8
9
  import os from 'os';
9
10
  import { fileURLToPath } from 'url';
@@ -57,9 +58,7 @@ export function setupWebSocket(server) {
57
58
  // Security: ensure cwd is under NHA_DIR or home
58
59
  const home = os.homedir();
59
60
  if (!cwd.startsWith(NHA_DIR) && !cwd.startsWith(home)) cwd = home;
60
- // Ensure dir exists
61
- const fs = await import('fs');
62
- if (!fs.default.existsSync(cwd)) cwd = home;
61
+ if (!fs.existsSync(cwd)) cwd = home;
63
62
 
64
63
  const shell = process.platform === 'win32' ? 'cmd.exe' : (process.env.SHELL || '/bin/sh');
65
64
  const shellArgs = process.platform === 'win32' ? [] : ['-i']; // interactive