nothumanallowed 14.1.60 → 14.1.61
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.1.
|
|
3
|
+
"version": "14.1.61",
|
|
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.1.
|
|
8
|
+
export const VERSION = '14.1.61';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|
|
@@ -98,9 +98,26 @@ export function register(router) {
|
|
|
98
98
|
success: true,
|
|
99
99
|
message: newVersion ? `Updated to v${newVersion}` : 'Update completed',
|
|
100
100
|
newVersion,
|
|
101
|
+
restart: true,
|
|
101
102
|
stdout: stdout.trim(),
|
|
102
103
|
stderr: stderr.trim()
|
|
103
104
|
});
|
|
105
|
+
|
|
106
|
+
// Self-restart: spawn new process with same args, then exit
|
|
107
|
+
// Delay to allow HTTP response to flush
|
|
108
|
+
setTimeout(async () => {
|
|
109
|
+
try {
|
|
110
|
+
const { spawn } = await import('child_process');
|
|
111
|
+
const args = process.argv.slice(1);
|
|
112
|
+
const child = spawn(process.argv[0], args, {
|
|
113
|
+
detached: true,
|
|
114
|
+
stdio: 'ignore',
|
|
115
|
+
env: process.env,
|
|
116
|
+
});
|
|
117
|
+
child.unref();
|
|
118
|
+
} catch { /* ignore spawn errors */ }
|
|
119
|
+
process.exit(0);
|
|
120
|
+
}, 1500);
|
|
104
121
|
} catch (e) {
|
|
105
122
|
const isPermission = e.message?.includes('EACCES') || e.message?.includes('permission denied');
|
|
106
123
|
sendJSON(res, 200, {
|