nothumanallowed 13.5.165 → 13.5.166
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 +10 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "13.5.
|
|
3
|
+
"version": "13.5.166",
|
|
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 = '13.5.
|
|
8
|
+
export const VERSION = '13.5.166';
|
|
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
|
@@ -1331,22 +1331,18 @@ function emailLoadMessages() {
|
|
|
1331
1331
|
function emailLoadGoogleMessages() {
|
|
1332
1332
|
var listBody = document.getElementById('emailListBody');
|
|
1333
1333
|
if (listBody) listBody.innerHTML = '<div style="padding:20px;text-align:center"><div class="spinner"></div></div>';
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
return
|
|
1341
|
-
}).then(function(msgs) {
|
|
1342
|
-
emailState.messages = (msgs || []).map(function(m) {
|
|
1343
|
-
return { id: m.id, subject: m.subject, from_name: m.from, from_address: m.from, internal_date: m.date, body_preview: m.snippet, is_read: !m.isUnread, is_starred: false, has_attachments: false, _google: true };
|
|
1344
|
-
});
|
|
1345
|
-
emailState.total = emailState.messages.length;
|
|
1346
|
-
emailRenderMessageList();
|
|
1334
|
+
// Use the server-side API endpoint — avoids Node.js module imports in browser context
|
|
1335
|
+
var filter = (emailState.labelId === 'INBOX' || !emailState.labelId) ? 'all' : emailState.labelId.toLowerCase();
|
|
1336
|
+
var qs = '/api/emails?filter=' + encodeURIComponent(filter) + '&page=0&pageSize=50';
|
|
1337
|
+
if (emailState.search) qs = '/api/emails?filter=' + encodeURIComponent(emailState.search) + '&page=0&pageSize=50';
|
|
1338
|
+
apiGet(qs).then(function(r) {
|
|
1339
|
+
emailState.messages = (r.emails || []).map(function(m) {
|
|
1340
|
+
return { id: m.id, subject: m.subject, from_name: m.from, from_address: m.from, internal_date: m.date, body_preview: m.snippet, is_read: !m.isUnread, is_starred: false, has_attachments: false, _google: true };
|
|
1347
1341
|
});
|
|
1342
|
+
emailState.total = emailState.messages.length;
|
|
1343
|
+
emailRenderMessageList();
|
|
1348
1344
|
}).catch(function() {
|
|
1349
|
-
// Fallback to dash emails
|
|
1345
|
+
// Fallback to cached dash emails
|
|
1350
1346
|
emailState.messages = (dash.emails || []).map(function(m) {
|
|
1351
1347
|
return { id: m.id, subject: m.subject, from_name: m.from, from_address: m.from, internal_date: m.date, body_preview: m.snippet, is_read: !m.isUnread, is_starred: false, has_attachments: false, _google: true };
|
|
1352
1348
|
});
|