- Refactor 6000+ line web_server.py into server/ module - Create separate modules: auth, chat, conversation, files, admin, etc. - Keep web_server.py as backward-compatible entry point - Add container running status field in user_container_manager - Improve admin dashboard API with credentials and debug support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
user_manager = UserManager()
|
|
custom_tool_registry = CustomToolRegistry()
|
|
container_manager = UserContainerManager()
|
|
user_terminals: Dict[str, WebTerminal] = {}
|
|
terminal_rooms: Dict[str, set] = {}
|
|
connection_users: Dict[str, str] = {}
|
|
stop_flags: Dict[str, Dict[str, Any]] = {}
|
|
|
|
MONITOR_FILE_TOOLS = {'append_to_file', 'modify_file', 'write_file_diff'}
|
|
MONITOR_MEMORY_TOOLS = {'update_memory'}
|
|
MONITOR_SNAPSHOT_CHAR_LIMIT = 60000
|
|
MONITOR_MEMORY_ENTRY_LIMIT = 256
|
|
RATE_LIMIT_BUCKETS: Dict[str, deque] = defaultdict(deque)
|
|
FAILURE_TRACKERS: Dict[str, Dict[str, float]] = {}
|
|
pending_socket_tokens: Dict[str, Dict[str, Any]] = {}
|
|
usage_trackers: Dict[str, UsageTracker] = {}
|
|
|
|
MONITOR_SNAPSHOT_CACHE: Dict[str, Dict[str, Any]] = {}
|
|
MONITOR_SNAPSHOT_CACHE_LIMIT = 120
|
|
|
|
ADMIN_ASSET_DIR = (Path(app.static_folder) / 'admin_dashboard').resolve()
|
|
ADMIN_CUSTOM_TOOLS_DIR = (Path(app.static_folder) / 'custom_tools').resolve()
|
|
ADMIN_CUSTOM_TOOLS_DIR = (Path(app.static_folder) / 'custom_tools').resolve()
|
|
RECENT_UPLOAD_EVENT_LIMIT = 150
|
|
RECENT_UPLOAD_FEED_LIMIT = 60
|
|
|