nothumanallowed 3.0.0 → 3.0.1
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 +14 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
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": {
|
package/src/services/web-ui.mjs
CHANGED
|
@@ -473,7 +473,7 @@ function renderChatMessages() {
|
|
|
473
473
|
el.innerHTML = '<div style="text-align:center;padding:60px 20px;color:var(--textdim)">' +
|
|
474
474
|
'<div style="font-size:32px;margin-bottom:16px;color:var(--green)">NHA Chat</div>' +
|
|
475
475
|
'<div>Personal Operations Assistant</div>' +
|
|
476
|
-
'<div style="margin-top:12px;font-size:11px">Try:
|
|
476
|
+
'<div style="margin-top:12px;font-size:11px">Try: "Show my unread emails" / "What is on my calendar?" / "Add a task to review the PR"</div>' +
|
|
477
477
|
'</div>';
|
|
478
478
|
return;
|
|
479
479
|
}
|
|
@@ -773,15 +773,23 @@ document.getElementById('agent-modal').addEventListener('click', e => {
|
|
|
773
773
|
|
|
774
774
|
// ── Init ───────────────────────────────────────────────────────────────────
|
|
775
775
|
async function init() {
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
776
|
+
try {
|
|
777
|
+
await loadDashboard();
|
|
778
|
+
} catch (e) {
|
|
779
|
+
console.error('Dashboard load error:', e);
|
|
780
|
+
}
|
|
781
|
+
try {
|
|
782
|
+
loadPlan().catch(e => console.error('Plan load error:', e));
|
|
783
|
+
loadAgents().catch(e => console.error('Agents load error:', e));
|
|
784
|
+
} catch (e) {
|
|
785
|
+
console.error('Init error:', e);
|
|
786
|
+
}
|
|
779
787
|
renderView();
|
|
780
788
|
// Auto-refresh every 2 minutes
|
|
781
|
-
setInterval(() => loadDashboard().then(() => { if (currentView === 'dashboard') renderView(); }), 120000);
|
|
789
|
+
setInterval(() => loadDashboard().then(() => { if (currentView === 'dashboard') renderView(); }).catch(()=>{}), 120000);
|
|
782
790
|
}
|
|
783
791
|
|
|
784
|
-
init();
|
|
792
|
+
init().catch(e => { console.error('Fatal init error:', e); renderView(); });
|
|
785
793
|
</script>
|
|
786
794
|
</body>
|
|
787
795
|
</html>`;
|