mirror of
https://github.com/johndoe6345789/AutoMetabuilder.git
synced 2026-05-04 18:54:56 +00:00
877ba64de8
- Implement core components: CLI argument parsing, environment loading, GitHub service creation, and logging configuration. - Add support for OpenAI client setup and model resolution. - Develop SDLC context loader from GitHub and repository files. - Implement workflow context and engine builders. - Introduce major workflow packages: `game_tick_loop` and `contextual_iterative_loop`. - Update localization files with new package descriptions and labels. - Streamline web navigation by loading items from a dedicated JSON file.
18 lines
592 B
Python
18 lines
592 B
Python
"""Workflow engine runner."""
|
|
|
|
|
|
class WorkflowEngine:
|
|
"""Run workflow configs through a node executor."""
|
|
def __init__(self, workflow_config, node_executor, logger):
|
|
self.workflow_config = workflow_config or {}
|
|
self.node_executor = node_executor
|
|
self.logger = logger
|
|
|
|
def execute(self):
|
|
"""Execute the workflow config."""
|
|
nodes = self.workflow_config.get("nodes")
|
|
if not isinstance(nodes, list):
|
|
self.logger.error("Workflow config missing nodes list.")
|
|
return
|
|
self.node_executor.execute_nodes(nodes)
|