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。包括: - 配置文件中的项目名称 - 代码注释和文档引用 - 环境变量和路径 - 类型定义和接口名称 - 测试用例和模拟数据 同时优化部分代码结构,移除未使用的模块,并更新相关依赖项。
34 lines
750 B
TypeScript
34 lines
750 B
TypeScript
/**
|
|
* ZCLAW Gateway Configuration Types
|
|
*
|
|
* Types for gateway configuration and model choices.
|
|
*/
|
|
|
|
export interface GatewayModelChoice {
|
|
id: string;
|
|
name: string;
|
|
provider?: string;
|
|
contextWindow?: number;
|
|
maxOutput?: number;
|
|
}
|
|
|
|
export interface GatewayConfigSnapshot {
|
|
agentName?: string;
|
|
agentRole?: string;
|
|
userName?: string;
|
|
userRole?: string;
|
|
model?: string;
|
|
workspaceDir?: string;
|
|
gatewayUrl?: string;
|
|
gatewayToken?: string;
|
|
skillsExtraDirs?: string[];
|
|
mcpServices?: Array<{ id: string; name: string; enabled: boolean }>;
|
|
theme?: 'light' | 'dark';
|
|
autoStart?: boolean;
|
|
showToolCalls?: boolean;
|
|
restrictFiles?: boolean;
|
|
autoSaveContext?: boolean;
|
|
fileWatching?: boolean;
|
|
privacyOptIn?: boolean;
|
|
}
|