/** * agent-templates.ts — Agent Templates Registry. * * Manages a curated set of versioned agent templates that users can * list, install, update, and remove. Installed templates become * regular .pi/agents/*.md files with version tracking in a manifest. * * Template metadata is bundled inline so listing works without filesystem * access. Template .md files are read from .agents/templates/ at install time. */ /** Template metadata from the built-in registry. */ export interface TemplateInfo { name: string; displayName: string; description: string; version: string; category: string; tags: string[]; } /** Entry in the installed-templates manifest. */ export interface InstalledTemplate { name: string; version: string; installedAt: string; } export declare function listTemplates(): TemplateInfo[]; export declare function getTemplateInfo(name: string): TemplateInfo | undefined; export declare function listInstalledTemplates(cwd: string): Promise; export declare function checkForUpdate(name: string, cwd: string): Promise<{ installed: string; available: string; } | null>; export declare function installTemplate(name: string, cwd: string): Promise<{ ok: boolean; error?: string; wasUpdate?: boolean; }>; export declare function removeTemplate(name: string, cwd: string): Promise<{ ok: boolean; error?: string; }>; export declare function checkAllUpdates(cwd: string): Promise<{ name: string; installed: string; available: string; }[]>;