"""Workflow CLI package."""

from __future__ import annotations
from orcheo_sdk.cli.output import render_json, render_table
from . import commands as _commands  # noqa: F401
from .app import (
    ActorOption,
    FilePathArgument,
    ForceOption,
    FormatOption,
    InputsFileOption,
    InputsOption,
    OutputPathOption,
    WorkflowIdArgument,
    _state,
    workflow_app,
)
from .commands.listing import list_workflows
from .commands.managing import delete_workflow, download_workflow, upload_workflow
from .commands.running import run_workflow
from .commands.showing import show_workflow
from .formatting import _format_workflow_as_json, _format_workflow_as_python
from .ingest import (
    _generate_slug,
    _load_workflow_from_json,
    _load_workflow_from_python,
    _normalize_workflow_name,
    _strip_main_block,
    _upload_langgraph_script,
)
from .inputs import (
    _cache_notice,
    _load_inputs_from_path,
    _load_inputs_from_string,
    _resolve_run_inputs,
    _validate_local_path,
)
from .mermaid import (
    _collect_edges,
    _collect_node_names,
    _compiled_mermaid,
    _identity_state,
    _mermaid_from_graph,
    _node_identifier,
    _normalise_vertex,
    _register_endpoint,
    _resolve_edge,
)
from .streaming import (
    _handle_node_event,
    _handle_status_update,
    _prepare_streaming_graph,
    _process_stream_messages,
    _render_node_output,
    _stream_workflow_run,
)


__all__ = [
    "workflow_app",
    "WorkflowIdArgument",
    "ActorOption",
    "InputsOption",
    "InputsFileOption",
    "ForceOption",
    "FilePathArgument",
    "OutputPathOption",
    "FormatOption",
    "_state",
    "_generate_slug",
    "_normalize_workflow_name",
    "_upload_langgraph_script",
    "_stream_workflow_run",
    "_process_stream_messages",
    "_handle_status_update",
    "_handle_node_event",
    "_render_node_output",
    "_mermaid_from_graph",
    "_compiled_mermaid",
    "_collect_node_names",
    "_collect_edges",
    "_node_identifier",
    "_resolve_edge",
    "_register_endpoint",
    "_normalise_vertex",
    "_identity_state",
    "_resolve_run_inputs",
    "_prepare_streaming_graph",
    "_load_inputs_from_string",
    "_validate_local_path",
    "_load_inputs_from_path",
    "_cache_notice",
    "_strip_main_block",
    "_load_workflow_from_python",
    "_load_workflow_from_json",
    "_format_workflow_as_json",
    "_format_workflow_as_python",
    "render_json",
    "render_table",
    "list_workflows",
    "show_workflow",
    "run_workflow",
    "delete_workflow",
    "upload_workflow",
    "download_workflow",
]
