agent-Specialization/web_server.py
JOJO d6fb59e1d8 refactor: split web_server into modular architecture
- 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>
2026-01-22 09:21:53 +08:00

42 lines
871 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
兼容入口deprecated转发到 server.app。
保留旧命令 `python web_server.py`,但推荐使用 `python -m server.app` 或 `python server/app.py`。
"""
import warnings
from server.app import (
app,
socketio,
run_server,
parse_arguments,
resource_busy_page,
DEFAULT_PORT,
)
__all__ = [
"app",
"socketio",
"run_server",
"parse_arguments",
"resource_busy_page",
"DEFAULT_PORT",
]
def _warn_deprecated():
warnings.warn(
"web_server.py 已弃用,建议使用 `python -m server.app` 启动(仍向下兼容)。",
DeprecationWarning,
stacklevel=2,
)
if __name__ == "__main__":
_warn_deprecated()
args = parse_arguments()
run_server(
path=args.path,
thinking_mode=args.thinking_mode,
port=args.port,
debug=args.debug,
)