nothumanallowed 14.1.23 → 14.1.24

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": "14.1.23",
3
+ "version": "14.1.24",
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 = '14.1.23';
8
+ export const VERSION = '14.1.24';
9
9
  export const BASE_URL = 'https://nothumanallowed.com/cli';
10
10
  export const API_BASE = 'https://nothumanallowed.com/api/v1';
11
11
 
@@ -394,7 +394,7 @@ if (signalCtx) {
394
394
  ${g}
395
395
  <\/script>
396
396
  </body>
397
- </html>`}function Ke(e,t){let n=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`),r=e=>n(e).replace(/^#{3}\s+(.+)$/gm,`<h3>$1</h3>`).replace(/^#{2}\s+(.+)$/gm,`<h2>$1</h2>`).replace(/^#{1}\s+(.+)$/gm,`<h1>$1</h1>`).replace(/\*\*(.*?)\*\*/g,`<strong>$1</strong>`).replace(/\*(.*?)\*/g,`<em>$1</em>`).replace(/`([^`]+)`/g,`<code>$1</code>`).replace(/^\|\s*(.*?)\s*\|/gm,(e,t)=>`<tr>${t.split(`|`).map(e=>`<td>${e.trim()}</td>`).join(``)}</tr>`).replace(/(<tr>.*?<\/tr>\n?)+/gs,e=>`<table>${e}</table>`).replace(/^[-*]\s+(.+)$/gm,`<li>$1</li>`).replace(/(<li>.*?<\/li>\n?)+/gs,e=>`<ul>${e}</ul>`).replace(/\n{2,}/g,`</p><p>`).replace(/^(?!<[a-zA-Z])(.+)$/gm,`$1<br>`),i=t.filter(e=>e.output&&e.output!==`(no output)`),a=i.map(e=>{let t=(e.output.match(/bullish|buy|positive|strong|upside|growth|ottimo|eccellente|positiv/gi)??[]).length,n=(e.output.match(/bearish|sell|negative|weak|risk|downside|problema|critico|negativ/gi)??[]).length;return Math.max(5,Math.min(95,50+(t-n)*6))}),o=Math.floor(Math.min(560,i.length*80)),s=i.length>0?Math.floor(o/i.length)-6:40,c=i.length>=2?`
397
+ </html>`}function Ke(e,t){let n=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`),r=pe,i=t.filter(e=>e.output&&e.output!==`(no output)`),a=i.map(e=>{let t=(e.output.match(/bullish|buy|positive|strong|upside|growth|ottimo|eccellente|positiv/gi)??[]).length,n=(e.output.match(/bearish|sell|negative|weak|risk|downside|problema|critico|negativ/gi)??[]).length;return Math.max(5,Math.min(95,50+(t-n)*6))}),o=Math.floor(Math.min(560,i.length*80)),s=i.length>0?Math.floor(o/i.length)-6:40,c=i.length>=2?`
398
398
  <div class="chart-section">
399
399
  <h3 class="chart-title">Agent Confidence Scores</h3>
400
400
  <svg width="${o}" height="120" viewBox="0 0 ${o} 120" xmlns="http://www.w3.org/2000/svg">
@@ -460,7 +460,7 @@ ${u}
460
460
 
461
461
  ---
462
462
 
463
- `);if(l(d),F(`Studio`,`✅`,`Workflow completo`,`system`),!ce.current){let e=s.filter(e=>e.output&&e.output!==`(no output)`),t=We(n.trim())?Ge(n.trim(),e):Ke(n.trim(),e);ce.current=t,S(t),F(`Studio`,`📊`,`Report canvas generato`,`system`)}let f=[{id:`s_${Date.now()}`,task:n.trim(),nodes:s,log:[],result:d,council:u??void 0,canvas:ce.current||void 0,ts:new Date().toISOString()},...Je()].slice(0,20);qe(f),p(f)}catch(e){e instanceof DOMException&&e.name===`AbortError`||F(`Studio`,`❌`,`Fatal: ${e.message}`,`error`)}finally{d(!1),oe.current=null}},de=()=>{oe.current?.abort(),d(!1),a(e=>e.map(e=>e.status===`running`?{...e,status:`error`}:e)),F(`Studio`,`⬛`,`Stopped`,`system`)},fe=async()=>{let e=P.current;if(!e.length)return;T(!1);let t=oe.current??new AbortController;oe.current=t;let r={phase:`r2`,r1Convergence:0,r2Convergence:0,converged:!1,r2Nodes:[],synthesis:``};N.current=r,w({...r}),F(`Consiglio`,`🏛️`,`Avvio deliberazione — ${e.length} agenti`,`system`);try{await et(`/api/studio/deliberate`,{task:n.trim(),proposals:e.map(e=>({agent:e.agent,label:e.label,icon:e.icon,output:e.output}))},e=>{let t=N.current;if(typeof e.token==`string`){e.token.startsWith(`[`)||F(`Consiglio`,`🏛️`,e.token.trim(),`system`);return}if(e.deliberation_r2){let n=e.deliberation_r2,r={...t,phase:`r2`,r2Nodes:[...t.r2Nodes.filter(e=>e.agent!==n.agent),n]};N.current=r,w({...r}),F(n.label,n.icon,`Posizione raffinata (Round 2)`,`agent`);return}if(e.deliberation_r3){let n=e.deliberation_r3,r={...t,phase:`r3`,synthesis:n.output,converged:n.converged};N.current=r,w({...r}),F(`HERALD`,`📰`,n.converged?`Sintesi consenso`:`Mediazione divergenze`,`agent`);return}if(e.deliberation_done){let n=e;if(n.skipped){let e={...t,phase:`skipped`,skipped:!0,skipReason:n.reason};N.current=e,w({...e})}else{let e={...t,phase:`done`,r1Convergence:n.r1_convergence??t.r1Convergence,r2Convergence:n.r2_convergence??t.r2Convergence,converged:n.converged??t.converged,synthesis:n.mediation??t.synthesis};N.current=e,w({...e}),F(`Parlamento`,`✅`,`Consenso — R2: ${Math.round((n.r2_convergence??0)*100)}%`,`system`)}}},t.signal)}catch(e){t.signal.aborted||F(`Parlamento`,`⚠️`,`Deliberazione fallita: ${e.message}`,`error`)}},I=e=>{r(e.task),a(e.nodes.map(e=>({...e,status:`done`}))),s(e.log),l(e.result),w(e.council??null),e.canvas&&(S(e.canvas),ce.current=e.canvas),h(!1)},me=e=>{if(!confirm(`Delete this session? This cannot be undone.`))return;let t=f.filter(t=>t.id!==e);qe(t),p(t)},he=()=>{if(!c&&i.length===0)return;let e=i.filter(e=>e.output&&e.output!==`(no output)`),t=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),r=e=>t(e).replace(/^#{3}\s+(.+)$/gm,`<h3>$1</h3>`).replace(/^#{2}\s+(.+)$/gm,`<h2>$1</h2>`).replace(/^#{1}\s+(.+)$/gm,`<h1>$1</h1>`).replace(/\*\*(.*?)\*\*/g,`<strong>$1</strong>`).replace(/\*(.*?)\*/g,`<em>$1</em>`).replace(/`([^`]+)`/g,`<code>$1</code>`).replace(/^\|\s*(.*?)\s*\|/gm,(e,t)=>`<tr>${t.split(`|`).map(e=>`<td>${e.trim()}</td>`).join(``)}</tr>`).replace(/(<tr>.*?<\/tr>\n?)+/gs,e=>`<table>${e}</table>`).replace(/^[-*]\s+(.+)$/gm,`<li>$1</li>`).replace(/(<li>.*?<\/li>\n?)+/gs,e=>`<ul>${e}</ul>`).replace(/\n{2,}/g,`</p><p>`).replace(/^(?!<[a-zA-Z])(.+)$/gm,`$1<br>`),a=e.map(e=>{let t=(e.output.match(/bullish|buy|positive|strong|upside|growth/gi)??[]).length,n=(e.output.match(/bearish|sell|negative|weak|risk|downside/gi)??[]).length;return Math.max(5,Math.min(95,50+(t-n)*6))}),o=Math.floor(Math.min(560,e.length*80)),s=e.length>0?Math.floor(o/e.length)-6:40,l=e.length>=2?`
463
+ `);if(l(d),F(`Studio`,`✅`,`Workflow completo`,`system`),!ce.current){let e=s.filter(e=>e.output&&e.output!==`(no output)`),t=We(n.trim())?Ge(n.trim(),e):Ke(n.trim(),e);ce.current=t,S(t),F(`Studio`,`📊`,`Report canvas generato`,`system`)}let f=[{id:`s_${Date.now()}`,task:n.trim(),nodes:s,log:[],result:d,council:u??void 0,canvas:ce.current||void 0,ts:new Date().toISOString()},...Je()].slice(0,20);qe(f),p(f)}catch(e){e instanceof DOMException&&e.name===`AbortError`||F(`Studio`,`❌`,`Fatal: ${e.message}`,`error`)}finally{d(!1),oe.current=null}},de=()=>{oe.current?.abort(),d(!1),a(e=>e.map(e=>e.status===`running`?{...e,status:`error`}:e)),F(`Studio`,`⬛`,`Stopped`,`system`)},fe=async()=>{let e=P.current;if(!e.length)return;T(!1);let t=oe.current??new AbortController;oe.current=t;let r={phase:`r2`,r1Convergence:0,r2Convergence:0,converged:!1,r2Nodes:[],synthesis:``};N.current=r,w({...r}),F(`Consiglio`,`🏛️`,`Avvio deliberazione — ${e.length} agenti`,`system`);try{await et(`/api/studio/deliberate`,{task:n.trim(),proposals:e.map(e=>({agent:e.agent,label:e.label,icon:e.icon,output:e.output}))},e=>{let t=N.current;if(typeof e.token==`string`){e.token.startsWith(`[`)||F(`Consiglio`,`🏛️`,e.token.trim(),`system`);return}if(e.deliberation_r2){let n=e.deliberation_r2,r={...t,phase:`r2`,r2Nodes:[...t.r2Nodes.filter(e=>e.agent!==n.agent),n]};N.current=r,w({...r}),F(n.label,n.icon,`Posizione raffinata (Round 2)`,`agent`);return}if(e.deliberation_r3){let n=e.deliberation_r3,r={...t,phase:`r3`,synthesis:n.output,converged:n.converged};N.current=r,w({...r}),F(`HERALD`,`📰`,n.converged?`Sintesi consenso`:`Mediazione divergenze`,`agent`);return}if(e.deliberation_done){let n=e;if(n.skipped){let e={...t,phase:`skipped`,skipped:!0,skipReason:n.reason};N.current=e,w({...e})}else{let e={...t,phase:`done`,r1Convergence:n.r1_convergence??t.r1Convergence,r2Convergence:n.r2_convergence??t.r2Convergence,converged:n.converged??t.converged,synthesis:n.mediation??t.synthesis};N.current=e,w({...e}),F(`Parlamento`,`✅`,`Consenso — R2: ${Math.round((n.r2_convergence??0)*100)}%`,`system`)}}},t.signal)}catch(e){t.signal.aborted||F(`Parlamento`,`⚠️`,`Deliberazione fallita: ${e.message}`,`error`)}},I=e=>{r(e.task),a(e.nodes.map(e=>({...e,status:`done`}))),s(e.log),l(e.result),w(e.council??null),e.canvas&&(S(e.canvas),ce.current=e.canvas),h(!1)},me=e=>{if(!confirm(`Delete this session? This cannot be undone.`))return;let t=f.filter(t=>t.id!==e);qe(t),p(t)},he=()=>{if(!c&&i.length===0)return;let e=i.filter(e=>e.output&&e.output!==`(no output)`),t=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),r=pe,a=e.map(e=>{let t=(e.output.match(/bullish|buy|positive|strong|upside|growth/gi)??[]).length,n=(e.output.match(/bearish|sell|negative|weak|risk|downside/gi)??[]).length;return Math.max(5,Math.min(95,50+(t-n)*6))}),o=Math.floor(Math.min(560,e.length*80)),s=e.length>0?Math.floor(o/e.length)-6:40,l=e.length>=2?`
464
464
  <div class="chart-section">
465
465
  <h3 class="chart-title">Agent Sentiment Scores</h3>
466
466
  <svg width="${o}" height="120" viewBox="0 0 ${o} 120" xmlns="http://www.w3.org/2000/svg">
@@ -8,7 +8,7 @@
8
8
  <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
9
9
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
10
10
  <title>NHA — NotHumanAllowed</title>
11
- <script type="module" crossorigin src="/assets/index-CCjUmNsG.js"></script>
11
+ <script type="module" crossorigin src="/assets/index-yaE4fioY.js"></script>
12
12
  <link rel="stylesheet" crossorigin href="/assets/index-C9Tmwr7c.css">
13
13
  </head>
14
14
  <body>