refactor(phase3): remove OpenClaw compatibility layer

Phase 3 Configuration Migration completed:
- Remove OpenClaw backend type selector from General.tsx
- Update default workspace path from ~/.openclaw to ~/.openfang
- Update default port from 18789 to 50051
- Archive openclaw.default.json to docs/archive/openclaw-legacy/
- Remove OpenClaw migration UI from Workspace settings
- Update About.tsx to reference OpenFang
- Clean up gateway-client.ts comments

All OpenClaw compatibility code removed. ZCLAW now exclusively
targets OpenFang (Rust Agent OS) backend.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
iven
2026-03-15 02:00:04 +08:00
parent d60d445cbf
commit 2cc1514d1b
10 changed files with 30 additions and 87 deletions

View File

@@ -240,7 +240,7 @@ ZCLAW 是基于 **OpenFang** (Rust Agent OS) 的 AI Agent 桌面客户端,核
|------|------|------|
| 迁移 openclaw.default.json | 转换为 config.toml | ✅ 已完成 |
| 补充主 config.toml | OpenFang 服务器配置 | ✅ 已完成 |
| 清理 OpenClaw 遗留代码 | 移除兼容层 | 🔴 待开始 |
| 清理 OpenClaw 遗留代码 | 移除兼容层 | ✅ 已完成 |
### Phase 4: 类型系统完善 (P2)
@@ -327,8 +327,9 @@ ZCLAW 是基于 **OpenFang** (Rust Agent OS) 的 AI Agent 桌面客户端,核
- [x] 创建 OpenFang config.toml
- [x] 迁移 OpenClaw JSON 配置到 TOML
- [ ] OpenClaw JSON 配置文件 (保留 openclaw.default.json 作为参考)
- [ ] 无 OpenClaw 兼容层代码
- [x] OpenClaw JSON 配置已归档到 docs/archive/openclaw-legacy/
- [x] 默认路径从 ~/.openclaw 更新为 ~/.openfang
- [x] 默认端口从 18789 更新为 50051
### 6.4 Phase 4 完成标准
@@ -383,7 +384,7 @@ ZCLAW 是基于 **OpenFang** (Rust Agent OS) 的 AI Agent 桌面客户端,核
*文档创建: 2026-03-14*
*最后更新: 2026-03-15*
*Phase 1 & 2 已完成*
*Phase 3 进行中 (2/3)*
*Phase 3 已完成*
*Phase 4 已完成*
*Phase 5 进行中 (9/60+ Skills)*
*下次审查: Phase 3 完成后*
*下次审查: Phase 5 扩展*

View File

@@ -0,0 +1,70 @@
{
"_comment": "ZCLAW default OpenClaw configuration",
"agents": {
"defaults": {
"workspace": "~/.openclaw/zclaw-workspace",
"model": {
"primary": "zhipu/glm-5",
"fallbacks": ["openai/gpt-4o", "qwen/qwen3.5-plus"]
},
"models": {
"zhipu/glm-5": { "alias": "GLM-5" },
"zhipu/glm-4.7": { "alias": "GLM-4.7" },
"qwen/qwen3.5-plus": { "alias": "Qwen3.5+" },
"kimi/kimi-k2.5": { "alias": "Kimi-K2.5" },
"minimax/minimax-m2.5": { "alias": "MiniMax-M2.5" },
"openai/gpt-4o": { "alias": "GPT-4o" }
},
"heartbeat": {
"every": "1h"
},
"sandbox": {
"workspaceRoot": "~/.openclaw/zclaw-workspace"
}
},
"list": [
{
"id": "main",
"groupChat": {
"mentionPatterns": ["@zclaw", "zclaw", "小龙虾"]
}
}
]
},
"channels": {
"feishu": {
"enabled": false,
"accounts": {
"default": {
"appId": "",
"appSecret": "",
"enabled": false
}
}
}
},
"plugins": {
"load": {
"paths": [
"./plugins/zclaw-chinese-models",
"./plugins/zclaw-feishu",
"./plugins/zclaw-ui"
]
}
},
"skills": {
"load": {
"extraDirs": ["./skills"]
}
},
"tools": {
"exec": {
"shell": true
},
"web": {
"search": {
"enabled": true
}
}
}
}