File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010import os
1111import shlex
1212import threading
13+ from typing import TYPE_CHECKING , Any
1314
15+ from rich .console import Console
1416from rich .live import Live
1517
1618from .. import config
2426 unescape_role_header ,
2527)
2628
29+ if TYPE_CHECKING :
30+ from collections .abc import Callable
31+
32+ from ..agent_session import AgentSession
33+
2734
2835class CommandMixin :
2936 """Slash command methods for the TUI.
@@ -34,6 +41,30 @@ class CommandMixin:
3441 ``_status_bar``, ``_flush``, ``_render_frame``.
3542 """
3643
44+ if TYPE_CHECKING :
45+ session : AgentSession
46+ console : Console
47+ conversation_history : list [Message ]
48+ _history_dirty : bool
49+ _data_event : threading .Event
50+ agent_running : bool
51+ status : str
52+ _current_tool : str
53+ _round_times : list [float ]
54+
55+ def _start_agent (
56+ self ,
57+ text : str ,
58+ system : str | None = None ,
59+ restore : Callable [[], None ] | None = None ,
60+ ) -> None : ...
61+
62+ def _status_bar (self ) -> Any : ...
63+
64+ def _flush (self ) -> None : ...
65+
66+ def _render_frame (self ) -> Any : ...
67+
3768 # ------------------------------------------------------------------
3869 # slash commands
3970 # ------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments