nothumanallowed 9.2.0 → 9.2.2
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 +15 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.2",
|
|
4
4
|
"description": "NotHumanAllowed — 38 AI agents + 50 tools + web search. Streaming chat, multi-conversation, export. Gmail, Calendar, Drive, GitHub, Notion, Slack. 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 = '9.2.
|
|
8
|
+
export const VERSION = '9.2.2';
|
|
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
|
@@ -46,10 +46,7 @@ input:focus,textarea:focus{border-color:var(--green3)}
|
|
|
46
46
|
|
|
47
47
|
/* ---- LAYOUT: mobile-first ---- */
|
|
48
48
|
.app{display:flex;flex-direction:column;height:100vh;height:100dvh}
|
|
49
|
-
|
|
50
|
-
.header__burger{background:none;color:var(--green);font-size:22px;padding:4px 8px;line-height:1}
|
|
51
|
-
.header__title{font-size:14px;color:var(--bright);font-weight:700;flex:1}
|
|
52
|
-
.header__clock{font-size:10px;color:var(--dim)}
|
|
49
|
+
/* header removed — info moved to sidebar brand */
|
|
53
50
|
|
|
54
51
|
.sidebar{display:none;position:fixed;top:0;left:0;width:260px;height:100vh;height:100dvh;background:var(--bg2);border-right:1px solid var(--border);z-index:200;flex-direction:column;overflow-y:auto;box-shadow:4px 0 20px rgba(0,0,0,0.8)}
|
|
55
52
|
.sidebar--open{display:flex}
|
|
@@ -225,7 +222,8 @@ function switchView(v) {
|
|
|
225
222
|
if(el.dataset.view===v){el.classList.add('nav-item--active')}else{el.classList.remove('nav-item--active')}
|
|
226
223
|
});
|
|
227
224
|
var titles = {dashboard:'Dashboard',chat:'Chat',plan:'Daily Plan',tasks:'Tasks',emails:'Emails',calendar:'Calendar',drive:'Drive',contacts:'Contacts',notes:'Notes',onedrive:'OneDrive',mstodo:'Microsoft To Do',agents:'Agents',settings:'Settings'};
|
|
228
|
-
document.getElementById('
|
|
225
|
+
var spt=document.getElementById('sidebarPageTitle');
|
|
226
|
+
if(spt)spt.textContent=titles[v]||v;
|
|
229
227
|
closeSidebar();
|
|
230
228
|
render();
|
|
231
229
|
}
|
|
@@ -323,13 +321,13 @@ var chatReady=false;
|
|
|
323
321
|
function renderChat(el){
|
|
324
322
|
if(!chatReady||!document.getElementById('chatMessages')){
|
|
325
323
|
el.innerHTML='<div style="display:flex;height:calc(100vh - 56px)">'+
|
|
326
|
-
'<div id="convSidebar" style="width:220px;border-right:1px solid var(--border);overflow-y:auto;flex-shrink:0;background:var(--bg);display:none">'+
|
|
324
|
+
'<div id="convSidebar" style="width:220px;border-right:1px solid var(--border);overflow-y:auto;flex-shrink:0;background:var(--bg);display:'+(localStorage.getItem('nha_conv_sidebar')==='hidden'?'none':'')+'">'+
|
|
327
325
|
'<div style="padding:8px"><button onclick="createNewConv()" style="width:100%;padding:8px;border-radius:var(--r);border:1px solid var(--green);background:transparent;color:var(--green);cursor:pointer;font-size:11px">+ New Chat</button></div>'+
|
|
328
326
|
'<div id="convList"></div>'+
|
|
329
327
|
'</div>'+
|
|
330
328
|
'<div style="flex:1;display:flex;flex-direction:column;min-width:0">'+
|
|
331
329
|
'<div style="padding:6px 12px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px">'+
|
|
332
|
-
'<button onclick="toggleConvSidebar()" style="background:none;border:none;cursor:pointer;font-size:14px;color:var(--dim)" title="
|
|
330
|
+
'<button onclick="toggleConvSidebar()" style="background:none;border:none;cursor:pointer;font-size:14px;color:var(--dim);padding:2px 6px" title="Toggle conversations">💬</button>'+
|
|
333
331
|
'<span id="convTitle" style="flex:1;font-size:12px;color:var(--fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap">New Chat</span>'+
|
|
334
332
|
'<button onclick="createNewConv()" style="background:none;border:1px solid var(--green);color:var(--green);padding:4px 10px;border-radius:var(--r);cursor:pointer;font-size:10px">+ New</button>'+
|
|
335
333
|
'<button onclick="exportConvMd()" style="background:none;border:1px solid var(--border);color:var(--dim);padding:4px 8px;border-radius:var(--r);cursor:pointer;font-size:10px" title="Export Markdown">Export</button>'+
|
|
@@ -351,7 +349,7 @@ function renderChat(el){
|
|
|
351
349
|
setTimeout(function(){var i=document.getElementById('chatInput');if(i)i.focus()},100);
|
|
352
350
|
}
|
|
353
351
|
}
|
|
354
|
-
function toggleConvSidebar(){var s=document.getElementById('convSidebar');if(!s)return;s.style.display
|
|
352
|
+
function toggleConvSidebar(){var s=document.getElementById('convSidebar');if(!s)return;var hide=s.style.display!=='none';s.style.display=hide?'none':'';try{localStorage.setItem('nha_conv_sidebar',hide?'hidden':'visible')}catch(e){}}
|
|
355
353
|
function renderConvSidebar(){
|
|
356
354
|
var el=document.getElementById('convList');if(!el)return;
|
|
357
355
|
var h='';convList.forEach(function(c){
|
|
@@ -1728,8 +1726,13 @@ init();
|
|
|
1728
1726
|
<div class="app">
|
|
1729
1727
|
<nav class="sidebar" id="sidebar">
|
|
1730
1728
|
<div class="sidebar__brand">
|
|
1731
|
-
<div
|
|
1732
|
-
|
|
1729
|
+
<div style="display:flex;align-items:center;gap:8px">
|
|
1730
|
+
<div class="sidebar__brand-name">NHA</div>
|
|
1731
|
+
<span id="wsIndicator" style="color:var(--dim);font-size:8px" title="Daemon WebSocket">●</span>
|
|
1732
|
+
<span style="font-size:9px;color:var(--dim)">v${VERSION}</span>
|
|
1733
|
+
</div>
|
|
1734
|
+
<div id="sidebarPageTitle" style="font-size:11px;color:var(--bright);margin-top:4px;font-weight:600">Dashboard</div>
|
|
1735
|
+
<div class="sidebar__brand-sub" id="clock"></div>
|
|
1733
1736
|
</div>
|
|
1734
1737
|
<div class="sidebar__section">
|
|
1735
1738
|
<div class="sidebar__label">Overview</div>
|
|
@@ -1772,15 +1775,10 @@ init();
|
|
|
1772
1775
|
<a href="https://nothumanallowed.com/docs/agents" target="_blank" class="nav-item" style="text-decoration:none"><span class="nav-item__icon">🤖</span> Agents Guide</a>
|
|
1773
1776
|
<a href="https://nothumanallowed.com/docs/mobile" target="_blank" class="nav-item" style="text-decoration:none"><span class="nav-item__icon">📱</span> Mobile App</a>
|
|
1774
1777
|
</div>
|
|
1775
|
-
<div style="padding:12px 16px;margin-top:auto;border-top:1px solid var(--border);font-size:10px;color:var(--dim)">
|
|
1778
|
+
<div style="padding:12px 16px;margin-top:auto;border-top:1px solid var(--border);font-size:10px;color:var(--dim)">nothumanallowed.com</div>
|
|
1776
1779
|
</nav>
|
|
1777
1780
|
|
|
1778
|
-
<
|
|
1779
|
-
<button class="header__burger" onclick="toggleSidebar()">☰</button>
|
|
1780
|
-
<span class="header__title" id="headerTitle">Dashboard</span>
|
|
1781
|
-
<span id="wsIndicator" style="color:var(--dim);font-size:8px;margin-right:4px" title="Daemon WebSocket">●</span>
|
|
1782
|
-
<span class="header__clock" id="clock"></span>
|
|
1783
|
-
</div>
|
|
1781
|
+
<button onclick="openSidebar()" style="position:fixed;top:8px;left:8px;z-index:100;background:var(--bg2);border:1px solid var(--border);border-radius:var(--r);color:var(--green);font-size:20px;padding:4px 10px;cursor:pointer;line-height:1" id="mobileBurger">☰</button>
|
|
1784
1782
|
|
|
1785
1783
|
<div class="content" id="content"></div>
|
|
1786
1784
|
</div>
|