nothumanallowed 8.3.1 → 8.3.3
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 +5 -3
- package/package.json +1 -1
- package/src/commands/plugin.mjs +2 -1
- package/src/constants.mjs +1 -1
package/bin/nha.mjs
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* npx nha update
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { fileURLToPath } from 'url';
|
|
17
|
+
import { fileURLToPath, pathToFileURL } from 'url';
|
|
18
18
|
import path from 'path';
|
|
19
19
|
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
@@ -29,6 +29,8 @@ if (major < 20) {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
// ── Launch CLI ──────────────────────────────────────────────────────────────
|
|
32
|
-
|
|
33
|
-
const
|
|
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);
|
|
34
36
|
await main(process.argv.slice(2));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.3",
|
|
4
4
|
"description": "NotHumanAllowed — 38 AI agents + unified productivity suite. Gmail, Calendar, Drive, Contacts, Tasks, GitHub, Notion, Slack, voice chat, smart scheduler. Zero-dependency CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/commands/plugin.mjs
CHANGED
|
@@ -42,7 +42,8 @@ export async function loadPlugin(name) {
|
|
|
42
42
|
if (!fs.existsSync(pluginFile)) return null;
|
|
43
43
|
|
|
44
44
|
try {
|
|
45
|
-
const
|
|
45
|
+
const { pathToFileURL } = await import('url');
|
|
46
|
+
const mod = await import(pathToFileURL(pluginFile).href);
|
|
46
47
|
return {
|
|
47
48
|
card: mod.PLUGIN_CARD || { name: sanitized, version: '0.0.0', description: '', commands: [] },
|
|
48
49
|
run: typeof mod.run === 'function' ? mod.run : null,
|
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 = '8.3.
|
|
8
|
+
export const VERSION = '8.3.3';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|