feat: add Docker-based swarm agent containerization
Add infrastructure for running swarm agents as isolated Docker containers with HTTP-based coordination, startup recovery, and enhanced dashboard UI for agent management. - Dockerfile and docker-compose.yml for multi-service orchestration - DockerAgentRunner for programmatic container lifecycle management - Internal HTTP API for container agents to poll tasks and submit bids - Startup recovery system to reconcile orphaned tasks and stale agents - Enhanced UI partials for agent panels, chat, and task assignment - Timmy docker entry point with heartbeat and task polling - New Makefile targets for Docker workflows - Tests for swarm recovery Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
139
static/bg.svg
Normal file
139
static/bg.svg
Normal file
@@ -0,0 +1,139 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 900" preserveAspectRatio="xMidYMid slice">
|
||||
<defs>
|
||||
|
||||
<!-- Nebula clouds -->
|
||||
<radialGradient id="neb1" cx="22%" cy="32%" r="48%">
|
||||
<stop offset="0%" stop-color="#7c3aed" stop-opacity="0.55"/>
|
||||
<stop offset="55%" stop-color="#4c1d95" stop-opacity="0.18"/>
|
||||
<stop offset="100%" stop-color="#080412" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
|
||||
<radialGradient id="neb2" cx="78%" cy="68%" r="42%">
|
||||
<stop offset="0%" stop-color="#f97316" stop-opacity="0.42"/>
|
||||
<stop offset="50%" stop-color="#c2410c" stop-opacity="0.14"/>
|
||||
<stop offset="100%" stop-color="#080412" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
|
||||
<radialGradient id="neb3" cx="66%" cy="22%" r="36%">
|
||||
<stop offset="0%" stop-color="#a855f7" stop-opacity="0.38"/>
|
||||
<stop offset="100%" stop-color="#080412" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
|
||||
<radialGradient id="neb4" cx="14%" cy="78%" r="32%">
|
||||
<stop offset="0%" stop-color="#ea580c" stop-opacity="0.32"/>
|
||||
<stop offset="100%" stop-color="#080412" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
|
||||
<radialGradient id="neb5" cx="48%" cy="55%" r="28%">
|
||||
<stop offset="0%" stop-color="#6d28d9" stop-opacity="0.22"/>
|
||||
<stop offset="100%" stop-color="#080412" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
|
||||
<!-- Bright core hotspots -->
|
||||
<radialGradient id="core1" cx="24%" cy="34%" r="12%">
|
||||
<stop offset="0%" stop-color="#ddd6fe" stop-opacity="0.18"/>
|
||||
<stop offset="100%" stop-color="#7c3aed" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
|
||||
<radialGradient id="core2" cx="76%" cy="66%" r="10%">
|
||||
<stop offset="0%" stop-color="#fed7aa" stop-opacity="0.22"/>
|
||||
<stop offset="100%" stop-color="#f97316" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
|
||||
<!-- Star glow filter -->
|
||||
<filter id="sg" x="-200%" y="-200%" width="500%" height="500%">
|
||||
<feGaussianBlur stdDeviation="1.2" result="b"/>
|
||||
<feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge>
|
||||
</filter>
|
||||
<filter id="sg2" x="-300%" y="-300%" width="700%" height="700%">
|
||||
<feGaussianBlur stdDeviation="2.5" result="b"/>
|
||||
<feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge>
|
||||
</filter>
|
||||
|
||||
</defs>
|
||||
|
||||
<!-- Base -->
|
||||
<rect width="1440" height="900" fill="#080412"/>
|
||||
|
||||
<!-- Nebula layers -->
|
||||
<rect width="1440" height="900" fill="url(#neb1)"/>
|
||||
<rect width="1440" height="900" fill="url(#neb2)"/>
|
||||
<rect width="1440" height="900" fill="url(#neb3)"/>
|
||||
<rect width="1440" height="900" fill="url(#neb4)"/>
|
||||
<rect width="1440" height="900" fill="url(#neb5)"/>
|
||||
<rect width="1440" height="900" fill="url(#core1)"/>
|
||||
<rect width="1440" height="900" fill="url(#core2)"/>
|
||||
|
||||
<!-- Mystical halo rings around nebula cores -->
|
||||
<circle cx="317" cy="288" r="130" fill="none" stroke="#7c3aed" stroke-width="0.6" opacity="0.18"/>
|
||||
<circle cx="317" cy="288" r="220" fill="none" stroke="#a855f7" stroke-width="0.35" opacity="0.1"/>
|
||||
<circle cx="317" cy="288" r="340" fill="none" stroke="#7c3aed" stroke-width="0.2" opacity="0.06"/>
|
||||
<circle cx="1123" cy="612" r="100" fill="none" stroke="#f97316" stroke-width="0.6" opacity="0.15"/>
|
||||
<circle cx="1123" cy="612" r="180" fill="none" stroke="#ea580c" stroke-width="0.3" opacity="0.08"/>
|
||||
<circle cx="950" cy="198" r="80" fill="none" stroke="#c084fc" stroke-width="0.5" opacity="0.14"/>
|
||||
<circle cx="200" cy="702" r="70" fill="none" stroke="#fb923c" stroke-width="0.4" opacity="0.12"/>
|
||||
|
||||
<!-- Stars — field (small) -->
|
||||
<circle cx="72" cy="43" r="0.8" fill="white" opacity="0.88"/>
|
||||
<circle cx="198" cy="127" r="1.1" fill="white" opacity="0.70"/>
|
||||
<circle cx="334" cy="56" r="0.7" fill="white" opacity="0.82"/>
|
||||
<circle cx="456" cy="178" r="1.0" fill="white" opacity="0.60"/>
|
||||
<circle cx="612" cy="89" r="1.4" fill="white" opacity="0.78" filter="url(#sg)"/>
|
||||
<circle cx="745" cy="145" r="0.9" fill="white" opacity="0.68"/>
|
||||
<circle cx="867" cy="38" r="1.1" fill="white" opacity="0.90"/>
|
||||
<circle cx="1023" cy="115" r="0.8" fill="white" opacity="0.63"/>
|
||||
<circle cx="1156" cy="72" r="1.2" fill="white" opacity="0.80"/>
|
||||
<circle cx="1289" cy="158" r="0.7" fill="white" opacity="0.70"/>
|
||||
<circle cx="1398" cy="45" r="1.0" fill="white" opacity="0.84"/>
|
||||
<circle cx="134" cy="234" r="0.9" fill="white" opacity="0.60"/>
|
||||
<circle cx="267" cy="312" r="1.3" fill="#e9d5ff" opacity="0.68" filter="url(#sg)"/>
|
||||
<circle cx="389" cy="267" r="0.8" fill="white" opacity="0.78"/>
|
||||
<circle cx="523" cy="345" r="1.0" fill="white" opacity="0.64"/>
|
||||
<circle cx="678" cy="223" r="0.7" fill="white" opacity="0.74"/>
|
||||
<circle cx="812" cy="378" r="1.1" fill="#fed7aa" opacity="0.58"/>
|
||||
<circle cx="934" cy="256" r="0.9" fill="white" opacity="0.84"/>
|
||||
<circle cx="1089" cy="334" r="1.0" fill="white" opacity="0.68"/>
|
||||
<circle cx="1234" cy="245" r="0.8" fill="white" opacity="0.78"/>
|
||||
<circle cx="1367" cy="312" r="1.1" fill="#e9d5ff" opacity="0.63"/>
|
||||
<circle cx="56" cy="467" r="1.1" fill="white" opacity="0.68"/>
|
||||
<circle cx="189" cy="523" r="0.8" fill="white" opacity="0.84"/>
|
||||
<circle cx="323" cy="445" r="1.0" fill="white" opacity="0.58"/>
|
||||
<circle cx="478" cy="589" r="0.7" fill="white" opacity="0.73"/>
|
||||
<circle cx="601" cy="478" r="1.2" fill="#e9d5ff" opacity="0.78" filter="url(#sg)"/>
|
||||
<circle cx="756" cy="534" r="0.9" fill="white" opacity="0.63"/>
|
||||
<circle cx="890" cy="467" r="1.0" fill="white" opacity="0.68"/>
|
||||
<circle cx="1023" cy="578" r="0.8" fill="white" opacity="0.78"/>
|
||||
<circle cx="1167" cy="489" r="1.3" fill="#fed7aa" opacity="0.58"/>
|
||||
<circle cx="1312" cy="534" r="0.9" fill="white" opacity="0.73"/>
|
||||
<circle cx="1423" cy="467" r="1.0" fill="white" opacity="0.84"/>
|
||||
<circle cx="112" cy="645" r="0.8" fill="white" opacity="0.68"/>
|
||||
<circle cx="245" cy="712" r="1.1" fill="white" opacity="0.63"/>
|
||||
<circle cx="378" cy="667" r="0.9" fill="white" opacity="0.78"/>
|
||||
<circle cx="534" cy="734" r="1.0" fill="white" opacity="0.73"/>
|
||||
<circle cx="667" cy="656" r="0.7" fill="#e9d5ff" opacity="0.68" filter="url(#sg)"/>
|
||||
<circle cx="823" cy="723" r="1.0" fill="white" opacity="0.58"/>
|
||||
<circle cx="956" cy="667" r="0.8" fill="white" opacity="0.83"/>
|
||||
<circle cx="1112" cy="734" r="1.2" fill="white" opacity="0.68"/>
|
||||
<circle cx="1245" cy="656" r="0.9" fill="white" opacity="0.73"/>
|
||||
<circle cx="1389" cy="712" r="1.0" fill="#fed7aa" opacity="0.63"/>
|
||||
<circle cx="89" cy="812" r="1.0" fill="white" opacity="0.63"/>
|
||||
<circle cx="234" cy="856" r="0.8" fill="white" opacity="0.78"/>
|
||||
<circle cx="389" cy="823" r="1.1" fill="#e9d5ff" opacity="0.68"/>
|
||||
<circle cx="534" cy="878" r="0.7" fill="white" opacity="0.73"/>
|
||||
<circle cx="667" cy="845" r="0.9" fill="white" opacity="0.58"/>
|
||||
<circle cx="812" cy="867" r="1.0" fill="white" opacity="0.84"/>
|
||||
<circle cx="956" cy="823" r="0.8" fill="white" opacity="0.68"/>
|
||||
<circle cx="1112" cy="878" r="0.9" fill="white" opacity="0.63"/>
|
||||
<circle cx="1256" cy="834" r="1.2" fill="#fed7aa" opacity="0.73"/>
|
||||
<circle cx="1389" cy="867" r="0.9" fill="white" opacity="0.78"/>
|
||||
|
||||
<!-- Hero stars (brighter, larger glow) -->
|
||||
<circle cx="420" cy="165" r="2.2" fill="white" opacity="0.92" filter="url(#sg2)"/>
|
||||
<circle cx="1100" cy="290" r="1.9" fill="#e9d5ff" opacity="0.90" filter="url(#sg2)"/>
|
||||
<circle cx="720" cy="440" r="2.4" fill="white" opacity="0.88" filter="url(#sg2)"/>
|
||||
<circle cx="195" cy="615" r="2.0" fill="#fed7aa" opacity="0.82" filter="url(#sg2)"/>
|
||||
<circle cx="1270" cy="710" r="2.1" fill="#e9d5ff" opacity="0.86" filter="url(#sg2)"/>
|
||||
<circle cx="950" cy="198" r="2.3" fill="#f0abfc" opacity="0.84" filter="url(#sg2)"/>
|
||||
<circle cx="580" cy="760" r="1.8" fill="#fed7aa" opacity="0.80" filter="url(#sg2)"/>
|
||||
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 7.6 KiB |
@@ -1,20 +1,22 @@
|
||||
/* ── Mission Control palette ──────────────────────── */
|
||||
/* ── Arcane palette ────────────────────────────────── */
|
||||
:root {
|
||||
--bg-deep: #060d14;
|
||||
--bg-panel: #0c1824;
|
||||
--bg-card: #0f2030;
|
||||
--border: #1a3a55;
|
||||
--border-glow: #1e4d72;
|
||||
--text: #b8d0e8;
|
||||
--text-dim: #4a7a9a;
|
||||
--text-bright: #ddeeff;
|
||||
--bg-deep: #080412;
|
||||
--bg-panel: #110820;
|
||||
--bg-card: #180d2e;
|
||||
--border: #3b1a5c;
|
||||
--border-glow: #7c3aed;
|
||||
--text: #c8b0e0;
|
||||
--text-dim: #6b4a8a;
|
||||
--text-bright: #ede0ff;
|
||||
--green: #00e87a;
|
||||
--green-dim: #00704a;
|
||||
--amber: #ffb800;
|
||||
--amber-dim: #7a5800;
|
||||
--red: #ff4455;
|
||||
--red-dim: #7a1a22;
|
||||
--blue: #00aaff;
|
||||
--blue: #ff7a2a; /* orange replaces blue as the primary accent */
|
||||
--orange: #ff7a2a;
|
||||
--purple: #a855f7;
|
||||
--font: 'JetBrains Mono', 'Courier New', monospace;
|
||||
--header-h: 52px;
|
||||
|
||||
@@ -36,7 +38,10 @@
|
||||
|
||||
body {
|
||||
font-family: var(--font);
|
||||
background: var(--bg-deep);
|
||||
background-color: var(--bg-deep);
|
||||
background-image: url('/static/bg.svg');
|
||||
background-size: cover;
|
||||
background-position: center top;
|
||||
color: var(--text);
|
||||
font-size: 13px;
|
||||
min-height: 100dvh;
|
||||
@@ -51,7 +56,9 @@ body {
|
||||
align-items: center;
|
||||
padding: 12px 24px;
|
||||
padding-top: max(12px, env(safe-area-inset-top));
|
||||
background: var(--bg-panel);
|
||||
background: rgba(17, 8, 32, 0.86);
|
||||
backdrop-filter: blur(14px);
|
||||
-webkit-backdrop-filter: blur(14px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
@@ -64,6 +71,7 @@ body {
|
||||
font-weight: 700;
|
||||
color: var(--text-bright);
|
||||
letter-spacing: 0.15em;
|
||||
text-shadow: 0 0 18px rgba(168, 85, 247, 0.55), 0 0 40px rgba(168, 85, 247, 0.25);
|
||||
}
|
||||
.mc-subtitle {
|
||||
font-size: 11px;
|
||||
@@ -73,8 +81,9 @@ body {
|
||||
}
|
||||
.mc-time {
|
||||
font-size: 14px;
|
||||
color: var(--blue);
|
||||
color: var(--orange);
|
||||
letter-spacing: 0.1em;
|
||||
text-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
|
||||
}
|
||||
.mc-test-link {
|
||||
font-size: 9px;
|
||||
@@ -88,13 +97,13 @@ body {
|
||||
transition: border-color 0.15s, color 0.15s;
|
||||
touch-action: manipulation;
|
||||
}
|
||||
.mc-test-link:hover { border-color: var(--blue); color: var(--blue); }
|
||||
.mc-test-link:hover { border-color: var(--purple); color: var(--purple); }
|
||||
|
||||
/* ── Main layout ─────────────────────────────────── */
|
||||
.mc-main {
|
||||
padding: 16px;
|
||||
height: calc(100dvh - var(--header-h));
|
||||
overflow: clip; /* clip = visual clipping only, no scroll container; lets trackpad events reach scrollable children */
|
||||
overflow: clip;
|
||||
}
|
||||
.mc-content {
|
||||
height: 100%;
|
||||
@@ -106,7 +115,7 @@ body {
|
||||
/* ── Sidebar ─────────────────────────────────────── */
|
||||
.mc-sidebar {
|
||||
overflow-y: auto;
|
||||
min-height: 0; /* allow flex item to shrink so overflow-y: auto actually triggers */
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
/* ── Chat column ─────────────────────────────────── */
|
||||
@@ -115,17 +124,19 @@ body {
|
||||
}
|
||||
.mc-chat-panel > .card {
|
||||
height: 100%;
|
||||
overflow: clip; /* visual clip only, preserves scroll events to .chat-log child */
|
||||
overflow: clip;
|
||||
}
|
||||
|
||||
/* ── Panel / Card overrides ──────────────────────── */
|
||||
.mc-panel {
|
||||
background: var(--bg-panel);
|
||||
background: rgba(17, 8, 32, 0.78);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.mc-panel-header {
|
||||
background: var(--bg-card);
|
||||
background: rgba(24, 10, 45, 0.90);
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
@@ -140,7 +151,7 @@ body {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 3px;
|
||||
padding: 12px;
|
||||
background: var(--bg-card);
|
||||
background: rgba(24, 10, 45, 0.82);
|
||||
}
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
@@ -175,7 +186,7 @@ body {
|
||||
.health-row:last-child { border-bottom: none; }
|
||||
.health-label { color: var(--text-dim); letter-spacing: 0.08em; }
|
||||
|
||||
/* Status badges (use Bootstrap .badge base + mc-badge-* modifier) */
|
||||
/* Status badges */
|
||||
.mc-badge-up { background: var(--green-dim) !important; color: var(--green) !important; font-size: 10px; letter-spacing: 0.12em; border-radius: 2px; }
|
||||
.mc-badge-down { background: var(--red-dim) !important; color: var(--red) !important; font-size: 10px; letter-spacing: 0.12em; border-radius: 2px; }
|
||||
.mc-badge-ready { background: var(--amber-dim) !important; color: var(--amber) !important; font-size: 10px; letter-spacing: 0.12em; border-radius: 2px; }
|
||||
@@ -193,12 +204,12 @@ body {
|
||||
margin-bottom: 4px;
|
||||
letter-spacing: 0.12em;
|
||||
}
|
||||
.chat-message.user .msg-meta { color: var(--blue); }
|
||||
.chat-message.agent .msg-meta { color: var(--green); }
|
||||
.chat-message.user .msg-meta { color: var(--orange); }
|
||||
.chat-message.agent .msg-meta { color: var(--purple); }
|
||||
.chat-message.error-msg .msg-meta { color: var(--red); }
|
||||
|
||||
.msg-body {
|
||||
background: var(--bg-card);
|
||||
background: rgba(24, 10, 45, 0.80);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 3px;
|
||||
padding: 10px 12px;
|
||||
@@ -207,14 +218,14 @@ body {
|
||||
word-break: break-word;
|
||||
}
|
||||
.chat-message.user .msg-body { border-color: var(--border-glow); }
|
||||
.chat-message.agent .msg-body { border-left: 3px solid var(--green); }
|
||||
.chat-message.agent .msg-body { border-left: 3px solid var(--purple); }
|
||||
.chat-message.error-msg .msg-body { border-left: 3px solid var(--red); color: var(--red); }
|
||||
|
||||
/* ── Chat input footer ───────────────────────────── */
|
||||
.mc-chat-footer {
|
||||
padding: 12px 14px;
|
||||
padding-bottom: max(12px, env(safe-area-inset-bottom));
|
||||
background: var(--bg-card);
|
||||
background: rgba(24, 10, 45, 0.90);
|
||||
border-top: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -237,7 +248,7 @@ body {
|
||||
|
||||
/* Bootstrap form-control overrides */
|
||||
.mc-input {
|
||||
background: var(--bg-deep) !important;
|
||||
background: rgba(8, 4, 18, 0.75) !important;
|
||||
border: 1px solid var(--border) !important;
|
||||
border-radius: 3px !important;
|
||||
color: var(--text-bright) !important;
|
||||
@@ -246,7 +257,7 @@ body {
|
||||
}
|
||||
.mc-input:focus {
|
||||
border-color: var(--border-glow) !important;
|
||||
box-shadow: 0 0 0 1px var(--border-glow) !important;
|
||||
box-shadow: 0 0 0 1px var(--border-glow), 0 0 10px rgba(124, 58, 237, 0.25) !important;
|
||||
}
|
||||
.mc-input::placeholder { color: var(--text-dim) !important; }
|
||||
|
||||
@@ -260,11 +271,15 @@ body {
|
||||
font-weight: 700;
|
||||
padding: 8px 18px;
|
||||
letter-spacing: 0.12em;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
transition: background 0.15s, color 0.15s, box-shadow 0.15s;
|
||||
touch-action: manipulation;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.mc-btn-send:hover { background: var(--blue); color: var(--bg-deep); }
|
||||
.mc-btn-send:hover {
|
||||
background: var(--orange);
|
||||
color: #080412;
|
||||
box-shadow: 0 0 14px rgba(249, 115, 22, 0.45);
|
||||
}
|
||||
|
||||
/* ── HTMX Loading ────────────────────────────────── */
|
||||
.htmx-indicator { display: none; }
|
||||
@@ -274,7 +289,7 @@ body {
|
||||
|
||||
/* ── Scrollbar ───────────────────────────────────── */
|
||||
::-webkit-scrollbar { width: 4px; }
|
||||
::-webkit-scrollbar-track { background: var(--bg-deep); }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: var(--border-glow); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user