nothumanallowed 11.5.0 → 11.5.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 +1 -1
- package/src/config.mjs +8 -1
- 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.1",
|
|
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/config.mjs
CHANGED
|
@@ -298,7 +298,14 @@ export function setConfigValue(key, value) {
|
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
const lastKey = resolvedParts[resolvedParts.length - 1];
|
|
301
|
-
|
|
301
|
+
// Allow creating new keys (don't reject undefined)
|
|
302
|
+
|
|
303
|
+
// Empty value = clear the field
|
|
304
|
+
if (value === '' || value === null || value === undefined) {
|
|
305
|
+
obj[lastKey] = '';
|
|
306
|
+
saveConfig(config);
|
|
307
|
+
return true;
|
|
308
|
+
}
|
|
302
309
|
|
|
303
310
|
// Type coercion based on existing type
|
|
304
311
|
const existing = obj[lastKey];
|
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.1';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|