mirror of
https://github.com/R0m1k3/EveFlow.git
synced 2026-10-11 17:29:03 +02:00
Electron main - utility-process channel: sherpa output copied into V8 buffers (Electron rejects external buffers), audio exchanged as base64; worker restart on timeout, identity-safe exit handling, deterministic native unload by restart - webhook: loopback by default without secret, UTF-8-safe body assembly, clean restart, port validation - files IPC: realpath-based root check, openPath allow-list (reveal-only outside document folders), Windows reserved names; store: debounced async atomic writes with backup of corrupt files; logger: streaming writes with rotation; log message size cap - HTTP stream proxy: socket released on idle timeout / renderer destroyed, id validation - model manager: inactivity timeout, retrying rm/rename (Windows locks), engine stopped before replacing a model; WAV decoder handles float/24-bit; IPC payload validation - window: opaque rounded window on Windows, navigation lock-down, visibility events; Ctrl+Alt+Escape instead of the Task Manager shortcut; single-instance guard; EVEFLOW_USER_DATA Voice pipeline - abort semantics (SendHandle.aborted), abort before the stream opens, session id prefixes per transport - hands-free re-arm after replies without speech, start/stop race, no chime on auto re-arm, no silence shipped to STT (400 ms pre-roll), no transcription of empty manual stops - TTS: bounded prefetch, cancellable segments, non-interrupting notices, volume applied at play time - SSE CRLF split, usage in chat completions, finish_reason length, phonetic regex hoisted HUD - core renderer: no canvas shadows, cached colours, reusable spectrum buffer, theme read on change, 30 fps idle, stops when the window is hidden; ping flashes on send / tool / speech - deltas coalesced per animation frame; stable auto-scroll; narrow selectors everywhere - bundled fonts (offline), reduce-motion fix, error toasts, ops drawer below 1180 px, interim transcript and first-token latency in the core caption, Ctrl+K, dialog semantics, switch/aria roles, compact widget cleanup, Whisper small recommended for French - docs/ROADMAP.md: audit results, e2e results and the plan towards a real JARVIS Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017Wn5VX9HNbJ7N54hR24u9Y
467 lines
9.8 KiB
CSS
467 lines
9.8 KiB
CSS
/* ── 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;
|
|
}
|
|
.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;
|
|
}
|