chore: 理顺 Core/Web 命名空间,并显式列出 Core 编译文件。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-01 14:07:46 +08:00
co-authored by Cursor
parent 950d09ddb0
commit 2c5c6fd118
12 changed files with 31 additions and 10 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
using System.Text.Json;
namespace MAF1.Agents;
namespace MAF1.Core.Agents;
/// <summary>
/// 一次 Agent 执行的统一结果。网页编排器和进程外插件都用这套字段,方便画布把输出接到下一节点。
@@ -1,4 +1,5 @@
using System.Text.Json;
using MAF1.Core.Agents;
using MAF1.Tools;
using MAF1.Utils;
using Microsoft.Agents.AI;
+1
View File
@@ -1,3 +1,4 @@
using MAF1.Core.Agents;
using MAF1.Tools;
using MAF1.Utils;
using Microsoft.Agents.AI;
+1 -1
View File
@@ -1,4 +1,4 @@
using MAF1.Agents;
using MAF1.Core.Agents;
namespace MAF1.Decisions;
+19 -1
View File
@@ -4,9 +4,27 @@
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>MAF1</RootNamespace>
<RootNamespace>MAF1.Core</RootNamespace>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
</PropertyGroup>
<ItemGroup>
<Compile Include="Agents\AgentStepResult.cs" />
<Compile Include="Agents\FileCity\CityExtraction.cs" />
<Compile Include="Agents\FileCity\FileCityAgent.cs" />
<Compile Include="Agents\Weather\WeatherAgent.cs" />
<Compile Include="Decisions\DecisionModels.cs" />
<Compile Include="PluginContract\PluginManifest.cs" />
<Compile Include="PluginContract\PluginStdio.cs" />
<Compile Include="Tools\FileTools.cs" />
<Compile Include="Tools\WeatherOptions.cs" />
<Compile Include="Tools\WeatherTools.cs" />
<Compile Include="Utils\AgentFactory.cs" />
<Compile Include="Utils\JsonText.cs" />
<Compile Include="Utils\LlmOptions.cs" />
<Compile Include="Utils\WindowsConsole.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Azure.AI.OpenAI" Version="2.1.0" />
<PackageReference Include="Microsoft.Agents.AI.OpenAI" Version="1.19.0" />
+1 -1
View File
@@ -61,7 +61,7 @@ public static class PluginStdio
/// </summary>
public static IConfiguration LoadHostConfiguration()
{
string contentRoot = Environment.GetEnvironmentVariable("MAF1_CONTENT_ROOT");
string? contentRoot = Environment.GetEnvironmentVariable("MAF1_CONTENT_ROOT");
if (string.IsNullOrWhiteSpace(contentRoot) || !Directory.Exists(contentRoot))
{
contentRoot = AppContext.BaseDirectory;