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
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:
@@ -10,7 +10,7 @@
|
||||
|
||||
### 前置条件
|
||||
|
||||
- [ ] OpenFang Kernel 已安装并配置
|
||||
- [ ] ZCLAW Kernel 已安装并配置
|
||||
- [ ] 至少一个中文模型 API Key 已配置(GLM/Qwen/Kimi/MiniMax)
|
||||
- [ ] Tauri 桌面应用已构建
|
||||
- [ ] 测试账号已准备
|
||||
@@ -18,7 +18,7 @@
|
||||
### 环境变量检查
|
||||
|
||||
```bash
|
||||
# 检查 OpenFang 配置
|
||||
# 检查 ZCLAW 配置
|
||||
cat config/config.toml
|
||||
|
||||
# 检查中文模型配置
|
||||
@@ -29,11 +29,11 @@ cat config/chinese-providers.toml
|
||||
|
||||
## 一、Gateway 连接测试
|
||||
|
||||
### TEST-GW-01: OpenFang Kernel 启动
|
||||
### TEST-GW-01: ZCLAW Kernel 启动
|
||||
|
||||
| 项目 | 内容 |
|
||||
|------|------|
|
||||
| **前置条件** | OpenFang 已安装 |
|
||||
| **前置条件** | ZCLAW 已安装 |
|
||||
| **测试步骤** | 1. 启动 Tauri 应用<br>2. 检查连接状态指示器<br>3. 确认显示"已连接" |
|
||||
| **预期结果** | 连接状态为 `connected`,无错误提示 |
|
||||
| **验证方法** | 检查 ConnectionStatus 组件状态 |
|
||||
@@ -64,7 +64,7 @@ cat config/chinese-providers.toml
|
||||
| 项目 | 内容 |
|
||||
|------|------|
|
||||
| **前置条件** | TEST-GW-02 通过 |
|
||||
| **测试步骤** | 1. 手动停止 OpenFang 进程<br>2. 等待 10 秒<br>3. 重启 OpenFang<br>4. 观察应用行为 |
|
||||
| **测试步骤** | 1. 手动停止 ZCLAW 进程<br>2. 等待 10 秒<br>3. 重启 ZCLAW<br>4. 观察应用行为 |
|
||||
| **预期结果** | 应用自动重连,状态正确更新 |
|
||||
| **验证方法** | 检查重连日志和 UI 状态变化 |
|
||||
| **当前状态** | ⏳ 待验证 |
|
||||
@@ -281,7 +281,7 @@ cat config/chinese-providers.toml
|
||||
|----------|--------|------|
|
||||
| workflowStore.test.ts | 32 | ✅ 通过 |
|
||||
| teamStore.test.ts | 20 | ✅ 通过 |
|
||||
| openfang-api.test.ts | 30 | ✅ 通过 |
|
||||
| zclaw-api.test.ts | 30 | ✅ 通过 |
|
||||
| swarm-skills.test.ts | 15 | ✅ 通过 |
|
||||
| heartbeat-reflection.test.ts | 25 | ✅ 通过 |
|
||||
| **总计** | **312** | **✅ 全部通过** |
|
||||
@@ -309,7 +309,7 @@ cat config/chinese-providers.toml
|
||||
| 项目 | 状态 | 说明 |
|
||||
|------|------|------|
|
||||
| pnpm | ✅ | v10.30.2 |
|
||||
| OpenFang Runtime | ✅ | v0.4.0 (57MB) |
|
||||
| ZCLAW Runtime | ✅ | v0.4.0 (57MB) |
|
||||
| Playwright | ✅ | v1.58.2 |
|
||||
| 配置文件 | ✅ | config.toml, chinese-providers.toml |
|
||||
|
||||
@@ -328,7 +328,7 @@ echo "Started at: $(date)"
|
||||
|
||||
# 1. 检查环境
|
||||
echo "[1/5] Checking environment..."
|
||||
command -v openfang >/dev/null 2>&1 || { echo "ERROR: openfang not found"; exit 1; }
|
||||
command -v zclaw >/dev/null 2>&1 || { echo "ERROR: zclaw not found"; exit 1; }
|
||||
command -v pnpm >/dev/null 2>&1 || { echo "ERROR: pnpm not found"; exit 1; }
|
||||
|
||||
# 2. 检查配置
|
||||
@@ -336,9 +336,9 @@ echo "[2/5] Checking configuration..."
|
||||
test -f config/config.toml || { echo "ERROR: config.toml not found"; exit 1; }
|
||||
test -f config/chinese-providers.toml || { echo "ERROR: chinese-providers.toml not found"; exit 1; }
|
||||
|
||||
# 3. 启动 OpenFang
|
||||
echo "[3/5] Starting OpenFang..."
|
||||
openfang start || { echo "ERROR: Failed to start OpenFang"; exit 1; }
|
||||
# 3. 启动 ZCLAW
|
||||
echo "[3/5] Starting ZCLAW..."
|
||||
zclaw start || { echo "ERROR: Failed to start ZCLAW"; exit 1; }
|
||||
sleep 5
|
||||
|
||||
# 4. 运行 E2E 测试
|
||||
@@ -348,7 +348,7 @@ pnpm test:e2e || { echo "WARNING: Some E2E tests failed"; }
|
||||
|
||||
# 5. 清理
|
||||
echo "[5/5] Cleanup..."
|
||||
openfang stop
|
||||
zclaw stop
|
||||
|
||||
echo "=== Test completed at: $(date) ==="
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user