Commit Graph

8 Commits

Author SHA1 Message Date
hailin d4925719fc feat(multimodal): add file upload and image support for chat
- Add MinIO object storage to docker-compose infrastructure
- Create file-service microservice for upload management with presigned URLs
- Add files table to database schema
- Update nginx and Kong for MinIO proxy routes
- Implement file upload UI in chat InputArea with drag-and-drop
- Add attachment preview in MessageBubble component
- Update conversation-service to handle multimodal messages
- Add Claude Vision API integration for image analysis

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 05:34:41 -08:00
hailin 141b45bec2 chore(db): sync init-db.sql with complete postgres schema
Sync scripts/init-db.sql with infrastructure/docker/services/postgres/init.sql
to include all required database columns:
- users: fingerprint, nickname columns for anonymous auth support
- conversations: ended_at column for tracking conversation end time
- messages: type enum column (USER, ASSISTANT, SYSTEM)

This ensures the schema files are consistent and include all columns
needed by the application entities.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 21:15:53 -08:00
hailin f06e6ee76e feat(scripts): add unified deployment management script
Commands:
- start/stop/restart/status - service lifecycle
- logs - view service logs
- build/pull - build and deploy
- health - health check all services
- kong - Kong routes/services/plugins management
- db - PostgreSQL/Redis/Neo4j access and backup
- clean - cleanup images/volumes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 19:45:47 -08:00
hailin fd4f23accc refactor: move Kong config to kong/ directory
Organize infrastructure configs properly:
- nginx/ for Nginx configuration
- kong/ for Kong configuration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 19:34:04 -08:00
hailin 2512848d6c refactor(kong): consolidate Kong configuration into single init script
- Update init-kong.sh with complete service/route configuration
- Add CORS plugin configuration with all required headers
- Add timeout settings (120s for conversation-service)
- Simplify docker-compose kong-init to use the script
- Add kong-migrations service for database bootstrap

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 19:27:26 -08:00
hailin 572796f753 feat(kong): add Kong API gateway initialization script
Configures routes for all microservices:
- user-service: /api/v1/users, /api/v1/auth
- payment-service: /api/v1/payments, /api/v1/subscriptions
- knowledge-service: /api/v1/knowledge
- conversation-service: /api/v1/conversations, /api/v1/messages
- evolution-service: /api/v1/evolution

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 19:24:31 -08:00
hailin 885e84f823 fix: 修复管理员默认密码哈希
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 07:58:04 -08:00
hailin a7add8ff90 Initial commit: iConsulting 香港移民咨询智能客服系统
项目架构:
- Monorepo (pnpm + Turborepo)
- 后端: NestJS 微服务 + Claude Agent SDK
- 前端: React + Vite + Ant Design

包含服务:
- conversation-service: 对话服务 (Claude AI)
- user-service: 用户认证服务
- payment-service: 支付服务 (支付宝/微信/Stripe)
- knowledge-service: 知识库服务 (RAG + Neo4j)
- evolution-service: 自我进化服务
- web-client: 用户前端
- admin-client: 管理后台

基础设施:
- PostgreSQL + Redis + Neo4j
- Kong API Gateway
- Nginx 反向代理
- Docker Compose 部署配置

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 00:01:12 -08:00