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

60 lines (59 loc) 1.97 kB
/** * Project Rules Integrator for the Idea Honing Tool * * This component integrates with the project rules system to apply relevant rules * to specifications and generate rule suggestions. */ import { RelevantRule } from '../models/analysis-result.js'; import { SpecificationDocument } from '../models/specification.js'; /** * Project rule structure */ interface ProjectRule { /** Rule identifier */ id: string; /** Rule name */ name: string; /** Rule description */ description: string; /** Rule category */ category: string; /** Rule scope (e.g., 'code', 'documentation', 'testing') */ scope: string; /** Rule priority (1-5, with 1 being highest) */ priority: number; /** Rule keywords for matching */ keywords: string[]; /** Rule examples */ examples?: string[]; } /** * Retrieves all project rules * * @returns Promise that resolves with an array of project rules */ export declare function getAllProjectRules(): Promise<ProjectRule[]>; /** * Determines which rules are relevant to a specification * * @param specification - Specification document * @param rules - Project rules * @returns Array of relevant rules */ export declare function determineRelevantRules(specification: SpecificationDocument, rules: ProjectRule[]): RelevantRule[]; /** * Applies rules to a specification * * @param specification - Specification document * @param relevantRules - Relevant rules * @returns Updated specification with rule suggestions */ export declare function applyRulesToSpecification(specification: SpecificationDocument, relevantRules: RelevantRule[]): SpecificationDocument; /** * Generates rule suggestions based on a specification * * @param specification - Specification document * @returns Promise that resolves with an array of rule suggestions */ export declare function generateRuleSuggestions(specification: SpecificationDocument): Promise<RelevantRule[]>; export {};