nothumanallowed 13.5.94 → 13.5.96
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 +1 -1
- package/src/services/web-ui.mjs +12 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "13.5.
|
|
3
|
+
"version": "13.5.96",
|
|
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
|
@@ -3856,7 +3856,7 @@ ${completedHeadings ? `## SECTIONS ALREADY WRITTEN (headings only):\n${completed
|
|
|
3856
3856
|
return;
|
|
3857
3857
|
}
|
|
3858
3858
|
try {
|
|
3859
|
-
const result = await callLLM(config, body.system, body.user, { max_tokens: body.max_tokens || 8192, temperature: 0.
|
|
3859
|
+
const result = await callLLM(config, body.system, body.user, { max_tokens: body.max_tokens || 8192, temperature: 0.3 });
|
|
3860
3860
|
sendJSON(res, 200, { text: result });
|
|
3861
3861
|
} catch (e) {
|
|
3862
3862
|
sendJSON(res, 500, { error: e.message });
|
package/src/services/web-ui.mjs
CHANGED
|
@@ -6776,7 +6776,15 @@ function renderWebCraft(el) {
|
|
|
6776
6776
|
: '') +
|
|
6777
6777
|
'</div>' +
|
|
6778
6778
|
'<div data-wc-files style="position:relative;flex:1;min-width:0;background:var(--bg2);border:1px solid var(--border);border-radius:10px;display:flex;flex-direction:column;height:100%;overflow:hidden">' +
|
|
6779
|
-
(wcState.
|
|
6779
|
+
(wcState.repairing ?
|
|
6780
|
+
'<div style="position:absolute;inset:0;background:rgba(0,0,0,0.75);backdrop-filter:blur(4px);border-radius:10px;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;animation:wcBubbleIn .3s ease">'
|
|
6781
|
+
+'<div style="font-size:38px;animation:wcRobotBob 1s ease-in-out infinite">🔧</div>'
|
|
6782
|
+
+'<div style="font-size:13px;font-weight:700;color:#facc15;margin-top:12px">Correzione automatica in corso...</div>'
|
|
6783
|
+
+'<div style="font-size:11px;color:var(--dim);margin-top:6px">'+wcState.repairDone+' / '+wcState.repairTotal+' file</div>'
|
|
6784
|
+
+(wcState.repairCurrent ? '<div style="font-size:10px;color:#fde68a;font-family:var(--mono);margin-top:4px;max-width:280px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">'+wcEsc(wcState.repairCurrent)+'</div>' : '')
|
|
6785
|
+
+'<div style="display:flex;gap:4px;margin-top:16px">'+[0,1,2,3,4].map(function(_,idx){ return '<div style="width:6px;height:6px;border-radius:50%;background:#facc15;animation:wcDot 1.1s ease-in-out infinite '+(idx*0.14)+'s"></div>'; }).join('')+'</div>'
|
|
6786
|
+
+'</div>'
|
|
6787
|
+
: wcState.running ? (
|
|
6780
6788
|
_wcOverlayMinimized
|
|
6781
6789
|
// Minimized: small pill in bottom-right corner
|
|
6782
6790
|
? '<div id="wcGenOverlay" onclick="wcOverlayRestore()" style="position:absolute;bottom:12px;right:12px;z-index:50;background:rgba(0,0,0,0.85);border:1px solid var(--green3);border-radius:20px;padding:5px 12px;display:flex;align-items:center;gap:7px;cursor:pointer;animation:wcBubbleIn .2s ease;backdrop-filter:blur(4px)">'
|
|
@@ -8294,8 +8302,9 @@ async function wcCallLLMRaw(sys, user, signal, maxTok) {
|
|
|
8294
8302
|
}
|
|
8295
8303
|
if (r.status < 500 || attempt === 2) {
|
|
8296
8304
|
var errBody = '';
|
|
8297
|
-
try { var
|
|
8298
|
-
|
|
8305
|
+
try { var errText = await r.text(); try { errBody = JSON.parse(errText).error || errText; } catch(_) { errBody = errText; } } catch(_) {}
|
|
8306
|
+
console.warn('[WebCraft] LLM ' + r.status + ' attempt=' + attempt + ':', errBody.slice(0, 300));
|
|
8307
|
+
throw new Error('LLM error ' + r.status + (errBody ? ': ' + errBody.slice(0, 120) : ''));
|
|
8299
8308
|
}
|
|
8300
8309
|
await new Promise(function(resolve) { setTimeout(resolve, 2000); });
|
|
8301
8310
|
}
|