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,11 +1,11 @@
#!/bin/bash
# ZCLAW Unified Start Script for macOS/Linux
# Starts: ChromeDriver (optional) -> Tauri Desktop (manages OpenFang internally)
# Starts: ChromeDriver (optional) -> Tauri Desktop (manages ZCLAW internally)
#
# NOTE: OpenFang is bundled with Tauri and managed internally.
# The frontend uses Tauri commands (gateway_start/gateway_status) to control OpenFang.
# No external OpenFang CLI installation is required.
# NOTE: ZCLAW is bundled with Tauri and managed internally.
# The frontend uses Tauri commands (gateway_start/gateway_status) to control ZCLAW.
# No external ZCLAW CLI installation is required.
#
# Usage: ./start.sh [--no-browser] [--dev] [--help]
@@ -44,8 +44,8 @@ while [[ $# -gt 0 ]]; do
echo " --help, -h Show this help message"
echo ""
echo "Note:"
echo " OpenFang is bundled with the Tauri app and managed internally."
echo " No external OpenFang CLI installation required."
echo " ZCLAW is bundled with the Tauri app and managed internally."
echo " No external ZCLAW CLI installation required."
echo ""
echo "Examples:"
echo " ./start.sh # Start all services"
@@ -77,7 +77,7 @@ trap cleanup EXIT INT TERM
echo ""
echo -e "${MAGENTA}═══════════════════════════════════════════${NC}"
echo -e "${MAGENTA} ZCLAW - OpenFang Desktop Client${NC}"
echo -e "${MAGENTA} ZCLAW - AI Agent Desktop Client${NC}"
echo -e "${MAGENTA}═══════════════════════════════════════════${NC}"
echo ""
@@ -114,16 +114,16 @@ fi
echo ""
# 2. Check OpenFang Runtime
echo -e "${CYAN}[INFO]${NC} Checking OpenFang runtime..."
# 2. Check ZCLAW Runtime
echo -e "${CYAN}[INFO]${NC} Checking ZCLAW runtime..."
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
RUNTIME_PATH="$SCRIPT_DIR/desktop/src-tauri/resources/openfang-runtime"
RUNTIME_PATH="$SCRIPT_DIR/desktop/src-tauri/resources/zclaw-runtime"
if [ -f "$RUNTIME_PATH/openfang" ] || [ -f "$RUNTIME_PATH/openfang-x86_64-unknown-linux-gnu" ] || [ -f "$RUNTIME_PATH/openfang-aarch64-apple-darwin" ]; then
echo -e "${GREEN}[OK]${NC} OpenFang runtime found (bundled)"
if [ -f "$RUNTIME_PATH/zclaw" ] || [ -f "$RUNTIME_PATH/zclaw-x86_64-unknown-linux-gnu" ] || [ -f "$RUNTIME_PATH/zclaw-aarch64-apple-darwin" ]; then
echo -e "${GREEN}[OK]${NC} ZCLAW runtime found (bundled)"
else
echo -e "${YELLOW}[WARN]${NC} OpenFang runtime not found at $RUNTIME_PATH"
echo -e "${CYAN}[INFO]${NC} Run: cd desktop && pnpm prepare:openfang-runtime"
echo -e "${YELLOW}[WARN]${NC} ZCLAW runtime not found at $RUNTIME_PATH"
echo -e "${CYAN}[INFO]${NC} Run: cd desktop && pnpm prepare:zclaw-runtime"
fi
echo ""
@@ -134,7 +134,7 @@ cd desktop
if [ "$DEV_MODE" = true ]; then
echo -e "${CYAN}[INFO]${NC} Starting in development mode..."
echo -e "${CYAN}[INFO]${NC} OpenFang will be started by the app via Tauri commands"
echo -e "${CYAN}[INFO]${NC} ZCLAW will be started by the app via Tauri commands"
pnpm tauri dev
else
# Check if built version exists