nothumanallowed 14.3.4 → 14.3.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 +1 -1
- package/src/commands/ui.mjs +27 -0
- package/src/constants.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.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/commands/ui.mjs
CHANGED
|
@@ -38,6 +38,33 @@ export async function cmdUI(args) {
|
|
|
38
38
|
|
|
39
39
|
const host = explicitHost || '127.0.0.1';
|
|
40
40
|
|
|
41
|
+
// Kill any existing process on this port (prevents EADDRINUSE)
|
|
42
|
+
try {
|
|
43
|
+
const { execSync } = await import('child_process');
|
|
44
|
+
if (process.platform === 'win32') {
|
|
45
|
+
// Windows: find PID on port and kill it
|
|
46
|
+
const out = execSync(`netstat -ano | findstr :${port} | findstr LISTENING`, { encoding: 'utf-8', timeout: 3000 }).trim();
|
|
47
|
+
const pid = out.split(/\s+/).pop();
|
|
48
|
+
if (pid && pid !== String(process.pid)) {
|
|
49
|
+
execSync(`taskkill /F /PID ${pid}`, { timeout: 3000, stdio: 'ignore' });
|
|
50
|
+
console.log(` \x1b[33m!\x1b[0m Killed previous process on port ${port} (PID ${pid})`);
|
|
51
|
+
}
|
|
52
|
+
} else {
|
|
53
|
+
// Unix/Mac: lsof to find and kill
|
|
54
|
+
const out = execSync(`lsof -ti:${port} 2>/dev/null`, { encoding: 'utf-8', timeout: 3000 }).trim();
|
|
55
|
+
if (out) {
|
|
56
|
+
const pids = out.split('\n').filter((p) => p && p !== String(process.pid));
|
|
57
|
+
for (const pid of pids) {
|
|
58
|
+
try { process.kill(parseInt(pid), 'SIGTERM'); } catch {}
|
|
59
|
+
}
|
|
60
|
+
if (pids.length > 0) {
|
|
61
|
+
console.log(` \x1b[33m!\x1b[0m Killed previous process on port ${port} (PID ${pids.join(', ')})`);
|
|
62
|
+
await new Promise((r) => setTimeout(r, 500)); // wait for port to free
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
} catch { /* port is free */ }
|
|
67
|
+
|
|
41
68
|
// Auto-start ops daemon (Telegram + cron) if not already running
|
|
42
69
|
if (!isRunning()) {
|
|
43
70
|
const result = startDaemon();
|
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.3.
|
|
8
|
+
export const VERSION = '14.3.5';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|