diligence/backend/app/services
Claude f2954af400 Fix: ai_provider reads actual DB schema (config_key/config_value rows)
Root cause: ai_provider.py assumed a single JSON blob in an
'encrypted_value' column, but IntegrationConfig stores each credential
as a separate row with config_key + config_value columns.

Fixes:
- Query groups rows by provider, decrypts each config_value separately
- Correct decrypt_value(secret_key, ciphertext) argument order
- Filter by user_id so providers are per-user
- Callers (ai_chat.py, chat()) now pass user_id through
2026-06-22 00:27:19 +00:00
..
__init__.py Initial commit: full fitness-rewards app 2026-03-14 23:53:00 +00:00
ai_provider.py Fix: ai_provider reads actual DB schema (config_key/config_value rows) 2026-06-22 00:27:19 +00:00
crawl_scheduler.py v2: Program research, Groq extraction, and workout tracking (REVIEW — not deployed) 2026-04-03 16:22:53 +00:00
crypto.py Deliver Step 1: Backend cleanup — secrets scrubbed, is_admin column, Telegram optional, crypto service, v4-v7 migrations, .env.example, setup.sh 2026-06-15 14:29:53 +00:00
device_sync_base.py Stream B: Device sync base class + provider registry (already committed) 2026-06-21 23:16:58 +00:00
food_lookup.py Deliver Step 1: Backend cleanup — secrets scrubbed, is_admin column, Telegram optional, crypto service, v4-v7 migrations, .env.example, setup.sh 2026-06-15 14:29:53 +00:00
points_engine.py Feature: clickable program bar on Dashboard + program workout shortcut on Log page 2026-04-09 16:06:38 +00:00
polar_sync.py Fix: add future annotations to all files, fix date field name shadowing type in RewardRedeemRequest 2026-03-15 00:42:13 +00:00
program_research.py Add PHUL and Darebee Foundation Light to known program sources 2026-04-03 16:53:23 +00:00
provider_registry.py Stream C: Multi-provider AI coaching backend + 20-provider registry 2026-06-21 23:16:17 +00:00
resource_matcher.py Feature: expanded equipment, integration-aware sync, tooltips 2026-03-15 22:16:55 +00:00
strava_sync.py Fix: add future annotations to all files, fix date field name shadowing type in RewardRedeemRequest 2026-03-15 00:42:13 +00:00
usda_lookup.py Deliver Step 9: agent-card.json, SKILL.md, USDA lookup, integrations dynamic config, Welcome/Integrations/MealPlan pages, API methods, README, routes 2026-06-15 14:40:34 +00:00