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
+13 -13
View File
@@ -33,33 +33,33 @@ _STUB_MODULES = dict([
_stub("pillow_avif"),
_stub("aiofiles"),
_stub("psutil"),
_stub("app.infrastructure.sites", SitesHelper=_Dummy),
_stub("app.application.site.sites", SitesHelper=_Dummy),
_stub("app.chain.mediaserver", MediaServerChain=_Dummy),
_stub("app.chain.search", SearchChain=_Dummy),
_stub("app.chain.system", SystemChain=_Dummy),
_stub("app.agent.llm", LLMHelper=_Dummy, LLMProviderManager=_Dummy,
LLMTestError=_DummyError, LLMTestTimeout=_DummyError,
render_auth_result_html=lambda success, message: message),
_stub("app.platform.events", eventmanager=_Dummy(), Event=_Dummy, EventManager=_Dummy),
_stub("app.runtime.events", eventmanager=_Dummy(), Event=_Dummy, EventManager=_Dummy),
_stub("app.domain.metainfo", MetaInfo=_Dummy),
_stub("app.extensions.module_manager", ModuleManager=_Dummy),
_stub("app.security.access", verify_apitoken=_Dummy, verify_resource_token=_Dummy, verify_token=_Dummy),
_stub("app.runtime.extensions.module_manager", ModuleManager=_Dummy),
_stub("app.application.security.access", verify_apitoken=_Dummy, verify_resource_token=_Dummy, verify_token=_Dummy),
_stub("app.db.models", User=_Dummy),
_stub("app.db.systemconfig_oper", SystemConfigOper=_Dummy),
_stub("app.db.user_oper", get_current_active_superuser=_Dummy,
get_current_active_superuser_async=_Dummy, get_current_active_user_async=_Dummy),
_stub("app.services.mediaserver", MediaServerHelper=_Dummy),
_stub("app.messaging.message", MessageHelper=_Dummy),
_stub("app.platform.progress", ProgressHelper=_Dummy),
_stub("app.services.filter", RuleHelper=_Dummy),
_stub("app.integrations.server", MoviePilotServerHelper=_Dummy),
_stub("app.platform.runtime", SystemHelper=_Dummy),
_stub("app.services.image", ImageHelper=_Dummy),
_stub("app.application.mediaserver", MediaServerHelper=_Dummy),
_stub("app.application.messaging.message", MessageHelper=_Dummy),
_stub("app.runtime.progress", ProgressHelper=_Dummy),
_stub("app.application.filter", RuleHelper=_Dummy),
_stub("app.adapters.external.server", MoviePilotServerHelper=_Dummy),
_stub("app.runtime.state", SystemHelper=_Dummy),
_stub("app.application.image", ImageHelper=_Dummy),
_stub("app.scheduler", Scheduler=_Dummy),
_stub("app.platform.log", logger=_Dummy(), log_settings=_Dummy(),
_stub("app.runtime.log", logger=_Dummy(), log_settings=_Dummy(),
LogConfigModel=type("LogConfigModel", (), {})),
_stub("app.foundation.crypto", HashUtils=_Dummy),
_stub("app.foundation.http", RequestUtils=_Dummy, AsyncRequestUtils=_Dummy),
_stub("app.adapters.network.http", RequestUtils=_Dummy, AsyncRequestUtils=_Dummy),
_stub("version", APP_VERSION="test"),
])