nothumanallowed 12.5.0 → 12.5.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/services/web-ui.mjs +19 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "12.5.
|
|
3
|
+
"version": "12.5.2",
|
|
4
4
|
"description": "NotHumanAllowed — 38 AI agents, 80 tools. 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/services/web-ui.mjs
CHANGED
|
@@ -14,7 +14,7 @@ export function getHTML(port) {
|
|
|
14
14
|
--bg:#0a0a0a;--bg2:#111;--bg3:#1a1a1a;--bg4:#222;
|
|
15
15
|
--green:#00ff41;--green2:#00cc33;--green3:#00aa28;--greendim:#0a3a12;
|
|
16
16
|
--cyan:#00e5ff;--amber:#ffb300;--red:#ff1744;
|
|
17
|
-
--text:#
|
|
17
|
+
--text:#d4d4d8;--dim:#9ca3af;--bright:#fff;
|
|
18
18
|
--border:#1e1e1e;--border2:#333;
|
|
19
19
|
--font:'JetBrains Mono','Fira Code','SF Mono','Consolas',monospace;
|
|
20
20
|
--r:6px;
|
|
@@ -93,7 +93,7 @@ input:focus,textarea:focus{border-color:var(--green3)}
|
|
|
93
93
|
.chat__empty-hint{font-size:11px;margin-top:12px}
|
|
94
94
|
.msg{margin-bottom:12px}
|
|
95
95
|
.msg--user .msg__bubble{background:var(--bg3);border:1px solid var(--border2);border-radius:8px 8px 2px 8px;padding:10px 14px;max-width:85%;margin-left:auto;color:var(--bright)}
|
|
96
|
-
.msg--assistant .msg__bubble{background:var(--greendim);border:1px solid var(--green3);border-radius:8px 8px 8px 2px;padding:10px 14px;max-width:85%;color:var(--text);white-space:pre-wrap;word-wrap:break-word}
|
|
96
|
+
.msg--assistant .msg__bubble{background:var(--greendim);border:1px solid var(--green3);border-radius:8px 8px 8px 2px;padding:10px 14px;max-width:85%;color:var(--text);white-space:pre-wrap;word-wrap:break-word;line-height:1.5}
|
|
97
97
|
.msg--assistant .msg__bubble img{max-width:100%;border-radius:8px;margin:8px 0;border:1px solid rgba(0,255,65,0.2)}
|
|
98
98
|
.msg__label{font-size:10px;color:var(--dim);margin-bottom:2px}
|
|
99
99
|
.msg__actions{display:flex;gap:6px;margin-top:4px;opacity:0.4;transition:opacity 0.2s}
|
|
@@ -135,9 +135,23 @@ input:focus,textarea:focus{border-color:var(--green3)}
|
|
|
135
135
|
@media(max-width:600px){.browser-viewer{width:calc(100vw - 24px);top:8px;left:8px}}
|
|
136
136
|
@media(min-width:901px){.browser-viewer{left:232px}}
|
|
137
137
|
.chat__bar{display:flex;gap:8px;padding:10px 0 12px 0;border-top:1px solid var(--border);flex-shrink:0}
|
|
138
|
-
.chat__input{flex:1;resize:none;min-height:
|
|
139
|
-
.chat__send{background:var(--green3);color:var(--bg);padding:10px
|
|
138
|
+
.chat__input{flex:1;resize:none;min-height:44px;max-height:120px;padding:10px 14px;font-size:14px}
|
|
139
|
+
.chat__send{background:var(--green3);color:var(--bg);padding:10px 20px;border-radius:var(--r);font-weight:700;font-size:14px}
|
|
140
140
|
.chat__send:disabled{opacity:.4}
|
|
141
|
+
|
|
142
|
+
/* ---- MOBILE TOUCH (Termux / small screens) ---- */
|
|
143
|
+
@media(max-width:600px){
|
|
144
|
+
.msg--user .msg__bubble,.msg--assistant .msg__bubble{font-size:14px;padding:12px 14px;max-width:92%;line-height:1.55}
|
|
145
|
+
.msg__label{font-size:11px}
|
|
146
|
+
.chat__input{min-height:48px;font-size:15px;padding:12px 14px}
|
|
147
|
+
.chat__send{padding:12px 20px;font-size:15px}
|
|
148
|
+
.chat__empty-title{font-size:22px}
|
|
149
|
+
.header{padding:10px 12px}
|
|
150
|
+
.header__title{font-size:15px}
|
|
151
|
+
.content{padding:10px}
|
|
152
|
+
/* Conversation sidebar as overlay on mobile, not side panel */
|
|
153
|
+
#convSidebar{position:fixed!important;top:0!important;left:0!important;height:100dvh!important;width:260px!important;box-shadow:4px 0 20px rgba(0,0,0,0.8)!important;z-index:250!important}
|
|
154
|
+
}
|
|
141
155
|
.chat__stop{background:var(--red);color:var(--bright);padding:10px 16px;border-radius:var(--r);font-weight:700;font-size:12px;display:none}
|
|
142
156
|
.chat__stop--visible{display:block}
|
|
143
157
|
|
|
@@ -414,7 +428,7 @@ var chatReady=false;
|
|
|
414
428
|
function renderChat(el){
|
|
415
429
|
if(!chatReady||!document.getElementById('chatMessages')){
|
|
416
430
|
el.innerHTML='<div style="display:flex;height:calc(100vh - 56px)">'+
|
|
417
|
-
'<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':'')+'">'+
|
|
431
|
+
'<div id="convSidebar" style="width:220px;border-right:1px solid var(--border);overflow-y:auto;flex-shrink:0;background:var(--bg);z-index:100;display:'+(localStorage.getItem('nha_conv_sidebar')==='hidden'||(typeof window!=='undefined'&&window.innerWidth<600)?'none':'')+'">'+
|
|
418
432
|
'<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>'+
|
|
419
433
|
'<div id="convList"></div>'+
|
|
420
434
|
'</div>'+
|