Get the number of registered templates. IRegistry interface method.
Check if the registry is empty. IRegistry interface method.
Initialize the registry with built-in templates. Called automatically on first access if not already initialized. Uses promise coalescing to prevent duplicate init from concurrent calls.
Get all built-in templates.
Get all registered templates.
Register a custom workflow template.
OptionalpartialMetadata: Partial<TemplateMetadata>Unregister a custom template.
Load templates from a directory.
Clear all custom templates (keeps built-in).
Get template metadata by ID. IRegistry interface method.
Template ID to retrieve
Result with TemplateMetadata or TemplateRegistryError
Check if a template is registered. IRegistry interface method.
Template ID to check
True if template is registered
Get all registered template IDs. IRegistry interface method.
Array of all registered template IDs
Query templates with predicate function. IRegistry interface method.
Function to test each template
Array of matching templates
Clear all templates (built-in and custom). IRegistry interface method.
WARNING: This removes built-in templates. Use clearCustom() to only clear custom templates.
Get registry statistics. IRegistry interface method with domain-specific extensions.
Template registry implementation. Manages both built-in and custom workflow templates.