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

@@ -81,8 +81,8 @@ error() {
if [ "$STOP_SERVICES" = true ]; then
step "Stopping all services..."
# Kill OpenFang processes
pkill -f "openfang" 2>/dev/null || true
# Kill ZCLAW processes
pkill -f "zclaw" 2>/dev/null || true
# Kill Vite processes
pkill -f "vite" 2>/dev/null || true
@@ -158,13 +158,13 @@ if [ "$SKIP_BACKEND" = false ] && [ "$DESKTOP_ONLY" = false ]; then
fi
if [ "$BACKEND_RUNNING" = false ]; then
echo "Starting OpenFang backend..."
echo "Starting ZCLAW backend..."
STARTED=false
# Method 1: Use openfang CLI
if command -v openfang &> /dev/null; then
openfang start &
# Method 1: Use zclaw CLI
if command -v zclaw &> /dev/null; then
zclaw start &
STARTED=true
fi
@@ -176,8 +176,8 @@ if [ "$SKIP_BACKEND" = false ] && [ "$DESKTOP_ONLY" = false ]; then
if [ "$STARTED" = false ]; then
error "Cannot start backend service"
echo "Please start OpenFang manually:"
echo " openfang start"
echo "Please start ZCLAW manually:"
echo " zclaw start"
exit 1
fi
@@ -198,7 +198,7 @@ if [ "$SKIP_BACKEND" = false ] && [ "$DESKTOP_ONLY" = false ]; then
if [ $RETRIES -ge $MAX_RETRIES ]; then
error "Backend startup timeout"
echo "Please check if OpenFang is properly installed"
echo "Please check if ZCLAW is properly installed"
exit 1
fi
fi