nothumanallowed 11.5.2 → 11.5.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/package.json +1 -1
- package/src/commands/ui.mjs +5 -7
- package/src/constants.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "11.5.
|
|
3
|
+
"version": "11.5.3",
|
|
4
4
|
"description": "NotHumanAllowed — 38 AI agents, 53 tools. Email, calendar, browser automation, screen capture, canvas, cron/heartbeat, GitHub, Notion, Slack, voice chat, 28 languages. Zero-dependency CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/commands/ui.mjs
CHANGED
|
@@ -496,7 +496,7 @@ export async function cmdUI(args) {
|
|
|
496
496
|
connected: true,
|
|
497
497
|
version: VERSION,
|
|
498
498
|
provider: config.llm.provider,
|
|
499
|
-
hasApiKey: !!config.llm.apiKey,
|
|
499
|
+
hasApiKey: !!config.llm.apiKey || config.llm.provider === 'nha',
|
|
500
500
|
hasGoogle: !!config.google?.clientId,
|
|
501
501
|
hasMicrosoft: !!config.microsoft?.clientId,
|
|
502
502
|
mailProvider: detectMailProvider(config),
|
|
@@ -535,7 +535,7 @@ export async function cmdUI(args) {
|
|
|
535
535
|
profile: config.profile || {},
|
|
536
536
|
provider: config.llm?.provider || '',
|
|
537
537
|
model: config.llm?.model || '',
|
|
538
|
-
hasApiKey: !!config.llm?.apiKey,
|
|
538
|
+
hasApiKey: !!config.llm?.apiKey || config.llm?.provider === 'nha',
|
|
539
539
|
planTime: config.ops?.planTime || '07:00',
|
|
540
540
|
summaryTime: config.ops?.summaryTime || '18:00',
|
|
541
541
|
meetingAlert: config.ops?.meetingAlertMinutes || 30,
|
|
@@ -1087,10 +1087,8 @@ export async function cmdUI(args) {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
|
-
if (!config.llm.apiKey) {
|
|
1091
|
-
|
|
1092
|
-
sendJSON(res, 200, { response: 'No API key configured. Run: nha config set key YOUR_KEY\nOr use NHA Free (no key needed): nha config set provider nha', error: 'no_api_key' });
|
|
1093
|
-
}
|
|
1090
|
+
if (!config.llm.apiKey && config.llm.provider !== 'nha') {
|
|
1091
|
+
sendJSON(res, 200, { response: 'No API key configured. Run: nha config set key YOUR_KEY\nOr use NHA Free (no key needed): nha config set provider nha', error: 'no_api_key' });
|
|
1094
1092
|
logRequest(method, pathname, 200, Date.now() - start);
|
|
1095
1093
|
return;
|
|
1096
1094
|
}
|
|
@@ -1916,7 +1914,7 @@ export async function cmdUI(args) {
|
|
|
1916
1914
|
return;
|
|
1917
1915
|
}
|
|
1918
1916
|
|
|
1919
|
-
if (!config.llm.apiKey) {
|
|
1917
|
+
if (!config.llm.apiKey && config.llm.provider !== 'nha') {
|
|
1920
1918
|
sendJSON(res, 200, { response: null, error: 'No API key configured.' });
|
|
1921
1919
|
logRequest(method, pathname, 200, Date.now() - start);
|
|
1922
1920
|
return;
|
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 = '11.5.
|
|
8
|
+
export const VERSION = '11.5.3';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|