nothumanallowed 13.5.19 → 13.5.20

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.19",
3
+ "version": "13.5.20",
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.5.19';
8
+ export const VERSION = '13.5.20';
9
9
  export const BASE_URL = 'https://nothumanallowed.com/cli';
10
10
  export const API_BASE = 'https://nothumanallowed.com/api/v1';
11
11
 
@@ -3311,6 +3311,7 @@ var studioAbortController = null;
3311
3311
  var parlActiveAgent = null; // active agent label during parliament streaming
3312
3312
  var parlDoneAgents = {}; // set of completed agent labels during parliament
3313
3313
  var _parlPersistHtml = null; // persists parliament block HTML across tab navigations
3314
+ var _PARL_STAMP = '<!--nha-parl-v13.5.20-->';
3314
3315
 
3315
3316
  function stopStudio() {
3316
3317
  if (!studioState.running) return;
@@ -4892,7 +4893,7 @@ async function runStudio() {
4892
4893
  });
4893
4894
 
4894
4895
  // Persist across tab navigations
4895
- if (pb.innerHTML && pb.innerHTML.length < 60000) { _parlPersistHtml = pb.innerHTML; }
4896
+ if (pb.innerHTML && pb.innerHTML.length < 60000) { _parlPersistHtml = _PARL_STAMP + pb.innerHTML; }
4896
4897
 
4897
4898
  }
4898
4899
 
@@ -5060,7 +5061,7 @@ async function runStudio() {
5060
5061
  }
5061
5062
  }
5062
5063
  if (parlFinal && parlFinal.style.display !== 'none' && parlFinal.innerHTML) {
5063
- _parlPersistHtml = parlFinal.innerHTML; // persist so tab nav doesn't lose it
5064
+ _parlPersistHtml = _PARL_STAMP + parlFinal.innerHTML; // persist so tab nav doesn't lose it
5064
5065
  doScroll(parlFinal);
5065
5066
  setTimeout(function(){ doScroll(resEl); }, 2200);
5066
5067
  } else if (resEl) {
@@ -5435,7 +5436,7 @@ function renderStudio(el) {
5435
5436
  // Persist parliament block across tab navigations
5436
5437
  var existingParl = document.getElementById('studioParliamentBlock');
5437
5438
  if (existingParl && existingParl.innerHTML.trim()) {
5438
- _parlPersistHtml = existingParl.innerHTML;
5439
+ _parlPersistHtml = _PARL_STAMP + existingParl.innerHTML;
5439
5440
  }
5440
5441
 
5441
5442
  var examplesHtml = STUDIO_EXAMPLES.map(function(ex) {
@@ -5607,12 +5608,15 @@ function renderStudio(el) {
5607
5608
  // Restore pipeline from state
5608
5609
  renderBuilderPipeline();
5609
5610
  // Restore parliament block if it was visible before tab navigation
5610
- if (_parlPersistHtml) {
5611
+ // Version stamp check: discard stale HTML from older versions
5612
+ if (_parlPersistHtml && _parlPersistHtml.indexOf(_PARL_STAMP) === 0) {
5611
5613
  var parlRestoreEl = document.getElementById('studioParliamentBlock');
5612
5614
  if (parlRestoreEl) {
5613
- parlRestoreEl.innerHTML = _parlPersistHtml;
5615
+ parlRestoreEl.innerHTML = _parlPersistHtml.slice(_PARL_STAMP.length);
5614
5616
  parlRestoreEl.style.display = 'block';
5615
5617
  }
5618
+ } else {
5619
+ _parlPersistHtml = null;
5616
5620
  }
5617
5621
  }
5618
5622