mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 02:33:47 +00:00
Prepared release v26.1.1 (#624)
Build and Release / Read metadata (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg updater) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis updater) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage deb updater) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg updater) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis updater) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage deb updater) (push) Has been cancelled
Build and Release / Prepare & create release (push) Has been cancelled
Build and Release / Publish release (push) Has been cancelled
Build and Release / Read metadata (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg updater) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis updater) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage deb updater) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg updater) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis updater) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage deb updater) (push) Has been cancelled
Build and Release / Prepare & create release (push) Has been cancelled
Build and Release / Publish release (push) Has been cancelled
This commit is contained in:
1 parent
529986837e
commit
ab7618097d
14 files changed
+135
-71
No files matched your search
@@ -3,8 +3,10 @@ namespace Build.Commands;
|
||||
public enum PrepareAction
|
||||
{
|
||||
NONE,
|
||||
|
||||
PATCH,
|
||||
MINOR,
|
||||
MAJOR,
|
||||
|
||||
BUILD,
|
||||
MONTH,
|
||||
YEAR,
|
||||
|
||||
SET,
|
||||
}
|
||||
@@ -13,13 +13,32 @@ namespace Build.Commands;
|
||||
public sealed partial class UpdateMetadataCommands
|
||||
{
|
||||
[Command("release", Description = "Prepare & build the next release")]
|
||||
public async Task Release(PrepareAction action)
|
||||
public async Task Release(
|
||||
[Option("action", ['a'], Description = "The release action: patch, minor, or major")] PrepareAction action = PrepareAction.NONE,
|
||||
[Option("version", ['v'], Description = "Set a specific version directly, e.g., 26.1.2")] string? version = null)
|
||||
{
|
||||
if(!Environment.IsWorkingDirectoryValid())
|
||||
return;
|
||||
|
||||
|
||||
// Validate parameters: either action or version must be specified, but not both:
|
||||
if (action == PrepareAction.NONE && string.IsNullOrWhiteSpace(version))
|
||||
{
|
||||
Console.WriteLine("- Error: You must specify either --action (-a) or --version (-v).");
|
||||
return;
|
||||
}
|
||||
|
||||
if (action != PrepareAction.NONE && !string.IsNullOrWhiteSpace(version))
|
||||
{
|
||||
Console.WriteLine("- Error: You cannot specify both --action and --version. Please use only one.");
|
||||
return;
|
||||
}
|
||||
|
||||
// If version is specified, use SET action:
|
||||
if (!string.IsNullOrWhiteSpace(version))
|
||||
action = PrepareAction.SET;
|
||||
|
||||
// Prepare the metadata for the next release:
|
||||
await this.PerformPrepare(action, true);
|
||||
await this.PerformPrepare(action, true, version);
|
||||
|
||||
// Build once to allow the Rust compiler to read the changed metadata
|
||||
// and to update all .NET artifacts:
|
||||
@@ -53,11 +72,30 @@ public sealed partial class UpdateMetadataCommands
|
||||
}
|
||||
|
||||
[Command("prepare", Description = "Prepare the metadata for the next release")]
|
||||
public async Task Prepare(PrepareAction action)
|
||||
public async Task Prepare(
|
||||
[Option("action", ['a'], Description = "The release action: patch, minor, or major")] PrepareAction action = PrepareAction.NONE,
|
||||
[Option("version", ['v'], Description = "Set a specific version directly, e.g., 26.1.2")] string? version = null)
|
||||
{
|
||||
if(!Environment.IsWorkingDirectoryValid())
|
||||
return;
|
||||
|
||||
// Validate parameters: either action or version must be specified, but not both:
|
||||
if (action == PrepareAction.NONE && string.IsNullOrWhiteSpace(version))
|
||||
{
|
||||
Console.WriteLine("- Error: You must specify either --action (-a) or --version (-v).");
|
||||
return;
|
||||
}
|
||||
|
||||
if (action != PrepareAction.NONE && !string.IsNullOrWhiteSpace(version))
|
||||
{
|
||||
Console.WriteLine("- Error: You cannot specify both --action and --version. Please use only one.");
|
||||
return;
|
||||
}
|
||||
|
||||
// If version is specified, use SET action:
|
||||
if (!string.IsNullOrWhiteSpace(version))
|
||||
action = PrepareAction.SET;
|
||||
|
||||
Console.WriteLine("==============================");
|
||||
Console.Write("- Are you trying to prepare a new release? (y/n) ");
|
||||
var userAnswer = Console.ReadLine();
|
||||
@@ -66,18 +104,18 @@ public sealed partial class UpdateMetadataCommands
|
||||
Console.WriteLine("- Please use the 'release' command instead");
|
||||
return;
|
||||
}
|
||||
|
||||
await this.PerformPrepare(action, false);
|
||||
|
||||
await this.PerformPrepare(action, false, version);
|
||||
}
|
||||
|
||||
private async Task PerformPrepare(PrepareAction action, bool internalCall)
|
||||
private async Task PerformPrepare(PrepareAction action, bool internalCall, string? version = null)
|
||||
{
|
||||
if(internalCall)
|
||||
Console.WriteLine("==============================");
|
||||
|
||||
|
||||
Console.WriteLine("- Prepare the metadata for the next release ...");
|
||||
|
||||
var appVersion = await this.UpdateAppVersion(action);
|
||||
|
||||
var appVersion = await this.UpdateAppVersion(action, version);
|
||||
if (!string.IsNullOrWhiteSpace(appVersion.VersionText))
|
||||
{
|
||||
var buildNumber = await this.IncreaseBuildNumber();
|
||||
@@ -239,17 +277,6 @@ public sealed partial class UpdateMetadataCommands
|
||||
var pathChangelogs = Path.Combine(Environment.GetAIStudioDirectory(), "wwwroot", "changelog");
|
||||
var nextBuildNumber = currentBuildNumber + 1;
|
||||
|
||||
//
|
||||
// We assume that most of the time, there will be patch releases:
|
||||
//
|
||||
var nextMajor = currentAppVersion.Major;
|
||||
var nextMinor = currentAppVersion.Minor;
|
||||
var nextPatch = currentAppVersion.Patch + 1;
|
||||
|
||||
var nextAppVersion = $"{nextMajor}.{nextMinor}.{nextPatch}";
|
||||
var nextChangelogFilename = $"v{nextAppVersion}.md";
|
||||
var nextChangelogFilePath = Path.Combine(pathChangelogs, nextChangelogFilename);
|
||||
|
||||
//
|
||||
// Regarding the next build time: We assume that the next release will take place in one week from now.
|
||||
// Thus, we check how many days this month has left. In the end, we want to predict the year and month
|
||||
@@ -259,6 +286,19 @@ public sealed partial class UpdateMetadataCommands
|
||||
var nextBuildYear = (DateTime.Today + TimeSpan.FromDays(7)).Year;
|
||||
var nextBuildTimeString = $"{nextBuildYear}-{nextBuildMonth:00}-xx xx:xx UTC";
|
||||
|
||||
//
|
||||
// We assume that most of the time, there will be patch releases:
|
||||
//
|
||||
// skipping the first 2 digits for major version
|
||||
var nextBuildYearShort = nextBuildYear - 2000;
|
||||
var nextMajor = nextBuildYearShort;
|
||||
var nextMinor = nextBuildMonth;
|
||||
var nextPatch = currentAppVersion.Major != nextBuildYearShort || currentAppVersion.Minor != nextBuildMonth ? 1 : currentAppVersion.Patch + 1;
|
||||
|
||||
var nextAppVersion = $"{nextMajor}.{nextMinor}.{nextPatch}";
|
||||
var nextChangelogFilename = $"v{nextAppVersion}.md";
|
||||
var nextChangelogFilePath = Path.Combine(pathChangelogs, nextChangelogFilename);
|
||||
|
||||
var changelogHeader = $"""
|
||||
# v{nextAppVersion}, build {nextBuildNumber} ({nextBuildTimeString})
|
||||
|
||||
@@ -355,49 +395,69 @@ public sealed partial class UpdateMetadataCommands
|
||||
await File.WriteAllLinesAsync(pathMetadata, lines, Environment.UTF8_NO_BOM);
|
||||
}
|
||||
|
||||
private async Task<AppVersion> UpdateAppVersion(PrepareAction action)
|
||||
private async Task<AppVersion> UpdateAppVersion(PrepareAction action, string? version = null)
|
||||
{
|
||||
const int APP_VERSION_INDEX = 0;
|
||||
|
||||
|
||||
if (action == PrepareAction.NONE)
|
||||
{
|
||||
Console.WriteLine("- No action specified. Skipping app version update.");
|
||||
return new(string.Empty, 0, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
var pathMetadata = Environment.GetMetadataPath();
|
||||
var lines = await File.ReadAllLinesAsync(pathMetadata, Encoding.UTF8);
|
||||
var currentAppVersionLine = lines[APP_VERSION_INDEX].Trim();
|
||||
var currentAppVersion = AppVersionRegex().Match(currentAppVersionLine);
|
||||
var currentPatch = int.Parse(currentAppVersion.Groups["patch"].Value);
|
||||
var currentMinor = int.Parse(currentAppVersion.Groups["minor"].Value);
|
||||
var currentMajor = int.Parse(currentAppVersion.Groups["major"].Value);
|
||||
|
||||
switch (action)
|
||||
|
||||
int newMajor, newMinor, newPatch;
|
||||
if (action == PrepareAction.SET && !string.IsNullOrWhiteSpace(version))
|
||||
{
|
||||
case PrepareAction.PATCH:
|
||||
currentPatch++;
|
||||
break;
|
||||
|
||||
case PrepareAction.MINOR:
|
||||
currentPatch = 0;
|
||||
currentMinor++;
|
||||
break;
|
||||
|
||||
case PrepareAction.MAJOR:
|
||||
currentPatch = 0;
|
||||
currentMinor = 0;
|
||||
currentMajor++;
|
||||
break;
|
||||
// Parse the provided version string:
|
||||
var versionMatch = AppVersionRegex().Match(version);
|
||||
if (!versionMatch.Success)
|
||||
{
|
||||
Console.WriteLine($"- Error: Invalid version format '{version}'. Expected format: major.minor.patch (e.g., 26.1.2)");
|
||||
return new(string.Empty, 0, 0, 0);
|
||||
}
|
||||
|
||||
newMajor = int.Parse(versionMatch.Groups["major"].Value);
|
||||
newMinor = int.Parse(versionMatch.Groups["minor"].Value);
|
||||
newPatch = int.Parse(versionMatch.Groups["patch"].Value);
|
||||
}
|
||||
|
||||
var updatedAppVersion = $"{currentMajor}.{currentMinor}.{currentPatch}";
|
||||
else
|
||||
{
|
||||
// Parse current version and increment based on action:
|
||||
var currentAppVersion = AppVersionRegex().Match(currentAppVersionLine);
|
||||
newPatch = int.Parse(currentAppVersion.Groups["patch"].Value);
|
||||
newMinor = int.Parse(currentAppVersion.Groups["minor"].Value);
|
||||
newMajor = int.Parse(currentAppVersion.Groups["major"].Value);
|
||||
|
||||
switch (action)
|
||||
{
|
||||
case PrepareAction.BUILD:
|
||||
newPatch++;
|
||||
break;
|
||||
|
||||
case PrepareAction.MONTH:
|
||||
newPatch = 1;
|
||||
newMinor++;
|
||||
break;
|
||||
|
||||
case PrepareAction.YEAR:
|
||||
newPatch = 1;
|
||||
newMinor = 1;
|
||||
newMajor++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
var updatedAppVersion = $"{newMajor}.{newMinor}.{newPatch}";
|
||||
Console.WriteLine($"- Updating app version from '{currentAppVersionLine}' to '{updatedAppVersion}'.");
|
||||
|
||||
|
||||
lines[APP_VERSION_INDEX] = updatedAppVersion;
|
||||
await File.WriteAllLinesAsync(pathMetadata, lines, Environment.UTF8_NO_BOM);
|
||||
|
||||
return new(updatedAppVersion, currentMajor, currentMinor, currentPatch);
|
||||
|
||||
return new(updatedAppVersion, newMajor, newMinor, newPatch);
|
||||
}
|
||||
|
||||
private async Task UpdateLicenceYear(string licenceFilePath)
|
||||
|
||||
@@ -13,6 +13,7 @@ public partial class Changelog
|
||||
|
||||
public static readonly Log[] LOGS =
|
||||
[
|
||||
new (231, "v26.1.1, build 231 (2026-01-11 15:53 UTC)", "v26.1.1.md"),
|
||||
new (230, "v0.10.0, build 230 (2025-12-31 14:04 UTC)", "v0.10.0.md"),
|
||||
new (229, "v0.9.54, build 229 (2025-11-24 18:28 UTC)", "v0.9.54.md"),
|
||||
new (228, "v0.9.53, build 228 (2025-11-14 13:14 UTC)", "v0.9.53.md"),
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="9.0.11" />
|
||||
<PackageReference Include="MudBlazor" Version="8.15.0" />
|
||||
<PackageReference Include="MudBlazor.Markdown" Version="8.11.0" />
|
||||
<PackageReference Include="ReverseMarkdown" Version="4.7.1" />
|
||||
<PackageReference Include="ReverseMarkdown" Version="5.0.0" />
|
||||
<PackageReference Include="LuaCSharp" Version="0.5.1" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -190,7 +190,7 @@ public partial class Information : MSGComponentBase
|
||||
|
||||
## Notice
|
||||
|
||||
Copyright 2025 Thorsten Sommer
|
||||
Copyright 2026 Thorsten Sommer
|
||||
|
||||
## Terms and Conditions
|
||||
|
||||
|
||||
@@ -64,11 +64,11 @@
|
||||
},
|
||||
"ReverseMarkdown": {
|
||||
"type": "Direct",
|
||||
"requested": "[4.7.1, )",
|
||||
"resolved": "4.7.1",
|
||||
"contentHash": "Tz8yJXg8J1O9xJn6fXzjeEcLTYjfwbauCGwK4f/dpxOOpo3iniXIggmRlJ7F91yHJPB0Gm4lk1/qV0Jxip4a8A==",
|
||||
"requested": "[5.0.0, )",
|
||||
"resolved": "5.0.0",
|
||||
"contentHash": "Zw7ODMO/P8b4ua9qFdsmZPkPmYGCcSfwhKo8+81PCS0e6P21c9sOlYwVJ3MCEWZAGW+CXJBdF3FKtXKWZWzFTg==",
|
||||
"dependencies": {
|
||||
"HtmlAgilityPack": "1.12.1"
|
||||
"HtmlAgilityPack": "1.12.4"
|
||||
}
|
||||
},
|
||||
"BuildBundlerMinifier": {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# v26.1.1, build 231 (2026-01-xx xx:xx UTC)
|
||||
# v26.1.1, build 231 (2026-01-11 15:53 UTC)
|
||||
- Added the option to attach files, including images, to chat templates. You can also define templates with file attachments through a configuration plugin. These file attachments aren’t copied—they’re re-read every time. That means the AI will pick up any updates you make to those files.
|
||||
- Added the option to use source code files in chats and document analysis. This supports software development workflows.
|
||||
- Added a preview feature that lets you record your own voice for transcription. The feature remains in development and appears only when the preview feature is enabled.
|
||||
@@ -8,4 +8,5 @@
|
||||
- Improved the app versioning. Starting in 2026, each version number includes the year, followed by the month. The last digit shows the release number for that month. For example, version `26.1.1` is the first release in January 2026.
|
||||
- Fixed a bug in the profile selection where the "Use no profile" entry could not be localized, causing English text to appear in languages such as German. This behavior has now been fixed.
|
||||
- Fixed a bug in the provider dialogs (LLMs, embeddings, and transcriptions) when editing a provider. In cases where an error had to be displayed, a non-localized message in English was used.
|
||||
- Fixed a very rare bug in the provider dialogs (LLMs, embeddings, and transcriptions) where a validation error appeared if the API key could not be read from the operating system, but the error did not clear after the user changed the API key.
|
||||
- Fixed a very rare bug in the provider dialogs (LLMs, embeddings, and transcriptions) where a validation error appeared if the API key could not be read from the operating system, but the error did not clear after the user changed the API key.
|
||||
- Upgraded dependencies.
|
||||
@@ -0,0 +1 @@
|
||||
# v26.1.2, build 232 (2026-01-xx xx:xx UTC)
|
||||
Reference in new issue
Block a user