nothumanallowed 15.0.0 → 15.0.1

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": "15.0.0",
3
+ "version": "15.0.1",
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.0.0';
8
+ export const VERSION = '15.0.1';
9
9
  export const BASE_URL = 'https://nothumanallowed.com/cli';
10
10
  export const API_BASE = 'https://nothumanallowed.com/api/v1';
11
11
 
@@ -2568,6 +2568,7 @@ export function register(router) {
2568
2568
  try {
2569
2569
  const { projectName } = await parseBody(req);
2570
2570
  if (!projectName) return sendError(res, 400, 'projectName required');
2571
+ console.log('[scan] Starting scan for:', projectName);
2571
2572
  const dir = ProjectStore.dir(projectName);
2572
2573
  if (!fs.existsSync(dir)) return sendJSON(res, 200, { issues: [] });
2573
2574
 
@@ -2581,8 +2582,10 @@ export function register(router) {
2581
2582
 
2582
2583
  let diags = [];
2583
2584
  if (['js', 'mjs', 'jsx', 'cjs'].includes(ext)) {
2584
- const tsDiags = await lintJSWithTypeScript(dir, relPath);
2585
- diags = tsDiags || lintJS(content, relPath, projectName);
2585
+ try {
2586
+ const tsDiags = await lintJSWithTypeScript(dir, relPath);
2587
+ diags = tsDiags || lintJS(content, relPath, projectName);
2588
+ } catch { diags = lintJS(content, relPath, projectName); }
2586
2589
  } else if (ext === 'json') {
2587
2590
  try { JSON.parse(content); } catch (e) {
2588
2591
  diags.push({ from: { line: 1, col: 0 }, severity: 'error', message: e.message });
@@ -2607,7 +2610,7 @@ export function register(router) {
2607
2610
  }
2608
2611
 
2609
2612
  sendJSON(res, 200, { issues, scanned: files.length });
2610
- } catch (e) { sendError(res, 500, e.message); }
2613
+ } catch (e) { console.error('[scan] CRASH:', e); sendError(res, 500, e.message); }
2611
2614
  });
2612
2615
 
2613
2616
  // ── Syntax check ──────────────────────────────────────────────────────────