@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
58 lines (57 loc) • 1.71 kB
TypeScript
/**
* Template Engine for the Idea Honing Tool
*
* This component manages specification templates and their rendering,
* supporting both default and custom templates.
*/
import { SpecSection } from '../models/specification.js';
interface Template {
name: string;
content: string;
sections: TemplateSection[];
}
interface TemplateSection {
id: string;
title: string;
placeholder: string;
required: boolean;
order: number;
condition?: string;
}
/**
* Loads a template by name
*
* @param templateName - Name of the template to load (defaults to 'default-template')
* @returns Promise that resolves with the loaded template
*/
export declare function loadTemplate(templateName?: string): Promise<Template>;
/**
* Lists all available templates
*
* @returns Promise that resolves with an array of template names
*/
export declare function listTemplates(): Promise<string[]>;
/**
* Validates a template structure
*
* @param template - Template to validate
* @returns True if the template is valid, false otherwise
*/
export declare function validateTemplate(template: Template): boolean;
/**
* Renders a template with provided data
*
* @param template - Template to render
* @param data - Data to use for rendering
* @returns Rendered content
*/
export declare function renderTemplate(template: Template, data: Record<string, any>): string;
/**
* Creates specification sections from a template
*
* @param template - Template to use
* @param data - Data to use for rendering
* @returns Array of specification sections
*/
export declare function createSectionsFromTemplate(template: Template, data: Record<string, any>): SpecSection[];
export {};