Implement optional single-image intake, Signal ingestion, and multimodal vision analysis

- Add image intake service with format validation (JPEG, PNG, WebP) and EXIF/GPS stripping
- Enforce strict single-image rule across Web and Signal attachment channels
- Implement token-optimized vision downscaling and JPEG compression
- Add IMAGE_CONTEXT pipeline stage with OmniRoute vision routing and resilient failover
- Seed and manage versioned idea-image-interpreter prompt in catalog
- Update Web UI with responsive image picker, preview chip, and Visual Context tab
- Add comprehensive automated test suite in test_image_intake.py
- Update README and Labyricorn devlog
This commit is contained in:
2026-08-23 01:40:22 -07:00
parent 94ff1e4408
commit 41e08611c9
30 changed files with 3784 additions and 278 deletions
+263 -12
View File
@@ -579,40 +579,291 @@ a:hover {
display: block;
}
/* Code & Markdown View */
/* ============================================================
Markdown Container & Code/Formatted View System
============================================================ */
.markdown-view-container {
position: relative;
width: 100%;
}
.markdown-view-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.85rem;
flex-wrap: wrap;
gap: 0.5rem;
}
.markdown-view-meta {
display: flex;
align-items: center;
gap: 0.5rem;
}
.markdown-view-actions {
display: flex;
align-items: center;
gap: 0.5rem;
margin-left: auto;
}
.markdown-toggle-pill {
display: inline-flex;
align-items: center;
background: rgba(0, 0, 0, 0.45);
border: 1px solid var(--border-glass);
border-radius: var(--radius-sm);
padding: 2px;
gap: 2px;
backdrop-filter: blur(8px);
}
.markdown-toggle-pill .btn-toggle-view {
background: transparent;
border: none;
color: var(--text-secondary);
font-family: var(--font-sans);
font-size: 0.78rem;
font-weight: 500;
padding: 0.25rem 0.65rem;
border-radius: 4px;
cursor: pointer;
transition: all var(--transition-fast);
display: inline-flex;
align-items: center;
gap: 0.35rem;
user-select: none;
}
.markdown-toggle-pill .btn-toggle-view:hover {
color: var(--text-primary);
background: rgba(255, 255, 255, 0.05);
}
.markdown-toggle-pill .btn-toggle-view.active {
background: var(--accent-gradient);
color: #ffffff;
font-weight: 600;
box-shadow: 0 1px 6px rgba(99, 102, 241, 0.35);
}
.btn-copy-markdown {
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--border-glass);
color: var(--text-secondary);
font-family: var(--font-sans);
font-size: 0.78rem;
padding: 0.25rem 0.6rem;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all var(--transition-fast);
display: inline-flex;
align-items: center;
gap: 0.3rem;
user-select: none;
}
.btn-copy-markdown:hover {
color: var(--text-primary);
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.2);
}
.markdown-view-body {
position: relative;
width: 100%;
}
/* Formatted Markdown View */
.markdown-body {
color: #e2e8f0;
font-size: 0.95rem;
line-height: 1.7;
line-height: 1.75;
word-wrap: break-word;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
margin-top: 1.5rem;
.markdown-body > *:first-child {
margin-top: 0 !important;
}
.markdown-body > *:last-child {
margin-bottom: 0 !important;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
color: #f8fafc;
font-family: var(--font-heading);
font-weight: 700;
line-height: 1.3;
margin-top: 1.75rem;
margin-bottom: 0.75rem;
}
.markdown-body ul, .markdown-body ol {
padding-left: 1.5rem;
.markdown-body h1 {
font-size: 1.6rem;
border-bottom: 1px solid var(--border-glass);
padding-bottom: 0.5rem;
}
.markdown-body h2 {
font-size: 1.35rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
padding-bottom: 0.35rem;
}
.markdown-body h3 {
font-size: 1.15rem;
}
.markdown-body h4 {
font-size: 1.02rem;
}
.markdown-body p {
margin-top: 0;
margin-bottom: 1rem;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 1.6rem;
margin-top: 0.4rem;
margin-bottom: 1rem;
}
.markdown-body li {
margin-bottom: 0.35rem;
}
.markdown-body li > p {
margin-bottom: 0.35rem;
}
.markdown-body blockquote {
border-left: 3px solid var(--accent-primary);
padding-left: 1rem;
color: var(--text-secondary);
background: rgba(99, 102, 241, 0.06);
padding: 0.75rem 1.25rem;
border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
color: #cbd5e1;
margin: 1rem 0;
font-style: italic;
font-style: normal;
}
.markdown-body blockquote > *:last-child {
margin-bottom: 0;
}
.markdown-body hr {
border: none;
border-top: 1px solid var(--border-glass);
margin: 1.5rem 0;
}
.markdown-body a {
color: #818cf8;
text-decoration: underline;
text-underline-offset: 3px;
transition: color var(--transition-fast);
}
.markdown-body a:hover {
color: #a5b4fc;
}
.markdown-body code {
background: rgba(0, 0, 0, 0.4);
border: 1px solid rgba(255, 255, 255, 0.08);
color: #e0e7ff;
font-family: var(--font-mono);
font-size: 0.86em;
padding: 0.15rem 0.4rem;
border-radius: 4px;
}
.markdown-body pre {
background: #0d0f18;
background: #0b0d14;
border: 1px solid var(--border-glass);
border-radius: var(--radius-md);
padding: 1rem;
padding: 1rem 1.25rem;
overflow-x: auto;
margin: 1rem 0;
position: relative;
}
.markdown-body pre code {
background: transparent;
border: none;
padding: 0;
color: #f1f5f9;
font-size: 0.88rem;
line-height: 1.6;
display: block;
}
.markdown-body table {
width: 100%;
border-collapse: collapse;
margin: 1.25rem 0;
font-size: 0.9rem;
background: rgba(0, 0, 0, 0.28);
border: 1px solid var(--border-glass);
border-radius: var(--radius-md);
overflow: hidden;
display: table;
}
.markdown-body th,
.markdown-body td {
padding: 0.7rem 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
text-align: left;
line-height: 1.5;
}
.markdown-body th {
background: rgba(255, 255, 255, 0.04);
color: #f8fafc;
font-weight: 600;
border-bottom: 1px solid var(--border-glass);
}
.markdown-body tr:last-child td {
border-bottom: none;
}
.markdown-body tr:hover td {
background: rgba(255, 255, 255, 0.02);
}
/* Raw Code View */
.markdown-code {
background: #0b0d14;
border: 1px solid var(--border-glass);
border-radius: var(--radius-md);
padding: 1rem 1.25rem;
margin-top: 0.25rem;
overflow-x: auto;
}
.markdown-code pre {
margin: 0;
background: transparent;
border: none;
padding: 0;
font-family: var(--font-mono);
font-size: 0.88rem;
margin: 1rem 0;
line-height: 1.6;
color: #cbd5e1;
white-space: pre-wrap;
word-break: break-word;
}
/* Toast Notifications */