Introduced the XLSX skill and its verification adapter using XlsxWriter, enabling programmatic verification of spreadsheets without rasterization. Updated the verification process to ensure that every formula is stored with its computed result, preventing the need for recalculation during verification. Enhanced the format adapter to handle unregistered suffixes, allowing for broader format support and ensuring that no binary is saved without a receipt. Documentation updated to reflect these changes and clarify the verification process for XLSX artifacts.
Modified the `load_artifact_source` function to return a dictionary containing the `source_path`, `document_id`, and a `save_instruction` for in-place revisions. Updated related documentation and adjusted tests to reflect these changes, ensuring clarity on artifact revision processes across DOCX, PDF, and PPTX skills.
Move shared OOXML safety checks and rendering policies behind format adapters so PPTX can reuse the verification pipeline without inheriting document-only assumptions.
Co-authored-by: Cursor <cursoragent@cursor.com>
- Updated `document_files.role` to include `source` alongside `primary` and `preview`.
- Improved `save_artifact` to require `source_path` for file artifacts and enforce revision rules.
- Added context handling for artifact revisions to prevent duplicate document creation.
- Enhanced error handling and verification checks during artifact saving and revision processes.
- Updated the content disposition logic to serve `application/pdf` files inline while ensuring all other file types are served as attachments.
- Adjusted the handling of MIME types in the document files routes to enhance security against XSS vulnerabilities.
- Modified unit tests to reflect the new content disposition behavior for various MIME types.
- Updated the status of the artifacts overhaul to reflect the completion of Phase 1 and the drafting of subsequent phases.
- Enhanced the file immutability and deletion processes to ensure proper handling of document files during revisions.
- Adjusted the handling of SVG files in the document files routes to ensure they are downloaded as attachments instead of inline.