e047d884b6
Backend (uv): FastAPI app with routers (foods, log, targets, OFF proxy), SQLAlchemy models, Pydantic schemas, migration runner + 0001 initial schema, example pytest suite (7 tests). Frontend (npm): Vite 7 + Svelte 5 runes, lib/ (api, stores, scanner, format) per spec §7, placeholder components, example vitest suite (4 tests). SPEC.md §1: registered uvicorn and Vitest (rule §8.3.3).
8 lines
267 B
Python
8 lines
267 B
Python
"""Meal business logic: composition, recursion, cycle detection (spec §2.2).
|
|
|
|
Multi-write operations here own their transactions (spec §8.1 rule 6):
|
|
commit once at the end or roll back entirely.
|
|
|
|
TODO: from-log, unpack, component replacement with cycle checks.
|
|
"""
|