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

+701
View File
@@ -0,0 +1,701 @@
/* ── Shell ─────────────────────────────────────────────────────────────── */
.hud-root {
position: relative;
height: 100%;
width: 100%;
display: grid;
grid-template-rows: 46px 1fr;
border-radius: 14px;
overflow: hidden;
background:
radial-gradient(1200px 700px at 50% 40%, rgba(var(--accent-rgb), 0.08), transparent 60%),
linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
border: 1px solid rgba(var(--accent-rgb), 0.22);
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
color: var(--ink-1);
}
.hud-root::before {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
background-image:
linear-gradient(rgba(var(--accent-rgb), 0.045) 1px, transparent 1px),
linear-gradient(90deg, rgba(var(--accent-rgb), 0.045) 1px, transparent 1px);
background-size: 48px 48px;
mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9), transparent 78%);
}
.hud-root::after {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
mix-blend-mode: overlay;
}
.hud-body {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: minmax(360px, 1.15fr) minmax(420px, 1fr) minmax(300px, 0.8fr);
gap: 14px;
padding: 12px 14px 14px;
min-height: 0;
}
@media (max-width: 1180px) {
.hud-body {
grid-template-columns: minmax(340px, 1fr) minmax(380px, 1fr);
}
.hud-body > .ops-column {
display: none;
}
}
.hud-column {
min-height: 0;
display: flex;
flex-direction: column;
gap: 12px;
}
/* ── Panels ────────────────────────────────────────────────────────────── */
.panel {
position: relative;
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
backdrop-filter: blur(14px);
display: flex;
flex-direction: column;
min-height: 0;
}
.panel.bracket::before,
.panel.bracket::after {
content: '';
position: absolute;
width: 14px;
height: 14px;
border-color: var(--accent);
border-style: solid;
opacity: 0.8;
pointer-events: none;
}
.panel.bracket::before {
top: -1px;
left: -1px;
border-width: 2px 0 0 2px;
border-radius: var(--radius) 0 0 0;
}
.panel.bracket::after {
bottom: -1px;
right: -1px;
border-width: 0 2px 2px 0;
border-radius: 0 0 var(--radius) 0;
}
.panel-head {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
border-bottom: 1px solid var(--line);
font-family: var(--font-display);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--ink-2);
}
.panel-head .spacer {
flex: 1;
}
.panel-head .led {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 10px var(--accent);
}
.panel-head .led.off {
background: var(--ink-3);
box-shadow: none;
}
.panel-head .led.warn {
background: var(--warn);
box-shadow: 0 0 10px var(--warn);
}
.panel-head .led.error {
background: var(--danger);
box-shadow: 0 0 10px var(--danger);
}
.panel-body {
flex: 1;
min-height: 0;
overflow: auto;
padding: 12px 14px;
}
.label {
font-family: var(--font-display);
font-size: 10px;
letter-spacing: 0.2em;
text-transform: uppercase;
color: var(--ink-3);
}
.mono {
font-family: var(--font-mono);
}
.muted {
color: var(--ink-3);
}
/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 7px 14px;
border-radius: 8px;
border: 1px solid var(--line-strong);
background: rgba(var(--accent-rgb), 0.08);
color: var(--ink-0);
font-family: var(--font-ui);
font-weight: 600;
font-size: 13px;
letter-spacing: 0.08em;
text-transform: uppercase;
cursor: pointer;
transition: background var(--transition), box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.btn:hover:not(:disabled) {
background: rgba(var(--accent-rgb), 0.18);
box-shadow: var(--shadow-glow);
}
.btn:active:not(:disabled) {
transform: translateY(1px);
}
.btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.btn.primary {
background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.35), rgba(var(--accent-rgb), 0.18));
border-color: var(--accent);
}
.btn.danger {
border-color: rgba(var(--danger-rgb), 0.6);
background: rgba(var(--danger-rgb), 0.12);
color: #ffd5da;
}
.btn.danger:hover:not(:disabled) {
background: rgba(var(--danger-rgb), 0.25);
box-shadow: 0 0 20px rgba(var(--danger-rgb), 0.3);
}
.btn.ghost {
background: transparent;
border-color: transparent;
color: var(--ink-2);
}
.btn.ghost:hover:not(:disabled) {
border-color: var(--line);
background: rgba(var(--accent-rgb), 0.08);
box-shadow: none;
}
.btn.small {
padding: 4px 9px;
font-size: 11px;
}
.icon-btn {
width: 32px;
height: 32px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 8px;
border: 1px solid transparent;
background: transparent;
color: var(--ink-2);
cursor: pointer;
transition: all var(--transition);
}
.icon-btn:hover:not(:disabled) {
color: var(--ink-0);
border-color: var(--line);
background: rgba(var(--accent-rgb), 0.1);
}
.icon-btn.active {
color: var(--accent);
border-color: var(--line-strong);
background: rgba(var(--accent-rgb), 0.14);
box-shadow: inset 0 0 12px rgba(var(--accent-rgb), 0.12);
}
.icon-btn.danger:hover {
color: var(--danger);
border-color: rgba(var(--danger-rgb), 0.5);
background: rgba(var(--danger-rgb), 0.12);
}
.icon-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
/* ── Chips ─────────────────────────────────────────────────────────────── */
.chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 9px;
border-radius: 999px;
border: 1px solid var(--line);
background: rgba(var(--accent-rgb), 0.06);
font-family: var(--font-mono);
font-size: 11px;
letter-spacing: 0.06em;
color: var(--ink-2);
white-space: nowrap;
}
.chip .dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--ink-3);
}
.chip.online .dot {
background: var(--success);
box-shadow: 0 0 8px var(--success);
}
.chip.checking .dot,
.chip.degraded .dot {
background: var(--gold);
box-shadow: 0 0 8px var(--gold);
animation: blink 1s infinite;
}
.chip.offline .dot {
background: var(--danger);
box-shadow: 0 0 8px var(--danger);
}
.chip.accent {
color: var(--accent);
border-color: var(--line-strong);
}
.chip.warn {
color: var(--warn);
border-color: rgba(255, 171, 64, 0.5);
}
@keyframes blink {
50% {
opacity: 0.35;
}
}
/* ── Top bar ───────────────────────────────────────────────────────────── */
.topbar {
position: relative;
z-index: 2;
display: flex;
align-items: center;
gap: 12px;
padding: 0 10px 0 16px;
border-bottom: 1px solid var(--line);
background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), transparent);
-webkit-app-region: drag;
}
.topbar > * {
-webkit-app-region: no-drag;
}
.topbar .brand {
display: flex;
align-items: center;
gap: 10px;
font-family: var(--font-display);
font-weight: 900;
letter-spacing: 0.3em;
font-size: 13px;
color: var(--ink-0);
-webkit-app-region: drag;
}
.topbar .brand .core-dot {
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid var(--accent);
box-shadow: 0 0 12px var(--accent), inset 0 0 6px var(--accent);
}
.topbar .brand small {
font-family: var(--font-mono);
font-weight: 400;
letter-spacing: 0.1em;
color: var(--ink-3);
font-size: 10px;
}
.topbar .status-strip {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
overflow: hidden;
-webkit-app-region: drag;
}
.topbar .status-strip > * {
-webkit-app-region: no-drag;
}
.topbar .clock {
font-family: var(--font-mono);
font-size: 13px;
color: var(--ink-2);
letter-spacing: 0.1em;
}
.topbar .controls {
display: flex;
align-items: center;
gap: 2px;
}
.topbar .controls .icon-btn.close:hover {
color: #fff;
background: rgba(var(--danger-rgb), 0.5);
border-color: transparent;
}
/* ── Core stage ────────────────────────────────────────────────────────── */
.core-stage {
position: relative;
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
overflow: hidden;
}
.core-stage canvas {
width: 100%;
height: 100%;
display: block;
}
.core-canvas-wrap {
position: relative;
flex: 1;
width: 100%;
min-height: 0;
}
.core-caption {
position: absolute;
left: 0;
right: 0;
bottom: 14px;
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
pointer-events: none;
}
.core-state {
font-family: var(--font-display);
font-size: 12px;
font-weight: 700;
letter-spacing: 0.4em;
text-transform: uppercase;
color: var(--accent);
text-shadow: 0 0 14px var(--accent-glow);
}
.core-state.thinking {
color: var(--gold);
text-shadow: 0 0 14px rgba(var(--gold-rgb), 0.6);
}
.core-state.error,
.core-state.alert {
color: var(--danger);
text-shadow: 0 0 14px rgba(var(--danger-rgb), 0.6);
}
.core-state.success {
color: var(--success);
}
.core-sub {
font-family: var(--font-mono);
font-size: 12px;
color: var(--ink-2);
max-width: 80%;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.core-name {
position: absolute;
top: 14px;
left: 0;
right: 0;
text-align: center;
font-family: var(--font-display);
font-size: 22px;
font-weight: 900;
letter-spacing: 0.5em;
padding-left: 0.5em;
color: var(--ink-0);
text-shadow: 0 0 22px var(--accent-glow);
pointer-events: none;
}
.core-name small {
display: block;
font-family: var(--font-mono);
font-size: 10px;
font-weight: 400;
letter-spacing: 0.35em;
color: var(--ink-3);
margin-top: 4px;
}
/* ── Voice status pill ─────────────────────────────────────────────────── */
.voice-error,
.error-banner {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 10px 12px;
border-radius: 8px;
border: 1px solid rgba(var(--danger-rgb), 0.45);
background: rgba(var(--danger-rgb), 0.1);
color: #ffd5da;
font-size: 13px;
line-height: 1.4;
}
.error-banner button {
margin-left: auto;
}
/* ── Overlay / modal ───────────────────────────────────────────────────── */
.overlay {
position: absolute;
inset: 0;
z-index: 20;
display: flex;
align-items: center;
justify-content: center;
background: rgba(2, 6, 12, 0.55);
backdrop-filter: blur(6px);
animation: fade-in 160ms ease-out;
}
.modal {
width: min(560px, 92%);
max-height: 86%;
display: flex;
flex-direction: column;
background: var(--panel-strong);
border: 1px solid var(--line-strong);
border-radius: 12px;
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), var(--shadow-glow);
animation: rise-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal.wide {
width: min(820px, 94%);
}
@keyframes fade-in {
from {
opacity: 0;
}
}
@keyframes rise-in {
from {
opacity: 0;
transform: translateY(12px) scale(0.98);
}
}
/* ── Forms ─────────────────────────────────────────────────────────────── */
.field {
display: flex;
flex-direction: column;
gap: 5px;
margin-bottom: 12px;
}
.field label {
font-family: var(--font-display);
font-size: 10px;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--ink-3);
}
.field .hint {
font-size: 12px;
color: var(--ink-3);
}
.input,
.select,
.textarea {
width: 100%;
padding: 8px 10px;
border-radius: 8px;
border: 1px solid var(--line);
background: rgba(2, 8, 14, 0.7);
color: var(--ink-0);
font-family: var(--font-mono);
font-size: 13px;
outline: none;
transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus,
.select:focus,
.textarea:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.textarea {
min-height: 80px;
resize: vertical;
font-family: var(--font-ui);
font-size: 14px;
}
.select option {
background: var(--bg-2);
}
.row {
display: flex;
gap: 10px;
align-items: center;
}
.row.wrap {
flex-wrap: wrap;
}
.grid-2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0 14px;
}
.switch {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 8px 0;
border-bottom: 1px dashed var(--line);
cursor: pointer;
}
.switch:last-child {
border-bottom: none;
}
.switch .text {
display: flex;
flex-direction: column;
gap: 2px;
}
.switch .text small {
color: var(--ink-3);
font-size: 12px;
}
.toggle {
position: relative;
width: 40px;
height: 22px;
flex-shrink: 0;
border-radius: 999px;
border: 1px solid var(--line-strong);
background: rgba(var(--accent-rgb), 0.08);
transition: background var(--transition);
}
.toggle::after {
content: '';
position: absolute;
top: 3px;
left: 3px;
width: 14px;
height: 14px;
border-radius: 50%;
background: var(--ink-3);
transition: transform var(--transition), background var(--transition);
}
.toggle.on {
background: rgba(var(--accent-rgb), 0.3);
}
.toggle.on::after {
transform: translateX(18px);
background: var(--accent);
box-shadow: 0 0 10px var(--accent);
}
.range {
width: 100%;
accent-color: var(--accent);
}
.seg {
display: inline-flex;
border: 1px solid var(--line);
border-radius: 8px;
overflow: hidden;
}
.seg button {
padding: 6px 12px;
border: none;
background: transparent;
color: var(--ink-2);
font-size: 12px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
cursor: pointer;
}
.seg button.active {
background: rgba(var(--accent-rgb), 0.2);
color: var(--ink-0);
}
/* ── Misc ──────────────────────────────────────────────────────────────── */
.empty {
padding: 18px;
text-align: center;
color: var(--ink-3);
font-size: 13px;
letter-spacing: 0.05em;
}
.divider {
height: 1px;
background: var(--line);
margin: 10px 0;
}
.kbd {
font-family: var(--font-mono);
font-size: 11px;
padding: 1px 6px;
border: 1px solid var(--line-strong);
border-radius: 4px;
color: var(--ink-2);
}
.spin {
animation: spin 1.2s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.pulse {
animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
50% {
opacity: 0.45;
}
}
.boot-screen {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 14px;
border-radius: 14px;
background: var(--bg-0);
color: var(--accent);
font-family: var(--font-display);
letter-spacing: 0.4em;
font-size: 13px;
}
+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;
}
+61
View File
@@ -0,0 +1,61 @@
.compact-root {
height: 100%;
display: flex;
flex-direction: column;
border-radius: 18px;
overflow: hidden;
background: linear-gradient(180deg, rgba(5, 12, 22, var(--compact-opacity, 0.92)), rgba(2, 6, 12, var(--compact-opacity, 0.92)));
border: 1px solid rgba(var(--accent-rgb), 0.3);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(var(--accent-rgb), 0.12);
backdrop-filter: blur(16px);
}
.compact-head {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 8px 8px 14px;
-webkit-app-region: drag;
font-family: var(--font-display);
font-size: 11px;
letter-spacing: 0.3em;
color: var(--ink-0);
}
.compact-head > * {
-webkit-app-region: no-drag;
}
.compact-head .title {
flex: 1;
-webkit-app-region: drag;
}
.compact-core {
position: relative;
height: 220px;
flex-shrink: 0;
}
.compact-core canvas {
width: 100%;
height: 100%;
display: block;
}
.compact-core .core-caption {
bottom: 6px;
}
.compact-body {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
border-top: 1px solid var(--line);
}
.compact-body .command-bar {
padding: 8px 10px 10px;
}
.compact-body .command-input {
min-height: 40px;
font-size: 14px;
padding: 9px 12px;
}
.compact-body .bubble {
font-size: 13px;
padding: 8px 11px;
}
+280
View File
@@ -0,0 +1,280 @@
/* ── Ops panel (tabs) ──────────────────────────────────────────────────── */
.ops-panel {
flex: 1;
min-height: 0;
}
.tabs {
display: flex;
flex-wrap: wrap;
gap: 0 2px;
padding: 4px 6px 0;
border-bottom: 1px solid var(--line);
}
.tab {
position: relative;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 8px;
border: none;
background: transparent;
color: var(--ink-3);
font-family: var(--font-display);
font-size: 9.5px;
letter-spacing: 0.12em;
text-transform: uppercase;
cursor: pointer;
border-bottom: 2px solid transparent;
transition: color var(--transition);
}
.tab:hover {
color: var(--ink-1);
}
.tab.active {
color: var(--accent);
border-bottom-color: var(--accent);
}
.tab .badge {
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: 8px;
background: var(--danger);
color: #fff;
font-family: var(--font-mono);
font-size: 10px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.list {
display: flex;
flex-direction: column;
gap: 6px;
}
.row-item {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 8px 10px;
border-radius: 8px;
border: 1px solid var(--line);
background: rgba(var(--accent-rgb), 0.04);
font-size: 13px;
transition: border-color var(--transition), background var(--transition);
}
.row-item:hover {
border-color: var(--line-strong);
background: rgba(var(--accent-rgb), 0.08);
}
.row-item.clickable {
cursor: pointer;
}
.row-item .main {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 3px;
}
.row-item .name {
font-weight: 600;
color: var(--ink-0);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.row-item .meta {
font-family: var(--font-mono);
font-size: 11px;
color: var(--ink-3);
letter-spacing: 0.04em;
}
.row-item .desc {
font-size: 12.5px;
color: var(--ink-2);
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.row-item .actions {
display: flex;
gap: 2px;
}
.row-item .actions .icon-btn {
width: 26px;
height: 26px;
}
.status-pill {
display: inline-block;
padding: 1px 7px;
border-radius: 4px;
font-family: var(--font-mono);
font-size: 10px;
letter-spacing: 0.1em;
text-transform: uppercase;
border: 1px solid var(--line);
color: var(--ink-2);
}
.status-pill.running {
color: var(--gold);
border-color: rgba(var(--gold-rgb), 0.6);
animation: blink 1.2s infinite;
}
.status-pill.done,
.status-pill.ok,
.status-pill.active,
.status-pill.online {
color: var(--success);
border-color: rgba(var(--success-rgb), 0.5);
}
.status-pill.error,
.status-pill.failed,
.status-pill.offline {
color: var(--danger);
border-color: rgba(var(--danger-rgb), 0.5);
}
.status-pill.paused {
color: var(--warn);
border-color: rgba(255, 171, 64, 0.5);
}
/* ── Activity feed ─────────────────────────────────────────────────────── */
.activity-item {
display: grid;
grid-template-columns: 18px 1fr auto;
gap: 8px;
align-items: start;
padding: 6px 4px;
border-bottom: 1px dashed var(--line);
font-size: 12.5px;
}
.activity-item:last-child {
border-bottom: none;
}
.activity-item .icon {
color: var(--ink-3);
margin-top: 1px;
}
.activity-item.running .icon {
color: var(--gold);
}
.activity-item.done .icon {
color: var(--success);
}
.activity-item.error .icon {
color: var(--danger);
}
.activity-item .name {
color: var(--ink-0);
font-weight: 600;
}
.activity-item .detail {
font-family: var(--font-mono);
font-size: 11px;
color: var(--ink-3);
white-space: pre-wrap;
word-break: break-word;
}
.activity-item .time {
font-family: var(--font-mono);
font-size: 10px;
color: var(--ink-3);
}
/* ── Telemetry ─────────────────────────────────────────────────────────── */
.telemetry {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 8px;
padding: 10px 12px;
}
.gauge {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
}
.gauge svg {
width: 62px;
height: 62px;
}
.gauge .value {
font-family: var(--font-mono);
font-size: 12px;
color: var(--ink-0);
}
.gauge .label {
font-size: 9px;
}
.telemetry-foot {
display: flex;
justify-content: space-between;
gap: 8px;
padding: 0 14px 10px;
font-family: var(--font-mono);
font-size: 10px;
color: var(--ink-3);
letter-spacing: 0.08em;
flex-wrap: wrap;
}
/* ── Jobs editor ───────────────────────────────────────────────────────── */
.job-editor {
display: flex;
flex-direction: column;
gap: 8px;
padding: 10px;
margin-bottom: 10px;
border: 1px solid var(--line-strong);
border-radius: 8px;
background: rgba(var(--accent-rgb), 0.05);
}
.job-editor .row {
justify-content: flex-end;
}
/* ── Health grid ───────────────────────────────────────────────────────── */
.kv {
display: grid;
grid-template-columns: auto 1fr;
gap: 4px 12px;
font-size: 12.5px;
}
.kv dt {
font-family: var(--font-display);
font-size: 10px;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--ink-3);
padding-top: 2px;
}
.kv dd {
margin: 0;
font-family: var(--font-mono);
color: var(--ink-1);
word-break: break-all;
user-select: text;
}
.section-title {
display: flex;
align-items: center;
gap: 8px;
margin: 12px 0 8px;
font-family: var(--font-display);
font-size: 10px;
letter-spacing: 0.2em;
text-transform: uppercase;
color: var(--accent);
}
.section-title:first-child {
margin-top: 0;
}
.section-title::after {
content: '';
flex: 1;
height: 1px;
background: var(--line);
}
+106
View File
@@ -0,0 +1,106 @@
.settings-drawer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
z-index: 15;
width: min(560px, 100%);
display: flex;
flex-direction: column;
background: var(--panel-strong);
border-left: 1px solid var(--line-strong);
backdrop-filter: blur(18px);
box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
animation: slide-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes slide-in {
from {
transform: translateX(30px);
opacity: 0;
}
}
.settings-drawer .panel-head {
padding: 12px 16px;
}
.settings-nav {
display: flex;
gap: 4px;
padding: 8px 12px;
border-bottom: 1px solid var(--line);
overflow-x: auto;
}
.settings-nav button {
padding: 6px 10px;
border-radius: 6px;
border: 1px solid transparent;
background: transparent;
color: var(--ink-3);
font-family: var(--font-display);
font-size: 10px;
letter-spacing: 0.14em;
text-transform: uppercase;
cursor: pointer;
white-space: nowrap;
}
.settings-nav button.active {
color: var(--accent);
border-color: var(--line-strong);
background: rgba(var(--accent-rgb), 0.1);
}
.settings-body {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 16px 18px 24px;
}
.settings-body .card {
padding: 12px 14px;
margin-bottom: 14px;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(var(--accent-rgb), 0.04);
}
.test-result {
display: flex;
align-items: center;
gap: 8px;
font-family: var(--font-mono);
font-size: 12px;
padding: 8px 10px;
border-radius: 6px;
border: 1px solid var(--line);
}
.test-result.ok {
color: var(--success);
border-color: rgba(var(--success-rgb), 0.5);
}
.test-result.fail {
color: var(--danger);
border-color: rgba(var(--danger-rgb), 0.5);
}
.theme-swatches {
display: flex;
gap: 8px;
}
.swatch {
width: 34px;
height: 34px;
border-radius: 50%;
border: 2px solid transparent;
cursor: pointer;
box-shadow: inset 0 0 0 3px var(--bg-0);
}
.swatch.active {
border-color: #fff;
}
.level-meter {
height: 8px;
border-radius: 4px;
background: rgba(var(--accent-rgb), 0.1);
overflow: hidden;
}
.level-meter > div {
height: 100%;
background: linear-gradient(90deg, var(--accent), var(--success));
transition: width 60ms linear;
}
+143
View File
@@ -0,0 +1,143 @@
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');
:root {
--font-display: 'Orbitron', 'Rajdhani', 'Segoe UI', sans-serif;
--font-ui: 'Rajdhani', 'Segoe UI', 'Helvetica Neue', sans-serif;
--font-mono: 'Share Tech Mono', 'Cascadia Mono', 'Consolas', monospace;
--bg-0: #02060c;
--bg-1: #050c16;
--bg-2: #081422;
--bg-3: #0c1c2e;
--ink-0: #e9fbff;
--ink-1: #b9e8f5;
--ink-2: #7fb6c9;
--ink-3: #4d7d91;
--accent: #34e4ff;
--accent-rgb: 52, 228, 255;
--accent-soft: rgba(52, 228, 255, 0.14);
--accent-line: rgba(52, 228, 255, 0.32);
--accent-glow: rgba(52, 228, 255, 0.55);
--gold: #ffc35a;
--gold-rgb: 255, 195, 90;
--danger: #ff5c6c;
--danger-rgb: 255, 92, 108;
--success: #4ef0a8;
--success-rgb: 78, 240, 168;
--warn: #ffab40;
--panel: rgba(6, 16, 28, 0.72);
--panel-strong: rgba(6, 16, 28, 0.92);
--line: rgba(52, 228, 255, 0.18);
--line-strong: rgba(52, 228, 255, 0.42);
--radius: 10px;
--shadow-glow: 0 0 24px rgba(var(--accent-rgb), 0.25);
--transition: 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
:root[data-theme='gold'] {
--accent: #ffc35a;
--accent-rgb: 255, 195, 90;
--accent-soft: rgba(255, 195, 90, 0.14);
--accent-line: rgba(255, 195, 90, 0.32);
--accent-glow: rgba(255, 195, 90, 0.55);
--line: rgba(255, 195, 90, 0.18);
--line-strong: rgba(255, 195, 90, 0.42);
--ink-1: #f6e7c8;
--ink-2: #c9ad7a;
--ink-3: #8a7247;
--bg-1: #0d0a05;
--bg-2: #171106;
--bg-3: #221a0a;
--panel: rgba(20, 14, 6, 0.72);
--panel-strong: rgba(20, 14, 6, 0.92);
}
:root[data-theme='crimson'] {
--accent: #ff5c6c;
--accent-rgb: 255, 92, 108;
--accent-soft: rgba(255, 92, 108, 0.14);
--accent-line: rgba(255, 92, 108, 0.32);
--accent-glow: rgba(255, 92, 108, 0.55);
--line: rgba(255, 92, 108, 0.18);
--line-strong: rgba(255, 92, 108, 0.42);
--ink-1: #ffd9dd;
--ink-2: #c98d95;
--ink-3: #8a4f56;
--bg-1: #0d0507;
--bg-2: #17080b;
--bg-3: #240c11;
--panel: rgba(22, 7, 10, 0.72);
--panel-strong: rgba(22, 7, 10, 0.92);
}
:root[data-theme='emerald'] {
--accent: #4ef0a8;
--accent-rgb: 78, 240, 168;
--accent-soft: rgba(78, 240, 168, 0.14);
--accent-line: rgba(78, 240, 168, 0.32);
--accent-glow: rgba(78, 240, 168, 0.55);
--line: rgba(78, 240, 168, 0.18);
--line-strong: rgba(78, 240, 168, 0.42);
--ink-1: #d3f7e6;
--ink-2: #86c4a6;
--ink-3: #4a7f66;
--bg-1: #040d09;
--bg-2: #07170f;
--bg-3: #0b2217;
--panel: rgba(5, 18, 12, 0.72);
--panel-strong: rgba(5, 18, 12, 0.92);
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
margin: 0;
background: transparent;
}
body {
font-family: var(--font-ui);
font-size: 15px;
color: var(--ink-1);
-webkit-font-smoothing: antialiased;
overflow: hidden;
user-select: none;
}
button,
input,
select,
textarea {
font-family: inherit;
font-size: inherit;
color: inherit;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(var(--accent-rgb), 0.25);
border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(var(--accent-rgb), 0.45);
}
:root[data-motion='reduce'] * {
animation-duration: 0.001s !important;
transition-duration: 0.001s !important;
}