discourse-ai/lib/ai_bot/tools
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
..
create_artifact.rb FEATURE: allow artifacts to be updated (#980) 2024-12-03 07:23:31 +11:00
custom.rb FEATURE: support chain halting and upload creation support (#821) 2024-10-09 08:17:45 +11:00
dall_e.rb FEATURE: add aspect ratio support to DallE 3 (#647) 2024-05-28 16:21:40 +10:00
db_schema.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
discourse_meta_search.rb FIX: Load categories from search response (#612) 2024-05-14 17:13:25 +03:00
github_file_content.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
github_pull_request_diff.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
github_search_code.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
github_search_files.rb FEATURE: improved tooling (#651) 2024-05-30 06:33:50 +10:00
google.rb FEATURE: allow scoping of google tool queries (#852) 2024-10-23 16:55:10 +11:00
image.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
javascript_evaluator.rb FEATURE: JavaScript evaluation tool (#630) 2024-05-21 07:57:01 +10:00
list_categories.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
list_tags.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
option.rb FEATURE: optional tool detail blocks (#662) 2024-06-11 18:14:14 +10:00
random_picker.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
read.rb FEATURE: allow access to private topics if tool permits (#673) 2024-06-19 15:49:36 +10:00
search.rb FIX: display search correctly, bug when stripping XML (#668) 2024-06-14 15:28:40 +10:00
search_settings.rb FEATURE: improve site setting search (#780) 2024-08-29 16:05:38 +10:00
setting_context.rb FIX: support case insensitive setting lookup (#795) 2024-09-10 15:21:03 +10:00
summarize.rb FEATURE: GPT4o support and better auditing (#618) 2024-05-14 13:28:46 +10:00
time.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
tool.rb FEATURE: AI artifacts (#898) 2024-11-19 09:22:39 +11:00
update_artifact.rb FEATURE: allow artifacts to be updated (#980) 2024-12-03 07:23:31 +11:00
web_browser.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00