interface AgentManifestEntry { name: string; directory: string; createdAt: string; role: string; goal: string; agent_id: string; } interface AgentManifest { agents: Record; } export declare class AgentManifestManager { private manifestPath; private baseDir; constructor(baseDir: string); private loadManifest; private saveManifest; /** * Generates a unique name for an agent and records it in the manifest. * @param agentName The original agent name * @param role The agent's role * @param goal The agent's goal * @param agent_id The agent's ID * @returns A unique directory name for the agent */ generateUniqueName(agentName: string, role: string | undefined, goal: string | undefined, agent_id: string): Promise; /** * Gets all instances of an agent by name * @param name The agent name to look up * @returns Array of agent instances, ordered by creation time */ getAgentInstances(name: string): Promise; /** * Gets the most recently created instance of an agent * @param agentName The agent name to look up * @returns The latest agent instance, or null if none exists */ getLatestInstance(agentName: string): Promise; /** * Gets an agent by its ID * @param agent_id The agent ID to look up * @returns The agent entry, or null if not found */ getAgentById(agent_id: string): Promise; /** * Gets the entire manifest * @returns The complete agent manifest */ getManifest(): Promise; /** * Scans the agents directory and rebuilds the manifest * @returns The updated manifest */ reindexAgents(): Promise; } export {};