Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.12.4 #1030

Merged
merged 26 commits into from
Dec 5, 2024
Merged

v2.12.4 #1030

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a1c76a8
Merge pull request #884 from ionite34/fix-markdown
ionite34 Nov 10, 2024
12e1651
Fix merge
ionite34 Nov 10, 2024
61dfbed
Merge pull request #885 from ionite34/backport/main/pr-884
ionite34 Nov 10, 2024
95b085c
Merge pull request #887 from ionite34/dynamic-base-model-types
mohnjiles Nov 14, 2024
97ce099
fix chagenlog
mohnjiles Nov 14, 2024
99b974c
Merge pull request #888 from ionite34/backport/main/pr-887
mohnjiles Nov 14, 2024
6be6147
Merge pull request #889 from ionite34/fix-the-thing
ionite34 Nov 19, 2024
ad7d96a
Merge pull request #892 from ionite34/backport/main/pr-889
mohnjiles Nov 20, 2024
9f7f1f3
Merge pull request #891 from ionite34/swarm-env-vars
mohnjiles Nov 20, 2024
75de843
fix chagenlog
mohnjiles Nov 20, 2024
b2dd612
Merge pull request #893 from ionite34/backport/main/pr-891
mohnjiles Nov 20, 2024
ac468c7
Merge branch 'main' of https://github.com/LykosAI/StabilityMatrix-Dev…
mohnjiles Nov 30, 2024
b3eb9f9
Merge pull request #897 from ionite34/downmerge-public-stuff
mohnjiles Nov 30, 2024
929ec2c
Merge pull request #902 from ionite34/fix-package-images
ionite34 Dec 4, 2024
afaff15
Merge branch 'main' of https://github.com/LykosAI/StabilityMatrix-Dev…
mohnjiles Dec 5, 2024
0c85535
Merge pull request #904 from ionite34/moar-downmerg
mohnjiles Dec 5, 2024
4da4c0a
Merge pull request #906 from ionite34/chagenloggg
mohnjiles Dec 5, 2024
c8b406d
chagenlog
mohnjiles Dec 5, 2024
623601e
Merge pull request #907 from ionite34/backport/main/pr-906
mohnjiles Dec 5, 2024
f92ee13
Merge branch 'main' into backport/main/pr-902
mohnjiles Dec 5, 2024
922a68a
Merge pull request #903 from ionite34/backport/main/pr-902
mohnjiles Dec 5, 2024
09dc240
Merge pull request #899 from ionite34/observe-on
mohnjiles Nov 30, 2024
d8475dc
Fix conflict in InstalledWorkflowsViewModel.cs
mohnjiles Dec 5, 2024
387041b
Fix conflict in PackageExtensionBrowserViewModel.cs
mohnjiles Dec 5, 2024
bdf423d
Fix build maybe?
mohnjiles Dec 5, 2024
5f6d792
Merge pull request #909 from ionite34/backport/main/pr-899
mohnjiles Dec 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ All notable changes to Stability Matrix will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).

