Ship Herman chat, Hermes KPI explorer, and intelligence analytics.

Adds floating Herman assistant with voice, Hermes technical KPI dashboard with file explorer, and a wins/kansen analytics pulse with Hermes findings hooks. Includes optional local HTTPS via Caddy for mic permissions (public certs only).
This commit is contained in:
Aissa
2026-08-01 17:50:45 +00:00
parent 62239f0a4e
commit 5e43b6b246
28 changed files with 2686 additions and 1149 deletions
+159
View File
@@ -216,3 +216,162 @@
.dot-in { background: var(--hm-cyan); }
.dot-out { background: var(--hm-purple); }
.dot-edge { background: var(--hm-orange); }
.hm-section-title {
font-size: 0.85rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #94a3b8;
margin: 1.25rem 0 0.75rem;
}
.hm-bucket-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 0.75rem;
}
.hm-bucket-card {
background: rgba(15, 23, 42, 0.85);
border: 1px solid rgba(56, 189, 248, 0.2);
border-radius: 12px;
padding: 0.85rem 0.9rem;
}
.hm-bucket-label { font-size: 0.72rem; color: #94a3b8; margin-bottom: 0.35rem; }
.hm-bucket-count { font-size: 1.6rem; font-weight: 700; color: #f1f5f9; line-height: 1.1; }
.hm-bucket-parts { font-size: 0.68rem; color: #64748b; margin-top: 0.4rem; line-height: 1.35; }
.hm-tool-list { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.hm-tool-list li {
display: flex; justify-content: space-between; gap: 0.75rem;
padding: 0.35rem 0; border-bottom: 1px solid rgba(148,163,184,0.1);
font-size: 0.78rem; color: #cbd5e1;
}
.hm-tool-list li strong { color: #e2e8f0; font-variant-numeric: tabular-nums; }
.hm-tool-list-tall { max-height: 280px; overflow: auto; }
.status-badge.on { color: #b8ff3c; }
.status-badge.off { color: #f87171; }
/* Clickable buckets + explorer modal */
.hm-section-hint { font-size: 0.7rem; font-weight: 500; color: #64748b; text-transform: none; letter-spacing: 0; margin-left: 0.5rem; }
.hm-bucket-click {
display: block; width: 100%; text-align: left; cursor: pointer;
transition: border-color .15s, transform .12s, background .15s;
font: inherit; color: inherit;
}
.hm-bucket-click:hover {
border-color: rgba(0, 229, 255, 0.55);
background: rgba(14, 165, 233, 0.08);
transform: translateY(-1px);
}
.hm-bucket-open {
margin-top: 0.55rem; font-size: 0.68rem; color: #38bdf8; opacity: 0.75;
}
.hm-bucket-click:hover .hm-bucket-open { opacity: 1; }
.hm-modal-backdrop {
position: fixed; inset: 0; z-index: 80;
background: rgba(2, 6, 14, 0.72);
backdrop-filter: blur(4px);
display: flex; align-items: center; justify-content: center;
padding: 1rem;
}
.hm-modal {
width: min(1100px, 96vw);
height: min(820px, 92vh);
background: #0b1220;
border: 1px solid rgba(56, 189, 248, 0.28);
border-radius: 14px;
box-shadow: 0 24px 80px rgba(0,0,0,0.55);
display: flex; flex-direction: column;
overflow: hidden;
}
.hm-modal-head {
display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
padding: 1rem 1.1rem 0.75rem;
border-bottom: 1px solid rgba(148,163,184,0.12);
}
.hm-modal-head h2 { margin: 0; font-size: 1.15rem; color: #f1f5f9; }
.hm-modal-sub { margin: 0.35rem 0 0; font-size: 0.72rem; color: #94a3b8; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.hm-modal-close {
background: transparent; border: 0; color: #94a3b8; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 0.25rem;
}
.hm-modal-close:hover { color: #fff; }
.hm-chip {
border: 1px solid rgba(148,163,184,0.25);
background: rgba(15,23,42,0.7);
color: #cbd5e1; border-radius: 999px;
padding: 0.15rem 0.55rem; font-size: 0.65rem; cursor: pointer;
}
.hm-chip.active, .hm-chip:hover { border-color: #38bdf8; color: #e0f2fe; background: rgba(14,165,233,0.12); }
.hm-modal-tabs {
display: flex; gap: 0.25rem; padding: 0.55rem 1rem 0;
border-bottom: 1px solid rgba(148,163,184,0.1);
}
.hm-modal-tabs button {
background: transparent; border: 0; color: #94a3b8; padding: 0.45rem 0.75rem;
font-size: 0.78rem; cursor: pointer; border-bottom: 2px solid transparent;
}
.hm-modal-tabs button.active { color: #e0f2fe; border-bottom-color: #38bdf8; }
.hm-modal-body { flex: 1; min-height: 0; }
.hm-modal-split { display: grid; grid-template-columns: minmax(260px, 38%) 1fr; }
.hm-modal-side {
border-right: 1px solid rgba(148,163,184,0.12);
overflow: auto; background: rgba(8, 12, 20, 0.9);
position: relative;
}
.hm-modal-preview { overflow: auto; padding: 1rem 1.1rem; }
.hm-side-loading {
position: sticky; top: 0; z-index: 2;
padding: 0.4rem 0.75rem; font-size: 0.72rem; color: #38bdf8;
background: rgba(14,165,233,0.08);
}
.hm-event-list, .hm-file-list { list-style: none; margin: 0; padding: 0.35rem; }
.hm-event-item, .hm-file-item {
width: 100%; text-align: left; cursor: pointer;
background: transparent; border: 1px solid transparent; border-radius: 8px;
padding: 0.55rem 0.6rem; color: inherit; font: inherit; margin-bottom: 0.25rem;
}
.hm-event-item:hover, .hm-file-item:hover,
.hm-event-item.active, .hm-file-item.active {
background: rgba(14,165,233,0.1);
border-color: rgba(56,189,248,0.25);
}
.hm-event-top { display: flex; justify-content: space-between; gap: 0.5rem; }
.hm-event-top strong { font-size: 0.8rem; color: #f1f5f9; }
.hm-event-top time, .hm-file-meta time { font-size: 0.65rem; color: #64748b; white-space: nowrap; }
.hm-event-tool { font-size: 0.65rem; color: #38bdf8; margin-top: 0.15rem; }
.hm-event-preview, .hm-file-path {
font-size: 0.68rem; color: #94a3b8; margin-top: 0.25rem;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hm-file-name { display: flex; gap: 0.4rem; align-items: center; }
.hm-file-name strong { font-size: 0.8rem; color: #e2e8f0; }
.hm-file-meta { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.25rem; font-size: 0.65rem; color: #64748b; }
.hm-explorer-bar {
display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap;
padding: 0.55rem 0.65rem; border-bottom: 1px solid rgba(148,163,184,0.1);
position: sticky; top: 0; background: #0b1220; z-index: 1;
}
.hm-explorer-path {
font-size: 0.65rem; color: #7dd3fc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.hm-preview-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 0.75rem; }
.hm-preview-head h3 { margin: 0; font-size: 1rem; color: #f8fafc; }
.hm-preview-head code { display: block; margin-top: 0.25rem; font-size: 0.68rem; color: #64748b; word-break: break-all; }
.hm-preview-meta { font-size: 0.68rem; color: #94a3b8; display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
.hm-preview-code {
margin: 0; padding: 0.85rem; border-radius: 10px;
background: #020617; border: 1px solid rgba(148,163,184,0.15);
color: #e2e8f0; font-size: 0.72rem; line-height: 1.45;
white-space: pre-wrap; word-break: break-word; max-height: none;
}
.hm-preview-note { font-size: 0.68rem; color: #f59e0b; margin-top: 0.5rem; }
.hm-preview-paths { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.hm-empty, .hm-empty-pane { padding: 1.25rem; color: #64748b; font-size: 0.8rem; }
@media (max-width: 820px) {
.hm-modal { height: 94vh; }
.hm-modal-split { grid-template-columns: 1fr; grid-template-rows: 42% 58%; }
.hm-modal-side { border-right: 0; border-bottom: 1px solid rgba(148,163,184,0.12); }
}