No description
Find a file
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
.claude feat: project metadata fields (client, job#, repo) with inline editing + time calc audit 2026-03-26 15:08:14 +00:00
.github/workflows feat: corporate planning hub backend — tasks, calendar, ADO, AI reports 2026-05-06 18:44:26 +01:00
alembic feat: AI assistant chat widget + session categories + anomaly detection 2026-05-06 18:59:51 +01:00
scripts Initial commit — CC Dashboard v1.0 2026-03-26 12:54:47 +00:00
src feat: AI assistant chat widget + session categories + anomaly detection 2026-05-06 18:59:51 +01:00
web feat: AI assistant chat widget + session categories + anomaly detection 2026-05-06 18:59:51 +01:00
.dockerignore add .dockerignore to exclude __pycache__ from image 2026-03-26 13:02:16 +00:00
.env.example fix: consistent wall-clock hours across all dashboard endpoints 2026-05-06 18:45:04 +01:00
.gitignore Initial commit — CC Dashboard v1.0 2026-03-26 12:54:47 +00:00
.pre-commit-config.yaml feat: corporate planning hub backend — tasks, calendar, ADO, AI reports 2026-05-06 18:44:26 +01:00
apache.conf Initial commit — CC Dashboard v1.0 2026-03-26 12:54:47 +00:00
deploy.sh fix: correct static file layout for Apache Alias serving 2026-03-26 13:57:33 +00:00
docker-compose.yml Initial commit — CC Dashboard v1.0 2026-03-26 12:54:47 +00:00
Dockerfile fix: alembic config path in Dockerfile CMD 2026-03-26 12:59:10 +00:00
pyproject.toml feat: corporate planning hub backend — tasks, calendar, ADO, AI reports 2026-05-06 18:44:26 +01:00
requirements.txt fix: add pytest/pytest-asyncio/aiosqlite to requirements for test suite 2026-05-06 18:47:20 +01:00