cc-dashboard/src
Vadym Samoilenko 2533f4b046 feat: AI assistant chat widget + session categories + anomaly detection
- Migration 0005: sessions.category, manual_entries.category, ai_flags table, assistant_messages table
- AiFlag + AssistantMessage ORM models added to models.py
- src/services/assistant.py: gap detection (>30min gaps, low active/wall ratio, uncategorized sessions, long days), Anthropic tool_use loop with 7 tools (get_daily_summary, get_sessions, get_project_stats, detect_anomalies, create_manual_entry, set_session_category, get_unresolved_flags)
- src/routers/assistant.py: POST /api/assistant/chat (SSE streaming), GET/DELETE /history, GET /flags, POST /flags/scan, PATCH /flags/:id/resolve, PATCH /sessions/:id/category
- APScheduler: hourly anomaly scan for all users, persists AiFlag records
- AssistantWidget.vue: floating bottom-right chat panel, streaming SSE rendering, quick-hint chips, tool activity indicators, red badge for unresolved flags, markdown rendering, clear history

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 18:59:51 +01:00
..
middleware feat: corporate planning hub backend — tasks, calendar, ADO, AI reports 2026-05-06 18:44:26 +01:00
routers feat: AI assistant chat widget + session categories + anomaly detection 2026-05-06 18:59:51 +01:00
services feat: AI assistant chat widget + session categories + anomaly detection 2026-05-06 18:59:51 +01:00
static feat: dashboard preset filters (Today/7d/30d), live feed loads today sessions on mount 2026-03-26 15:33:52 +00:00
tests feat: corporate planning hub backend — tasks, calendar, ADO, AI reports 2026-05-06 18:44:26 +01:00
__init__.py Initial commit — CC Dashboard v1.0 2026-03-26 12:54:47 +00:00
auth.py fix: eager load ApiKey.user with selectinload to avoid lazy load in async context 2026-03-26 14:46:14 +00:00
config.py feat: corporate planning hub backend — tasks, calendar, ADO, AI reports 2026-05-06 18:44:26 +01:00
database.py Initial commit — CC Dashboard v1.0 2026-03-26 12:54:47 +00:00
main.py feat: AI assistant chat widget + session categories + anomaly detection 2026-05-06 18:59:51 +01:00
models.py feat: AI assistant chat widget + session categories + anomaly detection 2026-05-06 18:59:51 +01:00
schemas.py feat: AI assistant chat widget + session categories + anomaly detection 2026-05-06 18:59:51 +01:00