/** * Agent Types Definitions / Agent 类型定义 * Defines TypeScript types for agent configuration and permissions * 定义 Agent 配置和权限的 TypeScript 类型 */ export type PermissionConfig = { read?: boolean; edit?: boolean; bash?: boolean; skill?: boolean; task?: "allow" | "deny" | "ask"; }; export type AgentConfig = { description: string; mode?: string; prompt: string; model?: string; temperature?: number; maxSteps?: number; color?: string; permission?: PermissionConfig; }; export type ParsedAgent = { name: string; config: AgentConfig; };