Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@SamSaffron
Copy link
Member

@SamSaffron SamSaffron commented Nov 29, 2024

Add support for versioned artifacts with improved diff handling

  • Add versioned artifacts support allowing artifacts to be updated and tracked

    • New ai_artifact_versions table to store version history
    • Support for updating artifacts through a new UpdateArtifact tool
    • Add version-aware artifact rendering in posts
    • Include change descriptions for version tracking
  • Enhance artifact rendering and security

    • Add support for module-type scripts and external JS dependencies
    • Expand CSP to allow trusted CDN sources (unpkg, cdnjs, jsdelivr, googleapis)
    • Improve JavaScript handling in artifacts
  • Implement robust diff handling system (this is dormant but ready to use once LLMs catch up)

    • Add new DiffUtils module for applying changes to artifacts
    • Support for unified diff format with multiple hunks
    • Intelligent handling of whitespace and line endings
    • Comprehensive error handling for diff operations
  • Update routes and UI components

    • Add versioned artifact routes
    • Update markdown processing for versioned artifacts

Also

  • Tweaks summary prompt
  • Improves upload support in custom tool to also provide urls

@SamSaffron SamSaffron changed the title FEATURE: provide upload URL to tool (in addition to short url) FEATURE: allow artifacts to be updated Dec 1, 2024
@SamSaffron SamSaffron merged commit 117c062 into main Dec 2, 2024
6 checks passed
@SamSaffron SamSaffron deleted the various-fixes-10 branch December 2, 2024 20:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants