UNPKG

peezy-cli

Version:

Production-ready CLI for scaffolding modern applications with curated full-stack templates, intelligent migrations, and enterprise security.

58 lines (57 loc) 1.85 kB
import { RemoteRegistryService } from "./services/remote-registry.js"; import type { TemplateKey, TemplateRegistry, RemoteTemplate } from "./types.js"; /** * Local template registry with embedded templates * Hero templates are marked as popular for UI prioritization */ export declare const localRegistry: TemplateRegistry; export declare const registry: TemplateRegistry; /** * Parse template name with optional version and scope * Examples: "template", "@org/template", "template@1.0.0", "@org/template@1.0.0" */ export declare function parseTemplateName(input: string): { scope?: string; name: string; version?: string; fullName: string; }; /** * Get all available templates (local + remote) */ export declare function getAllTemplates(): Promise<{ local: TemplateKey[]; remote: RemoteTemplate[]; }>; /** * Get all template keys as an array (local only for backward compatibility) */ export declare const templateKeys: TemplateKey[]; /** * Get popular templates first, then others (local only for backward compatibility) */ export declare const getOrderedTemplates: () => TemplateKey[]; /** * Validate if a template key exists (local only) */ export declare const isValidTemplate: (key: string) => key is TemplateKey; /** * Check if a template name is a remote template */ export declare function isRemoteTemplate(templateName: string): boolean; /** * Get template definition by key (local only) */ export declare const getTemplate: (key: TemplateKey) => import("./types.js").TemplateDefinition; /** * Resolve template path (local or remote) */ export declare function resolveTemplate(templateName: string): Promise<{ path: string; isRemote: boolean; version?: string; }>; /** * Get remote registry service instance */ export declare function getRemoteRegistry(): RemoteRegistryService;