nothumanallowed 9.2.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nothumanallowed",
3
- "version": "9.2.1",
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.1';
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
 
@@ -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
- .header{display:flex;align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid var(--border);background:var(--bg);position:relative;z-index:60;flex-shrink:0}
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,10 +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('headerTitle').textContent = titles[v]||v;
229
- // Hide main header in chat view — chat has its own top bar
230
- var hdr=document.querySelector('.header');
231
- if(hdr)hdr.style.display=v==='chat'?'none':'';
225
+ var spt=document.getElementById('sidebarPageTitle');
226
+ if(spt)spt.textContent=titles[v]||v;
232
227
  closeSidebar();
233
228
  render();
234
229
  }
@@ -332,8 +327,7 @@ function renderChat(el){
332
327
  '</div>'+
333
328
  '<div style="flex:1;display:flex;flex-direction:column;min-width:0">'+
334
329
  '<div style="padding:6px 12px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px">'+
335
- '<button onclick="openSidebar()" style="background:none;border:none;cursor:pointer;font-size:18px;color:var(--green);padding:2px 6px" title="Menu">&#9776;</button>'+
336
- '<button onclick="toggleConvSidebar()" style="background:none;border:none;cursor:pointer;font-size:12px;color:var(--dim);padding:2px 6px" title="Toggle conversations">&#128172;</button>'+
330
+ '<button onclick="toggleConvSidebar()" style="background:none;border:none;cursor:pointer;font-size:14px;color:var(--dim);padding:2px 6px" title="Toggle conversations">&#128172;</button>'+
337
331
  '<span id="convTitle" style="flex:1;font-size:12px;color:var(--fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap">New Chat</span>'+
338
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>'+
339
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>'+
@@ -1732,8 +1726,13 @@ init();
1732
1726
  <div class="app">
1733
1727
  <nav class="sidebar" id="sidebar">
1734
1728
  <div class="sidebar__brand">
1735
- <div class="sidebar__brand-name">NHA</div>
1736
- <div class="sidebar__brand-sub">Operations Console</div>
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">&#9679;</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>
1737
1736
  </div>
1738
1737
  <div class="sidebar__section">
1739
1738
  <div class="sidebar__label">Overview</div>
@@ -1776,15 +1775,10 @@ init();
1776
1775
  <a href="https://nothumanallowed.com/docs/agents" target="_blank" class="nav-item" style="text-decoration:none"><span class="nav-item__icon">&#129302;</span> Agents Guide</a>
1777
1776
  <a href="https://nothumanallowed.com/docs/mobile" target="_blank" class="nav-item" style="text-decoration:none"><span class="nav-item__icon">&#128241;</span> Mobile App</a>
1778
1777
  </div>
1779
- <div style="padding:12px 16px;margin-top:auto;border-top:1px solid var(--border);font-size:10px;color:var(--dim)">NHA v${VERSION}</div>
1778
+ <div style="padding:12px 16px;margin-top:auto;border-top:1px solid var(--border);font-size:10px;color:var(--dim)">nothumanallowed.com</div>
1780
1779
  </nav>
1781
1780
 
1782
- <div class="header">
1783
- <button class="header__burger" onclick="toggleSidebar()">&#9776;</button>
1784
- <span class="header__title" id="headerTitle">Dashboard</span>
1785
- <span id="wsIndicator" style="color:var(--dim);font-size:8px;margin-right:4px" title="Daemon WebSocket">&#9679;</span>
1786
- <span class="header__clock" id="clock"></span>
1787
- </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">&#9776;</button>
1788
1782
 
1789
1783
  <div class="content" id="content"></div>
1790
1784
  </div>