nothumanallowed 15.1.24 → 15.1.25
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 +15 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "15.1.
|
|
3
|
+
"version": "15.1.25",
|
|
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 = '15.1.
|
|
8
|
+
export const VERSION = '15.1.25';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|
|
@@ -249,9 +249,22 @@ class SandboxManager {
|
|
|
249
249
|
|
|
250
250
|
// ── Crash handling — auto-fix missing modules ─────────────────────────
|
|
251
251
|
const exitCode = typeof healthy === 'object' ? healthy.exitCode : -1;
|
|
252
|
-
// If user pressed Stop, don't report as crash
|
|
253
|
-
|
|
252
|
+
// If user pressed Stop, don't report as crash. We ALSO log this so we
|
|
253
|
+
// can see in the UI when the stoppedByUser flag is what's blocking the
|
|
254
|
+
// autofix flow (was a real bug pre-15.1.24).
|
|
255
|
+
if (this._stoppedByUser) {
|
|
256
|
+
emit({ type: 'warn', msg: 'Crash handling skipped: _stoppedByUser=true (user pressed Stop, or previous stop() leaked the flag). If this is unexpected, restart nha ui to pick up the latest fix.' });
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
254
259
|
emit({ type: 'status', msg: `Process exited with code ${exitCode}` });
|
|
260
|
+
// Surface the captured stderr right away so the user sees the REAL error
|
|
261
|
+
// (not just the post-Tier-2 summary). This is the diagnostic gold.
|
|
262
|
+
if (stderrBuf && stderrBuf.trim()) {
|
|
263
|
+
const stderrSnippet = stderrBuf.split('\n').slice(0, 12).join('\n');
|
|
264
|
+
emit({ type: 'log', msg: `[stderr captured]\n${stderrSnippet}` });
|
|
265
|
+
} else {
|
|
266
|
+
emit({ type: 'warn', msg: 'Process exited but no stderr was captured — exit may have been instant.' });
|
|
267
|
+
}
|
|
255
268
|
|
|
256
269
|
// ── Tier 1: missing module → npm install + retry ─────────────────────
|
|
257
270
|
const missingMatch = stderrBuf.match(/Cannot find module ['"]([^'"]+)['"]/);
|