refactor: large codebase cleanup - consolidate schemas, migrate to Drizzle ORM, extract frontend components, modernize Docker builds
Build & Deploy / build-and-push (discord-gateway) (push) Failing after 2m22s
Build & Deploy / build-and-push (backend) (push) Failing after 3m22s
Build & Deploy / build-and-push (proxy) (push) Successful in 1m36s
Build & Deploy / deploy (push) Skipped

- Consolidate all DB schema definitions into packages/shared as single source of truth
- Migrate backend from raw SQL to Drizzle ORM across all modules
- Extract frontend inline UI into separate component files
- Refactor discord-gateway circuitBreaker into conversationState + moderationState
- Convert messageStore to Proxy singleton pattern
- Add validateBody/validateQuery middleware + Zod schemas for API endpoints
- Modernize Docker builds with multi-stage + pnpm deploy
- Migrate CI/CD from deployment to image-based pipeline
- Remove 60+ unused/dead files (~15K lines)
- Update color scheme from sky-blue to teal-cyan
- Move DB connection management to @bete/shared/database

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Developer
2026-07-27 21:54:31 +07:00
co-authored by Claude Opus 4.8
parent 63f21513bd
commit 5802d02e29
223 changed files with 11499 additions and 13350 deletions
+8 -7
View File
@@ -29,6 +29,9 @@ importers:
drizzle-orm:
specifier: ^0.45.2
version: 0.45.2(@opentelemetry/api@1.9.1)(@types/pg@8.20.0)(pg@8.21.0)
pg:
specifier: ^8.13.0
version: 8.21.0
pino:
specifier: ^9.0.0
version: 9.14.0
@@ -39,6 +42,9 @@ importers:
'@types/node':
specifier: ^25.9.0
version: 25.9.0
'@types/pg':
specifier: ^8.11.0
version: 8.20.0
pino-pretty:
specifier: ^13.1.3
version: 13.1.3
@@ -3977,9 +3983,6 @@ packages:
peerDependencies:
pg: '>=8.0'
pg-protocol@1.13.0:
resolution: {integrity: sha512-zzdvXfS6v89r6v7OcFCHfHlyG/wvry1ALxZo4LqgUoy7W9xhBDMaqOuMiF3qEV45VqsN6rdlcehHrfDtlCPc8w==}
pg-protocol@1.14.0:
resolution: {integrity: sha512-n5taZ1kO3s9ngDTVxsEznOqCyToTgz0FLuPq0B33COy5pPpuWJpY3/2oRBVETuOgzdqRXfWpM9HIhp2LBBT1BA==}
@@ -6546,8 +6549,8 @@ snapshots:
'@types/pg@8.20.0':
dependencies:
'@types/node': 25.8.0
pg-protocol: 1.13.0
'@types/node': 25.9.0
pg-protocol: 1.14.0
pg-types: 2.2.0
'@types/qs@6.15.1': {}
@@ -8130,8 +8133,6 @@ snapshots:
dependencies:
pg: 8.21.0
pg-protocol@1.13.0: {}
pg-protocol@1.14.0: {}
pg-types@2.2.0: