feat!: rebuild EveFlow as a JARVIS-style voice HUD for Hermes Agent (v2.0.0)

Complete rewrite of the application:

- Toolchain: Electron 44, Vite 8, React 19, TypeScript 5.9, Zustand, Vitest;
  main process rewritten in TypeScript (electron/), typed IPC contract (shared/),
  sandboxed renderer with webSecurity on and an HTTP/SSE proxy in the main process.
- Voice: AudioWorklet microphone capture at 16 kHz with adaptive energy VAD and
  auto-stop, WAV encoder, OpenAI-compatible STT, TTS queue with sentence-level
  streaming, prefetch and Web Audio playback feeding an analyser; hands-free mode,
  global push-to-talk hotkey, system-voice fallback.
- Hermes: full API client (capabilities, health, models, skills, toolsets,
  sessions, jobs) with automatic transport selection: runs API (SSE lifecycle,
  approvals, steer, stop) > sessions stream > chat completions with local tools;
  tolerant event normalisation; webhook receiver hardened (secret, size limit).
- UI: JARVIS arc-reactor core on Canvas 2D reacting to the real audio signal,
  holographic HUD layout (transcript, core, Hermes ops panel with tools/crons/
  skills/sessions/link tabs, telemetry), settings drawer, approval modals,
  compact floating widget, four themes, tray icon and global shortcuts.
- Removed the 3D Eve robot, three.js and legacy assets; migrated 1.x settings.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Wn5VX9HNbJ7N54hR24u9Y
This commit is contained in:
Claude committed 2026-09-03 13:40:59 +00:00
1 parent 5217eee53a
commit 127a2083a1
239 files changed
+11351 -86495

No files matched your search

