1{ 2 "name": "@factory/database-client", 3 "version": "0.1.0", 4 "private": true, 5 "type": "module", 6 "description": "TASK-0135 multi-client Postgres routing (prisma/clients.ts per the phase-15 spec): writes + permission/version reads go to the PRIMARY; tree/listing/search reads go to the READER (replica when DATABASE_REPLICA_URL is set, primary otherwise — single-node dev/CI fallback).", 7 "main": "./src/index.ts", 8 "types": "./src/index.ts", 9 "exports": { 10 ".": { 11 "types": "./src/index.ts", 12 "default": "./src/index.ts" 13 } 14 }, 15 "scripts": { 16 "typecheck": "tsc --noEmit", 17 "test": "vitest run" 18 }, 19 "dependencies": { 20 "@prisma/client": "^6.19.3" 21 }, 22 "devDependencies": { 23 "@types/node": "^20.14.0", 24 "typescript": "^5.6.0", 25 "vitest": "^2.1.9", 26 "zod": "^3.23.8" 27 } 28} 29