Files
mashu b859c7a777 feat: add PPTX/Word file upload and parsing support
- Add document-parser.js module for parsing PPTX and Word documents
  * Word parsing using mammoth library (extracts text + images)
  * PPTX parsing using jszip (extracts slide text + media images)
  * Automatic extraction of text to .txt files
  * Automatic extraction of embedded images
  * File validation (type and 10MB size limit)

- Update server.js upload endpoint to automatically parse documents
  * Detect document files by extension
  * Extract and save text content as separate file
  * Extract and save all embedded images
  * Graceful fallback if parsing fails

- Update ChatComposer.tsx to accept document uploads
  * Add accept attribute for .docx, .doc, .pptx, .ppt files
  * Add looksLikeDocument() helper function
  * Log document processing feedback to console

- Update projects.js with document MIME types and kind
  * Add MIME types for Word/PPTX files
  * Add 'document' kind bucket for file classification

- Add dependencies: mammoth, jszip, pizzip

Closes #42
2026-04-29 16:37:40 +08:00
..
2026-04-28 16:28:19 +08:00