nothumanallowed 13.5.22 → 13.5.23
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 +7 -5
- package/src/constants.mjs +1 -1
- package/src/services/web-ui.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "13.5.
|
|
3
|
+
"version": "13.5.23",
|
|
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/commands/ui.mjs
CHANGED
|
@@ -3576,7 +3576,9 @@ Use ## prefix for each heading. Maximum 8 sections. Example:
|
|
|
3576
3576
|
const sectionParts = [];
|
|
3577
3577
|
for (let si = 0; si < headingLines.length; si++) {
|
|
3578
3578
|
const heading = headingLines[si];
|
|
3579
|
-
|
|
3579
|
+
// Pass only the headings of completed sections (not full content) to keep context small
|
|
3580
|
+
// and leave maximum token budget for the current section body.
|
|
3581
|
+
const completedHeadings = sectionParts.map(p => p.split('\n')[0]).join('\n');
|
|
3580
3582
|
const secSys = `You are ${agent}, a specialist AI agent inside NHA Studio. Today is ${today}. Respond entirely in ${language}.
|
|
3581
3583
|
|
|
3582
3584
|
## OVERALL WORKFLOW GOAL:
|
|
@@ -3589,13 +3591,13 @@ CRITICAL RULES:
|
|
|
3589
3591
|
- Be thorough, specific, and complete — this is one section of an executive report
|
|
3590
3592
|
|
|
3591
3593
|
${dataBlock}
|
|
3592
|
-
${
|
|
3594
|
+
${completedHeadings ? `## SECTIONS ALREADY WRITTEN (headings only, for consistency):\n${completedHeadings}` : ''}`;
|
|
3593
3595
|
const secUser = `Write the complete body content for this section (do NOT repeat the heading):\n${heading}`;
|
|
3594
3596
|
sendToken('\n\n' + heading + '\n');
|
|
3595
3597
|
sendToken('[Sezione ' + (si + 1) + ' di ' + headingLines.length + '...] ');
|
|
3596
3598
|
let secContent = '';
|
|
3597
3599
|
try {
|
|
3598
|
-
secContent = await streamCall(secSys, secUser, { max_tokens:
|
|
3600
|
+
secContent = await streamCall(secSys, secUser, { max_tokens: 4000, thinking: 'off' }, 90000, sendToken);
|
|
3599
3601
|
} catch {}
|
|
3600
3602
|
if (secContent.trim()) {
|
|
3601
3603
|
sectionParts.push(heading + '\n\n' + secContent.trim());
|
|
@@ -3614,8 +3616,8 @@ ${writtenSoFar ? `## REPORT WRITTEN SO FAR (for consistency):\n${writtenSoFar.sl
|
|
|
3614
3616
|
fullOutputClean = stripThink(fullOutput);
|
|
3615
3617
|
}
|
|
3616
3618
|
|
|
3617
|
-
//
|
|
3618
|
-
|
|
3619
|
+
// Note: do NOT strip trailing headings — a heading with content follows in the structured
|
|
3620
|
+
// output and stripping it would silently delete the last section of the report.
|
|
3619
3621
|
|
|
3620
3622
|
// Fallback: if LLM returned empty and we have tool data, send it directly
|
|
3621
3623
|
if (!isCanvasAgent && !fullOutputClean && toolData) {
|
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.5.
|
|
8
|
+
export const VERSION = '13.5.23';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|
package/src/services/web-ui.mjs
CHANGED
|
@@ -3325,7 +3325,7 @@ var studioAbortController = null;
|
|
|
3325
3325
|
var parlActiveAgent = null; // active agent label during parliament streaming
|
|
3326
3326
|
var parlDoneAgents = {}; // set of completed agent labels during parliament
|
|
3327
3327
|
var _parlPersistHtml = null; // persists parliament block HTML across tab navigations
|
|
3328
|
-
var _PARL_STAMP = '<!--nha-parl-v13.5.
|
|
3328
|
+
var _PARL_STAMP = '<!--nha-parl-v13.5.23-->';
|
|
3329
3329
|
|
|
3330
3330
|
function stopStudio() {
|
|
3331
3331
|
if (!studioState.running) return;
|