nothumanallowed 14.4.18 → 14.4.20
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.
|
|
3
|
+
"version": "14.4.20",
|
|
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.
|
|
8
|
+
export const VERSION = '14.4.20';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|
|
@@ -86,12 +86,19 @@ export function register(router) {
|
|
|
86
86
|
env: { ...process.env, NODE_ENV: 'production' },
|
|
87
87
|
});
|
|
88
88
|
|
|
89
|
-
//
|
|
89
|
+
// Get the installed version from npm output or registry
|
|
90
90
|
let newVersion = '';
|
|
91
91
|
try {
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
|
|
92
|
+
// Extract version from npm install output (e.g. "+ nothumanallowed@14.4.18")
|
|
93
|
+
const verMatch = stdout.match(/nothumanallowed@(\d+\.\d+\.\d+)/);
|
|
94
|
+
if (verMatch) {
|
|
95
|
+
newVersion = verMatch[1];
|
|
96
|
+
} else {
|
|
97
|
+
// Fallback: check registry
|
|
98
|
+
const regResp = await fetch('https://registry.npmjs.org/nothumanallowed/latest');
|
|
99
|
+
const regData = await regResp.json();
|
|
100
|
+
newVersion = regData.version || '';
|
|
101
|
+
}
|
|
95
102
|
} catch { /* ignore */ }
|
|
96
103
|
|
|
97
104
|
// Restart ops daemon if running (so Telegram/Discord reconnect with new code)
|
|
@@ -118,6 +118,11 @@ class SandboxManager {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
// ── Phase 3: Start server ─────────────────────────────────────────────
|
|
121
|
+
// Kill orphan sandbox processes from previous runs (survive server restart)
|
|
122
|
+
try {
|
|
123
|
+
await execAsync('pkill -f "NHA_SANDBOX=1" 2>/dev/null || true', { timeout: 3000 });
|
|
124
|
+
await new Promise((r) => setTimeout(r, 500)); // wait for port release
|
|
125
|
+
} catch {}
|
|
121
126
|
const port = await _findFreePort(4000, 4999);
|
|
122
127
|
if (!port) {
|
|
123
128
|
emit({ type: 'error', msg: 'No free ports available in range 4000-4999.' });
|