cursus.registry.hybrid.manager¶
Unified Registry Manager Implementation
This module provides a single, consolidated registry manager for the hybrid registry system. Eliminates redundancy by consolidating CoreStepRegistry, LocalStepRegistry, and HybridRegistryManager into one unified manager that handles all registry operations efficiently.
- class UnifiedRegistryManager(core_registry_path=None, workspaces_root=None)[source]¶
Bases:
objectUnified registry manager that consolidates all registry operations.
Replaces CoreStepRegistry, LocalStepRegistry, and HybridRegistryManager with a single, efficient manager that eliminates redundancy while maintaining all functionality.
- reload_core_registry()[source]¶
Re-snapshot the core registry from
step_names_base.STEP_NAMESand drop caches.Called after an external step-pack merges rows into
step_names_base(seecursus.registry.step_names.refresh_registry()) so the manager’s_core_stepssnapshot and its legacy/definition caches reflect the plugin steps. Additive by construction — it re-reads the (already package-first-merged) base table.
- get_step_definition(step_name, workspace_id=None)[source]¶
Get a step definition by name, with optional workspace context.
- Parameters:
- Returns:
StepDefinition if found, None otherwise
- Return type:
StepDefinition | None
- get_all_step_definitions(workspace_id=None)[source]¶
Get all step definitions with caching for performance optimization.
- get_local_only_definitions(workspace_id)[source]¶
Get only local and override definitions for a workspace (not core).
- get_step(step_name, context=None)[source]¶
Get a step definition with simple workspace priority resolution.
- Parameters:
step_name (str) – Name of the step to retrieve
context (ResolutionContext | None) – Resolution context for workspace handling
- Returns:
StepResolutionResult containing the resolved step and metadata
- Return type:
- CoreStepRegistry¶
alias of
UnifiedRegistryManager
- LocalStepRegistry¶
alias of
UnifiedRegistryManager
- HybridRegistryManager¶
alias of
UnifiedRegistryManager