forked from genewildish/Mainline
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.
95 lines
2.1 KiB
Python
95 lines
2.1 KiB
Python
"""
|
|
Unified Pipeline Architecture (Compatibility Shim).
|
|
|
|
This module re-exports the pipeline architecture from Sideline for backward
|
|
compatibility with existing Mainline code. New code should import directly
|
|
from sideline.pipeline.
|
|
|
|
Note: This module is deprecated and will be removed in future versions.
|
|
"""
|
|
|
|
# Re-export from sideline for backward compatibility
|
|
from sideline.pipeline import (
|
|
Pipeline,
|
|
PipelineConfig,
|
|
PipelineContext,
|
|
Stage,
|
|
StageConfig,
|
|
StageError,
|
|
StageResult,
|
|
PipelineParams,
|
|
StageRegistry,
|
|
discover_stages,
|
|
register_camera,
|
|
register_display,
|
|
register_effect,
|
|
register_source,
|
|
)
|
|
|
|
# Re-export from engine.pipeline.presets (Mainline-specific)
|
|
from engine.pipeline.presets import (
|
|
DEMO_PRESET,
|
|
FIREHOSE_PRESET,
|
|
PIPELINE_VIZ_PRESET,
|
|
POETRY_PRESET,
|
|
UI_PRESET,
|
|
WEBSOCKET_PRESET,
|
|
PipelinePreset,
|
|
create_preset_from_params,
|
|
get_preset,
|
|
list_presets,
|
|
)
|
|
|
|
# Re-export from sideline.pipeline.params
|
|
from sideline.pipeline.params import (
|
|
DEFAULT_HEADLINE_PARAMS,
|
|
DEFAULT_PIPELINE_PARAMS,
|
|
DEFAULT_PYGAME_PARAMS,
|
|
)
|
|
|
|
# Re-export additional functions from sideline.pipeline
|
|
from sideline.pipeline import (
|
|
create_default_pipeline,
|
|
create_pipeline_from_params,
|
|
PipelineRunner,
|
|
)
|
|
|
|
__all__ = [
|
|
# Core (from sideline)
|
|
"Stage",
|
|
"StageConfig",
|
|
"StageError",
|
|
"StageResult",
|
|
"PipelineContext",
|
|
# Controller (from sideline)
|
|
"Pipeline",
|
|
"PipelineConfig",
|
|
"PipelineRunner",
|
|
"create_default_pipeline",
|
|
"create_pipeline_from_params",
|
|
# Params (from sideline)
|
|
"PipelineParams",
|
|
"DEFAULT_HEADLINE_PARAMS",
|
|
"DEFAULT_PIPELINE_PARAMS",
|
|
"DEFAULT_PYGAME_PARAMS",
|
|
# Presets (from engine)
|
|
"PipelinePreset",
|
|
"PRESETS",
|
|
"DEMO_PRESET",
|
|
"POETRY_PRESET",
|
|
"PIPELINE_VIZ_PRESET",
|
|
"WEBSOCKET_PRESET",
|
|
"FIREHOSE_PRESET",
|
|
"UI_PRESET",
|
|
"get_preset",
|
|
"list_presets",
|
|
"create_preset_from_params",
|
|
# Registry (from sideline)
|
|
"StageRegistry",
|
|
"discover_stages",
|
|
"register_source",
|
|
"register_effect",
|
|
"register_display",
|
|
"register_camera",
|
|
]
|