9a9f8a6a3c
- Utöka GeminiAamosClient med ANALYZE_MEAL_IMAGE, READ_NUTRITION_LABEL, READ_EXPIRY_DATE och READ_RECEIPT (vision-prompts mot kontraktsscheman). - Lägg till apps/worker/src/lib/shadow-capture.ts: S3/local fallback, imageTraining-gating, ingen PII, aldrig faila användarvägen. - Integrera capture i scan-processorn efter lyckad runTask med consentFlags. - Lägg till @aws-sdk/client-s3 i worker samt eval:capture-skript. - Uppdatera eval:scan till Wikimedia Special:FilePath + redirect-following. - Exkludera .terraform i brand-guard för att undvika false positives. - Uppdatera gemini-test för DEDUPLICATE_INVENTORY som unsupported.
57 lines
1.7 KiB
JSON
57 lines
1.7 KiB
JSON
{
|
||
"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",
|
||
"eval:capture": "tsx src/eval/capture-eval.ts"
|
||
},
|
||
"dependencies": {
|
||
"@app/ai-contracts": "workspace:*",
|
||
"@app/analytics": "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:*",
|
||
"@aws-sdk/client-s3": "^3.750.0",
|
||
"bullmq": "^6.0.0",
|
||
"dotenv": "^16.4.0",
|
||
"drizzle-orm": "^0.45.0",
|
||
"@aws-sdk/client-s3": "^3.750.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/analytics",
|
||
"@app/database",
|
||
"@app/events",
|
||
"@app/inventory-engine",
|
||
"@app/memory-client",
|
||
"@app/nutrition-engine",
|
||
"@app/recipe-engine",
|
||
"@app/recommendation-engine",
|
||
"@app/shared-types",
|
||
"@app/subscriptions"
|
||
]
|
||
}
|
||
}
|