mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-03-26 07:13:09 +00:00
Add support for uploading Markdown, Text, Word (.docx), CSV, Excel (.xlsx), PDF, and PowerPoint (.pptx) files in addition to existing JPEG/PNG image uploads in the spec creation and project expansion chat interfaces. Backend changes: - New server/utils/document_extraction.py: in-memory text extraction for all document formats using python-docx, openpyxl, PyPDF2, python-pptx (no disk persistence) - Rename ImageAttachment to FileAttachment across schemas, routers, and chat session services - Add build_attachment_content_blocks() helper in chat_constants.py to route images as image content blocks and documents as extracted text blocks - Separate size limits: 5MB for images, 20MB for documents - Handle extraction errors (corrupt files, encrypted PDFs) gracefully Frontend changes: - Widen accepted MIME types and file extensions in both chat components - Add resolveMimeType() fallback for browsers that don't set MIME on .md files - Document attachments display with FileText icon instead of image thumbnail - ChatMessage renders documents as compact pills with filename and size - Update help text from "attach images" to "attach files" Dependencies added: python-docx, openpyxl, PyPDF2, python-pptx Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
23 lines
416 B
Plaintext
23 lines
416 B
Plaintext
claude-agent-sdk>=0.1.39,<0.2.0
|
|
python-dotenv>=1.0.0
|
|
sqlalchemy>=2.0.0
|
|
fastapi>=0.115.0
|
|
uvicorn[standard]>=0.32.0
|
|
websockets>=13.0
|
|
python-multipart>=0.0.17
|
|
psutil>=6.0.0
|
|
aiofiles>=24.0.0
|
|
apscheduler>=3.10.0,<4.0.0
|
|
pywinpty>=2.0.0; sys_platform == "win32"
|
|
pyyaml>=6.0.0
|
|
python-docx>=1.1.0
|
|
openpyxl>=3.1.0
|
|
PyPDF2>=3.0.0
|
|
python-pptx>=1.0.0
|
|
|
|
# Dev dependencies
|
|
ruff>=0.8.0
|
|
mypy>=1.13.0
|
|
pytest>=8.0.0
|
|
types-PyYAML>=6.0.0
|