fix(api,ci): remove type-only imports for DI and isolate CI ports from dev

- Remove `type` keyword from NestJS injectable class imports across all
  modules to fix runtime DI resolution (330+ handler/listener files)
- Offset CI docker-compose ports (5433/6380/8109/9002) to avoid
  conflicts with running dev containers
- Update .env.test, playwright.config.ts, and e2e workflow to use
  isolated CI ports with configurable overrides
- Fix prisma/seed.ts to use deterministic IDs for Prisma 7 upsert
  compatibility (phoneHash replaced phone as unique index)
- Add dedicated Docker bridge network for CI service containers

Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ho Ngoc Hai
2026-04-13 01:40:14 +07:00
parent 1617921993
commit 25420720e7
345 changed files with 3266 additions and 924 deletions

View File

@@ -1,8 +1,8 @@
import { McpModule as McpCoreModule, type McpRegistryService } from '@goodgo/mcp-servers';
import { Module, type OnModuleInit } from '@nestjs/common';
import { McpModule as McpCoreModule, McpRegistryService } from '@goodgo/mcp-servers';
import { Module, OnModuleInit } from '@nestjs/common';
import { AuthModule } from '@modules/auth';
import { SearchModule, type TypesenseClientService } from '@modules/search';
import { type LoggerService } from '@modules/shared';
import { SearchModule, TypesenseClientService } from '@modules/search';
import { LoggerService } from '@modules/shared';
import { McpTransportController } from './presentation/mcp-transport.controller';
@Module({

View File

@@ -1,4 +1,4 @@
import { SSEServerTransport, type McpRegistryService } from '@goodgo/mcp-servers';
import { SSEServerTransport, McpRegistryService } from '@goodgo/mcp-servers';
import {
Controller,
Get,
@@ -12,8 +12,8 @@ import {
} from '@nestjs/common';
import { ApiBearerAuth, ApiOperation, ApiParam, ApiResponse, ApiTags } from '@nestjs/swagger';
import { Throttle } from '@nestjs/throttler';
import { type Request, type Response } from 'express';
import { JwtAuthGuard, CurrentUser, type JwtPayload } from '@modules/auth';
import { Request, Response } from 'express';
import { JwtAuthGuard, CurrentUser, JwtPayload } from '@modules/auth';
@ApiTags('mcp')
@ApiBearerAuth('JWT')