Some checks are pending
CI / validate (push) Waiting to run
cards-api akzeptiert jetzt zwei Auth-Quellen:
1. Authorization: Bearer <jwt> — JWT aus mana-auth, gegen
/api/auth/jwks gecached, sub→userId
2. X-User-Id: <uuid> — Dev-Stub, bleibt aktiv
Schalter: CARDS_AUTH_DEV_STUB=false deaktiviert den Dev-Stub
hart (für die spätere Phase-10b-Cutover-Stufe). Default behält
beide Pfade — Tests + Anki-Importer + Sprint-9-User-Smokes
laufen unverändert weiter.
Cards-App ist heute in mana-auth (auth.mana.how) registriert
(app_id='cards', ownership_kind='verein', status='active'),
Service-Key generiert + per direktem DB-Insert in
auth.app_service_keys gelegt (Migrations-Tabellen waren in
prod-DB noch nicht angewendet, jetzt nachgezogen).
56 API-Tests grün, jose als neue Dependency.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
34 lines
969 B
JSON
34 lines
969 B
JSON
{
|
|
"name": "@cards/api",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "Cards-API — Hono+Bun-Backend für die Greenfield-Cards-App. Spricht mana-Plattform-Services über HTTP.",
|
|
"scripts": {
|
|
"dev": "bun run --hot src/index.ts",
|
|
"start": "bun run src/index.ts",
|
|
"build": "tsc -p tsconfig.json --noEmit",
|
|
"type-check": "tsc -p tsconfig.json --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"lint": "echo 'lint configured later (eslint flat-config)'",
|
|
"clean": "rm -rf dist .turbo coverage",
|
|
"drizzle:generate": "drizzle-kit generate",
|
|
"drizzle:push": "drizzle-kit push --force",
|
|
"drizzle:studio": "drizzle-kit studio"
|
|
},
|
|
"dependencies": {
|
|
"@cards/domain": "workspace:*",
|
|
"drizzle-orm": "0.38",
|
|
"hono": "^4.6.0",
|
|
"jose": "^6.2.3",
|
|
"minio": "^8.0.7",
|
|
"postgres": "^3.4.0",
|
|
"zod": "3",
|
|
"zod-to-json-schema": "^3.23.0"
|
|
},
|
|
"devDependencies": {
|
|
"drizzle-kit": "0.30",
|
|
"vitest": "^2.1.0"
|
|
}
|
|
}
|