nothumanallowed 9.0.2 → 9.0.3

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.0.2",
3
+ "version": "9.0.3",
4
4
  "description": "NotHumanAllowed — 38 AI agents + unified productivity suite. Gmail, Calendar, Drive, Contacts, Tasks, GitHub, Notion, Slack, voice chat, smart scheduler. Zero-dependency CLI.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -758,6 +758,24 @@ export async function cmdUI(args) {
758
758
  return;
759
759
  }
760
760
 
761
+ // ── Direct intent handlers (bypass LLM for reliability) ──
762
+ const msgLower = msg.toLowerCase();
763
+
764
+ // Mark all emails as read
765
+ if (msgLower.match(/segna.*tutt.*lett|mark.*all.*read|tutte.*lett[ae]|read.*all.*email|segna.*email.*lett/)) {
766
+ try {
767
+ const gmail = await import('../services/google-gmail.mjs');
768
+ const result = await gmail.markAllAsRead(config);
769
+ dash.emails.forEach(e => { e.isUnread = false; });
770
+ const count = result.count || 0;
771
+ sendJSON(res, 200, { response: count > 0 ? `Done! ${count} email${count !== 1 ? 's' : ''} marked as read.` : 'All emails are already read.' });
772
+ } catch (e) {
773
+ sendJSON(res, 200, { response: `Error marking emails as read: ${e.message}` });
774
+ }
775
+ logRequest(method, pathname, 200, Date.now() - start);
776
+ return;
777
+ }
778
+
761
779
  // ── @agent inline routing ────────────────────────────────
762
780
  let effectiveSystemPrompt = config._chatAgent?.systemPrompt || null;
763
781
  const atMatch = msg.match(/^@(\w+)\s+([\s\S]*)/);
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.0.2';
8
+ export const VERSION = '9.0.3';
9
9
  export const BASE_URL = 'https://nothumanallowed.com/cli';
10
10
  export const API_BASE = 'https://nothumanallowed.com/api/v1';
11
11