nothumanallowed 14.4.19 → 14.4.21
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/constants.mjs +1 -1
- package/src/server/routes/webcraft.mjs +18 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "14.4.
|
|
3
|
+
"version": "14.4.21",
|
|
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.21';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|
|
@@ -118,6 +118,24 @@ class SandboxManager {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
// ── Phase 3: Start server ─────────────────────────────────────────────
|
|
121
|
+
// Kill orphan sandbox processes on ports 4000-4010 (survive server restart)
|
|
122
|
+
try {
|
|
123
|
+
if (process.platform === 'win32') {
|
|
124
|
+
for (let p = 4000; p <= 4010; p++) {
|
|
125
|
+
try { await execAsync(`for /f "tokens=5" %a in ('netstat -ano ^| findstr :${p} ^| findstr LISTENING') do taskkill /F /PID %a`, { timeout: 3000 }); } catch {}
|
|
126
|
+
}
|
|
127
|
+
} else {
|
|
128
|
+
// Try lsof first, then fuser
|
|
129
|
+
for (let p = 4000; p <= 4010; p++) {
|
|
130
|
+
try {
|
|
131
|
+
const { stdout } = await execAsync(`lsof -ti:${p} 2>/dev/null || fuser ${p}/tcp 2>/dev/null`, { timeout: 2000 });
|
|
132
|
+
const pids = stdout.trim().split(/\s+/).filter(Boolean);
|
|
133
|
+
for (const pid of pids) { try { process.kill(parseInt(pid), 'SIGKILL'); } catch {} }
|
|
134
|
+
} catch {}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
await new Promise((r) => setTimeout(r, 800));
|
|
138
|
+
} catch {}
|
|
121
139
|
const port = await _findFreePort(4000, 4999);
|
|
122
140
|
if (!port) {
|
|
123
141
|
emit({ type: 'error', msg: 'No free ports available in range 4000-4999.' });
|