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:
@@ -1,9 +1,9 @@
|
||||
# ZClaw Chinese LLM Providers Configuration
|
||||
# OpenFang TOML 格式的中文模型提供商配置
|
||||
# ZCLAW Chinese LLM Providers Configuration
|
||||
# ZCLAW TOML 格式的中文模型提供商配置
|
||||
#
|
||||
# 使用方法:
|
||||
# 1. 复制此文件到 ~/.openfang/config.d/ 目录
|
||||
# 2. 或者将内容追加到 ~/.openfang/config.toml
|
||||
# 1. 复制此文件到 ~/.zclaw/config.d/ 目录
|
||||
# 2. 或者将内容追加到 ~/.zclaw/config.toml
|
||||
# 3. 设置环境变量: ZHIPU_API_KEY, QWEN_API_KEY, KIMI_API_KEY, MINIMAX_API_KEY
|
||||
|
||||
# ============================================================
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# ============================================================
|
||||
# ZClaw OpenFang Main Configuration
|
||||
# OpenFang TOML format configuration file
|
||||
# ZCLAW Main Configuration
|
||||
# ZCLAW TOML format configuration file
|
||||
# ============================================================
|
||||
#
|
||||
# Usage:
|
||||
# 1. Copy this file to ~/.openfang/config.toml
|
||||
# 1. Copy this file to ~/.zclaw/config.toml
|
||||
# 2. Set environment variables for API keys
|
||||
# 3. Import chinese-providers.toml for Chinese LLM support
|
||||
#
|
||||
@@ -38,7 +38,7 @@ api_version = "v1"
|
||||
|
||||
[agent.defaults]
|
||||
# Default workspace for agent operations
|
||||
workspace = "~/.openfang/zclaw-workspace"
|
||||
workspace = "~/.zclaw/zclaw-workspace"
|
||||
|
||||
# Default model for new sessions
|
||||
default_model = "zhipu/glm-4-plus"
|
||||
@@ -57,7 +57,7 @@ max_sessions = 10
|
||||
|
||||
[agent.defaults.sandbox]
|
||||
# Sandbox root directory
|
||||
workspace_root = "~/.openfang/zclaw-workspace"
|
||||
workspace_root = "~/.zclaw/zclaw-workspace"
|
||||
|
||||
# Allowed shell commands (empty = all allowed)
|
||||
# allowed_commands = ["git", "npm", "pnpm", "cargo"]
|
||||
@@ -104,7 +104,7 @@ execution_timeout = "30m"
|
||||
|
||||
# Audit settings
|
||||
audit_enabled = true
|
||||
audit_log_path = "~/.openfang/logs/hands-audit.log"
|
||||
audit_log_path = "~/.zclaw/logs/hands-audit.log"
|
||||
|
||||
# ============================================================
|
||||
# LLM Provider Configuration
|
||||
@@ -166,7 +166,7 @@ burst_size = 20
|
||||
# Audit logging
|
||||
[security.audit]
|
||||
enabled = true
|
||||
log_path = "~/.openfang/logs/audit.log"
|
||||
log_path = "~/.zclaw/logs/audit.log"
|
||||
log_format = "json"
|
||||
|
||||
# ============================================================
|
||||
@@ -183,7 +183,7 @@ format = "pretty"
|
||||
# Log file settings
|
||||
[logging.file]
|
||||
enabled = true
|
||||
path = "~/.openfang/logs/openfang.log"
|
||||
path = "~/.zclaw/logs/zclaw.log"
|
||||
max_size = "10MB"
|
||||
max_files = 5
|
||||
compress = true
|
||||
@@ -228,7 +228,7 @@ max_results = 10
|
||||
|
||||
# File system tool
|
||||
[tools.fs]
|
||||
allowed_paths = ["~/.openfang/zclaw-workspace"]
|
||||
allowed_paths = ["~/.zclaw/zclaw-workspace"]
|
||||
max_file_size = "10MB"
|
||||
|
||||
# ============================================================
|
||||
@@ -237,7 +237,7 @@ max_file_size = "10MB"
|
||||
|
||||
[workflow]
|
||||
# Workflow storage
|
||||
storage_path = "~/.openfang/workflows"
|
||||
storage_path = "~/.zclaw/workflows"
|
||||
|
||||
# Execution settings
|
||||
max_steps = 100
|
||||
|
||||
Reference in New Issue
Block a user