nothumanallowed 12.5.3 → 12.5.4

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": "12.5.3",
3
+ "version": "12.5.4",
4
4
  "description": "NotHumanAllowed — 38 AI agents, 80 tools. 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/bootstrap.mjs CHANGED
@@ -13,7 +13,13 @@ import { banner, info, ok, fail, warn, progress } from './ui.mjs';
13
13
  * Check if bootstrap is needed (core files missing).
14
14
  */
15
15
  export function needsBootstrap() {
16
- return !fs.existsSync(LEGION_FILE) || !fs.existsSync(AGENTS_DIR);
16
+ if (!fs.existsSync(LEGION_FILE) || !fs.existsSync(AGENTS_DIR)) return true;
17
+ // Also check that at least one agent file exists (dir may be empty after failed install)
18
+ try {
19
+ const files = fs.readdirSync(AGENTS_DIR).filter(f => f.endsWith('.mjs'));
20
+ if (files.length === 0) return true;
21
+ } catch { return true; }
22
+ return false;
17
23
  }
18
24
 
19
25
  /**
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 = '12.5.3';
8
+ export const VERSION = '12.5.4';
9
9
  export const BASE_URL = 'https://nothumanallowed.com/cli';
10
10
  export const API_BASE = 'https://nothumanallowed.com/api/v1';
11
11