mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-10 19:27:21 +00:00
Showed the Rust compiler actually used on the information page (#1160)
This commit is contained in:
1 parent
54c3f0b3e0
commit
677b650a79
9 files changed
+144
-17
No files matched your search
@@ -127,6 +127,7 @@
|
||||
metadata.txt names the .NET SDK which the pipeline pins, but a local build may use another
|
||||
one. Hence, we take the SDK which builds right now. Its .version file starts with the commit
|
||||
it was built from. The .NET runtime is not recorded at all: the app asks for it while it runs.
|
||||
Neither is the Rust compiler, which the app learns from the runtime it built.
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<DotnetSdkVersionFile>$(NetCoreRoot)sdk/$(NETCoreSdkVersion)/.version</DotnetSdkVersionFile>
|
||||
@@ -142,7 +143,6 @@
|
||||
<MetaBuild>$([System.String]::Copy( $(Metadata) ).Split( ';' )[ 2 ])</MetaBuild>
|
||||
<MetaDotnetSdkVersion>$([System.String]::Copy( $(Metadata) ).Split( ';' )[ 3 ])</MetaDotnetSdkVersion>
|
||||
<MetaDotnetSdkVersion Condition="'$(DotnetSdkVersionLines)' != ''">$(NETCoreSdkVersion) (commit $([System.String]::Copy( $(DotnetSdkVersionLines) ).Split( ';' )[ 0 ].Substring( 0, 10 )))</MetaDotnetSdkVersion>
|
||||
<MetaRustVersion>$([System.String]::Copy( $(Metadata) ).Split( ';' )[ 5 ])</MetaRustVersion>
|
||||
<MetaMudBlazorVersion>$([System.String]::Copy( $(Metadata) ).Split( ';' )[ 6 ])</MetaMudBlazorVersion>
|
||||
<MetaTauriVersion>$([System.String]::Copy( $(Metadata) ).Split( ';' )[ 7 ])</MetaTauriVersion>
|
||||
<MetaAppCommitHash>$([System.String]::Copy( $(Metadata) ).Split( ';' )[ 8 ])</MetaAppCommitHash>
|
||||
@@ -170,10 +170,9 @@
|
||||
<_Parameter3>$(MetaBuild)</_Parameter3>
|
||||
<_Parameter3_TypeName>System.UInt32</_Parameter3_TypeName>
|
||||
<_Parameter4>$(MetaDotnetSdkVersion)</_Parameter4>
|
||||
<_Parameter5>$(MetaRustVersion)</_Parameter5>
|
||||
<_Parameter6>$(MetaMudBlazorVersion)</_Parameter6>
|
||||
<_Parameter7>$(MetaTauriVersion)</_Parameter7>
|
||||
<_Parameter8>$(MetaAppCommitHash)</_Parameter8>
|
||||
<_Parameter5>$(MetaMudBlazorVersion)</_Parameter5>
|
||||
<_Parameter6>$(MetaTauriVersion)</_Parameter6>
|
||||
<_Parameter7>$(MetaAppCommitHash)</_Parameter7>
|
||||
</AssemblyAttribute>
|
||||
<AssemblyAttribute Include="AIStudio.Tools.Metadata.MetaDataArchitecture">
|
||||
<_Parameter1>$(MetaArchitecture)</_Parameter1>
|
||||
|
||||
@@ -87,7 +87,9 @@ public partial class Information : MSGComponentBase
|
||||
}
|
||||
};
|
||||
|
||||
private string VersionRust => $"{T("Used Rust compiler")}: v{META_DATA.RustVersion}";
|
||||
private string VersionRust => string.IsNullOrWhiteSpace(this.RuntimeInfo.RustVersion)
|
||||
? $"{T("Used Rust compiler")}: {T("unknown")}"
|
||||
: $"{T("Used Rust compiler")}: v{this.RuntimeInfo.RustVersion}";
|
||||
|
||||
private string VersionDotnetRuntime => $"{T("Used .NET runtime")}: v{DotnetRuntimeVersion.Current}";
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ public class MetaDataAttribute(
|
||||
string buildTime,
|
||||
uint buildNum,
|
||||
string dotnetSdkVersion,
|
||||
string rustVersion,
|
||||
string mudBlazorVersion,
|
||||
string tauriVersion,
|
||||
string appCommitHash
|
||||
@@ -20,12 +19,11 @@ public class MetaDataAttribute(
|
||||
public uint BuildNum => buildNum;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the .NET SDK which built the app. The .NET runtime which runs it is <see cref="DotnetRuntimeVersion.Current"/>.
|
||||
/// Gets the .NET SDK which built the app. The .NET runtime which runs it is <see cref="DotnetRuntimeVersion.Current"/>,
|
||||
/// and the Rust compiler which built the runtime is <see cref="Rust.RuntimeInfoResponse.RustVersion"/>.
|
||||
/// </summary>
|
||||
public string DotnetSdkVersion => dotnetSdkVersion;
|
||||
|
||||
public string RustVersion => rustVersion;
|
||||
|
||||
|
||||
public string MudBlazorVersion => mudBlazorVersion;
|
||||
|
||||
public string TauriVersion => tauriVersion;
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
namespace AIStudio.Tools.Rust;
|
||||
|
||||
public readonly record struct RuntimeInfoResponse(string WorkingDirectory, string ExecutablePath, LinuxPackageType LinuxPackageType, InstallationKind InstallationKind);
|
||||
/// <summary>
|
||||
/// What the runtime tells about itself once the app starts.
|
||||
/// </summary>
|
||||
/// <param name="WorkingDirectory">The working directory of the runtime.</param>
|
||||
/// <param name="ExecutablePath">The path of the runtime's executable.</param>
|
||||
/// <param name="LinuxPackageType">How the Linux build was packaged.</param>
|
||||
/// <param name="InstallationKind">Whether and how the app may update itself.</param>
|
||||
/// <param name="RustVersion">The Rust compiler which built the runtime, e.g., "1.99.1 (commit 58cf8f9c3)". A runtime older than the app, as a development build may be, sends none.</param>
|
||||
public readonly record struct RuntimeInfoResponse(string WorkingDirectory, string ExecutablePath, LinuxPackageType LinuxPackageType, InstallationKind InstallationKind, string? RustVersion);
|
||||
@@ -11,6 +11,7 @@
|
||||
- Improved how AI Studio colors code blocks: it now highlights them itself instead of through an extra script, which makes the app smaller. This works for Python, JavaScript, TypeScript, Java, C, C++, C#, Go, Kotlin, Rust, SQL, shell scripts, PowerShell, Lua, CSS, HTML, XML, JSON, and YAML; code in other languages, such as Ruby or PHP, appears without colors. When a code block names no language, AI Studio recognizes it from the code, colors the block, and suggests the matching file extension when you save it.
|
||||
- Improved how carefully AI Studio reads the answers of AI models and external data sources: an answer that contains the same entry twice, possibly with two different values, is now refused instead of AI Studio picking one of them. This covers tool calls, the Assistant Builder, the Visual Briefing assistant, and ERI servers.
|
||||
- Improved the order of the models when you add or edit a provider: AI Studio now sorts the numbers in model names by their value, so that, for example, a model with version 4.10 comes before one with version 4.9, and the newest models stay at the top of the list.
|
||||
- Improved the information page, which now shows the Rust compiler that actually built your copy of AI Studio. Before, it always showed the compiler of our official builds, even for builds such as the Flatpak, which bring their own one.
|
||||
- Changed the size of AI Studio on laptop screens: it now appears in the same size on every laptop, whatever the scaling of your operating system. If you prefer the previous size, choose "System scaling" for the interface size in the app settings. Contributed by Paul Koudelka.
|
||||
- Fixed AI Studio becoming unusable when an update failed after its download. The app now restarts with the version you have installed, so you can simply try the update again.
|
||||
- Fixed configuration plugins you installed yourself being able to change the tool settings of your organization, such as the minimum provider confidence of a tool. These settings now follow the same rules as all other settings, which also gives you back your own values once your organization removes its configuration.
|
||||
|
||||
Reference in new issue
Block a user