nothumanallowed 14.1.13 → 14.1.14
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/constants.mjs +1 -1
- package/src/server/routes/chat.mjs +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.14",
|
|
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 = '14.1.
|
|
8
|
+
export const VERSION = '14.1.14';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|
|
@@ -334,6 +334,17 @@ export function register(router) {
|
|
|
334
334
|
.replace(/<style[\s\S]*?<\/style>/gi, '').replace(/<script[\s\S]*?<\/script>/gi, '')
|
|
335
335
|
.replace(/<[^>]+>/g, ' ').replace(/\s{3,}/g, '\n').trim().slice(0, 6000);
|
|
336
336
|
}
|
|
337
|
+
|
|
338
|
+
// ── Canvas result — emit dedicated SSE event so the UI panel opens ──
|
|
339
|
+
if (resultStr.includes('[CANVAS_RENDER]')) {
|
|
340
|
+
const canvasMarker = resultStr.match(/\[CANVAS_RENDER\]([\s\S]*?)\[\/CANVAS_RENDER\]/);
|
|
341
|
+
if (canvasMarker) {
|
|
342
|
+
sse('canvas', { markers: canvasMarker[0] });
|
|
343
|
+
}
|
|
344
|
+
// Replace the raw HTML blob with a short placeholder so synthesis LLM doesn't see it
|
|
345
|
+
resultStr = 'Canvas rendered successfully in the panel.';
|
|
346
|
+
}
|
|
347
|
+
|
|
337
348
|
toolResults.push({ action, result: resultStr });
|
|
338
349
|
sse('tool', { action, status: 'done', result: resultStr.slice(0, 500) });
|
|
339
350
|
} catch (e) {
|