nothumanallowed 13.2.60 → 13.2.61

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": "13.2.60",
3
+ "version": "13.2.61",
4
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": {
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 = '13.2.60';
8
+ export const VERSION = '13.2.61';
9
9
  export const BASE_URL = 'https://nothumanallowed.com/cli';
10
10
  export const API_BASE = 'https://nothumanallowed.com/api/v1';
11
11
 
@@ -37,7 +37,10 @@ async function calFetch(config, urlPath, options = {}) {
37
37
  throw new Error(`Calendar API ${res.status}: ${err}`);
38
38
  }
39
39
 
40
- return res.json();
40
+ if (res.status === 204 || res.headers.get('content-length') === '0') return {};
41
+ const text = await res.text();
42
+ if (!text) return {};
43
+ try { return JSON.parse(text); } catch { return {}; }
41
44
  }
42
45
 
43
46
  /**
@@ -44,7 +44,10 @@ async function graphFetch(config, urlPath, options = {}) {
44
44
  throw new Error(`Microsoft Calendar API ${res.status}: ${err}`);
45
45
  }
46
46
 
47
- return res.json();
47
+ if (res.status === 204 || res.headers.get('content-length') === '0') return {};
48
+ const text = await res.text();
49
+ if (!text) return {};
50
+ try { return JSON.parse(text); } catch { return {}; }
48
51
  }
49
52
 
50
53
  /**