mirror of
https://ghfast.top/https://github.com/discourse/discourse-ai.git
synced 2026-07-18 11:49:33 +08:00
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 |
||
|---|---|---|
| .. | ||
| create_artifact.rb | ||
| custom.rb | ||
| dall_e.rb | ||
| db_schema.rb | ||
| discourse_meta_search.rb | ||
| github_file_content.rb | ||
| github_pull_request_diff.rb | ||
| github_search_code.rb | ||
| github_search_files.rb | ||
| google.rb | ||
| image.rb | ||
| javascript_evaluator.rb | ||
| list_categories.rb | ||
| list_tags.rb | ||
| option.rb | ||
| random_picker.rb | ||
| read.rb | ||
| search.rb | ||
| search_settings.rb | ||
| setting_context.rb | ||
| summarize.rb | ||
| time.rb | ||
| tool.rb | ||
| update_artifact.rb | ||
| web_browser.rb | ||