@dollhousemcp/mcp-server
Version:
DollhouseMCP - A Model Context Protocol (MCP) server that enables dynamic AI persona management from markdown files, allowing Claude and other compatible AI assistants to activate and switch between different behavioral personas.
47 lines • 2.01 kB
TypeScript
/**
* PersonaActivationStrategy - Strategy for persona element activation
*
* Handles activation, deactivation, and status tracking for persona elements.
* Uses the PersonaManager's unique API and PersonaIndicatorService for formatting.
*/
import { PersonaManager } from '../../persona/PersonaManager.js';
import { PersonaIndicatorService } from '../../services/PersonaIndicatorService.js';
import { BaseActivationStrategy } from './BaseActivationStrategy.js';
import { ElementActivationStrategy, MCPResponse } from './ElementActivationStrategy.js';
export declare class PersonaActivationStrategy extends BaseActivationStrategy implements ElementActivationStrategy {
private readonly personaManager;
private readonly indicatorService;
constructor(personaManager: PersonaManager, indicatorService: PersonaIndicatorService);
/**
* Get the persona indicator prefix
*/
private getPersonaIndicator;
/**
* Activate a persona
* Extracted from ElementCRUDHandler.ts lines 161-182
*/
activate(name: string): Promise<MCPResponse>;
/**
* Deactivate a specific persona
* Issue #281: Updated to support multiple active personas
*
* @throws {ElementNotFoundError} When named persona does not exist
* @throws {Error} When name parameter is missing
* @see Issue #275 - Handlers return success=true for missing elements
*/
deactivate(name: string): Promise<MCPResponse>;
/**
* Get all active personas
* Issue #281: Updated to show all active personas (supports multiple)
*/
getActiveElements(): Promise<MCPResponse>;
/**
* Get detailed information about a persona
* Extracted from ElementCRUDHandler.ts lines 620-648
*
* @throws {ElementNotFoundError} When persona does not exist
* @see Issue #275 - Handlers return success=true for missing elements
*/
getElementDetails(name: string): Promise<MCPResponse>;
}
//# sourceMappingURL=PersonaActivationStrategy.d.ts.map