UNPKG

mcp-codesentry

Version:

CodeSentry MCP - AI-powered code review assistant with 5 specialized review tools for security, best practices, and comprehensive code analysis

26 lines 1.27 kB
export declare class CodeFlattener { private getTmpDir; /** * Flattens a codebase using Repomix * @param codebasePath Path to the codebase to flatten * @param outputPath Optional path to save the flattened output. If not provided, returns the output directly * @returns The flattened codebase as a string, or void if outputPath is provided */ flattenCodebase(codebasePath: string, outputPath?: string): Promise<string | void>; /** * Flattens specific files using Repomix * @param files Array of file paths to flatten * @param outputPath Optional path to save the flattened output * @returns The flattened code as a string, or void if outputPath is provided */ flattenFiles(files: string[], outputPath?: string): Promise<string | void>; /** * Gets a diff between two codebases using Repomix * @param beforePath Path to the codebase before changes * @param afterPath Path to the codebase after changes * @param outputPath Optional path to save the diff output * @returns The diff as a string, or void if outputPath is provided */ getDiff(beforePath: string, afterPath: string, outputPath?: string): Promise<string | void>; } //# sourceMappingURL=flattener.d.ts.map