agent page restructure: - send form moves into the terminal panel as a prompt-style row beneath the live tail (status line stays above so it still reads as a header). - live panel + prompt share a single bordered 'terminal-wrap' box. - harness-alive / login-state status lines drop their decorative ascii bookends; just a leading dot/glyph remains. - banner gradient is now a real css gradient with a shimmer animation toggled by an .active class. turn_start adds it, turn_end removes it. dashboard side mirrors this: each broker sse event nudges a 4s shimmer window. - dashboard container rows drop their static ▓█▓▒░ / ▒░▒░░ glyph prefixes; the role chips already disambiguate m1nd vs ag3nt. - empty-state placeholders drop the ▓ bookends. terminal pre-fill: hive-ag3nt::events::Bus grows a 500-event ring buffer; new GET /events/history endpoint returns it. The agent JS fetches history before opening the SSE stream so opening the page mid- turn shows the last N events instead of a blank panel. The replay walks turn_start/turn_end pairs to seed the banner-active state correctly if a turn was still open.
257 lines
7.2 KiB
CSS
257 lines
7.2 KiB
CSS
:root {
|
|
/* Catppuccin Mocha — mirrors the dashboard palette. */
|
|
--bg: #1e1e2e; /* base */
|
|
--bg-elev: #181825; /* mantle */
|
|
--fg: #cdd6f4; /* text */
|
|
--muted: #7f849c; /* overlay1 */
|
|
--purple: #cba6f7; /* mauve */
|
|
--purple-dim: #45475a; /* surface1 */
|
|
--cyan: #89dceb; /* sky */
|
|
--amber: #fab387; /* peach */
|
|
--green: #a6e3a1; /* green */
|
|
--red: #f38ba8; /* red */
|
|
}
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Source Code Pro", monospace;
|
|
max-width: 70em;
|
|
margin: 1.5em auto;
|
|
padding: 0 1.5em;
|
|
line-height: 1.6;
|
|
}
|
|
.banner {
|
|
text-align: center;
|
|
margin: 0 0 1em 0;
|
|
font-size: 0.95em;
|
|
overflow-x: auto;
|
|
background: linear-gradient(
|
|
90deg,
|
|
var(--purple-dim) 0%,
|
|
var(--purple) 50%,
|
|
var(--purple-dim) 100%
|
|
);
|
|
background-size: 200% 100%;
|
|
background-position: 50% 0;
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
filter: drop-shadow(0 0 6px rgba(203, 166, 247, 0.45));
|
|
}
|
|
.banner.active {
|
|
animation: banner-shimmer 1.8s linear infinite;
|
|
}
|
|
@keyframes banner-shimmer {
|
|
from { background-position: 200% 0; }
|
|
to { background-position: -100% 0; }
|
|
}
|
|
h2, h3 {
|
|
color: var(--purple);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.15em;
|
|
text-shadow: 0 0 8px rgba(203, 166, 247, 0.4);
|
|
}
|
|
.meta { color: var(--muted); font-size: 0.85em; }
|
|
.status-online { color: var(--green); text-shadow: 0 0 6px rgba(166, 227, 161, 0.55); }
|
|
.status-needs-login { color: var(--amber); text-shadow: 0 0 6px rgba(250, 179, 135, 0.55); }
|
|
code { background: rgba(203, 166, 247, 0.12); padding: 0.05em 0.3em; border-radius: 2px; }
|
|
a {
|
|
color: var(--cyan);
|
|
text-shadow: 0 0 4px rgba(137, 220, 235, 0.5);
|
|
}
|
|
a:hover { color: var(--fg); text-shadow: 0 0 12px rgba(137, 220, 235, 0.9); }
|
|
.btn {
|
|
font-family: inherit;
|
|
font-size: 1em;
|
|
background: var(--bg);
|
|
border: 1px solid var(--purple);
|
|
color: var(--purple);
|
|
padding: 0.25em 0.8em;
|
|
cursor: pointer;
|
|
letter-spacing: 0.1em;
|
|
}
|
|
.btn {
|
|
text-shadow: 0 0 4px currentColor;
|
|
transition: box-shadow 0.15s ease, text-shadow 0.15s ease;
|
|
}
|
|
.btn:hover {
|
|
background: rgba(205, 214, 244, 0.06);
|
|
text-shadow: 0 0 10px currentColor;
|
|
box-shadow: 0 0 10px -2px currentColor;
|
|
}
|
|
.btn-login { color: var(--amber); border-color: var(--amber); }
|
|
.btn-cancel { color: var(--red); border-color: var(--red); font-size: 0.85em; padding: 0.15em 0.6em; }
|
|
.btn-rebuild {
|
|
color: var(--amber);
|
|
border: 1px solid var(--amber);
|
|
padding: 0.15em 0.6em;
|
|
font-size: 0.55em;
|
|
font-family: inherit;
|
|
text-decoration: none;
|
|
letter-spacing: 0.1em;
|
|
margin-left: 0.6em;
|
|
vertical-align: middle;
|
|
cursor: pointer;
|
|
}
|
|
.btn-rebuild:hover { background: rgba(250, 179, 135, 0.1); }
|
|
.btn-send { color: var(--green); border-color: var(--green); }
|
|
.sendform { display: flex; gap: 0.6em; margin-top: 0.5em; }
|
|
.sendform input {
|
|
font-family: inherit; font-size: 1em;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--fg);
|
|
border: 1px solid var(--purple-dim);
|
|
padding: 0.4em 0.6em;
|
|
flex: 1;
|
|
}
|
|
.sendform input:focus { outline: 1px solid var(--purple); }
|
|
.loginform { display: flex; gap: 0.6em; margin-top: 0.5em; }
|
|
.loginform input {
|
|
font-family: inherit; font-size: 1em;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--fg);
|
|
border: 1px solid var(--purple-dim);
|
|
padding: 0.4em 0.6em;
|
|
flex: 1;
|
|
}
|
|
.loginform input:focus { outline: 1px solid var(--purple); }
|
|
pre.diff {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid var(--purple-dim);
|
|
padding: 0.6em 0.8em;
|
|
overflow-x: auto;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
max-height: 30em;
|
|
}
|
|
/* Terminal-ish wrapper holding the live output + prompt input as one
|
|
unit. Crust as bg (almost-black), slightly inset, mauve phosphor glow. */
|
|
.terminal-wrap {
|
|
background: #11111b;
|
|
border: 1px solid var(--purple-dim);
|
|
box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7);
|
|
border-radius: 4px;
|
|
font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Source Code Pro", monospace;
|
|
font-size: 0.92em;
|
|
color: #cdd6f4;
|
|
margin-top: 0.6em;
|
|
}
|
|
.live.terminal {
|
|
background: transparent;
|
|
border: 0;
|
|
box-shadow: none;
|
|
border-radius: 0;
|
|
padding: 0.8em 1em 0.4em;
|
|
overflow-y: auto;
|
|
max-height: 32em;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
color: inherit;
|
|
}
|
|
.term-input { padding: 0.4em 1em 0.8em; }
|
|
.term-input .sendform-term {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5em;
|
|
border-top: 1px dashed var(--purple-dim);
|
|
padding-top: 0.5em;
|
|
}
|
|
.term-input .prompt {
|
|
color: var(--green);
|
|
text-shadow: 0 0 6px rgba(166, 227, 161, 0.6);
|
|
user-select: none;
|
|
flex: 0 0 auto;
|
|
}
|
|
.term-input input {
|
|
flex: 1;
|
|
background: transparent;
|
|
border: 0;
|
|
outline: 0;
|
|
color: var(--fg);
|
|
font-family: inherit;
|
|
font-size: 1em;
|
|
padding: 0.2em 0;
|
|
caret-color: var(--green);
|
|
}
|
|
.term-input input::placeholder { color: var(--muted); }
|
|
.term-input .submit-hint { color: var(--muted); font-size: 0.8em; flex: 0 0 auto; }
|
|
.term-input.disabled .prompt { color: var(--muted); text-shadow: none; }
|
|
.term-input.disabled input { color: var(--muted); }
|
|
.live {
|
|
background: rgba(255, 255, 255, 0.02);
|
|
border: 1px solid var(--purple-dim);
|
|
padding: 0.4em 0.6em;
|
|
overflow-y: auto;
|
|
max-height: 32em;
|
|
font-family: inherit;
|
|
}
|
|
.live .unread-badge {
|
|
color: var(--amber);
|
|
font-weight: normal;
|
|
margin-left: 0.6em;
|
|
font-size: 0.85em;
|
|
text-shadow: 0 0 6px rgba(250, 179, 135, 0.55);
|
|
}
|
|
details.row {
|
|
white-space: normal;
|
|
padding-left: 0.5em;
|
|
}
|
|
details.row > summary {
|
|
cursor: pointer;
|
|
color: var(--muted);
|
|
list-style: none;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
details.row > summary::before {
|
|
content: '▸ ';
|
|
color: var(--muted);
|
|
display: inline-block;
|
|
width: 1em;
|
|
}
|
|
details.row[open] > summary::before { content: '▾ '; }
|
|
details.row.tool-result-block > summary { color: var(--muted); }
|
|
details.row > pre.tool-body {
|
|
margin: 0.3em 0 0.4em 1.2em;
|
|
padding: 0.4em 0.6em;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border-left: 2px solid var(--purple-dim);
|
|
color: var(--fg);
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
max-height: 22em;
|
|
overflow-y: auto;
|
|
}
|
|
.live .row {
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
padding: 0.05em 0;
|
|
line-height: 1.45;
|
|
border-left: 2px solid transparent;
|
|
padding-left: 0.5em;
|
|
margin: 0.1em 0;
|
|
}
|
|
.live .row + .row { border-top: 0; }
|
|
.live .turn-start {
|
|
color: var(--amber);
|
|
font-weight: bold;
|
|
margin-top: 1em;
|
|
border-left-color: var(--amber);
|
|
padding-top: 0.3em;
|
|
}
|
|
.live .turn-start:first-child { margin-top: 0; }
|
|
.live .turn-body {
|
|
color: var(--fg);
|
|
font-weight: normal;
|
|
margin-top: 0.15em;
|
|
padding-left: 1.2em;
|
|
opacity: 0.85;
|
|
}
|
|
.live .turn-end-ok { color: var(--green); border-left-color: var(--green); margin-bottom: 0.4em; }
|
|
.live .turn-end-fail { color: var(--red); border-left-color: var(--red); margin-bottom: 0.4em; }
|
|
.live .text { color: var(--fg); padding-left: 1.2em; }
|
|
.live .thinking { color: var(--muted); font-style: italic; padding-left: 1.2em; }
|
|
.live .tool-use { color: var(--cyan); padding-left: 1.2em; }
|
|
.live .tool-result { color: var(--muted); padding-left: 1.2em; }
|
|
.live .result { color: var(--green); padding-left: 0.5em; }
|
|
.live .sys, .live .note { color: var(--muted); }
|