Files
swarm-assistent/AssistentSqliteBootstrap.cs
T
Leonid PershinandCursor b0f2736f65 Ship Assistent 0.15.11: collaborative params, richer UI, and strict image critique.
Adds session_exact pinning, sampler/scheduler chips, expanded param tags with non-default highlighting, QLoRA HF presets, LoRA strength editing, SQLite bootstrap for training memory, last-job UI, and harsher critique_image QC so result review leads with defects instead of praise.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 19:59:45 +03:00

23 lines
568 B
C#

using System.Threading;
using SQLitePCL;
namespace Mrleo1nid.SwarmAssistent;
/// <summary>
/// SwarmUI loads extensions in an isolated AssemblyLoadContext — Microsoft.Data.Sqlite
/// does not auto-init native SQLite there. Call once before the first connection.
/// </summary>
internal static class AssistentSqliteBootstrap
{
static int _ready;
internal static void EnsureInitialized()
{
if (Interlocked.CompareExchange(ref _ready, 1, 0) != 0)
{
return;
}
Batteries_V2.Init();
}
}