UNPKG

@noanswer/context-compose

Version:

Orchestrate complex AI interactions with Context Compose. A powerful CLI and server for building, validating, and managing context for large language models using the Model Context Protocol (MCP).

31 lines (30 loc) 944 B
/** * Main context YAML file structure type */ interface ContextYaml { version: number; kind: 'context'; name: string; description: string; context: { [key: string]: string[] | undefined; }; prompt?: string; 'enhanced-prompt'?: string; } interface ProcessedSections { [key: string]: string[]; } /** * Processes all sections in the context file (e.g., personas, rules), * reads the referenced YAML files, and extracts their prompts. */ export declare function processContextSections(projectRoot: string, contextSections: { [key: string]: string[] | undefined; }, useEnhancedPrompt: boolean): Promise<ProcessedSections>; /** * Combines prompts from the main context file and all its components * into a single string for the AI model. */ export declare function combinePrompts(contextYaml: ContextYaml, processedSections: ProcessedSections, useEnhancedPrompt?: boolean): string; export {};