- Split llmModerationClient.ts (2170 lines) into 5 focused sub-modules - Split aiAnalyzer.ts (1282 lines) into 4 modular pipelines - Split messages.db.ts (826 lines) into 5 domain-specific modules - Moved shared schema to @bete/shared, eliminated backend duplication - Added createChildLogger to all voice-recording and AI moderation modules - Extracted tryCommandThenFallback, normalizeMediaState, DEFAULT_VOICE_STATUS - Created shared pagination.ts utility, eliminated 5+ cursor-pagination duplications - Created shared messageMapper.ts for row mapping - Standardized backend error handling with asyncHandler - Added frontend createLogger utility and useAsyncAction hook - Added structured logging to frontend hooks, socket, and API client Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
31 lines
758 B
JSON
31 lines
758 B
JSON
{
|
|
"name": "@bete/shared",
|
|
"version": "1.0.0",
|
|
"description": "Shared utilities, types, and errors for Bete microservices",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
".": "./dist/index.js",
|
|
"./config": "./dist/config/index.js",
|
|
"./database/schema": "./dist/database/schema.js",
|
|
"./errors": "./dist/errors/index.js",
|
|
"./logger": "./dist/logger/index.js",
|
|
"./utils": "./dist/utils/index.js"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"drizzle-orm": "^0.45.2",
|
|
"pino": "^9.0.0",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.9.0",
|
|
"pino-pretty": "^13.1.3",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|