feat(meal-planner): structured output for get_meal_plan (v0.10.1)

- Map mplistinterval response to clean JSON list (id, date, type, name,
  recipe_id, can_update, can_delete) — no more raw dump
- SPEC.md: document verified mplistinterval response structure
- Fix two pre-existing ruff SIM warnings (SIM102, SIM105)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-17 11:13:22 +02:00
parent 500ad278a4
commit a7b21c1ede
7 changed files with 68 additions and 21 deletions
+2 -4
View File
@@ -159,10 +159,8 @@ def build_create_params(
params["recipe.serves"] = str(serves)
if url is not None:
params["recipe.url"] = url
if category_ids is not None:
# For create: empty list just means no categories (don't send parameter).
if len(category_ids) > 0:
params["recipe.recipeCategoryIdList"] = category_ids
if category_ids is not None and len(category_ids) > 0:
params["recipe.recipeCategoryIdList"] = category_ids
return params