From fa48dd8383f929770fe891e7194526626cbef31b Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 1 Jun 2025 20:52:03 +0200 Subject: [PATCH] Added example config plugin --- .../Plugins/configuration/icon.lua | 1 + .../Plugins/configuration/plugin.lua | 67 +++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 app/MindWork AI Studio/Plugins/configuration/icon.lua create mode 100644 app/MindWork AI Studio/Plugins/configuration/plugin.lua diff --git a/app/MindWork AI Studio/Plugins/configuration/icon.lua b/app/MindWork AI Studio/Plugins/configuration/icon.lua new file mode 100644 index 00000000..045bd983 --- /dev/null +++ b/app/MindWork AI Studio/Plugins/configuration/icon.lua @@ -0,0 +1 @@ +SVG = [[]] \ No newline at end of file diff --git a/app/MindWork AI Studio/Plugins/configuration/plugin.lua b/app/MindWork AI Studio/Plugins/configuration/plugin.lua new file mode 100644 index 00000000..d80fc0d9 --- /dev/null +++ b/app/MindWork AI Studio/Plugins/configuration/plugin.lua @@ -0,0 +1,67 @@ +require("icon") + +-- ------ +-- This is an example of a configuration plugin. Please replace +-- the placeholders and assign a valid ID. +-- ------ + +-- The ID for this plugin: +ID = "00000000-0000-0000-0000-000000000000" + +-- The icon for the plugin: +ICON_SVG = SVG + +-- The name of the plugin: +NAME = " - Configuration for " + +-- The description of the plugin: +DESCRIPTION = "This is a pre-defined configuration of " + +-- The version of the plugin: +VERSION = "1.0.0" + +-- The type of the plugin: +TYPE = "CONFIGURATION" + +-- The authors of the plugin: +AUTHORS = {""} + +-- The support contact for the plugin: +SUPPORT_CONTACT = "" + +-- The source URL for the plugin: +SOURCE_URL = "" + +-- The categories for the plugin: +CATEGORIES = { "CORE" } + +-- The target groups for the plugin: +TARGET_GROUPS = { "EVERYONE" } + +-- The flag for whether the plugin is maintained: +IS_MAINTAINED = true + +-- When the plugin is deprecated, this message will be shown to users: +DEPRECATION_MESSAGE = "" + +CONFIG = {} +CONFIG["LLM_PROVIDERS"] = {} + +-- An example of a configuration for a self-hosted ollama server: +CONFIG["LLM_PROVIDERS"][#CONFIG["LLM_PROVIDERS"]+1] = { + ["Id"] = "00000000-0000-0000-0000-000000000000", + ["InstanceName"] = "", + ["UsedLLMProvider"] = "SELF_HOSTED", + ["Host"] = "OLLAMA", + ["Hostname"] = "", + ["Model"] = { + ["Id"] = "", + ["DisplayName"] = "", + } +} + +CONFIG["SETTINGS"] = {} + +-- Configure the update behavior: +-- Allowed values are: NO_CHECK, ONCE_STARTUP, HOURLY, DAILY, WEEKLY +-- CONFIG["SETTINGS"]["DataApp.UpdateBehavior"] = "NO_CHECK" \ No newline at end of file