nothumanallowed 13.2.21 → 13.2.22
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/services/web-ui.mjs +11 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "13.2.
|
|
3
|
+
"version": "13.2.22",
|
|
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.
|
|
8
|
+
export const VERSION = '13.2.22';
|
|
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
|
@@ -2830,7 +2830,11 @@ function renderStudioResult() {
|
|
|
2830
2830
|
if (!el) return;
|
|
2831
2831
|
if (!studioState.result) { el.style.display = 'none'; return; }
|
|
2832
2832
|
el.style.display = 'block';
|
|
2833
|
-
|
|
2833
|
+
var isHtml = studioState.result.trimStart().startsWith('<');
|
|
2834
|
+
var body = isHtml
|
|
2835
|
+
? '<div style="display:flex;align-items:center;gap:12px;flex-wrap:wrap"><span style="color:var(--dim);font-size:13px">✓ Dashboard HTML generata nel pannello Canvas.</span><button onclick="var cp=document.getElementById(\'canvasPanel\');if(cp)cp.classList.add(\'open\')" style="padding:6px 14px;background:var(--greendim);border:1px solid var(--green3);border-radius:8px;color:var(--green);font-size:12px;cursor:pointer;font-weight:700">▣ Apri Canvas</button></div>'
|
|
2836
|
+
: '<div class="md-body">' + renderMd(studioState.result) + '</div>';
|
|
2837
|
+
el.innerHTML = '<div class="studio-result__title">✓ Workflow completato</div>' + body;
|
|
2834
2838
|
}
|
|
2835
2839
|
|
|
2836
2840
|
function studioSetNodeStatus(idx, status) {
|
|
@@ -2903,7 +2907,8 @@ async function runStudio() {
|
|
|
2903
2907
|
break;
|
|
2904
2908
|
}
|
|
2905
2909
|
studioSetNodeStatus(i, 'done');
|
|
2906
|
-
|
|
2910
|
+
var realOutput = (stepResult.output && stepResult.output !== '(no output)') ? stepResult.output : null;
|
|
2911
|
+
studioLog(node.label, node.icon, realOutput || (stepResult.canvas ? '[Canvas report generated]' : '(done)'), 'agent', true);
|
|
2907
2912
|
// If CanvasAgent produced HTML, open it in the canvas panel
|
|
2908
2913
|
if (stepResult.canvas) {
|
|
2909
2914
|
var cf = document.getElementById('canvasFrame');
|
|
@@ -2915,7 +2920,7 @@ async function runStudio() {
|
|
|
2915
2920
|
if (ct) ct.textContent = node.label + ' Report';
|
|
2916
2921
|
}
|
|
2917
2922
|
}
|
|
2918
|
-
context =
|
|
2923
|
+
context = realOutput || stepResult.canvas || context;
|
|
2919
2924
|
}
|
|
2920
2925
|
|
|
2921
2926
|
// Final result is the last step's output
|
|
@@ -3419,13 +3424,14 @@ async function runManualWorkflow() {
|
|
|
3419
3424
|
break;
|
|
3420
3425
|
}
|
|
3421
3426
|
studioSetNodeStatus(i, 'done');
|
|
3422
|
-
|
|
3427
|
+
var realOut2 = (stepResult.output && stepResult.output !== '(no output)') ? stepResult.output : null;
|
|
3428
|
+
studioLog(s.label, s.icon, realOut2 || (stepResult.canvas ? '[Canvas report generated]' : '(done)'), 'agent', true);
|
|
3423
3429
|
if (stepResult.canvas) {
|
|
3424
3430
|
var cf = document.getElementById('canvasFrame');
|
|
3425
3431
|
var cp = document.getElementById('canvasPanel');
|
|
3426
3432
|
if (cf && cp) { cf.srcdoc = stepResult.canvas; cp.classList.add('open'); var ct3=document.getElementById('canvasTitle'); if(ct3) ct3.textContent='Studio Report'; }
|
|
3427
3433
|
}
|
|
3428
|
-
context =
|
|
3434
|
+
context = realOut2 || stepResult.canvas || context;
|
|
3429
3435
|
}
|
|
3430
3436
|
studioState.result = context;
|
|
3431
3437
|
renderStudioResult();
|