jaeswift-website/css/agent-chat.css
jae e73b74cfa2 feat(agent): agentic chat with wallet auth and tiered model routing
- New /api/agent/chat endpoint with Venice tool-calling loop (max 8 iter)
- Tiered models: glm-4.7-flash default, kimi-k2-thinking for Elite+
- Wallet auth: /api/auth/{nonce,verify,whoami,logout} with Ed25519 + JWT
- 10 tools registered: site search, crypto prices, SITREP, .sol lookup,
  wallet xray, contraband/awesomelist search, changelog, trigger_effect
- Per-tool rate limits, 30s timeout, \$30/mo budget guard
- Frontend: tier badge, tool call cards, wallet sign-in handshake
- Changelog v1.40.0
2026-04-20 10:40:27 +00:00

145 lines
3.8 KiB
CSS

/* ===================================================
JAESWIFT.XYZ — Agentic chat UI (tool cards + tiers)
=================================================== */
/* ─── Tier badge ─── */
.tier-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
margin-left: 8px;
font-family: 'VT323', 'Courier New', monospace;
font-size: 0.78rem;
letter-spacing: 0.08em;
border: 1px solid currentColor;
border-radius: 2px;
text-transform: uppercase;
background: rgba(0, 0, 0, 0.35);
vertical-align: middle;
transition: all 0.3s ease;
user-select: none;
}
.tier-badge.tier-anonymous { color: #888; }
.tier-badge.tier-operator { color: #00cc33; box-shadow: 0 0 6px rgba(0, 204, 51, 0.3); }
.tier-badge.tier-elite {
color: #ffd700;
box-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
animation: tier-elite-pulse 3s ease-in-out infinite;
}
.tier-badge.tier-admin { color: #ff3355; box-shadow: 0 0 8px rgba(255, 51, 85, 0.4); }
@keyframes tier-elite-pulse {
0%, 100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.35); }
50% { box-shadow: 0 0 16px rgba(255, 215, 0, 0.7); }
}
/* ─── Agent tool-call card ─── */
.agent-tool-call {
font-family: 'Courier New', 'Consolas', monospace;
font-size: 0.82rem;
color: #00ff66;
background: rgba(0, 20, 0, 0.4);
border-left: 2px solid #00cc33;
padding: 6px 10px;
margin: 6px 0 6px 18px;
border-radius: 2px;
max-width: calc(100% - 36px);
overflow-x: auto;
animation: tool-card-slide-in 0.25s ease-out;
}
@keyframes tool-card-slide-in {
from { opacity: 0; transform: translateX(-6px); }
to { opacity: 1; transform: translateX(0); }
}
.agent-tool-call .atc-header {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 6px;
color: #00ff99;
}
.agent-tool-call .atc-icon { font-size: 0.9rem; }
.agent-tool-call .atc-name {
font-weight: bold;
color: #66ffaa;
text-shadow: 0 0 4px rgba(0, 255, 100, 0.4);
}
.agent-tool-call .atc-args {
color: #55cc77;
font-size: 0.78rem;
overflow-wrap: anywhere;
max-width: 100%;
}
.agent-tool-call .atc-status {
color: #33dd66;
margin-top: 2px;
font-size: 0.8rem;
}
.agent-tool-call .atc-details {
margin-top: 2px;
}
.agent-tool-call .atc-details summary {
cursor: pointer;
color: #22aa44;
list-style: none;
outline: none;
font-size: 0.78rem;
}
.agent-tool-call .atc-details summary::-webkit-details-marker { display: none; }
.agent-tool-call .atc-details[open] summary::after { content: ' ▼'; }
.agent-tool-call .atc-details summary::after { content: ' ▶'; }
.agent-tool-call .atc-details pre {
margin: 4px 0 0;
padding: 6px 8px;
background: rgba(0, 0, 0, 0.6);
border: 1px dashed rgba(0, 204, 51, 0.3);
color: #88eeaa;
font-size: 0.74rem;
white-space: pre-wrap;
word-break: break-word;
max-height: 280px;
overflow-y: auto;
}
/* Agent reply styling tweak */
.chat-msg.chat-msg-agent .chat-msg-body {
position: relative;
}
.chat-msg.chat-msg-agent[data-model]:not([data-model=''])::after {
content: attr(data-model);
display: block;
font-family: 'VT323', monospace;
font-size: 0.65rem;
letter-spacing: 0.08em;
color: #446655;
text-transform: uppercase;
margin-top: 2px;
margin-left: 48px;
opacity: 0.6;
}
/* Locked CTA style (for tier-gated messages) */
.agent-locked {
border-left-color: #ff9933;
color: #ffaa55;
background: rgba(40, 20, 0, 0.4);
}
.agent-locked .atc-name { color: #ffcc77; }
/* Mobile responsiveness */
@media (max-width: 600px) {
.agent-tool-call {
margin-left: 6px;
font-size: 0.75rem;
}
.tier-badge {
font-size: 0.7rem;
padding: 1px 6px;
}
.agent-tool-call .atc-args {
font-size: 0.72rem;
}
}