refactor: 统一项目名称从OpenFang到ZCLAW
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

重构所有代码和文档中的项目名称,将OpenFang统一更新为ZCLAW。包括:
- 配置文件中的项目名称
- 代码注释和文档引用
- 环境变量和路径
- 类型定义和接口名称
- 测试用例和模拟数据

同时优化部分代码结构,移除未使用的模块,并更新相关依赖项。
This commit is contained in:
iven
2026-03-27 07:36:03 +08:00
parent 4b08804aa9
commit 0d4fa96b82
226 changed files with 7288 additions and 5788 deletions

View File

@@ -1,8 +1,8 @@
# ZCLAW 真实环境集成测试 (Windows PowerShell)
# 连接真实 OpenFang Kernel 验证完整数据流
# 连接真实 ZCLAW Kernel 验证完整数据流
#
# 使用方法:
# 1. 确保 OpenFang Kernel 正在运行: openfang start
# 1. 确保 ZCLAW Kernel 正在运行: zclaw start
# 2. 设置 API Key: $env:ZHIPU_API_KEY="your_key"
# 3. 运行测试: .\scripts\tests\real-integration-test.ps1
@@ -132,7 +132,7 @@ try {
Write-TestResult "RI-GW-01" "Gateway 端口 $GatewayPort 可达" "PASS"
$tcpClient.EndConnect($connect)
} else {
Write-TestResult "RI-GW-01" "Gateway 端口 $GatewayPort 可达" "FAIL" "请确保 OpenFang 正在运行: openfang start"
Write-TestResult "RI-GW-01" "Gateway 端口 $GatewayPort 可达" "FAIL" "请确保 ZCLAW 正在运行: zclaw start"
}
$tcpClient.Close()
} catch {
@@ -348,7 +348,7 @@ Write-Log ""
Write-Log "${Yellow}[8. 记忆持久化测试]${Reset}"
$memoryDir = "$env:USERPROFILE\.openfang\data\memory"
$memoryDir = "$env:USERPROFILE\.zclaw\data\memory"
# RI-MEM-01: 检查记忆存储目录
if (Test-Path $memoryDir) {
@@ -381,12 +381,12 @@ if (Test-Path "config/config.toml") {
Write-TestResult "RI-CFG-01" "主配置文件存在" "FAIL"
}
# RI-CFG-02: OpenFang 配置文件
$openfangConfig = "$env:USERPROFILE\.openfang\config.toml"
if (Test-Path $openfangConfig) {
Write-TestResult "RI-CFG-02" "OpenFang 配置文件存在" "PASS"
# RI-CFG-02: ZCLAW 配置文件
$zclawConfig = "$env:USERPROFILE\.zclaw\config.toml"
if (Test-Path $zclawConfig) {
Write-TestResult "RI-CFG-02" "ZCLAW 配置文件存在" "PASS"
} else {
Write-TestResult "RI-CFG-02" "OpenFang 配置文件存在" "FAIL" "请运行: openfang init"
Write-TestResult "RI-CFG-02" "ZCLAW 配置文件存在" "FAIL" "请运行: zclaw init"
}
# RI-CFG-03: 检查前端依赖