Commit Graph

14 Commits

Author SHA1 Message Date
yuqei 278bc28416 fix: fallback chat history when ai config missing 2026-06-21 19:15:21 +08:00
yuqei a89f4c7050 Refactor contract platform workflows and UI 2026-06-21 17:51:34 +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 1eae603c0f feat: refine core pc review and generation flows
- improve workspace and review entry UX for uploaded contracts
- stabilize shared AI Docker/frontend delivery path
- adapt shared AI generation to structured JSON responses

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-05 15:26:31 +08:00
yuqei e423063940 Fix chat stream product e2e blockers 2026-05-24 23:14:23 +08:00
yuqei 3df85fdb04 feat: land phase15 legal docs and commercial ops
Includes legal document generation workflows, prompt governance runtime wiring, legal change impact scans, operation KPI dashboards, invoice files, sales follow-up events, mobile review polish, deployment automation, and updated project docs.
2026-05-21 14:42:44 +08:00
yuqei fa23b7e295 fix: honor shared ai api prefix 2026-05-20 11:39:18 +08:00
yuqei 95616c03d2 feat: add knowledge base publish chain bridge 2026-05-15 13:08:37 +08:00
yuqei c818cdb7b9 fix: sort knowledge bases by recency 2026-05-14 07:58:24 +08:00
yuqei f71b830683 feat: add knowledge source metadata fields 2026-05-13 23:54:28 +08:00
yuqei 6239f0992d feat: checkpoint contract assistant delivery phases 2026-05-13 09:11:15 +08:00
yuqei 9cba33c976 feat: close shared-ai-platform-java integration and decommission 8012 path 2026-05-06 22:40:03 +08:00
Codex e8815476e2 fix: close dev action report gaps 2026-05-03 19:09:26 +08:00