linnet/frontend/uno.config.ts
pyr0ball 7e14f9135e feat: Notation v0.1.x scaffold — full backend + frontend + tests
FastAPI backend (port 8522):
- Session lifecycle: POST /session/start, DELETE /session/{id}/end, GET /session/{id}
- SSE stream: GET /session/{id}/stream — per-subscriber asyncio.Queue fan-out, 15s heartbeat
- History: GET /session/{id}/history with min_confidence + limit filters
- Audio: WS /session/{id}/audio — binary PCM ingestion stub (real inference in v0.2.x)
- Export: GET /session/{id}/export — downloadable JSON session log
- ContextClassifier background task per session (CF_VOICE_MOCK=1 in dev)
- ToneEvent SSE wire format per cf-core#40 (locked field names)
- Tier gate: CFG-LNNT- prefix check, 402 for paid features

Vue 3 frontend (port 8521, Vite + UnoCSS + Pinia):
- NowPanel: affect-aware border tint, subtext, prosody flags, shift indicator
- HistoryStrip: horizontal scroll, last 8 events with affect color
- ComposeBar: start/stop session, SSE connection lifecycle
- useToneStream: EventSource composable
- useAudioCapture: AudioWorklet → Int16 PCM → WebSocket (v0.1.x stub)
- audio-processor.js: 100ms chunk accumulator in AudioWorklet thread
- Respects prefers-reduced-motion globally

26 tests passing, manage.sh, Dockerfile, compose.yml included.
2026-04-06 18:23:52 -07:00

35 lines
821 B
TypeScript

import { defineConfig, presetUno, presetWebFonts } from "unocss";
export default defineConfig({
presets: [
presetUno(),
presetWebFonts({
fonts: {
sans: "Inter:400,500,600",
mono: "JetBrains Mono:400",
},
}),
],
theme: {
colors: {
// Linnet palette: calm neutral base, accent tones per affect
bg: "#0f1117",
surface: "#1a1d27",
border: "#2a2d3a",
muted: "#6b7280",
text: "#e2e8f0",
accent: "#7c6af7", // Linnet purple
// Tone affect colours
warm: "#f59e0b",
frustrated: "#ef4444",
confused: "#f97316",
apologetic: "#60a5fa",
scripted: "#9ca3af",
genuine: "#34d399",
dismissive: "#a78bfa",
neutral: "#6b7280",
urgent: "#fbbf24",
tired: "#94a3b8",
},
},
});