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:
@@ -2,7 +2,7 @@
|
||||
* ZCLAW Kernel Client (Tauri Internal)
|
||||
*
|
||||
* Client for communicating with the internal ZCLAW Kernel via Tauri commands.
|
||||
* This replaces the external OpenFang Gateway WebSocket connection.
|
||||
* This replaces the external ZCLAW Gateway WebSocket connection.
|
||||
*
|
||||
* Phase 5 of Intelligence Layer Migration.
|
||||
*/
|
||||
@@ -648,24 +648,14 @@ export class KernelClient {
|
||||
* Approve a hand execution
|
||||
*/
|
||||
async approveHand(name: string, runId: string, approved: boolean, reason?: string): Promise<{ status: string }> {
|
||||
try {
|
||||
return await invoke('hand_approve', { handName: name, runId, approved, reason });
|
||||
} catch {
|
||||
this.log('warn', `hand_approve not yet implemented, returning fallback`);
|
||||
return { status: approved ? 'approved' : 'rejected' };
|
||||
}
|
||||
return await invoke('hand_approve', { handName: name, runId, approved, reason });
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancel a hand execution
|
||||
*/
|
||||
async cancelHand(name: string, runId: string): Promise<{ status: string }> {
|
||||
try {
|
||||
return await invoke('hand_cancel', { handName: name, runId });
|
||||
} catch {
|
||||
this.log('warn', `hand_cancel not yet implemented, returning fallback`);
|
||||
return { status: 'cancelled' };
|
||||
}
|
||||
return await invoke('hand_cancel', { handName: name, runId });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user