|
28 | 28 | from datetime import datetime |
29 | 29 | from typing import Awaitable, Callable, Dict, Optional |
30 | 30 |
|
| 31 | +from chat_history import ChatHistoryManager |
| 32 | +from constants.path_constants import PATH |
| 33 | +from constants.threshold_constants import TimingConstants |
31 | 34 | from fastapi import WebSocket |
32 | 35 |
|
33 | 36 | # Import models from dedicated module (Issue #185) |
|
45 | 48 | LOGGING_SECURITY_LEVELS, |
46 | 49 | SHELL_OPERATORS, |
47 | 50 | ) |
48 | | -from chat_history import ChatHistoryManager |
49 | | -from constants.path_constants import PATH |
50 | | -from constants.threshold_constants import TimingConstants |
51 | 51 |
|
52 | 52 | # Issue #380: Module-level frozenset for terminal close event types |
53 | 53 | _TERMINAL_CLOSE_EVENTS = frozenset({"eo", "close"}) |
@@ -181,7 +181,7 @@ def __init__( |
181 | 181 |
|
182 | 182 | # Initialize TerminalLogger for persistent command logging |
183 | 183 | if conversation_id: |
184 | | - from logging.terminal_logger import TerminalLogger |
| 184 | + from autobot_logging.terminal_logger import TerminalLogger |
185 | 185 |
|
186 | 186 | self.terminal_logger = TerminalLogger( |
187 | 187 | redis_client=redis_client, data_dir="data/chats" |
@@ -639,7 +639,6 @@ async def _write_to_transcript(self, text: str) -> None: |
639 | 639 | from pathlib import Path |
640 | 640 |
|
641 | 641 | import aiofiles |
642 | | - |
643 | 642 | from utils.encoding_utils import strip_ansi_codes |
644 | 643 |
|
645 | 644 | # Strip ANSI escape codes before writing to transcript |
@@ -1181,7 +1180,6 @@ async def _log_to_transcript(self, content: str) -> None: |
1181 | 1180 | from pathlib import Path |
1182 | 1181 |
|
1183 | 1182 | import aiofiles |
1184 | | - |
1185 | 1183 | from utils.encoding_utils import strip_ansi_codes |
1186 | 1184 |
|
1187 | 1185 | try: |
|
0 commit comments