UNPKG

@memory-bank/mcp

Version:

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

34 lines 1.29 kB
/** * Manages branch directories within the file system. * Handles creation and existence checks. */ export declare class BranchDirectoryManager { private readonly branchMemoryBankPath; /** * Constructor * @param rootPath Root path for the memory bank (e.g., docs/) */ constructor(rootPath: string); /** * Gets the full path for a given branch name. * @param branchName The original branch name. * @returns The full path to the branch directory. */ private getBranchPath; /** * Check if branch directory exists. * Migrated from FileSystemBranchMemoryBankRepository.exists * @param branchName Branch name * @returns Promise resolving to boolean indicating if branch directory exists */ exists(branchName: string): Promise<boolean>; /** * Ensures the branch directory exists, creating it if necessary. * Migrated from FileSystemBranchMemoryBankRepository.initialize (directory creation part) * @param branchName Branch name * @returns Promise resolving to the branch path when the directory is ready. * @throws If directory creation fails. */ ensureBranchDirectoryExists(branchName: string): Promise<string>; } //# sourceMappingURL=BranchDirectoryManager.d.ts.map