Junzhe/feature/legal adeu integration#269
Merged
rafchen merged 9 commits intofeature/template-logicfrom Apr 6, 2026
Merged
Conversation
- Add Python schemas package with Pydantic models for document edits, review actions, and batch processing - Create ADEU schema definitions for DocumentEdit, ReviewAction, and related request/response types - Add TypeScript client library with service interface and error handling classes - Create TypeScript type definitions matching Python schema structure for type safety - Update sidecar requirements to include pydantic and adeu dependencies - Organize ML dependencies with comments for clarity - Establish foundation for document batch processing and review workflows
- Add Adeu pip package installation (v0.9.0) in separate Docker layer for independent caching - Create new /adeu/* route module with endpoints for reading, editing, and processing DOCX files - Implement POST /adeu/read endpoint to extract text from DOCX with clean view option - Implement POST /adeu/process-batch endpoint to apply edits and review actions in single request - Implement POST /adeu/accept-all endpoint to accept all changes and return clean DOCX - Implement POST /adeu/reject-all endpoint to reject all changes and return clean DOCX - Implement POST /adeu/diff endpoint to generate edit suggestions from text comparison - Implement POST /adeu/apply-edits-markdown endpoint to apply edits to markdown representation - Add Adeu schemas module with request/response models for type validation - Update main.py to register adeu router and include Adeu availability in health check - Enables document editing and change tracking workflows through unified API
- Add ADEU_SERVICE_URL environment variable configuration with Docker, local, and Vercel deployment options - Update .vercelignore to exclude sidecar directory due to ML dependency size constraints - Fix TypeScript type safety in modifyDocument tests with proper error type casting and unknown error handling - Correct Blob initialization in adapter tests using Uint8Array wrapper for buffer compatibility - Add test automation scripts for ADEU LLM loop testing and sidecar process management - Include comprehensive test output and logging for ADEU service validation - Update Docker Compose and Vercel configuration for improved service orchestration
- Update test execution timestamps to reflect latest test run (2026-04-05T20:48:43.125Z) - Refine investor name target text matching to improve accuracy in document edits - Add apply_edits tool call in LLM response to consolidate multiple edit operations - Generate safe-modified DOCX output file from test execution - Streamline iteration flow by consolidating edit operations in single tool call
Implements GitHub issue #266 by connecting the legal pipeline editing layer to Kien's Adeu DOCX redlining service. Changes: - Created /api/legal/apply-edits endpoint with Clerk auth and Zod validation - Enhanced LegalDocumentEditor with Track Changes button and multi-step toast notifications - Added comprehensive error handling with user-friendly messages - Implemented 18 unit tests covering auth, validation, integration, errors, and edge cases - Merged PR #260 (Adeu DOCX redlining integration)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Integrates Adeu DOCX redlining service with the legal document editor, enabling users to apply edits with Track Changes directly in the UI. This creates a seamless workflow for legal document review and editing with full audit trails.
Closes #266
Changes
/api/legal/apply-editsendpoint with Clerk authentication and Zod validationLegalDocumentEditorwith "Track Changes" button and real-time progress feedbackHow to Test
cd sidecar && python -m uvicorn app.main:app --reload/employer/documentsnpx jest __tests__/api/legal/apply-edits.test.ts(should show 18/18 passing)Checklist
junzhe/feature/legal-adeu-integrationfeat: Integrate Adeu DOCX redlining (#266))