UNPKG

@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.

43 lines 1.83 kB
/** * MemoryActivationStrategy - Strategy for memory element activation * * Handles activation, deactivation, and status tracking for memory elements. * Issue #18 Phase 4: Context-loading strategy with state management */ import { MemoryManager } from '../../elements/memories/MemoryManager.js'; import { BaseActivationStrategy } from './BaseActivationStrategy.js'; import { ElementActivationStrategy, MCPResponse } from './ElementActivationStrategy.js'; export declare class MemoryActivationStrategy extends BaseActivationStrategy implements ElementActivationStrategy { private readonly memoryManager; constructor(memoryManager: MemoryManager); /** * Activate a memory * Issue #18 Phase 4: Context-loading activation strategy * - Load memory entries into active context * - Apply retention policies if configured * - Track activation in manager's active set */ activate(name: string, context?: Record<string, any>): Promise<MCPResponse>; /** * Deactivate a memory * Issue #18 Phase 4: Use manager's deactivation method * * @throws {ElementNotFoundError} When memory does not exist * @see Issue #275 - Handlers return success=true for missing elements */ deactivate(name: string): Promise<MCPResponse>; /** * Get all active memories * Issue #18 Phase 4: Use manager's getActiveMemories method */ getActiveElements(): Promise<MCPResponse>; /** * Get detailed information about a memory * Extracted from ElementCRUDHandler.ts lines 772-805 * * @throws {ElementNotFoundError} When memory does not exist * @see Issue #275 - Handlers return success=true for missing elements */ getElementDetails(name: string): Promise<MCPResponse>; } //# sourceMappingURL=MemoryActivationStrategy.d.ts.map