feat(recipe-generation): scale-batch.ts för Fas A Steg 2 (~200 verified)

- 8 batchar om ~27 recept = ~216 mål
- Budgetguard med pause vid 90 %
- DB-dedup mot recipes.titleSv + session-dedup
- Seed verified till staging DB (recipes, recipeIngredients, recipeSteps)
- Stickprov ~15 % per batch med flaggning
- scale-batch.sh wrapper för Node IPv4-workaround
- Lade till ./client export i @app/database
- Lade till dotenv i @app/recipe-generation deps

Relaterat till docs/32-receptkatalog-buildout.md
This commit is contained in:
Sven (AAMOS AI)
2026-08-09 22:03:55 +07:00
parent 0ae42a15b2
commit 84f8ff3c45
5 changed files with 697 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
# scale-batch.sh wrapper som sätter IPv4-preferens (workaround för Node fetch-häng på WSL+IPv6)
set -e
cd "$(dirname "$0")/.."
export NODE_OPTIONS="${NODE_OPTIONS:---dns-result-order=ipv4first}"
export AAMOS_MODE=gemini
export GEMINI_MODEL=gemini-2.5-flash
export GEMINI_TIMEOUT_MS=180000
# GEMINI_API_KEY och GEMINI_DAILY_BUDGET_USD måste sättas utanför
pnpm tsx packages/recipe-generation/scripts/scale-batch.ts "$@"