UNPKG

@tosin2013/mcp-shrimp-task-manager

Version:

Enhanced MCP Shrimp Task Manager with comprehensive LLM integration. A task management tool built for AI Agents, emphasizing chain-of-thought, reflection, and style consistency. Features real GPT-4 ↔ MCP tools communication, comprehensive testing pipeline

66 lines (65 loc) 1.71 kB
/** * User Interaction Handler for the Idea Honing Tool * * This component manages user interactions with the Idea Honing Tool, * including command parsing, input handling, and response formatting. */ /** * Command types supported by the User Interaction Handler */ export declare enum CommandType { VIEW_SPEC = "view_spec", EDIT_SECTION = "edit_section", MARK_COMPLETE = "mark_complete", ADD_QUESTION = "add_question", ANSWER_QUESTION = "answer_question", CHANGE_PHASE = "change_phase", VIEW_TASKS = "view_tasks", VIEW_PROGRESS = "view_progress", HELP = "help", SUGGEST = "suggest", ANALYZE = "analyze", WORKFLOW = "workflow", EXPORT = "export" } /** * Command structure */ export interface Command { /** Command type */ type: CommandType; /** Command parameters */ params: Record<string, any>; } /** * Response structure */ export interface Response { /** Response success status */ success: boolean; /** Response message */ message: string; /** Response data */ data?: any; } /** * Parses a command string into a Command object * * @param commandStr - Command string to parse * @returns Parsed command or null if invalid */ export declare function parseCommand(commandStr: string): Command | null; /** * Executes a command * * @param command - Command to execute * @returns Promise that resolves with the command response */ export declare function executeCommand(command: Command): Promise<Response>; /** * Handles user input * * @param input - User input string * @returns Promise that resolves with the response */ export declare function handleUserInput(input: string): Promise<Response>;