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:
@@ -8,6 +8,7 @@ import { create } from 'zustand';
|
||||
import type { GatewayModelChoice } from '../lib/gateway-config';
|
||||
import { setStoredGatewayUrl, setStoredGatewayToken } from '../lib/gateway-client';
|
||||
import type { GatewayClient } from '../lib/gateway-client';
|
||||
import { invoke } from '@tauri-apps/api/core';
|
||||
|
||||
// === Types ===
|
||||
|
||||
@@ -654,9 +655,20 @@ function createConfigClientFromKernel(client: KernelClient): ConfigStoreClient {
|
||||
createChannel: async () => null,
|
||||
updateChannel: async () => null,
|
||||
deleteChannel: async () => {},
|
||||
listScheduledTasks: async () => ({ tasks: [] }),
|
||||
createScheduledTask: async () => {
|
||||
throw new Error('Scheduled tasks not supported in KernelClient');
|
||||
listScheduledTasks: async () => {
|
||||
try {
|
||||
const tasks = await invoke<ScheduledTask[]>('scheduled_task_list');
|
||||
return { tasks };
|
||||
} catch {
|
||||
return { tasks: [] };
|
||||
}
|
||||
},
|
||||
createScheduledTask: async (task) => {
|
||||
const result = await invoke<{ id: string; name: string; schedule: string; status: string }>(
|
||||
'scheduled_task_create',
|
||||
{ request: task },
|
||||
);
|
||||
return { ...result, status: result.status as 'active' | 'paused' | 'completed' | 'error' };
|
||||
},
|
||||
listModels: async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user