nothumanallowed 13.2.15 → 13.2.16

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.15",
3
+ "version": "13.2.16",
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": {
@@ -2658,11 +2658,14 @@ Respond with ONLY valid JSON, no markdown:
2658
2658
  // Keepalive: send a comment every 5s so the connection doesn't time out during slow tool calls
2659
2659
  const keepalive = setInterval(() => { try { res.write(': keepalive\n\n'); } catch {} }, 5000);
2660
2660
 
2661
- // Timeout wrapper for tool calls 25s max
2662
- const withTimeout = (promise, label) => Promise.race([
2663
- promise,
2664
- new Promise((_, rej) => setTimeout(() => rej(new Error(`${label} timed out after 25s`)), 25000)),
2665
- ]);
2661
+ // Timeout wrapper ms param optional (default 25s for tool calls)
2662
+ const withTimeout = (promise, ms) => {
2663
+ const delay = typeof ms === 'number' ? ms : 25000;
2664
+ return Promise.race([
2665
+ promise,
2666
+ new Promise((_, rej) => setTimeout(() => rej(new Error(`Step timed out after ${delay/1000}s`)), delay)),
2667
+ ]);
2668
+ };
2666
2669
 
2667
2670
  try {
2668
2671
  const stepPrompt = stepDef?.prompt || task;
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.15';
8
+ export const VERSION = '13.2.16';
9
9
  export const BASE_URL = 'https://nothumanallowed.com/cli';
10
10
  export const API_BASE = 'https://nothumanallowed.com/api/v1';
11
11