discourse-ai/app/models
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
..
ai_api_audit_log.rb FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
ai_artifact.rb FEATURE: allow artifacts to be updated (#980) 2024-12-03 07:23:31 +11:00
ai_artifact_version.rb FEATURE: allow artifacts to be updated (#980) 2024-12-03 07:23:31 +11:00
ai_persona.rb DEV: Update plugin annotations (#871) 2024-10-28 14:07:09 +00:00
ai_summary.rb FIX: Multiple concurrent summaries could result in pg index errors (#973) 2024-11-28 11:53:04 -03:00
ai_tool.rb FIX: encode parameters returned from LLMs correctly (#889) 2024-11-04 10:07:17 +11:00
chat_message_custom_prompt.rb DEV: Rewire AI bot internals to use LlmModel (#638) 2024-06-18 14:32:14 -03:00
classification_result.rb DEV: Update plugin annotations (#871) 2024-10-28 14:07:09 +00:00
completion_prompt.rb FEATURE: Add locale detection prompt from translator (#946) 2024-11-25 08:33:54 +11:00
llm_model.rb FEATURE: Add support for Mistral models (#919) 2024-11-19 17:28:09 +11:00
model_accuracy.rb DEV: Update rubocop-discourse to version 3.8.0 (#641) 2024-05-28 11:15:42 +02:00
post_custom_prompt.rb FEATURE: AI Bot RAG support. (#537) 2024-04-01 13:43:34 -03:00
rag_document_fragment.rb DEV: Update plugin annotations (#871) 2024-10-28 14:07:09 +00:00
reviewable_ai_chat_message.rb FIX: Fix ordering of random post embeddings backfill (#965) 2024-11-27 17:01:54 -03:00
reviewable_ai_post.rb FIX: Fix ordering of random post embeddings backfill (#965) 2024-11-27 17:01:54 -03:00
shared_ai_conversation.rb FEATURE: allow artifacts to be updated (#980) 2024-12-03 07:23:31 +11:00