+467
View File
@@ -0,0 +1,467 @@
/* ── Transcript ────────────────────────────────────────────────────────── */
.chat-panel {
flex: 1;
min-height: 0;
}
.chat-list {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 14px 14px 6px;
display: flex;
flex-direction: column;
gap: 12px;
scroll-behavior: smooth;
}
.chat-list.compact {
padding: 8px 10px;
gap: 8px;
}
.msg {
display: flex;
flex-direction: column;
gap: 4px;
max-width: 92%;
animation: msg-in 220ms ease-out;
}
@keyframes msg-in {
from {
opacity: 0;
transform: translateY(6px);
}
}
.msg.user {
align-self: flex-end;
align-items: flex-end;
}
.msg.assistant {
align-self: flex-start;
}
.msg.system {
align-self: center;
max-width: 100%;
}
.msg-meta {
display: flex;
align-items: center;
gap: 8px;
font-family: var(--font-mono);
font-size: 10px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--ink-3);
}
.msg-meta .who {
color: var(--accent);
}
.msg.user .msg-meta .who {
color: var(--ink-1);
}
.msg-meta .src {
padding: 1px 6px;
border: 1px solid var(--line);
border-radius: 4px;
color: var(--ink-2);
}
.msg-meta .src.telegram {
color: #6cc7ff;
border-color: rgba(108, 199, 255, 0.5);
}
.msg-meta .src.cron {
color: var(--gold);
border-color: rgba(var(--gold-rgb), 0.5);
}
.msg-meta .src.voice {
color: var(--success);
border-color: rgba(var(--success-rgb), 0.5);
}
.bubble {
position: relative;
padding: 10px 14px;
border-radius: 12px;
border: 1px solid var(--line);
background: rgba(var(--accent-rgb), 0.05);
color: var(--ink-0);
font-size: 14.5px;
line-height: 1.55;
user-select: text;
word-break: break-word;
}
.msg.user .bubble {
background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.12));
border-color: var(--line-strong);
border-bottom-right-radius: 4px;
}
.msg.assistant .bubble {
border-bottom-left-radius: 4px;
box-shadow: inset 2px 0 0 rgba(var(--accent-rgb), 0.5);
}
.msg.assistant .bubble.streaming::after {
content: '';
display: inline-block;
width: 8px;
height: 14px;
margin-left: 4px;
vertical-align: text-bottom;
background: var(--accent);
box-shadow: 0 0 8px var(--accent);
animation: blink 0.9s steps(2) infinite;
}
.msg.assistant .bubble.error {
border-color: rgba(var(--danger-rgb), 0.5);
box-shadow: inset 2px 0 0 var(--danger);
color: #ffd5da;
}
.msg.assistant .bubble.cancelled {
opacity: 0.75;
}
.msg.system .bubble {
background: transparent;
border-style: dashed;
color: var(--ink-2);
font-family: var(--font-mono);
font-size: 12px;
padding: 6px 12px;
}
.msg-images {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 8px;
}
.msg-images img,
.md img {
max-width: 100%;
max-height: 260px;
border-radius: 8px;
border: 1px solid var(--line);
cursor: zoom-in;
}
.msg-images img {
max-height: 140px;
}
.img-error {
display: inline-block;
padding: 4px 8px;
border: 1px dashed rgba(var(--danger-rgb), 0.5);
border-radius: 6px;
color: var(--danger);
font-size: 12px;
}
.reasoning {
margin-bottom: 8px;
padding: 8px 10px;
border-left: 2px solid var(--gold);
background: rgba(var(--gold-rgb), 0.06);
border-radius: 6px;
font-size: 12.5px;
color: var(--ink-2);
white-space: pre-wrap;
}
.reasoning summary {
cursor: pointer;
color: var(--gold);
font-family: var(--font-mono);
font-size: 11px;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.msg-actions {
display: flex;
gap: 4px;
opacity: 0;
transition: opacity var(--transition);
}
.msg:hover .msg-actions {
opacity: 1;
}
.msg-actions .icon-btn {
width: 26px;
height: 26px;
}
/* ── Markdown ──────────────────────────────────────────────────────────── */
.md p {
margin: 0 0 8px;
}
.md p:last-child {
margin-bottom: 0;
}
.md h1,
.md h2,
.md h3,
.md h4 {
margin: 12px 0 6px;
font-family: var(--font-display);
font-size: 13px;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--accent);
}
.md ul,
.md ol {
margin: 4px 0 8px;
padding-left: 22px;
}
.md li {
margin: 2px 0;
}
.md a {
color: var(--accent);
text-decoration: none;
border-bottom: 1px dotted var(--accent);
}
.md code {
font-family: var(--font-mono);
font-size: 12.5px;
padding: 1px 5px;
border-radius: 4px;
background: rgba(var(--accent-rgb), 0.12);
color: var(--ink-0);
}
.md pre {
margin: 8px 0;
padding: 10px 12px;
border-radius: 8px;
border: 1px solid var(--line);
background: rgba(2, 8, 14, 0.85);
overflow-x: auto;
}
.md pre code {
padding: 0;
background: transparent;
font-size: 12.5px;
line-height: 1.5;
}
.md blockquote {
margin: 8px 0;
padding: 6px 12px;
border-left: 2px solid var(--accent);
color: var(--ink-2);
background: rgba(var(--accent-rgb), 0.05);
}
.md table {
border-collapse: collapse;
margin: 8px 0;
font-size: 13px;
}
.md th,
.md td {
padding: 5px 9px;
border: 1px solid var(--line);
}
.md th {
background: rgba(var(--accent-rgb), 0.1);
font-family: var(--font-display);
font-size: 10px;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.md hr {
border: none;
border-top: 1px solid var(--line);
margin: 10px 0;
}
/* ── Command bar ───────────────────────────────────────────────────────── */
.command-bar {
border-top: 1px solid var(--line);
padding: 10px 12px 12px;
display: flex;
flex-direction: column;
gap: 8px;
background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.04));
}
.attachments {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.attachment {
position: relative;
width: 58px;
height: 58px;
border-radius: 8px;
overflow: hidden;
border: 1px solid var(--line-strong);
}
.attachment img {
width: 100%;
height: 100%;
object-fit: cover;
}
.attachment button {
position: absolute;
top: 2px;
right: 2px;
width: 18px;
height: 18px;
border-radius: 50%;
border: none;
background: rgba(0, 0, 0, 0.7);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.command-row {
display: flex;
align-items: flex-end;
gap: 8px;
}
.command-input {
flex: 1;
min-height: 44px;
max-height: 160px;
padding: 11px 14px;
border-radius: 12px;
border: 1px solid var(--line-strong);
background: rgba(2, 8, 14, 0.75);
color: var(--ink-0);
font-family: var(--font-ui);
font-size: 15px;
line-height: 1.4;
resize: none;
outline: none;
transition: border-color var(--transition), box-shadow var(--transition);
}
.command-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12), var(--shadow-glow);
}
.command-input::placeholder {
color: var(--ink-3);
}
.command-input.steer {
border-color: rgba(var(--gold-rgb), 0.7);
}
.mic-btn,
.send-btn {
position: relative;
width: 46px;
height: 46px;
border-radius: 50%;
border: 1px solid var(--line-strong);
background: rgba(var(--accent-rgb), 0.1);
color: var(--ink-0);
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
flex-shrink: 0;
transition: all var(--transition);
}
.mic-btn:hover,
.send-btn:hover {
background: rgba(var(--accent-rgb), 0.22);
box-shadow: var(--shadow-glow);
}
.send-btn.primary {
background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.5), rgba(var(--accent-rgb), 0.25));
border-color: var(--accent);
}
.send-btn.stop {
border-color: rgba(var(--danger-rgb), 0.7);
background: rgba(var(--danger-rgb), 0.18);
color: #ffd5da;
}
.mic-btn.listening {
border-color: var(--accent);
background: rgba(var(--accent-rgb), 0.28);
box-shadow: 0 0 0 calc(4px + var(--level, 0) * 18px) rgba(var(--accent-rgb), 0.18), 0 0 24px var(--accent-glow);
}
.mic-btn.speech {
border-color: var(--success);
color: var(--success);
}
.mic-btn.transcribing {
border-color: var(--gold);
color: var(--gold);
}
.mic-btn.disabled {
opacity: 0.5;
}
.command-foot {
display: flex;
align-items: center;
gap: 8px;
font-family: var(--font-mono);
font-size: 11px;
color: var(--ink-3);
flex-wrap: wrap;
}
.command-foot .spacer {
flex: 1;
}
.command-foot .toggle-btn {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 8px;
border-radius: 6px;
border: 1px solid transparent;
background: transparent;
color: var(--ink-3);
font-family: var(--font-mono);
font-size: 11px;
cursor: pointer;
letter-spacing: 0.06em;
}
.command-foot .toggle-btn:hover {
border-color: var(--line);
color: var(--ink-1);
}
.command-foot .toggle-btn.on {
color: var(--accent);
border-color: var(--line-strong);
background: rgba(var(--accent-rgb), 0.1);
}
/* ── Pending requests ──────────────────────────────────────────────────── */
.request-card {
padding: 16px 18px;
display: flex;
flex-direction: column;
gap: 12px;
}
.request-card .title {
display: flex;
align-items: center;
gap: 10px;
font-family: var(--font-display);
font-size: 12px;
letter-spacing: 0.24em;
text-transform: uppercase;
color: var(--warn);
}
.request-card .desc {
font-size: 14px;
color: var(--ink-0);
white-space: pre-wrap;
user-select: text;
}
.request-card pre {
margin: 0;
padding: 8px 10px;
border-radius: 6px;
background: rgba(2, 8, 14, 0.85);
border: 1px solid var(--line);
font-family: var(--font-mono);
font-size: 12px;
max-height: 180px;
overflow: auto;
user-select: text;
}
.request-card .actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
justify-content: flex-end;
}