init
Router assembly for Phase 2 alignment routes
Router Assembly
init_alignment_routers
def init_alignment_routers(
state_store:SQLiteWorkflowStateStore, # The workflow state store
workflow_id:str, # The workflow identifier
source_service:SourceService, # Service for fetching source blocks
alignment_service:AlignmentService, # Service for VAD analysis
prefix:str, # Base prefix for alignment routes (e.g., "/workflow/align")
audio_src_url:str, # URL for audio_src route (from core router)
wrapped_init:Callable=None, # Optional wrapped init handler
)->Tuple: # (routers, urls, merged_routes)
Initialize and return all alignment routers with URL bundle.