UNPKG

@memory-bank/mcp

Version:

Memory-enabled Co-Pilot (MCP) server for managing project documentation and context

33 lines 1 kB
import { logger } from '../../../shared/utils/logger.js'; /** * Use case for reading a document from global memory bank */ export class ReadGlobalDocumentUseCase { readDocumentUseCase; useCaseLogger = logger.withContext({ component: 'ReadGlobalDocumentUseCase' }); /** * Constructor * @param readDocumentUseCase Unified document read use case */ constructor(readDocumentUseCase) { this.readDocumentUseCase = readDocumentUseCase; } /** * Execute the use case * @param input Input data * @returns Promise resolving to output data */ async execute(input) { this.useCaseLogger.info('Delegating to ReadDocumentUseCase', { path: input.path }); // Delegate to the new use case with scope set to 'global' return await this.readDocumentUseCase.execute({ scope: 'global', path: input.path }); } } //# sourceMappingURL=ReadGlobalDocumentUseCase.js.map