nothumanallowed 13.5.93 → 13.5.95

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.5.93",
3
+ "version": "13.5.95",
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": {
@@ -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.15 });
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 });
@@ -6802,6 +6802,10 @@ function renderWebCraft(el) {
6802
6802
  '</div>' +
6803
6803
  '</div>';
6804
6804
 
6805
+ // Preserve textarea value across re-renders (re-render destroys DOM)
6806
+ var _wcChatInputEl = document.getElementById('wcChatInput');
6807
+ var _wcChatInputVal = _wcChatInputEl ? _wcChatInputEl.value : '';
6808
+
6805
6809
  el.innerHTML =
6806
6810
  '<div style="display:flex;flex-direction:column;height:100%;min-height:0;padding:0 4px">' +
6807
6811
  headerHtml +
@@ -6814,6 +6818,12 @@ function renderWebCraft(el) {
6814
6818
  wcChatPanelHtml() +
6815
6819
  '</div>' +
6816
6820
  wcSkillModalHtml();
6821
+
6822
+ // Restore textarea value after DOM rebuild
6823
+ if (_wcChatInputVal) {
6824
+ var _wcChatInputNew = document.getElementById('wcChatInput');
6825
+ if (_wcChatInputNew) _wcChatInputNew.value = _wcChatInputVal;
6826
+ }
6817
6827
  }
6818
6828
 
6819
6829
  function wcPickExample(i) {
@@ -8284,8 +8294,9 @@ async function wcCallLLMRaw(sys, user, signal, maxTok) {
8284
8294
  }
8285
8295
  if (r.status < 500 || attempt === 2) {
8286
8296
  var errBody = '';
8287
- try { var eb = await r.json(); errBody = eb.error || ''; } catch(_) {}
8288
- throw new Error('LLM error ' + r.status + (errBody ? ': ' + errBody : ''));
8297
+ try { var errText = await r.text(); try { errBody = JSON.parse(errText).error || errText; } catch(_) { errBody = errText; } } catch(_) {}
8298
+ console.warn('[WebCraft] LLM ' + r.status + ' attempt=' + attempt + ':', errBody.slice(0, 300));
8299
+ throw new Error('LLM error ' + r.status + (errBody ? ': ' + errBody.slice(0, 120) : ''));
8289
8300
  }
8290
8301
  await new Promise(function(resolve) { setTimeout(resolve, 2000); });
8291
8302
  }