nothumanallowed 9.2.0 → 9.2.1
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 +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.1",
|
|
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.1';
|
|
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
|
@@ -226,6 +226,9 @@ function switchView(v) {
|
|
|
226
226
|
});
|
|
227
227
|
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
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':'';
|
|
229
232
|
closeSidebar();
|
|
230
233
|
render();
|
|
231
234
|
}
|
|
@@ -323,13 +326,14 @@ var chatReady=false;
|
|
|
323
326
|
function renderChat(el){
|
|
324
327
|
if(!chatReady||!document.getElementById('chatMessages')){
|
|
325
328
|
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">'+
|
|
329
|
+
'<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
330
|
'<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
331
|
'<div id="convList"></div>'+
|
|
329
332
|
'</div>'+
|
|
330
333
|
'<div style="flex:1;display:flex;flex-direction:column;min-width:0">'+
|
|
331
334
|
'<div style="padding:6px 12px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px">'+
|
|
332
|
-
'<button onclick="
|
|
335
|
+
'<button onclick="openSidebar()" style="background:none;border:none;cursor:pointer;font-size:18px;color:var(--green);padding:2px 6px" title="Menu">☰</button>'+
|
|
336
|
+
'<button onclick="toggleConvSidebar()" style="background:none;border:none;cursor:pointer;font-size:12px;color:var(--dim);padding:2px 6px" title="Toggle conversations">💬</button>'+
|
|
333
337
|
'<span id="convTitle" style="flex:1;font-size:12px;color:var(--fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap">New Chat</span>'+
|
|
334
338
|
'<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
339
|
'<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 +355,7 @@ function renderChat(el){
|
|
|
351
355
|
setTimeout(function(){var i=document.getElementById('chatInput');if(i)i.focus()},100);
|
|
352
356
|
}
|
|
353
357
|
}
|
|
354
|
-
function toggleConvSidebar(){var s=document.getElementById('convSidebar');if(!s)return;s.style.display
|
|
358
|
+
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
359
|
function renderConvSidebar(){
|
|
356
360
|
var el=document.getElementById('convList');if(!el)return;
|
|
357
361
|
var h='';convList.forEach(function(c){
|