discourse-ai/assets/javascripts/initializers
Sam 117c06220e
FEATURE: allow artifacts to be updated (#980)
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
2024-12-03 07:23:31 +11:00
..
admin-plugin-configuration-nav.js FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
ai-artifacts.gjs FEATURE: allow artifacts to be updated (#980) 2024-12-03 07:23:31 +11:00
ai-bot-replies.js DEV: Update linting (#933) 2024-11-20 15:43:28 +01:00
ai-chat-summarization.js FEATURE: move summary to use llm_model (#699) 2024-07-04 10:48:18 +10:00
ai-helper.js UX: Improve toast message location (#800) 2024-09-14 09:19:13 +10:00
ai-image-caption.js DEV: Update linting (#933) 2024-11-20 15:43:28 +01:00
ai-semantic-search.js FIX: results not being reset when appending to query param (#912) 2024-11-13 07:19:34 -08:00
related-topics.gjs FIX: Keep related topics data cached when a user scrolls up (#976) 2024-11-28 14:25:15 -03:00