Ship Assistent 0.13.1: compile 0.13.0 so the SwarmUI tab loads.

Add missing WebSocket/HttpClient usings, stop using static on Config/FilePath helpers, and copy Microsoft.Data.Sqlite next to the extension dll.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-22 15:14:31 +03:00
co-authored by Cursor
parent 474a674a35
commit d29436c944
10 changed files with 32 additions and 13 deletions
+3 -3
View File
@@ -137,7 +137,7 @@ public partial class SwarmAssistentExtension
string cacheKey = $"hf:{datasetId}";
if (useCache)
{
JObject cached = Memory.GetKvObject(KvHfDatasetCache)?[cacheKey] as JObject;
JObject cached = Memory.GetKvObject(AssistentMemory.KvHfDatasetCache)?[cacheKey] as JObject;
if (cached is not null && cached["checked_at"]?.Value<long?>() > DateTimeOffset.UtcNow.AddHours(-6).ToUnixTimeMilliseconds())
{
return cached;
@@ -302,9 +302,9 @@ public partial class SwarmAssistentExtension
result["checked_at"] = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
try
{
JObject bag = Memory.GetKvObject(KvHfDatasetCache) ?? new JObject();
JObject bag = Memory.GetKvObject(AssistentMemory.KvHfDatasetCache) ?? new JObject();
bag[cacheKey] = result;
Memory.SetKvObject(KvHfDatasetCache, bag);
Memory.SetKvObject(AssistentMemory.KvHfDatasetCache, bag);
}
catch (Exception ex)
{