- Align NEW_PLAN.md db.py example to use @lru_cache(maxsize=1) for both
get_supabase() and get_embedding_model(), matching actual implementation
- Add missing imports (datetime, HTTPException, get_supabase) to
check_ai_limit code example in NEW_PLAN.md
- Add migration to auto-update entry_analysis.updated_at on row modification
via a BEFORE UPDATE trigger
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Move all Python source files into backend/ directory
- Fix db.py: use absolute path (Path(__file__).parent) for chroma_db
so the DB is always found regardless of where the server is launched from
- Fix store.py: guard test entry under if __name__ == "__main__" to
prevent duplicate inserts on every import
- Fix query.py: extract query_entries(question) -> str function and
move interactive loop under __main__ guard so it can be imported
cleanly by FastAPI without blocking on input()
- Add .claude/launch.json with FastAPI dev server configuration
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>