- Expanded package inclusion in `pyproject.toml` to support new modules. - Introduced new `adapters` and `protocol` packages for better organization. - Added backend adapter implementations for control plane integration. - Updated main application imports to reflect new package structure. - Removed deprecated core components and adjusted documentation accordingly. - Enhanced architecture documentation to clarify the new runtime and integration layers.
13 lines
404 B
Python
13 lines
404 B
Python
"""Workflow bridge helpers for runtime session orchestration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Optional
|
|
|
|
from workflow.runner import WorkflowRunner
|
|
|
|
|
|
def has_active_workflow(workflow_runner: Optional[WorkflowRunner]) -> bool:
|
|
"""Return whether a workflow runner exists and has a current node."""
|
|
return bool(workflow_runner and workflow_runner.current_node is not None)
|