c5a4d559a2
- Added blank lines for better separation of test cases in multiple test files. - Reformatted event handling in tests for clarity and consistency. - Ensured consistent use of multi-line formatting for dictionary arguments in event handling. - Improved assertions and test descriptions for better understanding. - Updated test cases across various modules including test_stream_state, test_stream_utils, test_summarization, test_thread_selector, test_tool_error_handler, test_tui_widgets, test_ui_runtime, and test_wechat_channel.
40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
"""EvoScientist CLI package."""
|
|
|
|
# Backward-compat re-exports (tests import these from EvoScientist.cli)
|
|
from ..stream.state import ( # noqa: F401
|
|
SubAgentState,
|
|
StreamState,
|
|
_parse_todo_items,
|
|
_build_todo_stats,
|
|
)
|
|
from .channel import _channels_is_running, _channels_stop # noqa: F401
|
|
from .agent import _deduplicate_run_name # noqa: F401
|
|
|
|
from ._app import app # noqa: F401
|
|
from . import commands # noqa: F401 — registers @app.command decorators
|
|
|
|
# UI runtime re-exports (merged from former tui/ package)
|
|
from .tui_runtime import ( # noqa: F401
|
|
DEFAULT_UI_BACKEND,
|
|
SUPPORTED_UI_BACKENDS,
|
|
normalize_ui_backend,
|
|
resolve_ui_backend,
|
|
get_backend,
|
|
run_streaming,
|
|
)
|
|
from ._constants import WELCOME_SLOGANS # noqa: F401
|
|
|
|
|
|
def main():
|
|
"""CLI entry point."""
|
|
import warnings
|
|
|
|
warnings.filterwarnings("ignore", message=".*not known to support tools.*")
|
|
warnings.filterwarnings(
|
|
"ignore", message=".*type is unknown and inference may fail.*"
|
|
)
|
|
from .commands import _configure_logging
|
|
|
|
_configure_logging()
|
|
app()
|