/** * MCP Tool Wrappers for Wundr CLI Commands * Maps CLI commands to MCP tool handlers * * @module @wundr/mcp-server/tools/cli-commands */ import { registerRagTools, initializeRagTools as initRagTools } from './rag'; import type { ToolRegistry, McpToolResult } from './registry'; import type { ComputerSetupInput, ClaudeConfigInput, BackupInput, RollbackInput, ProjectInitInput, ClaudeSetupInput, DriftDetectionInput, PatternStandardizeInput, MonorepoManageInput, GovernanceReportInput, DependencyAnalyzeInput, TestBaselineInput } from './schemas'; /** * Options for command execution */ interface ExecuteCommandOptions { /** Working directory */ cwd?: string; /** Environment variables */ env?: Record; /** Timeout in milliseconds */ timeout?: number; /** Capture and return output */ captureOutput?: boolean; /** Stream output to console */ streamOutput?: boolean; } /** * Result of command execution */ interface CommandResult { /** Exit code */ exitCode: number; /** Standard output */ stdout: string; /** Standard error */ stderr: string; /** Combined output */ output: string; /** Duration in milliseconds */ duration: number; } /** * Execute a CLI command and return the result * * @param command - Command to execute * @param args - Command arguments * @param options - Execution options * @returns Promise resolving to command result */ declare function executeCommand(command: string, args: string[], options?: ExecuteCommandOptions): Promise; /** * Execute wundr CLI command */ declare function executeWundrCommand(subcommand: string, args?: string[], options?: ExecuteCommandOptions): Promise; /** * Handler for computer-setup MCP tool * Sets up a new developer machine with all required tools and configurations * * @param input - ComputerSetupInput parameters * @returns McpToolResult with setup result */ declare function computerSetupHandler(input: ComputerSetupInput): Promise>; /** * Handler for claude-config MCP tool * Installs Claude Code configuration files */ declare function claudeConfigHandler(input: ClaudeConfigInput): Promise>; /** * Handler for backup MCP tool * Manages configuration backups */ declare function backupHandler(input: BackupInput): Promise; message: string; }>>; /** * Handler for rollback MCP tool * Rolls back to a previous configuration backup */ declare function rollbackHandler(input: RollbackInput): Promise>; /** * Handler for project-init MCP tool * Initializes a new Wundr project with template selection */ declare function projectInitHandler(input: ProjectInitInput): Promise>; /** * Handler for claude-setup MCP tool * Sets up Claude Code, Ruflo, and MCP tools */ declare function claudeSetupHandler(input: ClaudeSetupInput): Promise>; /** * Handler for drift-detection MCP tool * Monitors code quality drift and creates baselines */ declare function driftDetectionHandler(input: DriftDetectionInput): Promise; message: string; }>>; /** * Handler for pattern-standardize MCP tool * Auto-fixes code patterns to meet standards */ declare function patternStandardizeHandler(input: PatternStandardizeInput): Promise; }>>; /** * Handler for monorepo-manage MCP tool * Manages monorepo packages and dependencies */ declare function monorepoManageHandler(input: MonorepoManageInput): Promise>; /** * Handler for governance-report MCP tool * Generates governance and compliance reports */ declare function governanceReportHandler(input: GovernanceReportInput): Promise; }>>; /** * Handler for dependency-analyze MCP tool * Analyzes project dependencies for issues */ declare function dependencyAnalyzeHandler(input: DependencyAnalyzeInput): Promise; security?: Array<{ name: string; severity: string; description: string; }>; }>>; /** * Handler for test-baseline MCP tool * Manages test coverage baselines */ declare function testBaselineHandler(input: TestBaselineInput): Promise>; /** * Register all CLI command tools with a registry * * @param registry - ToolRegistry instance to register tools with */ export declare function registerCliCommandTools(registry: ToolRegistry): void; /** * Initialize and register all CLI tools with the global registry */ export declare function initializeCliTools(): ToolRegistry; /** * Initialize all tools (CLI + RAG) with the global registry * * @returns The global tool registry with all tools registered */ export declare function initializeAllTools(): ToolRegistry; /** * Re-export RAG tools initialization for convenience */ export { registerRagTools, initRagTools as initializeRagTools }; export { computerSetupHandler, claudeConfigHandler, backupHandler, rollbackHandler, projectInitHandler, claudeSetupHandler, driftDetectionHandler, patternStandardizeHandler, monorepoManageHandler, governanceReportHandler, dependencyAnalyzeHandler, testBaselineHandler, executeCommand, executeWundrCommand, }; //# sourceMappingURL=cli-commands.d.ts.map