UNPKG

claude-code-emacs-mcp-server

Version:

MCP server for Claude Code Emacs integration

32 lines 1.86 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.openDiffContentInputSchema = exports.openCurrentChangesInputSchema = exports.openRevisionDiffInputSchema = exports.openDiffFileInputSchema = exports.diffToolOutputSchema = void 0; const zod_1 = require("zod"); // Common output schema for all diff tools exports.diffToolOutputSchema = zod_1.z.object({ status: zod_1.z.enum(['success', 'error']), message: zod_1.z.string(), file: zod_1.z.string().optional() }); // openDiffFile schemas exports.openDiffFileInputSchema = zod_1.z.object({ fileA: zod_1.z.string().describe('Path to the first file to compare (must be different from fileB)'), fileB: zod_1.z.string().describe('Path to the second file to compare (must be different from fileA)') }); // openRevisionDiff schemas exports.openRevisionDiffInputSchema = zod_1.z.object({ file: zod_1.z.string().describe('File to compare with its git history'), revision: zod_1.z.string().default('HEAD').describe('Git revision to compare against (e.g., HEAD, HEAD~1, branch-name, commit-hash)') }); // openCurrentChanges schemas exports.openCurrentChangesInputSchema = zod_1.z.object({ file: zod_1.z.string().optional().describe('File to show uncommitted changes for (optional, defaults to current file)') }); // openDiffContent schemas exports.openDiffContentInputSchema = zod_1.z.object({ contentA: zod_1.z.string().describe('First text content to compare'), contentB: zod_1.z.string().describe('Second text content to compare (should be different from contentA)'), titleA: zod_1.z.string().describe('Descriptive title for the first content (e.g., "Original Code", "Version 1")'), titleB: zod_1.z.string().describe('Descriptive title for the second content (e.g., "Modified Code", "Version 2")') }); //# sourceMappingURL=diff-schema.js.map