UNPKG

vibe-coder-mcp

Version:

Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.

59 lines 2.9 kB
import { Intent, RecognizedIntent } from '../types/nl.js'; import { CallToolResult } from '@modelcontextprotocol/sdk/types.js'; import { OpenRouterConfig } from '../../../types/workflow.js'; import { VibeTaskManagerConfig } from '../utils/config-loader.js'; export interface CommandExecutionContext { sessionId: string; userId?: string; currentProject?: string; currentTask?: string; config: OpenRouterConfig; taskManagerConfig: VibeTaskManagerConfig; } export interface CommandExecutionResult { success: boolean; result: CallToolResult; updatedContext?: Partial<CommandExecutionContext>; followUpSuggestions?: string[]; } export interface CommandHandler { intent: Intent; handle(recognizedIntent: RecognizedIntent, toolParams: Record<string, unknown>, context: CommandExecutionContext): Promise<CommandExecutionResult>; } export declare class CommandHandlers { private static instance; private handlers; private constructor(); static getInstance(): CommandHandlers; private initializeHandlers; registerHandler(handler: CommandHandler): void; executeCommand(recognizedIntent: RecognizedIntent, toolParams: Record<string, unknown>, context: CommandExecutionContext): Promise<CommandExecutionResult>; getAvailableIntents(): Intent[]; } export declare class CreateProjectHandler implements CommandHandler { intent: Intent; handle(recognizedIntent: RecognizedIntent, toolParams: Record<string, unknown>, context: CommandExecutionContext): Promise<CommandExecutionResult>; } export declare class CreateTaskHandler implements CommandHandler { intent: Intent; handle(recognizedIntent: RecognizedIntent, toolParams: Record<string, unknown>, context: CommandExecutionContext): Promise<CommandExecutionResult>; } export declare class ListProjectsHandler implements CommandHandler { intent: Intent; handle(recognizedIntent: RecognizedIntent, toolParams: Record<string, unknown>, context: CommandExecutionContext): Promise<CommandExecutionResult>; } export declare class ListTasksHandler implements CommandHandler { intent: Intent; handle(recognizedIntent: RecognizedIntent, toolParams: Record<string, unknown>, context: CommandExecutionContext): Promise<CommandExecutionResult>; } export declare class RunTaskHandler implements CommandHandler { intent: Intent; private resolveProjectPath; handle(recognizedIntent: RecognizedIntent, toolParams: Record<string, unknown>, context: CommandExecutionContext): Promise<CommandExecutionResult>; } export declare class CheckStatusHandler implements CommandHandler { intent: Intent; handle(recognizedIntent: RecognizedIntent, toolParams: Record<string, unknown>, context: CommandExecutionContext): Promise<CommandExecutionResult>; } export declare function getCommandHandlers(): CommandHandlers; //# sourceMappingURL=command-handlers.d.ts.map