From df6a437518d89eebfa1a583e09ec99c462e64e47 Mon Sep 17 00:00:00 2001
From: Moli <13026959681@163.com>
Date: 星期三, 12 八月 2026 20:42:12 +0800
Subject: [PATCH] 移除发布文件的跟踪

---
 src/Moli.Desktop.Tests/Runtime/DesktopRuntimeCoordinatorTests.cs |   40 +++++++++++++++++++++++++++++++++++++++-
 1 files changed, 39 insertions(+), 1 deletions(-)

diff --git a/src/Moli.Desktop.Tests/Runtime/DesktopRuntimeCoordinatorTests.cs b/src/Moli.Desktop.Tests/Runtime/DesktopRuntimeCoordinatorTests.cs
index 3b3ebde..00e8102 100644
--- a/src/Moli.Desktop.Tests/Runtime/DesktopRuntimeCoordinatorTests.cs
+++ b/src/Moli.Desktop.Tests/Runtime/DesktopRuntimeCoordinatorTests.cs
@@ -1,9 +1,11 @@
+using System.Runtime.CompilerServices;
 using Microsoft.Extensions.Logging.Abstractions;
 using Moli.Desktop.Configuration;
 using Moli.Desktop.Diagnostics;
 using Moli.Desktop.Host;
 using Moli.Desktop.Interop;
 using Moli.Desktop.Layout;
+using Moli.Desktop.Llm;
 using Moli.Desktop.Plugins;
 using Moli.Desktop.Runtime;
 using Moli.Desktop.Tests.Interop;
@@ -170,7 +172,8 @@
                 diagnostics,
                 events,
                 surface,
-                new DisplayChangeMonitor());
+                new DisplayChangeMonitor(),
+                new FakeLlmGateway());
 
             return new RuntimeFixture(runtime, configuration, events, surface, widgetId);
         }
@@ -245,4 +248,39 @@
 
         public Task ReattachDesktopLayersAsync(CancellationToken cancellationToken = default) => Task.CompletedTask;
     }
+
+    private sealed class FakeLlmGateway : ILlmGatewayService
+    {
+        public Task<IReadOnlyList<LlmModelSummary>> GetModelsAsync(CancellationToken cancellationToken = default)
+            => Task.FromResult<IReadOnlyList<LlmModelSummary>>([]);
+
+        public Task<IReadOnlyList<LlmModelSummary>> GetModelsAsync(LlmPluginRuntimeConfig runtimeConfig, CancellationToken cancellationToken = default)
+            => Task.FromResult<IReadOnlyList<LlmModelSummary>>([]);
+
+        public Task<IReadOnlyList<AiChatProjectSummary>> GetProjectsAsync(LlmPluginRuntimeConfig runtimeConfig, CancellationToken cancellationToken = default)
+            => Task.FromResult<IReadOnlyList<AiChatProjectSummary>>([]);
+
+        public Task<AiChatMemoryCapabilities> GetMemoryCapabilitiesAsync(LlmPluginRuntimeConfig runtimeConfig, CancellationToken cancellationToken = default)
+            => Task.FromResult(new AiChatMemoryCapabilities());
+
+        public Task<AiChatJsonResult> GetMemoriesAsync(LlmPluginRuntimeConfig runtimeConfig, AiChatGetMemoriesRequest request, CancellationToken cancellationToken = default)
+            => Task.FromResult(new AiChatJsonResult());
+
+        public Task<AiChatJsonResult> CreateMemoryAsync(LlmPluginRuntimeConfig runtimeConfig, AiChatCreateMemoryRequest request, CancellationToken cancellationToken = default)
+            => Task.FromResult(new AiChatJsonResult());
+
+        public Task DeleteMemoryAsync(LlmPluginRuntimeConfig runtimeConfig, string memoryId, CancellationToken cancellationToken = default) => Task.CompletedTask;
+
+        public Task<AiChatJsonResult> RecallMemoriesAsync(LlmPluginRuntimeConfig runtimeConfig, AiChatRecallMemoriesRequest request, CancellationToken cancellationToken = default)
+            => Task.FromResult(new AiChatJsonResult());
+
+        public async IAsyncEnumerable<LlmStreamEvent> StreamChatAsync(LlmChatRequest request, [EnumeratorCancellation] CancellationToken cancellationToken = default)
+        {
+            yield break;
+        }
+
+        public Task CancelAsync(string requestId, CancellationToken cancellationToken = default) => Task.CompletedTask;
+
+        public Task CancelPluginRequestsAsync(string pluginId, CancellationToken cancellationToken = default) => Task.CompletedTask;
+    }
 }

--
Gitblit v1.9.1