xml-pipeline/dashboard/style.css
dullfig 06eeea3dee
Some checks failed
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.13) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / typecheck (push) Has been cancelled
CI / docker (push) Has been cancelled
Add AgentOS container foundation, security hardening, and management plane
Invert the agent model: the agent IS the computer. The message pump
becomes the kernel, handlers are sandboxed apps, and all access is
mediated by the platform.

Phase 1 — Container foundation:
- Multi-stage Dockerfile (python:3.12-slim, non-root user, /data volume)
- deploy/entrypoint.py with --dry-run config validation
- docker-compose.yml (cap_drop ALL, read_only, no-new-privileges)
- docker-compose.dev.yml overlay for development
- CI Docker build smoke test

Phase 2 — Security hardening:
- xml_pipeline/security/ module with default-deny container mode
- Permission gate: per-listener tool allowlist enforcement
- Network policy: egress control (only declared LLM backend domains)
- Shell tool: disabled in container mode
- File tool: restricted to /data and /config in container mode
- Fetch tool: integrates network egress policy
- Config loader: parses security and network YAML sections

Phase 3 — Management plane:
- Agent app (port 8080): minimal /health, /inject, /ws only
- Management app (port 9090): full API, audit log, dashboard
- SQLite-backed audit log for tool invocations and security events
- Static web dashboard (no framework, WebSocket-driven)
- CLI --split flag for dual-port serving

All 439 existing tests pass with zero regressions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 21:37:24 -08:00

328 lines
5.5 KiB
CSS

/* AgentOS Dashboard — Minimal, no-framework styling */
:root {
--bg: #0d1117;
--surface: #161b22;
--border: #30363d;
--text: #c9d1d9;
--text-muted: #8b949e;
--accent: #58a6ff;
--green: #3fb950;
--yellow: #d29922;
--red: #f85149;
--orange: #db6d28;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.5;
}
/* Header */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 24px;
border-bottom: 1px solid var(--border);
background: var(--surface);
}
.header-left {
display: flex;
align-items: center;
gap: 16px;
}
header h1 {
font-size: 20px;
font-weight: 600;
color: var(--accent);
}
.organism-name {
font-size: 14px;
color: var(--text-muted);
font-family: monospace;
}
.header-right {
display: flex;
align-items: center;
gap: 16px;
font-size: 13px;
}
.status-indicator {
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 500;
}
.status-indicator.connected {
background: rgba(63, 185, 80, 0.15);
color: var(--green);
}
.status-indicator.disconnected {
background: rgba(248, 81, 73, 0.15);
color: var(--red);
}
.uptime {
color: var(--text-muted);
font-family: monospace;
}
/* Main */
main {
max-width: 1200px;
margin: 0 auto;
padding: 24px;
}
/* Status Cards */
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
padding: 20px;
}
.card-label {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-muted);
margin-bottom: 4px;
}
.card-value {
font-size: 28px;
font-weight: 600;
font-family: monospace;
}
.card-detail {
font-size: 12px;
color: var(--text-muted);
margin-top: 4px;
}
/* Tabs */
.tabs {
display: flex;
gap: 0;
border-bottom: 1px solid var(--border);
margin-bottom: 16px;
}
.tab {
background: none;
border: none;
color: var(--text-muted);
padding: 10px 20px;
cursor: pointer;
font-size: 14px;
border-bottom: 2px solid transparent;
transition: all 0.2s;
}
.tab:hover {
color: var(--text);
}
.tab.active {
color: var(--accent);
border-bottom-color: var(--accent);
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* Tables */
table {
width: 100%;
border-collapse: collapse;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
overflow: hidden;
}
thead {
background: rgba(255, 255, 255, 0.03);
}
th {
text-align: left;
padding: 10px 16px;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-muted);
border-bottom: 1px solid var(--border);
}
td {
padding: 10px 16px;
font-size: 14px;
border-bottom: 1px solid var(--border);
}
tr:last-child td {
border-bottom: none;
}
tr:hover {
background: rgba(255, 255, 255, 0.02);
}
td.empty {
text-align: center;
color: var(--text-muted);
padding: 40px;
}
/* State badges */
.state-badge {
display: inline-block;
padding: 2px 8px;
border-radius: 10px;
font-size: 12px;
font-weight: 500;
}
.state-idle {
background: rgba(139, 148, 158, 0.15);
color: var(--text-muted);
}
.state-processing {
background: rgba(88, 166, 255, 0.15);
color: var(--accent);
}
.state-error {
background: rgba(248, 81, 73, 0.15);
color: var(--red);
}
.state-active {
background: rgba(63, 185, 80, 0.15);
color: var(--green);
}
/* Log */
.log {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
max-height: 600px;
overflow-y: auto;
font-family: monospace;
font-size: 13px;
}
.log .empty {
text-align: center;
color: var(--text-muted);
padding: 40px;
}
.log-entry {
padding: 8px 16px;
border-bottom: 1px solid var(--border);
display: flex;
gap: 12px;
align-items: flex-start;
}
.log-entry:last-child {
border-bottom: none;
}
.log-time {
color: var(--text-muted);
white-space: nowrap;
flex-shrink: 0;
}
.log-from {
color: var(--accent);
font-weight: 500;
flex-shrink: 0;
min-width: 120px;
}
.log-content {
flex: 1;
word-break: break-word;
}
/* Severity colors for audit */
.severity-info { color: var(--text-muted); }
.severity-warning { color: var(--yellow); }
.severity-error { color: var(--red); }
.severity-critical { color: var(--red); font-weight: 700; }
/* Audit filters */
.audit-filters {
display: flex;
gap: 8px;
margin-bottom: 12px;
}
.audit-filters select,
.audit-filters button {
background: var(--surface);
border: 1px solid var(--border);
color: var(--text);
padding: 6px 12px;
border-radius: 6px;
font-size: 13px;
cursor: pointer;
}
.audit-filters button:hover {
background: rgba(255, 255, 255, 0.05);
}
/* Scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}