discourse-ai/assets/javascripts/discourse/components
Sam 0d7f353284
FEATURE: AI artifacts (#898)
This is a significant PR that introduces AI Artifacts functionality to the discourse-ai plugin along with several other improvements. Here are the key changes:

1. AI Artifacts System:
   - Adds a new `AiArtifact` model and database migration
   - Allows creation of web artifacts with HTML, CSS, and JavaScript content
   - Introduces security settings (`strict`, `lax`, `disabled`) for controlling artifact execution
   - Implements artifact rendering in iframes with sandbox protection
   - New `CreateArtifact` tool for AI to generate interactive content

2. Tool System Improvements:
   - Adds support for partial tool calls, allowing incremental updates during generation
   - Better handling of tool call states and progress tracking
   - Improved XML tool processing with CDATA support
   - Fixes for tool parameter handling and duplicate invocations

3. LLM Provider Updates:
   - Updates for Anthropic Claude models with correct token limits
   - Adds support for native/XML tool modes in Gemini integration
   - Adds new model configurations including Llama 3.1 models
   - Improvements to streaming response handling

4. UI Enhancements:
   - New artifact viewer component with expand/collapse functionality
   - Security controls for artifact execution (click-to-run in strict mode)
   - Improved dialog and response handling
   - Better error management for tool execution

5. Security Improvements:
   - Sandbox controls for artifact execution
   - Public/private artifact sharing controls
   - Security settings to control artifact behavior
   - CSP and frame-options handling for artifacts

6. Technical Improvements:
   - Better post streaming implementation
   - Improved error handling in completions
   - Better memory management for partial tool calls
   - Enhanced testing coverage

7. Configuration:
   - New site settings for artifact security
   - Extended LLM model configurations
   - Additional tool configuration options

This PR significantly enhances the plugin's capabilities for generating and displaying interactive content while maintaining security and providing flexible configuration options for administrators.
2024-11-19 09:22:39 +11:00
..
modal FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
post-menu DEV: Added compatibility with the Glimmer Post Menu (#887) 2024-11-12 15:46:17 -03:00
ai-artifact.gjs FEATURE: AI artifacts (#898) 2024-11-19 09:22:39 +11:00
ai-bot-header-icon.gjs DEV: Rewire AI bot internals to use LlmModel (#638) 2024-06-18 14:32:14 -03:00
ai-composer-helper-menu.gjs FIX: Diff modal closing along with composer menu on mobile (#803) 2024-09-16 14:00:41 -07:00
ai-forced-tool-strategy-selector.gjs FEATURE: allow persona to only force tool calls on limited replies (#827) 2024-10-11 07:23:42 +11:00
ai-gist-toggle.gjs UX: convert AI gist disclosure to a toggle (#878) 2024-10-29 11:59:41 -04:00
ai-helper-custom-prompt.gjs DEV: Move composer AI helper to toolbar (#796) 2024-09-13 11:59:30 -07:00
ai-helper-loading.gjs FEATURE: Show post helper as bottom modal on mobile (#704) 2024-07-10 11:01:05 -07:00
ai-helper-options-list.gjs FIX: Keyboard shortcut should be platform specific (#801) 2024-09-14 09:18:07 +10:00
ai-indicator-wave.gjs DEV: Make indicator wave a reusable component (#807) 2024-09-18 09:53:54 -07:00
ai-llm-editor-form.gjs UX: Hide AI bot in seeded LLM (#858) 2024-10-23 16:36:17 -07:00
ai-llm-editor.gjs UX: move templates to main LLM config tab, restyle (#813) 2024-09-30 17:15:11 +10:00
ai-llm-selector.js FEATURE: mentionable personas and random picker tool, context limits (#466) 2024-02-15 16:37:59 +11:00
ai-llms-list-editor.gjs UX: Improve seeded LLM edit page (#856) 2024-10-23 13:58:27 -07:00
ai-persona-editor.gjs FEATURE: improve visibility of AI usage in LLM page (#845) 2024-10-22 11:16:02 +11:00
ai-persona-list-editor.gjs FEATURE: Add breadcrumbs to LLMs and Persona admin pages (#666) 2024-07-10 10:56:13 +10:00
ai-persona-tool-option-editor.gjs FEATURE: optional tool detail blocks (#662) 2024-06-11 18:14:14 +10:00
ai-persona-tool-options.gjs FEATURE: optional tool detail blocks (#662) 2024-06-11 18:14:14 +10:00
ai-post-helper-menu.gjs DEV: Move composer AI helper to toolbar (#796) 2024-09-13 11:59:30 -07:00
ai-split-topic-suggester.gjs DEV: Update linting (#423) 2024-01-13 00:28:06 +01:00
ai-suggestion-dropdown.gjs DEV: Update linting (#423) 2024-01-13 00:28:06 +01:00
ai-summary-skeleton.gjs DEV: Make indicator wave a reusable component (#807) 2024-09-18 09:53:54 -07:00
ai-tool-editor.gjs FIX: testing tool was not showing rag results (#867) 2024-10-25 16:01:25 +11:00
ai-tool-list-editor.gjs FEATURE: Add breadcrumbs to LLMs and Persona admin pages (#666) 2024-07-10 10:56:13 +10:00
ai-tool-parameter-editor.gjs FEATURE: improve site setting search (#780) 2024-08-29 16:05:38 +10:00
ai-tool-selector.js FEATURE: allows forced LLM tool use (#818) 2024-10-05 09:46:57 +10:00
ai-topic-gist.gjs UX: increase gist size, and adjust surrounding elements to accommodate (#900) 2024-11-07 08:35:05 -05:00
model-accuracies.hbs FEATURE: Composer AI helper (#8) 2023-03-15 17:02:20 -03:00
rag-options.gjs FEATURE: RAG search within tools (#802) 2024-09-30 17:27:50 +10:00
rag-upload-progress.gjs FEATURE: RAG search within tools (#802) 2024-09-30 17:27:50 +10:00
rag-uploader.gjs FIX: Specify type for Rag upload (#895) 2024-11-05 22:10:54 +03:00
reviewable-ai-chat-message.hbs FIX: 500 error when reviewable has a missing message (#397) 2024-01-03 11:49:47 -03:00
reviewable-ai-chat-message.js FIX: 500 error when reviewable has a missing message (#397) 2024-01-03 11:49:47 -03:00
reviewable-ai-post.hbs DEV: DiscourseAI -> DiscourseAi rename to have consistent folders and files (#9) 2023-03-14 16:03:50 -03:00
thumbnail-suggestion-item.gjs DEV: Update linting (#423) 2024-01-13 00:28:06 +01:00