import { type ModelProfile } from './model-profiles.js'; export type PermissionLevel = 'ask' | 'auto' | 'deny'; export interface AgentPermissions { fileWrite: PermissionLevel; fileDelete: PermissionLevel; bash: PermissionLevel; network: PermissionLevel; } export interface Agent { id: string; name: string; description: string; systemPrompt: string; personality: string; avatar: string; permissions: AgentPermissions; allowedTools: string[] | 'all'; mode: 'primary' | 'subagent'; color: string; managerId?: string; modelProfileId?: string; ragConfig?: { enabled: boolean; customInstructions?: string; }; } export declare const builtInAgents: Record; export declare class AgentManager { private currentAgent; private agents; constructor(initialAgentId?: string); private loadPersistedAgents; private saveAgents; getCurrentAgent(): Agent; switchAgent(agentId: string): boolean; listAgents(): Agent[]; getAgent(id: string): Agent | undefined; registerAgent(agent: Agent): Promise; canUseTool(toolName: string): boolean; getEffectiveSystemPrompt(basePrompt: string, cwd?: string): string; checkPermission(permission: keyof AgentPermissions): PermissionLevel; getCurrentModelProfileId(): string; getCurrentModelProfile(): ModelProfile | undefined; setAgentModelProfile(agentId: string, profileId: string): boolean; getAgentModelProfile(agentId: string): { profile: ModelProfile | undefined; recommended: string[]; ragEnabled: boolean; } | undefined; getRecommendedModelsForCurrentAgent(): string[]; updateAgentRagConfig(agentId: string, config: { enabled: boolean; customInstructions?: string; }): boolean; /** * Ensure an agent exists - creates it if it doesn't, does nothing if it does * This is used to guarantee required agents are available without deleting existing ones */ ensureAgent(agent: Agent): Promise; /** * Create a new subagent dynamically * Used by agents to spawn specialized helpers for specific tasks */ createSubagent(config: { id: string; name: string; description: string; systemPrompt: string; personality?: string; permissions?: Partial; allowedTools?: string[] | 'all'; modelProfileId?: string; }): Promise; /** * Check if an agent exists */ hasAgent(id: string): boolean; /** * Get all agent IDs */ listAgentIds(): string[]; } export declare function formatAgentName(agent: Agent): string; //# sourceMappingURL=agents.d.ts.map