UNPKG

framework

Version:

The (AI) Framework: turnkey, zero-config AI orchestration that wraps a coding-agent CLI (Claude Code) as a black box and takes you from an idea to a running app. Vite for AI.

16 lines 869 B
/** Thrown when a `${{ ... }}` fragment fails to evaluate or evaluates to `undefined`. */ export declare class TemplateFragmentError extends Error { /** The fragment's expression, as written in the template. */ readonly fragment: string; constructor(fragment: string, detail: string); } /** * Render a template by evaluating every `${{ <expression> }}` fragment against * `context` (each key becomes a variable the expression can read, e.g. `tf`). * The result is stringified in place; text outside fragments passes through * byte-identical. A fragment that throws or evaluates to `undefined` (almost * always a typo) throws a {@link TemplateFragmentError} rather than silently * degrading the prompt. */ export declare function renderTemplate(template: string, context: Record<string, unknown>): string; //# sourceMappingURL=prompt-template.d.ts.map