This commit implements the Sideline/Mainline split with a clean plugin architecture: ## Core Changes ### Sideline Framework (New Directory) - Created directory containing the reusable pipeline framework - Moved pipeline core, controllers, adapters, and registry to - Moved display system to - Moved effects system to - Created plugin system with security and compatibility management in - Created preset pack system with ASCII art encoding in - Added default font (Corptic) to - Added terminal ANSI constants to ### Mainline Application (Updated) - Created for Mainline stage component registration - Updated to register Mainline stages at startup - Updated as a compatibility shim re-exporting from sideline ### Terminology Consistency - : Base class for all pipeline components (sources, effects, displays, cameras) - : Base class for distributable plugin packages (was ) - : Base class for visual effects (was ) - Backward compatibility aliases maintained for existing code ## Key Features - Plugin discovery via entry points and explicit registration - Security permissions system for plugins - Compatibility management with semantic version constraints - Preset pack system for distributable configurations - Default font bundled with Sideline (Corptic.otf) ## Testing - Updated tests to register Mainline stages before discovery - All StageRegistry tests passing Note: This is a major refactoring that separates the framework (Sideline) from the application (Mainline), enabling Sideline to be used by other applications.
51 lines
1.2 KiB
Python
51 lines
1.2 KiB
Python
"""
|
|
Stage adapters - Bridge existing components to the Stage interface.
|
|
|
|
This module provides adapters that wrap existing components
|
|
(EffectPlugin, Display, DataSource, Camera) as Stage implementations.
|
|
|
|
DEPRECATED: This file is now a compatibility wrapper.
|
|
Use `engine.pipeline.adapters` package instead.
|
|
"""
|
|
|
|
# Re-export from the new package structure for backward compatibility
|
|
from sideline.pipeline.adapters import (
|
|
# Adapter classes
|
|
CameraStage,
|
|
CanvasStage,
|
|
DataSourceStage,
|
|
DisplayStage,
|
|
EffectPluginStage,
|
|
FontStage,
|
|
ImageToTextStage,
|
|
PassthroughStage,
|
|
SourceItemsToBufferStage,
|
|
ViewportFilterStage,
|
|
# Factory functions
|
|
create_stage_from_camera,
|
|
create_stage_from_display,
|
|
create_stage_from_effect,
|
|
create_stage_from_font,
|
|
create_stage_from_source,
|
|
)
|
|
|
|
__all__ = [
|
|
# Adapter classes
|
|
"EffectPluginStage",
|
|
"DisplayStage",
|
|
"DataSourceStage",
|
|
"PassthroughStage",
|
|
"SourceItemsToBufferStage",
|
|
"CameraStage",
|
|
"ViewportFilterStage",
|
|
"FontStage",
|
|
"ImageToTextStage",
|
|
"CanvasStage",
|
|
# Factory functions
|
|
"create_stage_from_display",
|
|
"create_stage_from_effect",
|
|
"create_stage_from_source",
|
|
"create_stage_from_camera",
|
|
"create_stage_from_font",
|
|
]
|