Improved internal plugin maintenance ()

This commit is contained in:
Thorsten Sommer 2025-05-02 11:27:21 +02:00 committed by GitHub
parent 68404199ba
commit 38facf3e04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 0 deletions
app/MindWork AI Studio
Tools/PluginSystem
wwwroot/changelog

View File

@ -16,7 +16,27 @@ public static partial class PluginFactory
return;
}
// A plugin update might remove some resources. Even worse, a plugin
// might have changed its name, etc. Thus, we delete the internal
// plugin directories before copying the new resources:
LOG.LogInformation("Try to delete the internal plugins directory for maintenance.");
if (Directory.Exists(INTERNAL_PLUGINS_ROOT))
{
try
{
Directory.Delete(INTERNAL_PLUGINS_ROOT, true);
LOG.LogInformation("Successfully deleted the internal plugins directory for maintenance.");
}
catch (Exception e)
{
LOG.LogError($"Could not delete the internal plugins directory for maintenance: {INTERNAL_PLUGINS_ROOT}. Error: {e}");
}
}
LOG.LogInformation("Start ensuring internal plugins.");
if(!Directory.Exists(INTERNAL_PLUGINS_ROOT))
Directory.CreateDirectory(INTERNAL_PLUGINS_ROOT);
foreach (var plugin in Enum.GetValues<InternalPlugin>())
{
LOG.LogInformation($"Ensure plugin: {plugin}");

View File

@ -1,5 +1,6 @@
# v0.9.42, build 217 (2025-05-xx xx:xx UTC)
- Improved the model selection for OpenAI by removing all `o1-pro` models. These models cannot be used right now, since OpenAI introduced a new API, which is not yet supported by MindWork AI Studio.
- Improved the internal plugin maintenance so that removed resources are now removed from the file system.
- Fixed an issue where empty lines in source code were being ignored by the Markdown renderer. Thanks My Nihongo for fixing this bug in the `MudBlazor.Markdown` repository.
- Fixed the localization assistant not being able to load the localization file when used in the release app.
- Upgraded .NET dependencies.