03f4134190
- Introduced UserMessage widget for displaying user input with a styled prompt. - Updated onboarding steps to include UI backend selection (Rich CLI or Textual TUI). - Modified EvoScientistConfig to store selected UI backend. - Enhanced configuration handling to support UI backend environment variable. - Updated README with new UI backend options and commands. - Added tests for new UI backend functionality and UserMessage widget. - Removed obsolete test files and ensured existing tests are updated accordingly.
38 lines
1.1 KiB
Python
38 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()
|