refactor: split node agent and Go control plane
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
## 验证结果
|
||||
|
||||
Linux:`dotnet test tests/WxAgent.Core.Tests -c Release --no-restore`,**121/121 通过**;完整解决方案 Release build 无警告、无错误。新增测试覆盖新旧指纹、错误类型/正文/文件名、结构化提及、Unicode 提及间隔、文本长度/控制字符及多行引用解析。
|
||||
Linux:`dotnet test tests/node-agent/WxAgent.Core.Tests -c Release --no-restore`,**121/121 通过**;完整解决方案 Release build 无警告、无错误。新增测试覆盖新旧指纹、错误类型/正文/文件名、结构化提及、Unicode 提及间隔、文本长度/控制字符及多行引用解析。
|
||||
|
||||
最终包执行 `Test-GeneralSending.ps1 -IncludeMentions`,**9/9 通过**:
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
## Linux 检查
|
||||
|
||||
```bash
|
||||
dotnet test tests/WxAgent.Core.Tests -c Release
|
||||
dotnet test tests/node-agent/WxAgent.Core.Tests -c Release
|
||||
dotnet build WxAgent.sln -c Release -p:EnableWindowsTargeting=true
|
||||
dotnet publish src/WxAgent.Host -c Release -r win-x64 --self-contained true \
|
||||
dotnet publish node-agent/WxAgent.Host -c Release -r win-x64 --self-contained true \
|
||||
-p:EnableWindowsTargeting=true -p:PublishSingleFile=true \
|
||||
-p:IncludeNativeLibrariesForSelfExtract=true -p:PublishTrimmed=false
|
||||
```
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
## Linux
|
||||
|
||||
- .NET SDK:`8.0.424`
|
||||
- `dotnet test tests/WxAgent.Core.Tests -c Release`:7/7 通过。
|
||||
- `dotnet test tests/node-agent/WxAgent.Core.Tests -c Release`:7/7 通过。
|
||||
- `dotnet build WxAgent.sln -c Release -p:EnableWindowsTargeting=true`:0 warning / 0 error。
|
||||
- self-contained single-file `win-x64` 发布成功;产物约 182 MB,包含自提取 SQLCipher native library。
|
||||
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
## Linux 验证
|
||||
|
||||
```bash
|
||||
dotnet test tests/WxAgent.Core.Tests -c Release
|
||||
dotnet test tests/node-agent/WxAgent.Core.Tests -c Release
|
||||
dotnet build WxAgent.sln -c Release -p:EnableWindowsTargeting=true
|
||||
dotnet publish src/WxAgent.Host -c Release -r win-x64 --self-contained true \
|
||||
dotnet publish node-agent/WxAgent.Host -c Release -r win-x64 --self-contained true \
|
||||
-p:EnableWindowsTargeting=true -p:PublishSingleFile=true \
|
||||
-p:IncludeNativeLibrariesForSelfExtract=true -p:PublishTrimmed=false
|
||||
```
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
## Linux 验证
|
||||
|
||||
```bash
|
||||
dotnet test tests/WxAgent.Core.Tests -c Release
|
||||
dotnet test tests/node-agent/WxAgent.Core.Tests -c Release
|
||||
dotnet build WxAgent.sln -c Release -p:EnableWindowsTargeting=true
|
||||
dotnet publish src/WxAgent.Host -c Release -r win-x64 --self-contained true \
|
||||
dotnet publish node-agent/WxAgent.Host -c Release -r win-x64 --self-contained true \
|
||||
-p:EnableWindowsTargeting=true -p:PublishSingleFile=true \
|
||||
-p:IncludeNativeLibrariesForSelfExtract=true -p:PublishTrimmed=false
|
||||
```
|
||||
|
||||
@@ -22,13 +22,13 @@
|
||||
## Linux 验证
|
||||
|
||||
```text
|
||||
~/.dotnet/dotnet test tests/WxAgent.Core.Tests -c Release --no-restore
|
||||
~/.dotnet/dotnet test tests/node-agent/WxAgent.Core.Tests -c Release --no-restore
|
||||
Passed: 19, Failed: 0
|
||||
|
||||
~/.dotnet/dotnet build WxAgent.sln -c Release -p:EnableWindowsTargeting=true --no-restore
|
||||
Build succeeded. 0 Warning(s), 0 Error(s)
|
||||
|
||||
~/.dotnet/dotnet publish src/WxAgent.Host -c Release -r win-x64 --self-contained true \
|
||||
~/.dotnet/dotnet publish node-agent/WxAgent.Host -c Release -r win-x64 --self-contained true \
|
||||
-p:EnableWindowsTargeting=true -p:PublishSingleFile=true -p:PublishTrimmed=false --no-restore
|
||||
Publish succeeded.
|
||||
```
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
## Linux 验证
|
||||
|
||||
```text
|
||||
~/.dotnet/dotnet test tests/WxAgent.Core.Tests -c Release --no-restore
|
||||
~/.dotnet/dotnet test tests/node-agent/WxAgent.Core.Tests -c Release --no-restore
|
||||
Passed: 30, Failed: 0
|
||||
|
||||
~/.dotnet/dotnet build WxAgent.sln -c Release -p:EnableWindowsTargeting=true --no-restore
|
||||
Build succeeded. 0 Warning(s), 0 Error(s)
|
||||
|
||||
~/.dotnet/dotnet publish src/WxAgent.Host -c Release -r win-x64 --self-contained true \
|
||||
~/.dotnet/dotnet publish node-agent/WxAgent.Host -c Release -r win-x64 --self-contained true \
|
||||
-p:EnableWindowsTargeting=true -p:PublishSingleFile=true -p:PublishTrimmed=false --no-restore
|
||||
Publish succeeded.
|
||||
```
|
||||
|
||||
@@ -49,8 +49,8 @@
|
||||
|
||||
```bash
|
||||
dotnet build WxAgent.sln -c Release -p:EnableWindowsTargeting=true --no-restore --verbosity minimal
|
||||
dotnet test tests/WxAgent.Core.Tests -c Release --no-restore --verbosity minimal
|
||||
python3 tests/check_contact_query.py
|
||||
dotnet test tests/node-agent/WxAgent.Core.Tests -c Release --no-restore --verbosity minimal
|
||||
python3 tests/node-agent/check_contact_query.py
|
||||
git diff --check
|
||||
```
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
|
||||
## 自动化证据
|
||||
|
||||
- `dotnet test tests/WxAgent.Core.Tests -c Release`:153 passed。
|
||||
- `dotnet test tests/WxAgent.Service.Tests -c Release`:12 passed。
|
||||
- `dotnet test tests/node-agent/WxAgent.Core.Tests -c Release`:153 passed。
|
||||
- `dotnet test tests/node-agent/WxAgent.Service.Tests -c Release`:12 passed。
|
||||
- `dotnet build WxAgent.sln -c Release -p:EnableWindowsTargeting=true`:成功,0 warning/0 error。
|
||||
- self-contained `win-x64` publish:成功,包含 `wwwroot` 与 MCP 依赖。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user