nothumanallowed 13.5.79 → 13.5.80

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": "13.5.79",
3
+ "version": "13.5.80",
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": {
@@ -3892,6 +3892,13 @@ ${completedHeadings ? `## SECTIONS ALREADY WRITTEN (headings only):\n${completed
3892
3892
  if (pathname.startsWith('/api/studio/webcraft/projects/') && method === 'DELETE') {
3893
3893
  const projName = decodeURIComponent(pathname.replace('/api/studio/webcraft/projects/', '')).replace(/[^a-zA-Z0-9_-]/g, '');
3894
3894
  if (!projName) { sendJSON(res, 400, { error: 'invalid name' }); return; }
3895
+ // Kill sandbox process if it belongs to this project
3896
+ if (global._wcSandboxProc && global._wcSandboxDir && global._wcSandboxDir.includes(projName)) {
3897
+ try { global._wcSandboxProc.kill('SIGTERM'); } catch(_) {}
3898
+ global._wcSandboxProc = null;
3899
+ global._wcSandboxPort = null;
3900
+ global._wcSandboxDir = null;
3901
+ }
3895
3902
  const projDir = path.join(os.homedir(), '.nha', 'webcraft', projName);
3896
3903
  if (fs.existsSync(projDir)) fs.rmSync(projDir, { recursive: true, force: true });
3897
3904
  sendJSON(res, 200, { ok: true });