nothumanallowed 7.3.0 → 7.3.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nothumanallowed",
3
- "version": "7.3.0",
3
+ "version": "7.3.2",
4
4
  "description": "NotHumanAllowed — 38 AI agents for security, code, DevOps, data & daily ops. Per-agent memory, Telegram + Discord auto-responder, proactive intelligence daemon, voice chat, plugin system.",
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 = '7.3.0';
8
+ export const VERSION = '7.3.2';
9
9
  export const BASE_URL = 'https://nothumanallowed.com/cli';
10
10
  export const API_BASE = 'https://nothumanallowed.com/api/v1';
11
11
 
@@ -207,6 +207,12 @@ var selectedAgent = null;
207
207
  // ---- NAV ----
208
208
  function switchView(v) {
209
209
  currentView = v;
210
+ // Invalidate cached data so pages always show fresh content
211
+ if(v==='contacts')contactsData=null;
212
+ if(v==='notes')notesData=null;
213
+ if(v==='drive')driveData=null;
214
+ if(v==='onedrive')onedriveData=null;
215
+ if(v==='mstodo')mstodoData=null;
210
216
  document.querySelectorAll('.nav-item').forEach(function(el){
211
217
  if(el.dataset.view===v){el.classList.add('nav-item--active')}else{el.classList.remove('nav-item--active')}
212
218
  });
@@ -335,10 +341,15 @@ function sendChat(){
335
341
  else if(r&&r.error){chatHistory.push({role:'assistant',content:'Error: '+r.error})}
336
342
  else{chatHistory.push({role:'assistant',content:'Error: no response from server'})}
337
343
  saveChatToStorage();renderMessages();
338
- // Refresh data after any tool execution or calendar/email action
344
+ // Refresh ALL data after any tool execution
339
345
  if(r&&((r.actions&&r.actions.length>0)||(r.toolResults&&r.toolResults.length>0))){
340
346
  calEventsCache={};
341
- loadDash().then(function(){if(currentView==='dashboard'||currentView==='calendar'||currentView==='emails')render()}).catch(function(){});
347
+ contactsData=null;
348
+ notesData=null;
349
+ driveData=null;
350
+ onedriveData=null;
351
+ mstodoData=null;
352
+ loadDash().then(function(){render()}).catch(function(){});
342
353
  }
343
354
  });
344
355
  }
@@ -772,14 +783,14 @@ function editContactUI(idx){
772
783
  var c=(contactsData&&contactsData.contacts||[])[idx];
773
784
  if(!c)return;
774
785
  var el=document.getElementById('content');
775
- el.innerHTML='<div style="max-width:500px;margin:0 auto"><div style="margin-bottom:12px"><button class="btn btn--secondary" onclick="contactsData=null;switchView(\'contacts\')" style="font-size:11px">&larr; Back</button></div>'+
786
+ el.innerHTML='<div style="max-width:500px;margin:0 auto"><div style="margin-bottom:12px"><button class="btn btn--secondary" onclick="contactsData=null;switchView(\\x27contacts\\x27)" style="font-size:11px">&larr; Back</button></div>'+
776
787
  '<div class="card" style="padding:16px"><div style="color:var(--green);font-size:14px;font-weight:700;margin-bottom:12px">Edit Contact</div>'+
777
788
  '<input id="ecName" value="'+esc(c.name)+'" placeholder="Name" style="width:100%;margin-bottom:8px;padding:8px 12px;font-size:13px">'+
778
789
  '<input id="ecEmail" value="'+esc(c.email)+'" placeholder="Email" style="width:100%;margin-bottom:8px;padding:8px 12px;font-size:13px">'+
779
790
  '<input id="ecPhone" value="'+esc(c.phone)+'" placeholder="Phone" style="width:100%;margin-bottom:8px;padding:8px 12px;font-size:13px">'+
780
791
  '<input id="ecCompany" value="'+esc(c.company)+'" placeholder="Company" style="width:100%;margin-bottom:8px;padding:8px 12px;font-size:13px">'+
781
792
  '<input id="ecAddress" value="'+esc(c.address)+'" placeholder="Address" style="width:100%;margin-bottom:12px;padding:8px 12px;font-size:13px">'+
782
- '<div style="display:flex;gap:8px"><button onclick="saveEditContact(\''+esc(c.resourceName)+'\')" style="background:var(--green3);color:var(--bg);padding:10px 24px;border-radius:var(--r);font-weight:700;font-size:13px">Save</button>'+
793
+ '<div style="display:flex;gap:8px"><button onclick="saveEditContact(\\x27'+esc(c.resourceName)+'\\x27)" style="background:var(--green3);color:var(--bg);padding:10px 24px;border-radius:var(--r);font-weight:700;font-size:13px">Save</button>'+
783
794
  '<span id="ecStatus" style="font-size:11px;color:var(--dim);line-height:40px"></span></div>'+
784
795
  '</div></div>';
785
796
  }