First Version

This commit is contained in:
2026-07-10 15:02:09 +01:00
commit 38494a85a9
562 changed files with 196313 additions and 0 deletions
+298
View File
@@ -0,0 +1,298 @@
/* ── Agents page layout ───────────────────────────────────────────────────── */
agents-page {
display: none;
flex-direction: column;
flex: 1;
overflow-y: auto;
padding: 1.5rem 2rem;
background: var(--bs-body-bg);
}
.agents-page {
display: flex;
flex-direction: column;
width: 100%;
}
.agents-page-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.75rem;
}
/* ── Info banner ─────────────────────────────────────────────────────────── */
.agent-info-banner {
display: flex;
gap: 0.65rem;
align-items: flex-start;
font-size: 0.82rem;
line-height: 1.5;
padding: 0.8rem 1rem;
margin-bottom: 1.5rem;
border-radius: 8px;
background: rgba(var(--bs-primary-rgb), 0.06);
border: 1px solid rgba(var(--bs-primary-rgb), 0.15);
color: var(--bs-body-color);
}
.agent-info-banner-icon {
font-size: 1.1rem;
color: var(--bs-primary);
line-height: 1.4;
flex-shrink: 0;
}
.agent-info-banner-body p {
font-size: 0.82rem;
}
.agent-info-banner-body code {
font-size: 0.82em;
background: rgba(var(--bs-primary-rgb), 0.08);
padding: 0.08em 0.35em;
border-radius: 3px;
}
/* ── Agent cards (list view) ─────────────────────────────────────────────── */
.agent-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 0.75rem;
}
.agent-card {
border: 1px solid var(--bs-border-color);
border-radius: 8px;
padding: 0.5rem 0.5rem;
cursor: pointer;
transition: border-color 0.15s, box-shadow 0.15s;
background: var(--bs-body-bg);
}
.agent-card:hover {
border-color: var(--bs-primary);
box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.1);
}
.agent-card-body {
display: flex;
gap: 0.85rem;
align-items: flex-start;
}
.agent-card-icon {
width: 120px;
height: 160px;
border-radius: 8px;
object-fit: cover;
flex-shrink: 0;
background: var(--bs-tertiary-bg);
}
.agent-card-content {
flex: 1;
min-width: 0;
}
.agent-card-header {
display: flex;
align-items: baseline;
gap: 0.5rem;
margin-bottom: 0.35rem;
}
.agent-card-name {
font-weight: 600;
font-size: 0.95rem;
}
.agent-card-id {
font-size: 0.72rem;
font-family: var(--bs-font-monospace);
}
.agent-card-desc {
font-size: 0.82rem;
margin-bottom: 0.5rem;
line-height: 1.4;
}
.agent-card-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.4rem;
}
.agent-meta-item {
display: flex;
align-items: center;
gap: 0.25rem;
font-size: 0.78rem;
}
/* ── Shared pills & dots ─────────────────────────────────────────────────── */
.agent-strength-dot {
display: inline-block;
width: 9px;
height: 9px;
border-radius: 50%;
flex-shrink: 0;
}
.agent-scope-pill {
display: inline-block;
font-size: 0.7rem;
padding: 0.1rem 0.45rem;
border-radius: 999px;
background: var(--bs-secondary-bg);
color: var(--bs-secondary-color);
border: 1px solid var(--bs-border-color);
}
/* ── Detail view ─────────────────────────────────────────────────────────── */
.agent-detail {
display: flex;
flex-direction: column;
gap: 0;
}
.agent-detail-header {
margin-bottom: 1.5rem;
}
.agent-detail-title-row {
display: flex;
align-items: flex-start;
gap: 1.25rem;
margin-top: 0.3rem;
}
.agent-detail-icon {
width: 240px;
height: 312px;
border-radius: 10px;
object-fit: cover;
flex-shrink: 0;
background: var(--bs-tertiary-bg);
border: 1px solid var(--bs-border-color);
}
.agent-detail-title {
font-size: 1.35rem;
font-weight: 700;
margin: 0 0 0.25rem;
}
.agent-detail-body {
display: flex;
flex-direction: column;
gap: 2rem;
}
.agent-section-title {
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--bs-secondary-color);
margin-bottom: 0.75rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--bs-border-color);
}
/* List view — agents grouped by role (Chat / Task Executors). */
.agent-group + .agent-group {
margin-top: 1.5rem;
}
.agent-group-title {
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--bs-secondary-color);
margin-bottom: 0.6rem;
}
/* ── Meta table ──────────────────────────────────────────────────────────── */
.agent-meta-table {
font-size: 0.85rem;
border-collapse: collapse;
}
.agent-meta-key {
color: var(--bs-secondary-color);
padding-right: 1.25rem;
padding-bottom: 0.35rem;
white-space: nowrap;
vertical-align: top;
}
/* ── Model resolution table ──────────────────────────────────────────────── */
.agent-model-table {
font-size: 0.83rem;
}
.agent-model-rank {
font-size: 0.75rem;
width: 2rem;
}
.agent-model-id {
font-family: var(--bs-font-monospace);
font-size: 0.78rem;
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.agent-model-row--first td {
background: rgba(var(--bs-success-rgb), 0.06);
}
/* ── System prompt ───────────────────────────────────────────────────────── */
.agent-prompt-body {
font-size: 0.88rem;
line-height: 1.6;
border: 1px solid var(--bs-border-color);
border-radius: 6px;
padding: 1rem 1.25rem;
background: var(--bs-secondary-bg);
max-height: 520px;
overflow-y: auto;
}
.agent-prompt-body h1,
.agent-prompt-body h2,
.agent-prompt-body h3 {
font-size: 1em;
font-weight: 700;
margin-top: 1em;
}
.agent-prompt-body code {
font-size: 0.82em;
}
.agent-prompt-body pre {
background: var(--bs-tertiary-bg);
border-radius: 4px;
padding: 0.6rem 0.8rem;
overflow-x: auto;
}
.agent-prompt-body ul,
.agent-prompt-body ol {
padding-left: 1.4em;
}