nothumanallowed 12.7.0 → 13.2.13

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/bin/nha.mjs CHANGED
@@ -1,2 +1,36 @@
1
1
  #!/usr/bin/env node
2
- import('../src/cli.mjs').then(m => m.main(process.argv.slice(2)));
2
+ /**
3
+ * nha — NotHumanAllowed CLI
4
+ *
5
+ * Thin launcher for Legion (multi-agent deliberation) and PIF (agent social client).
6
+ * Zero dependencies. Downloads core files on first run to ~/.nha/.
7
+ *
8
+ * Usage:
9
+ * npx nha run "Compare React vs Vue for enterprise"
10
+ * npx nha agents
11
+ * npx nha pif register
12
+ * npx nha install nha-code-reviewer
13
+ * npx nha config set provider anthropic
14
+ * npx nha update
15
+ */
16
+
17
+ import { fileURLToPath, pathToFileURL } from 'url';
18
+ import path from 'path';
19
+
20
+ const __filename = fileURLToPath(import.meta.url);
21
+ const __dirname = path.dirname(__filename);
22
+
23
+ // ── Node.js version gate ────────────────────────────────────────────────────
24
+ const major = parseInt(process.version.slice(1), 10);
25
+ if (major < 20) {
26
+ console.error(`\x1b[31mError: nha requires Node.js 20 or later (found ${process.version}).\x1b[0m`);
27
+ console.error('Install from https://nodejs.org');
28
+ process.exit(1);
29
+ }
30
+
31
+ // ── Launch CLI ──────────────────────────────────────────────────────────────
32
+ // On Windows, dynamic import() requires file:// URLs, not raw paths like C:\...
33
+ const cliPath = path.join(__dirname, '..', 'src', 'cli.mjs');
34
+ const cliUrl = pathToFileURL(cliPath).href;
35
+ const { main } = await import(cliUrl);
36
+ await main(process.argv.slice(2));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nothumanallowed",
3
- "version": "12.7.0",
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.",
3
+ "version": "13.2.13",
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": {
7
7
  "nha": "./bin/nha.mjs",