## v2.12.4
### Added
- Added new package - [CogVideo](https://github.com/THUDM/CogVideo) - many thanks to @NullDev for the contribution!
- Added more formatting options for Inference output filenames - thanks to @yansigit!
### Changed
- Model browser base model types are now loaded dynamically from CivitAI, reducing the need for updates to add new types
### Fixed
- Fixed crash when clicking "Remind me Later" on the update dialog
- Fixed some cases of crashing when GitHub API rate limits are exceeded
- Fixed Git missing from env vars when running SwarmUI
- Fixed missing package thumbnails due to moved or inaccessible urls
- Fixed an issue with updating FluxGym in certain cases - thanks to @NullDev!
- Fixed a typo in the Japanese translation - thanks to @mattyatea!
### Supporters
#### Visionaries
- A huge thank you to our dedicated Visionary-tier Patreon supporter, **Waterclouds**! We’re thrilled to have your ongoing support!
#### Pioneers
- Shoutout to our great Pioneer-tier patrons: **tankfox**, **tanangular**, **Mr. Unknown**, **Szir777**, and our newest Pioneer, **Tigon**!. Your continued support is greatly appreciated!

## v2.12.3
### Added
- Added new package - [SimpleSDXL](https://github.com/metercai/SimpleSDXL) - many thanks to @NullDev for the contribution!
Expand Down
6 changes: 6 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
<PropertyGroup>
<AvaloniaVersion>11.1.4</AvaloniaVersion>
</PropertyGroup>

<PropertyGroup>
<!--Some bug with SDK 8.0.403
https://github.com/dotnet/sdk/issues/44026-->
<NoWarn>$(NoWarn);CsWinRT1028</NoWarn>
</PropertyGroup>
</Project>
17 changes: 6 additions & 11 deletions StabilityMatrix.Avalonia/Behaviors/TextEditorToolTipBehavior.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Reactive.Linq;
using System.Threading;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Input;
Expand Down Expand Up @@ -29,9 +31,7 @@ public class TextEditorToolTipBehavior : Behavior<TextEditor>
private ToolTip? toolTip;

public static readonly StyledProperty<ITokenizerProvider?> TokenizerProviderProperty =
AvaloniaProperty.Register<TextEditorCompletionBehavior, ITokenizerProvider?>(
"TokenizerProvider"
);
AvaloniaProperty.Register<TextEditorCompletionBehavior, ITokenizerProvider?>("TokenizerProvider");

public ITokenizerProvider? TokenizerProvider
{
Expand Down Expand Up @@ -137,6 +137,7 @@ private void TextEditor_OnPointerHover(object? sender, PointerEventArgs e)

toolTip
.GetPropertyChangedObservable(ToolTip.IsOpenProperty)
.ObserveOn(SynchronizationContext.Current)
.Subscribe(c =>
{
if (c.NewValue as bool? != true)
Expand All @@ -159,10 +160,7 @@ private void TextEditor_OnPointerHover(object? sender, PointerEventArgs e)
private ToolTipData? GetCaretToolTipData(TextViewPosition position)
{
var logicalPosition = position.Location;
var pointerOffset = textEditor.Document.GetOffset(
logicalPosition.Line,
logicalPosition.Column
);
var pointerOffset = textEditor.Document.GetOffset(logicalPosition.Line, logicalPosition.Column);

var line = textEditor.Document.GetLineByOffset(pointerOffset);
var lineText = textEditor.Document.GetText(line.Offset, line.Length);
Expand Down Expand Up @@ -227,10 +225,7 @@ private void TextEditor_OnPointerHover(object? sender, PointerEventArgs e)
if (result.Tokens.ElementAtOrDefault(currentTokenIndex + tokenOffset) is { } token)
{
// Check supported scopes
if (
token.Scopes.Where(s => s.Contains("invalid")).ToArray() is
{ Length: > 0 } results
)
if (token.Scopes.Where(s => s.Contains("invalid")).ToArray() is { Length: > 0 } results)
{
// Special cases
if (results.Contains("invalid.illegal.mismatched.parenthesis.closing.prompt"))
Expand Down
3 changes: 3 additions & 0 deletions StabilityMatrix.Avalonia/Collections/SearchCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Reactive;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Threading;
using DynamicData;
using DynamicData.Binding;
using JetBrains.Annotations;
Expand Down Expand Up @@ -72,6 +73,7 @@ public SearchCollection(
.Filter(dynamicPredicate)
.Sort(SortComparer)
.Bind(FilteredItems)
.ObserveOn(SynchronizationContext.Current)
.Subscribe();
}

Expand Down Expand Up @@ -114,6 +116,7 @@ public SearchCollection(
.Sort(SearchItemSortComparer, SortOptimisations.ComparesImmutableValuesOnly)
.Transform(searchItem => searchItem.Item)
.Bind(FilteredItems)
.ObserveOn(SynchronizationContext.Current)
.Subscribe()
);
}
Expand Down
5 changes: 4 additions & 1 deletion StabilityMatrix.Avalonia/Controls/BetterComboBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Linq;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Threading;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Presenters;
Expand Down Expand Up @@ -48,7 +49,9 @@ public BetterComboBox()
.Select(_ => currentInput);

// Subscribe to the observable to filter the ComboBox items
subscription = inputObservable.Subscribe(OnInputReceived, _ => ResetPopupText());
subscription = inputObservable
.ObserveOn(SynchronizationContext.Current)
.Subscribe(OnInputReceived, _ => ResetPopupText());

// Initialize the popup
inputPopup = new Popup
Expand Down
16 changes: 16 additions & 0 deletions StabilityMatrix.Avalonia/Controls/BetterMarkdownScrollViewer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Markdown.Avalonia;
using StabilityMatrix.Avalonia.Styles.Markdown;

namespace StabilityMatrix.Avalonia.Controls;

/// <summary>
/// Fix MarkdownScrollViewer IBrush errors and not working with Avalonia 11.2.0
/// </summary>
public class BetterMarkdownScrollViewer : MarkdownScrollViewer
{
public BetterMarkdownScrollViewer()
{
MarkdownStyleName = "Empty";
MarkdownStyle = new MarkdownStyleFluentAvalonia();
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
using System.Reactive.Linq;
using System.Threading;
using Avalonia.Controls;
using Avalonia.Controls.Primitives;
using DynamicData.Binding;
Expand All @@ -24,6 +26,7 @@ protected override void OnApplyTemplate(TemplateAppliedEventArgs e)

imageControl
.WhenPropertyChanged(x => x.CurrentImage)
.ObserveOn(SynchronizationContext.Current)
.Subscribe(propertyValue =>
{
if (propertyValue.Value is { } image)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
using System.Collections.Immutable;
using System.Diagnostics;
using System.Linq;
using System.Reactive.Linq;
using System.Threading;
using System.Threading.Tasks;
using Avalonia;
using Avalonia.Controls;
Expand Down Expand Up @@ -108,6 +110,7 @@ protected override void OnDataContextChanged(EventArgs e)
viewModelSubscription?.Dispose();
viewModelSubscription = viewModel
.WhenPropertyChanged(vm => vm.CanvasSize)
.ObserveOn(SynchronizationContext.Current)
.Subscribe(change =>
{
if (MainCanvas is not null && !change.Value.IsEmpty)
Expand Down
10 changes: 7 additions & 3 deletions StabilityMatrix.Avalonia/DialogHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ public static BetterContentDialog CreateTextEntryDialog(
IReadOnlyList<TextBoxField> textFields
)
{
return CreateTextEntryDialog(title, new MarkdownScrollViewer { Markdown = description }, textFields);
return CreateTextEntryDialog(
title,
new BetterMarkdownScrollViewer { Markdown = description },
textFields
);
}

/// <summary>
Expand All @@ -94,7 +98,7 @@ public static BetterContentDialog CreateTextEntryDialog(
IReadOnlyList<TextBoxField> textFields
)
{
var markdown = new MarkdownScrollViewer { Markdown = description };
var markdown = new BetterMarkdownScrollViewer { Markdown = description };
var image = new BetterAdvancedImage((Uri?)null)
{
Source = imageSource,
Expand Down Expand Up @@ -235,7 +239,7 @@ public static BetterContentDialog CreateMarkdownDialog(
{
Dispatcher.UIThread.VerifyAccess();

var viewer = new MarkdownScrollViewer { Markdown = markdown };
var viewer = new BetterMarkdownScrollViewer { Markdown = markdown };

// Apply syntax highlighting to code blocks if preset is provided
if (editorPreset != default)
Expand Down
38 changes: 34 additions & 4 deletions StabilityMatrix.Avalonia/Services/InferenceClientManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Reactive.Linq;
using System.Threading;
using System.Threading.Tasks;
using AsyncAwaitBestPractices;
Expand Down Expand Up @@ -164,6 +165,7 @@ ICompletionProvider completionProvider
)
.DeferUntilLoaded()
.Bind(Models)
.ObserveOn(SynchronizationContext.Current)
.Subscribe();

controlNetModelsSource
Expand All @@ -176,6 +178,7 @@ ICompletionProvider completionProvider
)
.DeferUntilLoaded()
.Bind(ControlNetModels)
.ObserveOn(SynchronizationContext.Current)
.Subscribe();

loraModelsSource
Expand All @@ -185,6 +188,7 @@ ICompletionProvider completionProvider
LoraModels,
SortExpressionComparer<HybridModelFile>.Ascending(f => f.Type).ThenByAscending(f => f.SortKey)
)
.ObserveOn(SynchronizationContext.Current)
.Subscribe();

promptExpansionModelsSource
Expand All @@ -197,6 +201,7 @@ ICompletionProvider completionProvider
)
.DeferUntilLoaded()
.Bind(PromptExpansionModels)
.ObserveOn(SynchronizationContext.Current)
.Subscribe();

ultralyticsModelsSource
Expand All @@ -209,6 +214,7 @@ ICompletionProvider completionProvider
)
.DeferUntilLoaded()
.Bind(UltralyticsModels)
.ObserveOn(SynchronizationContext.Current)
.Subscribe();

samModelsSource
Expand All @@ -221,6 +227,7 @@ ICompletionProvider completionProvider
)
.DeferUntilLoaded()
.Bind(SamModels)
.ObserveOn(SynchronizationContext.Current)
.Subscribe();

unetModelsSource
Expand All @@ -232,6 +239,7 @@ ICompletionProvider completionProvider
)
.DeferUntilLoaded()
.Bind(UnetModels)
.ObserveOn(SynchronizationContext.Current)
.Subscribe();

clipModelsSource
Expand All @@ -244,25 +252,47 @@ ICompletionProvider completionProvider
)
.DeferUntilLoaded()
.Bind(ClipModels)
.ObserveOn(SynchronizationContext.Current)
.Subscribe();

vaeModelsDefaults.AddOrUpdate(HybridModelFile.Default);

vaeModelsDefaults.Connect().Or(vaeModelsSource.Connect()).Bind(VaeModels).Subscribe();
vaeModelsDefaults
.Connect()
.Or(vaeModelsSource.Connect())
.Bind(VaeModels)
.ObserveOn(SynchronizationContext.Current)
.Subscribe();

samplersSource.Connect().DeferUntilLoaded().Bind(Samplers).Subscribe();
samplersSource
.Connect()
.DeferUntilLoaded()
.Bind(Samplers)
.ObserveOn(SynchronizationContext.Current)
.Subscribe();

latentUpscalersSource
.Connect()
.Or(modelUpscalersSource.Connect())
.Or(downloadableUpscalersSource.Connect())
.Sort(SortExpressionComparer<ComfyUpscaler>.Ascending(f => f.Type).ThenByAscending(f => f.Name))
.Bind(Upscalers)
.ObserveOn(SynchronizationContext.Current)
.Subscribe();

schedulersSource.Connect().DeferUntilLoaded().Bind(Schedulers).Subscribe();
schedulersSource
.Connect()
.DeferUntilLoaded()
.Bind(Schedulers)
.ObserveOn(SynchronizationContext.Current)
.Subscribe();

preprocessorsSource.Connect().DeferUntilLoaded().Bind(Preprocessors).Subscribe();
preprocessorsSource
.Connect()
.DeferUntilLoaded()
.Bind(Preprocessors)
.ObserveOn(SynchronizationContext.Current)
.Subscribe();

settingsManager.RegisterOnLibraryDirSet(_ =>
{
Expand Down
2 changes: 1 addition & 1 deletion StabilityMatrix.Avalonia/StabilityMatrix.Avalonia.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
<PackageReference Include="FuzzySharp" Version="2.0.2" />
<PackageReference Include="JetBrains.Annotations" Version="2024.2.0" />
<PackageReference Include="KeyedSemaphores" Version="5.0.0" />
<PackageReference Include="Markdown.Avalonia" Version="11.0.2" />
<PackageReference Include="Markdown.Avalonia" Version="11.0.3-a1" />
<PackageReference Include="MessagePipe" Version="1.8.1" />
<PackageReference Include="MessagePipe.Interprocess" Version="1.8.1" />
<PackageReference Include="MetadataExtractor" Version="2.8.1" />
Expand Down
Loading
Loading