Files
Cibello-app/apps/worker/package.json
T
Sven (AAMOS AI) 050c958285 feat(gemini): Skiva 1 – Gemini 2.5 Flash som lärar-tier för kylskåpsskanning
- Gemini-adapter bakom AamosClient-interface (AAMOS_MODE=gemini)
- Serversida/worker: hämtar bild, anropar Gemini, mappar mot canonical_ingredients
- Kostnad/tokens bokförs i ai_usage_counters; global dagsbudget via BudgetStore
- Redis-backed budget i worker, in-memory i tester
- Migration 0019: ai_cost_usd_microcents
- Hermetiska tester med inspelad fixture; separat pnpm eval:scan
- docs/09 uppdaterad ärligt: AAMOS-status, Gemini-flöde, säkerhet/kostnad
- REQUIRE_REAL=1 stödjer AAMOS_MODE=gemini; deploy-grind uppdaterad
2026-08-08 03:30:59 +07:00

52 lines
1.5 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"name": "@app/worker",
"version": "0.1.0",
"private": true,
"type": "module",
"description": "Worker asynkrona jobb: bildanalys via AAMOS, kvitton, veckoplan, minne, notiser, subscriptions (spec §54)",
"scripts": {
"dev": "tsx watch src/index.ts",
"start": "node dist/index.js",
"build": "tsup src/index.ts --format esm --target node22 --sourcemap --clean",
"typecheck": "tsc --noEmit",
"test": "vitest run --passWithNoTests",
"eval": "tsx src/eval/run.ts",
"eval:scan": "tsx src/eval/scan-eval.ts"
},
"dependencies": {
"@app/ai-contracts": "workspace:*",
"@app/database": "workspace:*",
"@app/events": "workspace:*",
"@app/inventory-engine": "workspace:*",
"@app/memory-client": "workspace:*",
"@app/nutrition-engine": "workspace:*",
"@app/recipe-engine": "workspace:*",
"@app/recommendation-engine": "workspace:*",
"@app/shared-types": "workspace:*",
"@app/subscriptions": "workspace:*",
"bullmq": "^6.0.0",
"dotenv": "^16.4.0",
"drizzle-orm": "^0.45.0",
"ioredis": "^6.0.0",
"pg": "^8.13.0"
},
"devDependencies": {
"@types/pg": "^8.11.0",
"tsup": "^8.3.0"
},
"tsup": {
"noExternal": [
"@app/ai-contracts",
"@app/database",
"@app/events",
"@app/inventory-engine",
"@app/memory-client",
"@app/nutrition-engine",
"@app/recipe-engine",
"@app/recommendation-engine",
"@app/shared-types",
"@app/subscriptions"
]
}
}