refactor: reorganize backend module boundaries

This commit is contained in:
jxxghp
2026-08-14 19:53:33 +08:00
parent fe0b444ceb
commit 369d7d6448
584 changed files with 2423 additions and 2275 deletions

View File

@@ -4,13 +4,13 @@ import re
from typing import Dict, Optional, Union, List, Tuple, Any
from app.domain.context import MediaInfo, Context
from app.platform.events import eventmanager
from app.messaging.agent import (
from app.runtime.events import eventmanager
from app.application.messaging.agent import (
matches_channel_admin,
register_channel_admin_resolver,
resolve_config_principal_ids,
)
from app.platform.log import logger
from app.runtime.log import logger
from app.modules import _ModuleBase, _MessageBase
from app.modules.telegram.telegram import Telegram
from app.schemas import (
@@ -22,7 +22,7 @@ from app.schemas import (
MessageResponse,
)
from app.schemas.types import ModuleType, ChainEventType
from app.foundation.structures import DictUtils
from app.foundation.collections import DictUtils
register_channel_admin_resolver(

View File

@@ -34,14 +34,14 @@ try:
except ImportError:
from telegramify_markdown.type import ContentTypes, File, Photo, Text # noqa: E402
from app.platform.config import settings # noqa: E402
from app.runtime.config import settings # noqa: E402
from app.domain.context import MediaInfo, Context # noqa: E402
from app.domain.metainfo import MetaInfo # noqa: E402
from app.services.image import ImageHelper # noqa: E402
from app.platform.thread import ThreadHelper # noqa: E402
from app.platform.log import logger # noqa: E402
from app.platform.execution import retry # noqa: E402
from app.foundation.http import RequestUtils # noqa: E402
from app.application.image import ImageHelper # noqa: E402
from app.runtime.thread import ThreadHelper # noqa: E402
from app.runtime.log import logger # noqa: E402
from app.runtime.execution import retry # noqa: E402
from app.adapters.network.http import RequestUtils # noqa: E402
from app.domain.string import StringUtils # noqa: E402