Commit Graph

10 Commits

Author SHA1 Message Date
yuqei b7073d9c5b feat: enhance production deployment configuration and documentation
- Update .env.example with production-ready environment variables
- Add frontend Aliyun deployment configuration with nginx gateway
- Refactor docker-compose.server.yml for external services
- Add comprehensive deployment guide (docs/DEPLOYMENT.md)
- Enhance troubleshooting documentation with Git Bash path issues
- Add deployment scripts (build-frontend.sh, deploy-frontend.sh)
- Add deploy directory with docker-compose and nginx config
- Update .gitignore to exclude temporary directories

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-18 22:27:00 +08:00
yuqei 6d2edc6753 feat: migrate PDF/OCR extraction to shared-ai-platform
Remove all local PDF/OCR extraction and quality gate logic from
review_service.py, replacing it with calls to the shared-ai-platform
document extraction service via the SDK.

Removed from review_service.py:
- 17 local PDF/OCR methods (_extract_text_from_pdf, _classify_pdf_source,
  _extract_text_from_pdf_with_ocr, _extract_text_from_image_with_ocr,
  _evaluate_ocr_quality, _looks_like_platform_review_report, etc.)
- All PDF/OCR constants (PDF_TEXT_PATTERN, PDF_NOISE_LINE_PATTERN,
  REPORT_PDF_MARKERS, OCR_GATE_*, PDF_SOURCE_KIND_*, etc.)
- Imports: pdfplumber, pypdfium2, pytesseract, PIL.Image

Added:
- extract_review_upload_text() now calls shared platform's
  client.extract_document_text() directly
- _detect_upload_type() retained locally for upload validation only
- Protocol methods extract_document_text, classify_pdf_source in client

Removed from requirements.txt: pdfplumber, pytesseract
Added to config: shared_ai_platform_document_extraction_enabled

Also includes prior changes:
- Model settings and chat history stabilization
- Mobile UI polish
- Governance launch-closure enhancements

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 11:09:13 +08:00
yuqei 19ed42c880 feat: add model settings and stabilize chat history 2026-06-10 18:57:22 +08:00
yuqei 803dccfad8 fix: correct PostgreSQL password in docker-compose.server.yml
Database password was incorrect; the host PostgreSQL uses 'postgres'
as the password, not the previous value. This was causing the backend
container to fail on startup (connection to PostgreSQL failed).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 14:01:29 +08:00
yuqei c5dcc7a1cf fix: remove docker postgres service, use native postgresql on host 2026-05-31 19:02:59 +08:00
yuqei 464579e48f feat: close phase15 governance loops 2026-05-21 20:17:38 +08:00
yuqei bf0c0e4de4 chore: remove legacy python shared-ai service from compose 2026-05-06 22:44:22 +08:00
yuqei 9cba33c976 feat: close shared-ai-platform-java integration and decommission 8012 path 2026-05-06 22:40:03 +08:00
Codex dc101585ee chore: enforce production security baseline 2026-05-01 08:57:22 +08:00
chenyuqei 9d02c23751 chore: include pending platform updates 2026-04-30 22:42:10 +08:00