refactor chat delivery to graphql + hatchet services

This commit is contained in:
Ruslan Bakiev
2026-03-08 18:55:58 +07:00
parent fe4bd59248
commit 7d1bed0d67
61 changed files with 5007 additions and 5004 deletions

View File

@@ -2,10 +2,9 @@
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
CANONICAL_SCHEMA="$ROOT_DIR/frontend/prisma/schema.prisma"
CANONICAL_SCHEMA="$ROOT_DIR/Frontend/prisma/schema.prisma"
TARGETS=(
"$ROOT_DIR/omni_chat/prisma/schema.prisma"
"$ROOT_DIR/omni_outbound/prisma/schema.prisma"
"$ROOT_DIR/backend/prisma/schema.prisma"
)
if [[ ! -f "$CANONICAL_SCHEMA" ]]; then
@@ -33,7 +32,7 @@ done
# Enforce one rollout point for schema changes:
# only frontend is allowed to run db push/migration commands.
if rg -n "prisma (db push|migrate|migrate deploy|migrate dev)" \
"$ROOT_DIR/omni_chat" "$ROOT_DIR/omni_outbound" \
"$ROOT_DIR/backend" \
--glob '!**/node_modules/**' \
--glob '!**/package-lock.json' \
--glob '!**/README.md' > /tmp/prisma_non_frontend_migrations.txt; then
@@ -41,7 +40,7 @@ if rg -n "prisma (db push|migrate|migrate deploy|migrate dev)" \
cat /tmp/prisma_non_frontend_migrations.txt >&2
status=1
else
echo "[prisma-check] OK: no migration/db push commands in omni services"
echo "[prisma-check] OK: no migration/db push commands in backend service"
fi
if [[ "$status" -ne 0 ]]; then

View File

@@ -2,10 +2,9 @@
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
CANONICAL_SCHEMA="$ROOT_DIR/frontend/prisma/schema.prisma"
CANONICAL_SCHEMA="$ROOT_DIR/Frontend/prisma/schema.prisma"
TARGETS=(
"$ROOT_DIR/omni_chat/prisma/schema.prisma"
"$ROOT_DIR/omni_outbound/prisma/schema.prisma"
"$ROOT_DIR/backend/prisma/schema.prisma"
)
if [[ ! -f "$CANONICAL_SCHEMA" ]]; then