agent-Specialization/server/tasks/__init__.py
JOJO f661dc6456 refactor(server,modules,utils,frontend): split oversized modules into packages and fix regressions
- Split server/chat.py, server/status.py, server/tasks.py into sub-packages
- Split utils/context_manager.py, utils/conversation_manager.py into mixin packages
- Split modules/file_manager.py, persistent_terminal.py, terminal_ops.py, mcp_client_manager.py into packages
- Split core/main_terminal_parts/context.py into base + mixins
- Split static/src/app/methods/{ui,message,upload,taskPolling,conversation} into sub-modules
- Fix flattened method exports, dynamic import paths, missing cross-module imports
- Add missing permission/network/execution mode constants and _PERMISSION_MODE_LABEL
- Update AGENTS.md, CLAUDE.md and project memories to reflect new structure
2026-06-20 15:54:48 +08:00

15 lines
412 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.

# server/tasks/__init__.py - tasks_bp 兼容入口
from flask import Blueprint
tasks_bp = Blueprint("tasks", __name__)
from server.tasks.models import *
from server.tasks.skills import *
from server.tasks.helpers import *
from server.tasks.media import *
# 显式导出单例,便于旧代码导入;必须在 api 之前定义api 会引用它
task_manager = TaskManager()
from server.tasks.api import *