forked from genewildish/Mainline
Two critical fixes: 1. ListDataSource Cache Bug - Previously, ListDataSource.__init__ cached raw tuples directly - get_items() would return cached raw tuples without converting to SourceItem - This caused SourceItemsToBufferStage to receive tuples and stringify them - Results: ugly tuple representations in terminal/pygame instead of formatted text - Fix: Store raw items in _raw_items, let fetch() convert to SourceItem - Cache now contains proper SourceItem objects 2. Camera Dependency Resolution - CameraStage declared dependency on 'source.items' exactly - DataSourceStage provides 'source.headlines' (or 'source.poetry', etc.) - Capability matching didn't trigger prefix match for exact dependency - Fix: Change CameraStage dependency to 'source' for prefix matching 3. Added app.py Camera Stage Support - Pipeline now adds camera stage from preset.camera config - Supports vertical, horizontal, omni, floating, bounce modes - Tests now passing with proper data flow through all stages Tests: All 502 tests passing, 16 skipped
43 lines
990 B
Python
43 lines
990 B
Python
from engine.effects.chain import EffectChain
|
|
from engine.effects.controller import handle_effects_command, show_effects_menu
|
|
from engine.effects.legacy import (
|
|
fade_line,
|
|
firehose_line,
|
|
glitch_bar,
|
|
next_headline,
|
|
noise,
|
|
vis_offset,
|
|
vis_trunc,
|
|
)
|
|
from engine.effects.performance import PerformanceMonitor, get_monitor, set_monitor
|
|
from engine.effects.registry import EffectRegistry, get_registry, set_registry
|
|
from engine.effects.types import (
|
|
EffectConfig,
|
|
EffectContext,
|
|
PipelineConfig,
|
|
create_effect_context,
|
|
)
|
|
|
|
__all__ = [
|
|
"EffectChain",
|
|
"EffectRegistry",
|
|
"EffectConfig",
|
|
"EffectContext",
|
|
"PipelineConfig",
|
|
"create_effect_context",
|
|
"get_registry",
|
|
"set_registry",
|
|
"get_monitor",
|
|
"set_monitor",
|
|
"PerformanceMonitor",
|
|
"handle_effects_command",
|
|
"show_effects_menu",
|
|
"fade_line",
|
|
"firehose_line",
|
|
"glitch_bar",
|
|
"noise",
|
|
"next_headline",
|
|
"vis_trunc",
|
|
"vis_offset",
|
|
]
|