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

@@ -82,7 +82,7 @@ const mockClient = {
listScheduledTasks: vi.fn(async () => ({
tasks: [{ id: 'task_1', name: 'Daily Summary', schedule: '0 9 * * *', status: 'active' }],
})),
// OpenFang methods
// ZCLAW methods
listHands: vi.fn(async () => ({
hands: [
{ name: 'echo', description: 'Echo handler', status: 'active' },
@@ -233,7 +233,7 @@ function resetClientMocks() {
mockClient.listChannels.mockReset();
mockClient.getFeishuStatus.mockReset();
mockClient.listScheduledTasks.mockReset();
// OpenFang mocks
// ZCLAW mocks
mockClient.listHands.mockReset();
mockClient.triggerHand.mockReset();
mockClient.listWorkflows.mockReset();
@@ -310,7 +310,7 @@ function resetClientMocks() {
mockClient.listScheduledTasks.mockResolvedValue({
tasks: [{ id: 'task_1', name: 'Daily Summary', schedule: '0 9 * * *', status: 'active' }],
});
// OpenFang mock defaults
// ZCLAW mock defaults
mockClient.listHands.mockResolvedValue({
hands: [
{ name: 'echo', description: 'Echo handler', status: 'idle', requirements_met: true },
@@ -488,7 +488,7 @@ describe('gatewayStore desktop flows', () => {
});
});
describe('OpenFang actions', () => {
describe('ZCLAW actions', () => {
beforeEach(() => {
vi.clearAllMocks();
vi.resetModules();
@@ -601,7 +601,7 @@ describe('OpenFang actions', () => {
]);
});
it('initializes OpenFang state with empty arrays', async () => {
it('initializes ZCLAW state with empty arrays', async () => {
const { useHandStore } = await import('../../desktop/src/store/handStore');
const { useWorkflowStore } = await import('../../desktop/src/store/workflowStore');
const { useSecurityStore } = await import('../../desktop/src/store/securityStore');