nothumanallowed 3.1.0 → 3.2.0

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": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "NotHumanAllowed — 38 AI agents for security, code, DevOps, data & daily ops. Ask agents directly, plan your day with 5 specialist agents, manage tasks, connect Gmail + Calendar.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -268,7 +268,9 @@ function sendJSON(res, statusCode, data) {
268
268
  function sendHTML(res, html) {
269
269
  res.writeHead(200, {
270
270
  'Content-Type': 'text/html; charset=utf-8',
271
- 'Cache-Control': 'no-cache',
271
+ 'Cache-Control': 'no-store, no-cache, must-revalidate, max-age=0',
272
+ 'Pragma': 'no-cache',
273
+ 'Expires': '0',
272
274
  });
273
275
  res.end(html);
274
276
  }
@@ -658,7 +660,7 @@ export async function cmdUI(args) {
658
660
  console.log('');
659
661
 
660
662
  if (!noBrowser) {
661
- openBrowser(url);
663
+ openBrowser(localUrl);
662
664
  }
663
665
  });
664
666
 
@@ -99,7 +99,7 @@ export async function runPlanningPipeline(config, opts = {}) {
99
99
  if (emails.length > 0) {
100
100
  parallelPromises.push(
101
101
  callAgent(config, 'saber',
102
- `Scan these emails for security threats. For each email, classify as SAFE or FLAGGED with reason.\n\nEMAILS:\n${emailContext}\n\nRespond with a JSON object: { "safe": [indices], "flagged": [{ "index": N, "reason": "..." }], "risk_notes": ["..."] }`,
102
+ `Analyze these emails for REAL security threats. Be smart — distinguish between:\n- LEGITIMATE notifications (Google login alerts from the user's own devices, npm publish confirmations, GitHub 2FA, password change confirmations the user initiated) → these are SAFE\n- ACTUAL threats (phishing links, spoofed senders, social engineering, urgent money requests, unknown login locations, credential harvesting) → these are FLAGGED\n\nDo NOT flag routine service notifications as threats. Only flag emails that require the user's immediate security attention.\n\nEMAILS:\n${emailContext}\n\nRespond with a JSON object: { "safe": [indices], "flagged": [{ "index": N, "reason": "..." }], "risk_notes": ["..."] }`,
103
103
  ).then(r => { agentResults.saber = r; ok('SABER: Email security scan complete'); })
104
104
  .catch(e => { warn(`SABER failed: ${e.message}`); agentResults.saber = '{"safe":[],"flagged":[],"risk_notes":["scan failed"]}'; })
105
105
  );
@@ -141,7 +141,13 @@ export async function runPlanningPipeline(config, opts = {}) {
141
141
  // ── Phase 6: CONDUCTOR — Synthesize daily plan ─────────────────────────
142
142
  info('Phase 6: CONDUCTOR synthesizing daily plan...');
143
143
 
144
- const conductorPrompt = `You are the NHA Daily Planner. Synthesize intelligence from 4 specialist agents into a structured daily plan.
144
+ const conductorPrompt = `You are the NHA Daily Planner. Synthesize intelligence from 4 specialist agents into a structured, practical daily plan.
145
+
146
+ IMPORTANT GUIDELINES:
147
+ - Be PRACTICAL, not alarmist. Routine notifications (Google login alerts from your own devices, npm publish confirmations, GitHub security notices) are NOT security incidents.
148
+ - Only escalate to "security_alerts" if there is a GENUINE, actionable threat (unknown logins from strange locations, actual phishing, credential leaks).
149
+ - Focus on making the user's day productive, not on creating false urgency.
150
+ - Suggest realistic time blocks based on the actual task complexity.
145
151
 
146
152
  AGENT REPORTS:
147
153
  ${agentResults.saber ? `\n[SABER — Security Scan]\n${agentResults.saber}` : ''}