AI-Studio/app/MindWork AI Studio/Tools/Event.cs

281 lines
6.4 KiB
C#
Raw Normal View History

2024-06-30 13:26:28 +00:00
namespace AIStudio.Tools;
/// <summary>
/// Defines message bus events used for communication between UI components and services.
/// </summary>
2024-06-30 13:26:28 +00:00
public enum Event
{
/// <summary>
/// Represents the absence of a message bus event.
/// </summary>
2024-06-30 13:26:28 +00:00
NONE,
//
2024-06-30 13:26:28 +00:00
// Common events:
//
/// <summary>
/// Requests registered receivers to refresh state that depends on the current UI state.
/// </summary>
2024-06-30 13:26:28 +00:00
STATE_HAS_CHANGED,
/// <summary>
/// Notifies receivers that the application configuration was changed and should be reloaded or re-applied.
/// </summary>
2024-07-24 13:17:45 +00:00
CONFIGURATION_CHANGED,
/// <summary>
/// Notifies receivers that the active color theme changed.
/// </summary>
COLOR_THEME_CHANGED,
/// <summary>
/// Requests startup initialization of the plugin system.
/// </summary>
STARTUP_PLUGIN_SYSTEM,
/// <summary>
/// Notifies receivers that the startup initialization completed.
/// </summary>
2026-03-10 19:50:45 +00:00
STARTUP_COMPLETED,
/// <summary>
/// Carries an enterprise environment that should be processed during startup.
/// </summary>
2025-06-02 18:08:25 +00:00
STARTUP_ENTERPRISE_ENVIRONMENT,
/// <summary>
/// Notifies receivers that the known enterprise environments changed.
/// </summary>
ENTERPRISE_ENVIRONMENTS_CHANGED,
/// <summary>
/// Notifies receivers that plugins were reloaded.
/// </summary>
2025-03-30 18:34:30 +00:00
PLUGINS_RELOADED,
/// <summary>
/// Requests display of an error notification.
/// </summary>
SHOW_ERROR,
/// <summary>
/// Requests display of a warning notification.
/// </summary>
SHOW_WARNING,
/// <summary>
/// Requests display of a success notification.
/// </summary>
SHOW_SUCCESS,
/// <summary>
/// Carries an event received from the Tauri runtime.
/// </summary>
TAURI_EVENT_RECEIVED,
/// <summary>
/// Notifies receivers that the Rust service is unavailable or failed a health check.
/// </summary>
RUST_SERVICE_UNAVAILABLE,
/// <summary>
/// Notifies receivers that voice recording availability changed.
/// </summary>
VOICE_RECORDING_AVAILABILITY_CHANGED,
2024-06-30 13:26:28 +00:00
// Update events:
/// <summary>
/// Requests a user-triggered search for application updates.
/// </summary>
2024-06-30 13:26:28 +00:00
USER_SEARCH_FOR_UPDATE,
/// <summary>
/// Notifies receivers that an application update is available.
/// </summary>
2024-06-30 13:26:28 +00:00
UPDATE_AVAILABLE,
/// <summary>
/// Requests installation of the available application update.
/// </summary>
INSTALL_UPDATE,
//
// Chat events:
//
/// <summary>
/// Queries whether the current chat has unsaved changes.
/// </summary>
HAS_CHAT_UNSAVED_CHANGES,
/// <summary>
/// Requests the current chat state to be reset.
/// </summary>
RESET_CHAT_STATE,
/// <summary>
/// Carries a chat that should be loaded by the chat component.
/// </summary>
2024-10-28 14:41:00 +00:00
LOAD_CHAT,
/// <summary>
/// Notifies receivers that chat response streaming has completed.
/// </summary>
2024-10-28 14:41:00 +00:00
CHAT_STREAMING_DONE,
/// <summary>
/// Notifies receivers that an AI job changed.
/// </summary>
AI_JOB_CHANGED,
/// <summary>
/// Notifies receivers that an AI job finished.
/// </summary>
AI_JOB_FINISHED,
/// <summary>
/// Notifies receivers that chat generation state changed.
/// </summary>
CHAT_GENERATION_CHANGED,
2024-08-18 10:32:18 +00:00
2025-01-02 12:16:47 +00:00
// Workspace events:
/// <summary>
/// Notifies receivers that the chat loaded in the workspace changed.
/// </summary>
2025-01-02 12:16:47 +00:00
WORKSPACE_LOADED_CHAT_CHANGED,
/// <summary>
/// Requests the chat workspace overlay to be toggled.
/// </summary>
2025-01-02 12:16:47 +00:00
WORKSPACE_TOGGLE_OVERLAY,
//
// RAG events:
//
/// <summary>
/// Carries data sources that were automatically selected for retrieval-augmented generation.
/// </summary>
RAG_AUTO_DATA_SOURCES_SELECTED,
//
// File attachment events:
//
/// <summary>
/// Registers a file drop area for file attachment handling.
/// </summary>
REGISTER_FILE_DROP_AREA,
/// <summary>
/// Unregisters a file drop area from file attachment handling.
/// </summary>
UNREGISTER_FILE_DROP_AREA,
//
2024-08-18 19:48:35 +00:00
// Send events:
//
/// <summary>
/// Sends content to the grammar and spelling assistant.
/// </summary>
2024-08-18 10:32:18 +00:00
SEND_TO_GRAMMAR_SPELLING_ASSISTANT,
/// <summary>
/// Sends content to the icon finder assistant.
/// </summary>
2024-08-18 10:32:18 +00:00
SEND_TO_ICON_FINDER_ASSISTANT,
/// <summary>
/// Sends content to the rewrite assistant.
/// </summary>
2024-08-18 10:32:18 +00:00
SEND_TO_REWRITE_ASSISTANT,
/// <summary>
/// Sends content to the prompt optimizer assistant.
/// </summary>
SEND_TO_PROMPT_OPTIMIZER_ASSISTANT,
/// <summary>
/// Sends content to the translation assistant.
/// </summary>
2024-08-18 10:32:18 +00:00
SEND_TO_TRANSLATION_ASSISTANT,
/// <summary>
/// Sends content to the agenda assistant.
/// </summary>
2024-08-18 10:32:18 +00:00
SEND_TO_AGENDA_ASSISTANT,
/// <summary>
/// Sends content to the coding assistant.
/// </summary>
2024-08-18 10:32:18 +00:00
SEND_TO_CODING_ASSISTANT,
/// <summary>
/// Sends content to the text summarizer assistant.
/// </summary>
2024-08-18 10:32:18 +00:00
SEND_TO_TEXT_SUMMARIZER_ASSISTANT,
/// <summary>
/// Sends the result of the current assistant to the chat component.
/// </summary>
2024-08-18 19:48:35 +00:00
SEND_TO_CHAT,
/// <summary>
/// Sends text to the chat input field, aka the user prompt.
/// </summary>
SEND_TO_CHAT_INPUT,
/// <summary>
/// Sends content to the email assistant.
/// </summary>
2024-08-22 13:41:35 +00:00
SEND_TO_EMAIL_ASSISTANT,
/// <summary>
/// Sends content to the legal check assistant.
/// </summary>
SEND_TO_LEGAL_CHECK_ASSISTANT,
/// <summary>
/// Sends content to the synonym assistant.
/// </summary>
2024-09-06 20:02:20 +00:00
SEND_TO_SYNONYMS_ASSISTANT,
/// <summary>
/// Sends content to the "my tasks assistant".
/// </summary>
SEND_TO_MY_TASKS_ASSISTANT,
/// <summary>
/// Sends content to the job posting assistant.
/// </summary>
2024-09-15 19:14:56 +00:00
SEND_TO_JOB_POSTING_ASSISTANT,
/// <summary>
/// Sends content to the document analysis assistant.
/// </summary>
SEND_TO_DOCUMENT_ANALYSIS_ASSISTANT,
/// <summary>
/// Sends content to the slide builder assistant.
/// </summary>
SEND_TO_SLIDE_BUILDER_ASSISTANT
}