UNPKG

cortexweaver

Version:

CortexWeaver is a command-line interface (CLI) tool that orchestrates a swarm of specialized AI agents, powered by Claude Code and Gemini CLI, to assist in software development. It transforms a high-level project plan (plan.md) into a series of coordinate

53 lines 1.28 kB
export interface TemplateContext { [key: string]: any; } /** * Simple template engine for processing prompt templates * Supports Handlebars-like syntax: {{variable}} and {{#if condition}} */ export declare class TemplateEngine { private templateCache; private templateDir; constructor(templateDir?: string); /** * Render a template with the given context */ render(templatePath: string, context: TemplateContext): Promise<string>; /** * Load template from file (with caching) */ private loadTemplate; /** * Process template with context data */ private processTemplate; /** * Process {{#if condition}} blocks */ private processConditionals; /** * Process {{#each array}} blocks */ private processLoops; /** * Process {{variable}} substitutions */ private processVariables; /** * Resolve a dot-notation path to a value in the context */ private resolveValue; /** * Check if a value is truthy for conditionals */ private isTruthy; /** * Format a value for output */ private formatValue; /** * Clear template cache */ clearCache(): void; } //# sourceMappingURL=template-engine.d.ts.map